@kne-components/react-pdf-sign 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/asset-manifest.json +26 -16
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/{198.7cb1b9b2.chunk.css → 198.1558528e.chunk.css} +2 -2
  6. package/build/static/css/198.1558528e.chunk.css.map +1 -0
  7. package/build/static/css/{340.b3f109e8.chunk.css → 340.037fb7c5.chunk.css} +2 -2
  8. package/build/static/css/340.037fb7c5.chunk.css.map +1 -0
  9. package/build/static/js/0.72e00378.chunk.js +2 -0
  10. package/build/static/js/0.72e00378.chunk.js.map +1 -0
  11. package/build/static/js/198.9a9ef024.chunk.js +2 -0
  12. package/build/static/js/198.9a9ef024.chunk.js.map +1 -0
  13. package/build/static/js/237.64d52734.chunk.js +2 -0
  14. package/build/static/js/237.64d52734.chunk.js.map +1 -0
  15. package/build/static/js/286.81610b95.chunk.js +2 -0
  16. package/build/static/js/286.81610b95.chunk.js.map +1 -0
  17. package/build/static/js/340.5f3badc0.chunk.js +2 -0
  18. package/build/static/js/340.5f3badc0.chunk.js.map +1 -0
  19. package/build/static/js/399.af7961a2.chunk.js +2 -0
  20. package/build/static/js/399.af7961a2.chunk.js.map +1 -0
  21. package/build/static/js/568.1813e103.chunk.js +2 -0
  22. package/build/static/js/568.1813e103.chunk.js.map +1 -0
  23. package/build/static/js/627.df23f179.chunk.js +2 -0
  24. package/build/static/js/627.df23f179.chunk.js.map +1 -0
  25. package/build/static/js/989.5fbcdcdb.chunk.js +3 -0
  26. package/build/static/js/989.5fbcdcdb.chunk.js.map +1 -0
  27. package/build/static/js/main.ddea068b.js +2 -0
  28. package/build/static/js/main.ddea068b.js.map +1 -0
  29. package/package.json +1 -1
  30. package/build/static/css/198.7cb1b9b2.chunk.css.map +0 -1
  31. package/build/static/css/340.b3f109e8.chunk.css.map +0 -1
  32. package/build/static/js/198.0f24a165.chunk.js +0 -2
  33. package/build/static/js/198.0f24a165.chunk.js.map +0 -1
  34. package/build/static/js/340.1906f1da.chunk.js +0 -2
  35. package/build/static/js/340.1906f1da.chunk.js.map +0 -1
  36. package/build/static/js/7.a1482d96.chunk.js +0 -3
  37. package/build/static/js/7.a1482d96.chunk.js.map +0 -1
  38. package/build/static/js/8.df68e0a8.chunk.js +0 -2
  39. package/build/static/js/8.df68e0a8.chunk.js.map +0 -1
  40. package/build/static/js/main.c42144d3.js +0 -2
  41. package/build/static/js/main.c42144d3.js.map +0 -1
  42. /package/build/static/js/{7.a1482d96.chunk.js.LICENSE.txt → 989.5fbcdcdb.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 989.5fbcdcdb.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_kne_components_react_pdf_sign=self.webpackChunk_kne_components_react_pdf_sign||[]).push([[379,989],{2153:(t,e,n)=>{"use strict";n.d(e,{A:()=>N});var i=n(53986),r=n(89379),o=n(89261),s=n(94922),a=n(47215),l=n(78805),u=n(41338);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.filter(Boolean);return n.length<=1?n[0]||null:function(t){for(var e=0,i=n;e<i.length;e++){var r=i[e];"function"===typeof r?r(t):r&&(r.current=t)}}}var h=n(64288),d=n(21058),f=n(60591),p=n(51938),g=n(88648);function m(){return(0,s.useContext)(g.A)}const v=(0,s.createContext)(null);function y(){return(0,s.useContext)(v)}var b=n(7762),w=n(63185);function D(){const t=m(),e=y();(0,h.A)(e,"Unable to find Page context.");const n=(0,r.A)((0,r.A)({},t),e),{imageResourcesPath:i,linkService:u,onGetAnnotationsError:c,onGetAnnotationsSuccess:f,onRenderAnnotationLayerError:g,onRenderAnnotationLayerSuccess:v,page:D,pdf:A,renderForms:x,rotate:C,scale:S=1}=n;(0,h.A)(A,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),(0,h.A)(D,"Attempted to load page annotations, but no page was specified."),(0,h.A)(u,"Attempted to load page annotations, but no linkService was specified.");const[F,E]=(0,b.A)(),{value:k,error:M}=F,T=(0,s.useRef)(null);d(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,s.useEffect)(function(){E({type:"RESET"})},[E,D]),(0,s.useEffect)(function(){if(!D)return;const t=(0,l.A)(D.getAnnotations()),e=t;return t.promise.then(t=>{E({type:"RESOLVE",value:t})}).catch(t=>{E({type:"REJECT",error:t})}),()=>{(0,w.xL)(e)}},[E,D]),(0,s.useEffect)(()=>{void 0!==k&&(!1!==k?k&&f&&f(k):M&&(d(!1,M.toString()),c&&c(M)))},[k]);const P=(0,s.useMemo)(()=>D.getViewport({scale:S,rotation:C}),[D,C,S]);return(0,s.useEffect)(function(){if(!A||!D||!u||!k)return;const{current:t}=T;if(!t)return;const e=P.clone({dontFlip:!0}),n={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,annotationStorage:A.annotationStorage,commentManager:null,div:t,l10n:null,linkService:u,page:D,structTreeLayer:null,viewport:e},r={annotations:k,annotationStorage:A.annotationStorage,div:t,imageResourcesPath:i,linkService:u,page:D,renderForms:x,viewport:e};t.innerHTML="";try{new p.dU(n).render(r),v&&v()}catch(o){!function(t){d(!1,"".concat(t)),g&&g(t)}(o)}return()=>{}},[k,i,u,D,A,x,P]),(0,o.jsx)("div",{className:(0,a.A)("react-pdf__Page__annotations","annotationLayer"),ref:T})}const A={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},x=/^H(\d+)$/;function C(t){return"children"in t}function S(t){return!!C(t)&&(1===t.children.length&&0 in t.children&&"id"in t.children[0])}function F(t){const e={};if(C(t)){const{role:n}=t,i=n.match(x);if(i)e.role="heading",e["aria-level"]=Number(i[1]);else if(function(t){return t in A}(n)){const t=A[n];t&&(e.role=t)}}return e}function E(t){const e={};if(C(t)){if(void 0!==t.alt&&(e["aria-label"]=t.alt),void 0!==t.lang&&(e.lang=t.lang),S(t)){const[n]=t.children;if(n){const t=E(n);return(0,r.A)((0,r.A)({},e),t)}}}else"id"in t&&(e["aria-owns"]=t.id);return e}function k(t){return t?(0,r.A)((0,r.A)({},F(t)),E(t)):null}function M(t){let{className:e,node:n}=t;const i=(0,s.useMemo)(()=>k(n),[n]),a=(0,s.useMemo)(()=>C(n)?S(n)?null:n.children.map((t,e)=>(0,o.jsx)(M,{node:t},e)):null,[n]);return(0,o.jsx)("span",(0,r.A)((0,r.A)({className:e},i),{},{children:a}))}function T(){const t=y();(0,h.A)(t,"Unable to find Page context.");const{onGetStructTreeError:e,onGetStructTreeSuccess:n}=t,[i,r]=(0,b.A)(),{value:a,error:u}=i,{customTextRenderer:c,page:f}=t;return(0,s.useEffect)(function(){r({type:"RESET"})},[r,f]),(0,s.useEffect)(function(){if(c)return;if(!f)return;const t=(0,l.A)(f.getStructTree()),e=t;return t.promise.then(t=>{r({type:"RESOLVE",value:t})}).catch(t=>{r({type:"REJECT",error:t})}),()=>(0,w.xL)(e)},[c,f,r]),(0,s.useEffect)(()=>{void 0!==a&&(!1!==a?a&&n&&n(a):u&&(d(!1,u.toString()),e&&e(u)))},[a]),a?(0,o.jsx)(M,{className:"react-pdf__Page__structTree structTree",node:a}):null}const P=p.ng;function _(t){const e=y();(0,h.A)(e,"Unable to find Page context.");const n=(0,r.A)((0,r.A)({},e),t),{_className:i,canvasBackground:a,devicePixelRatio:l=(0,w.mZ)(),onRenderError:u,onRenderSuccess:f,page:p,renderForms:g,renderTextLayer:m,rotate:v,scale:b}=n,{canvasRef:D}=t;(0,h.A)(p,"Attempted to render page canvas, but no page was specified.");const A=(0,s.useRef)(null);function x(t){(0,w.UT)(t)||(d(!1,t.toString()),u&&u(t))}const C=(0,s.useMemo)(()=>p.getViewport({scale:b*l,rotation:v}),[l,p,v,b]),S=(0,s.useMemo)(()=>p.getViewport({scale:b,rotation:v}),[p,v,b]);(0,s.useEffect)(function(){if(!p)return;p.cleanup();const{current:t}=A;if(!t)return;t.width=C.width,t.height=C.height,t.style.width="".concat(Math.floor(S.width),"px"),t.style.height="".concat(Math.floor(S.height),"px"),t.style.visibility="hidden";const e={annotationMode:g?P.ENABLE_FORMS:P.ENABLE,canvas:t,canvasContext:t.getContext("2d",{alpha:!1}),viewport:C};a&&(e.background=a);const n=p.render(e),i=n;return n.promise.then(()=>{t.style.visibility="",p&&f&&f((0,w.vS)(p,b))}).catch(x),()=>(0,w.xL)(i)},[a,p,g,C,S]);const F=(0,s.useCallback)(()=>{const{current:t}=A;t&&(t.width=0,t.height=0)},[]);return(0,s.useEffect)(()=>F,[F]),(0,o.jsx)("canvas",{className:"".concat(i,"__canvas"),dir:"ltr",ref:c(D,A),style:{display:"block",userSelect:"none"},children:m?(0,o.jsx)(T,{}):null})}function R(){const t=y();(0,h.A)(t,"Unable to find Page context.");const{customTextRenderer:e,onGetTextError:n,onGetTextSuccess:i,onRenderTextLayerError:u,onRenderTextLayerSuccess:c,page:f,pageIndex:g,pageNumber:m,rotate:v,scale:D}=t;(0,h.A)(f,"Attempted to load page text content, but no page was specified.");const[A,x]=(0,b.A)(),{value:C,error:S}=A,F=(0,s.useRef)(null);d(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,s.useEffect)(function(){x({type:"RESET"})},[f,x]),(0,s.useEffect)(function(){if(!f)return;const t=(0,l.A)(f.getTextContent()),e=t;return t.promise.then(t=>{x({type:"RESOLVE",value:t})}).catch(t=>{x({type:"REJECT",error:t})}),()=>(0,w.xL)(e)},[f,x]),(0,s.useEffect)(()=>{void 0!==C&&(!1!==C?C&&i&&i(C):S&&(d(!1,S.toString()),n&&n(S)))},[C]);const E=(0,s.useCallback)(()=>{c&&c()},[c]),k=(0,s.useCallback)(t=>{d(!1,t.toString()),u&&u(t)},[u]);const M=(0,s.useMemo)(()=>f.getViewport({scale:D,rotation:v}),[f,v,D]);return(0,s.useLayoutEffect)(function(){if(!f||!C)return;const{current:t}=F;if(!t)return;t.innerHTML="";const n=f.streamTextContent({includeMarkedContent:!0}),i={container:t,textContentSource:n,viewport:M},o=new p.D6(i),s=o;return o.render().then(()=>{const n=document.createElement("div");n.className="endOfContent",t.append(n);const i=t.querySelectorAll('[role="presentation"]');if(e){let t=0;C.items.forEach((n,o)=>{if(!function(t){return"str"in t}(n))return;const s=i[t];if(!s)return;const a=e((0,r.A)({pageIndex:g,pageNumber:m,itemIndex:o},n));s.innerHTML=a,t+=n.str&&n.hasEOL?2:1})}E()}).catch(k),()=>(0,w.xL)(s)},[e,k,E,f,g,m,C,M]),(0,o.jsx)("div",{className:(0,a.A)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){const t=F.current;t&&t.classList.remove("selecting")},onMouseDown:function(){const t=F.current;t&&t.classList.add("selecting")},ref:F})}const B=["_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"],I=1;function N(t){const e=m(),n=(0,r.A)((0,r.A)({},e),t),{_className:p="react-pdf__Page",_enableRegisterUnregisterPage:g=!0,canvasBackground:y,canvasRef:A,children:x,className:C,customRenderer:S,customTextRenderer:F,devicePixelRatio:E,error:k="Failed to load the page.",height:M,inputRef:T,loading:P="Loading page\u2026",noData:N="No page specified.",onGetAnnotationsError:L,onGetAnnotationsSuccess:O,onGetStructTreeError:W,onGetStructTreeSuccess:z,onGetTextError:j,onGetTextSuccess:U,onLoadError:G,onLoadSuccess:V,onRenderAnnotationLayerError:H,onRenderAnnotationLayerSuccess:q,onRenderError:X,onRenderSuccess:K,onRenderTextLayerError:Y,onRenderTextLayerSuccess:Z,pageIndex:Q,pageNumber:J,pdf:$,registerPage:tt,renderAnnotationLayer:et=!0,renderForms:nt=!1,renderMode:it="canvas",renderTextLayer:rt=!0,rotate:ot,scale:st=I,unregisterPage:at,width:lt}=n,ut=(0,i.A)(n,B),[ct,ht]=(0,b.A)(),{value:dt,error:ft}=ct,pt=(0,s.useRef)(null);(0,h.A)($,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");const gt=(0,w.ci)(J)?J-1:null!==Q&&void 0!==Q?Q:null,mt=null!==J&&void 0!==J?J:(0,w.ci)(Q)?Q+1:null,vt=null!==ot&&void 0!==ot?ot:dt?dt.rotate:null,yt=(0,s.useMemo)(()=>{if(!dt)return null;let t=1;const e=null!==st&&void 0!==st?st:I;if(lt||M){const e=dt.getViewport({scale:1,rotation:vt});lt?t=lt/e.width:M&&(t=M/e.height)}return e*t},[M,dt,vt,st,lt]);(0,s.useEffect)(function(){return()=>{(0,w.ci)(gt)&&g&&at&&at(gt)}},[g,$,gt,at]),(0,s.useEffect)(function(){ht({type:"RESET"})},[ht,$,gt]),(0,s.useEffect)(function(){if(!$||!mt)return;const t=(0,l.A)($.getPage(mt)),e=t;return t.promise.then(t=>{ht({type:"RESOLVE",value:t})}).catch(t=>{ht({type:"REJECT",error:t})}),()=>(0,w.xL)(e)},[ht,$,mt]),(0,s.useEffect)(()=>{void 0!==dt&&(!1!==dt?function(){if(V){if(!dt||!yt)return;V((0,w.vS)(dt,yt))}if(g&&tt){if(!(0,w.ci)(gt)||!pt.current)return;tt(gt,pt.current)}}():ft&&(d(!1,ft.toString()),G&&G(ft)))},[dt,yt]);const bt=(0,s.useMemo)(()=>(0,w.ci)(gt)&&mt&&(0,w.ci)(vt)&&(0,w.ci)(yt)?{_className:p,canvasBackground:y,customTextRenderer:F,devicePixelRatio:E,onGetAnnotationsError:L,onGetAnnotationsSuccess:O,onGetStructTreeError:W,onGetStructTreeSuccess:z,onGetTextError:j,onGetTextSuccess:U,onRenderAnnotationLayerError:H,onRenderAnnotationLayerSuccess:q,onRenderError:X,onRenderSuccess:K,onRenderTextLayerError:Y,onRenderTextLayerSuccess:Z,page:dt,pageIndex:gt,pageNumber:mt,renderForms:nt,renderTextLayer:rt,rotate:vt,scale:yt}:null,[p,y,F,E,L,O,W,z,j,U,H,q,X,K,Y,Z,dt,gt,mt,nt,rt,vt,yt]),wt=(0,s.useMemo)(()=>(0,u.Ay)(ut,()=>dt?yt?(0,w.vS)(dt,yt):void 0:dt),[ut,dt,yt]),Dt="".concat(gt,"@").concat(yt,"/").concat(vt);function At(){switch(it){case"custom":return(0,h.A)(S,'renderMode was set to "custom", but no customRenderer was passed.'),(0,o.jsx)(S,{},"".concat(Dt,"_custom"));case"none":return null;default:return(0,o.jsx)(_,{canvasRef:A},"".concat(Dt,"_canvas"))}}return(0,o.jsx)("div",(0,r.A)((0,r.A)({className:(0,a.A)(p,C),"data-page-number":mt,ref:c(T,pt),style:{"--scale-round-x":"1px","--scale-round-y":"1px","--scale-factor":"1","--user-unit":"".concat(yt),"--total-scale-factor":"calc(var(--scale-factor) * var(--user-unit))",backgroundColor:y||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},wt),{},{children:mt?null===$||void 0===dt||null===dt?(0,o.jsx)(f.A,{type:"loading",children:"function"===typeof P?P():P}):!1===$||!1===dt?(0,o.jsx)(f.A,{type:"error",children:"function"===typeof k?k():k}):function(){if(t=bt,!Boolean(null===t||void 0===t?void 0:t.page))throw new Error("page is undefined");var t;const e="function"===typeof x?x(bt):x;return(0,o.jsxs)(v.Provider,{value:bt,children:[At(),rt?(0,o.jsx)(R,{},"".concat(Dt,"_text")):null,et?(0,o.jsx)(D,{},"".concat(Dt,"_annotations")):null,e]})}():(0,o.jsx)(f.A,{type:"no-data",children:"function"===typeof N?N():N})}))}},2316:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},2899:(t,e,n)=>{var i=n(64579),r=n(2316),o=n(90931),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=a.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):s.test(t)?NaN:+t}},3654:(t,e,n)=>{var i=n(49266),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(l){}var r=s.call(t);return i&&(e?t[a]=n:delete t[a]),r}},4167:(t,e,n)=>{"use strict";var i=n(52272);function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,s){if(s!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},5406:(t,e,n)=>{"use strict";var i,r=n(68208),o=n(90140),s=n(30408),a=n(47018),l=n(98129),u=-2,c=258,h=262,d=103,f=113,p=666;function g(t,e){return t.msg=l[e],e}function m(t){return(t<<1)-(t>4?9:0)}function v(t){for(var e=t.length;--e>=0;)t[e]=0}function y(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function b(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,y(t.strm)}function w(t,e){t.pending_buf[t.pending++]=e}function D(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function A(t,e,n,i){var o=t.avail_in;return o>i&&(o=i),0===o?0:(t.avail_in-=o,r.arraySet(e,t.input,t.next_in,o,n),1===t.state.wrap?t.adler=s(t.adler,e,o,n):2===t.state.wrap&&(t.adler=a(t.adler,e,o,n)),t.next_in+=o,t.total_in+=o,o)}function x(t,e){var n,i,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-h?t.strstart-(t.w_size-h):0,u=t.window,d=t.w_mask,f=t.prev,p=t.strstart+c,g=u[o+s-1],m=u[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(u[(n=e)+s]===m&&u[n+s-1]===g&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<p);if(i=c-(p-o),o=p-c,i>s){if(t.match_start=e,s=i,i>=a)break;g=u[o+s-1],m=u[o+s]}}}while((e=f[e&d])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead}function C(t){var e,n,i,o,s,a=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-h)){r.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{i=t.head[--e],t.head[e]=i>=a?i-a:0}while(--n);e=n=a;do{i=t.prev[--e],t.prev[e]=i>=a?i-a:0}while(--n);o+=a}if(0===t.strm.avail_in)break;if(n=A(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=n,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+3-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<h&&0!==t.strm.avail_in)}function S(t,e){for(var n,i;;){if(t.lookahead<h){if(C(t),t.lookahead<h&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-h&&(t.match_length=x(t,n)),t.match_length>=3)if(i=o._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,n=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 i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function F(t,e){for(var n,i,r;;){if(t.lookahead<h){if(C(t),t.lookahead<h&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=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!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-h&&(t.match_length=x(t,n),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){r=t.strstart+t.lookahead-3,i=o._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<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=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++,i&&(b(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=o._tr_tally(t,0,t.window[t.strstart-1]))&&b(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&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function E(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function k(){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 r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),v(this.dyn_ltree),v(this.dyn_dtree),v(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),v(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),v(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 M(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:f,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):g(t,u)}function T(t){var e,n=M(t);return 0===n&&((e=t.state).window_size=2*e.w_size,v(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[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),n}function P(t,e,n,i,o,s){if(!t)return u;var a=1;if(-1===e&&(e=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),o<1||o>9||8!==n||i<8||i>15||e<0||e>9||s<0||s>4)return g(t,u);8===i&&(i=9);var l=new k;return t.state=l,l.strm=t,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+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 r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=n,T(t)}i=[new E(0,0,0,0,function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(C(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,b(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-h&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(b(t,!1),t.strm.avail_out),1)}),new E(4,4,8,4,S),new E(4,5,16,8,S),new E(4,6,32,32,S),new E(4,4,16,16,F),new E(8,16,32,32,F),new E(8,16,128,128,F),new E(8,32,128,256,F),new E(32,128,258,1024,F),new E(32,258,258,4096,F)],e.deflateInit=function(t,e){return P(t,e,8,15,8,0)},e.deflateInit2=P,e.deflateReset=T,e.deflateResetKeep=M,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?u:(t.state.gzhead=e,0):u},e.deflate=function(t,e){var n,r,s,l;if(!t||!t.state||e>5||e<0)return t?g(t,u):u;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===p&&4!==e)return g(t,0===t.avail_out?-5:u);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,w(r,31),w(r,139),w(r,8),r.gzhead?(w(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),w(r,255&r.gzhead.time),w(r,r.gzhead.time>>8&255),w(r,r.gzhead.time>>16&255),w(r,r.gzhead.time>>24&255),w(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),w(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(w(r,255&r.gzhead.extra.length),w(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(w(r,0),w(r,0),w(r,0),w(r,0),w(r,0),w(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),w(r,3),r.status=f);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=f,D(r,h),0!==r.strstart&&(D(r,t.adler>>>16),D(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending!==r.pending_buf_size));)w(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,w(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,w(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=d)}else r.status=d;if(r.status===d&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&y(t),r.pending+2<=r.pending_buf_size&&(w(r,255&t.adler),w(r,t.adler>>8&255),t.adler=0,r.status=f)):r.status=f),0!==r.pending){if(y(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&m(e)<=m(n)&&4!==e)return g(t,-5);if(r.status===p&&0!==t.avail_in)return g(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==p){var A=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(C(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,i,r,s,a=t.window;;){if(t.lookahead<=c){if(C(t),t.lookahead<=c&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=a[r=t.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){s=t.strstart+c;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<s);t.match_length=c-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):i[r.level].func(r,e);if(3!==A&&4!==A||(r.status=p),1===A||3===A)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===A&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(v(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),y(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(w(r,255&t.adler),w(r,t.adler>>8&255),w(r,t.adler>>16&255),w(r,t.adler>>24&255),w(r,255&t.total_in),w(r,t.total_in>>8&255),w(r,t.total_in>>16&255),w(r,t.total_in>>24&255)):(D(r,t.adler>>>16),D(r,65535&t.adler)),y(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==d&&e!==f&&e!==p?g(t,u):(t.state=null,e===f?g(t,-3):0):u},e.deflateSetDictionary=function(t,e){var n,i,o,a,l,c,h,d,f=e.length;if(!t||!t.state)return u;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return u;for(1===a&&(t.adler=s(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===a&&(v(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new r.Buf8(n.w_size),r.arraySet(d,e,f-n.w_size,n.w_size,0),e=d,f=n.w_size),l=t.avail_in,c=t.next_in,h=t.input,t.avail_in=f,t.next_in=0,t.input=e,C(n);n.lookahead>=3;){i=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++}while(--o);n.strstart=i,n.lookahead=2,C(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=h,t.avail_in=l,n.wrap=a,0},e.deflateInfo="pako deflate (from Nodeca project)"},5956:(t,e,n)=>{t.exports=function(t){var e={},i=n(94922),r=n(97039),o=Object.assign;function s(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var w=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function A(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=D&&t[D]||t["@@iterator"])?t:null}function x(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case c:return"Fragment";case u:return"Portal";case d:return"Profiler";case h:return"StrictMode";case m:return"Suspense";case v:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case p:return(t.displayName||"Context")+".Consumer";case f:return(t._context.displayName||"Context")+".Provider";case g:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case y:return null!==(e=t.displayName||null)?e:x(t.type)||"Memo";case b:e=t._payload,t=t._init;try{return x(t(e))}catch(n){}}return null}function C(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return x(e);case 8:return e===h?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e}return null}function S(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(4098&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function F(t){if(S(t)!==t)throw Error(s(188))}function E(t){var e=t.alternate;if(!e){if(null===(e=S(t)))throw Error(s(188));return e!==t?null:t}for(var n=t,i=e;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return F(r),t;if(o===i)return F(r),e;o=o.sibling}throw Error(s(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,i=o;break}if(l===i){a=!0,i=r,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,i=r;break}if(l===i){a=!0,i=o,n=r;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?t:e}function k(t){return null!==(t=E(t))?M(t):null}function M(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=M(t);if(null!==e)return e;t=t.sibling}return null}function T(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){if(4!==t.tag){var e=T(t);if(null!==e)return e}t=t.sibling}return null}var P,_=Array.isArray,R=t.getPublicInstance,B=t.getRootHostContext,I=t.getChildHostContext,N=t.prepareForCommit,L=t.resetAfterCommit,O=t.createInstance,W=t.appendInitialChild,z=t.finalizeInitialChildren,j=t.prepareUpdate,U=t.shouldSetTextContent,G=t.createTextInstance,V=t.scheduleTimeout,H=t.cancelTimeout,q=t.noTimeout,X=t.isPrimaryRenderer,K=t.supportsMutation,Y=t.supportsPersistence,Z=t.supportsHydration,Q=t.getInstanceFromNode,J=t.preparePortalMount,$=t.getCurrentEventPriority,tt=t.detachDeletedInstance,et=t.supportsMicrotasks,nt=t.scheduleMicrotask,it=t.supportsTestSelectors,rt=t.findFiberRoot,ot=t.getBoundingRect,st=t.getTextContent,at=t.isHiddenSubtree,lt=t.matchAccessibilityRole,ut=t.setFocusIfFocusable,ct=t.setupIntersectionObserver,ht=t.appendChild,dt=t.appendChildToContainer,ft=t.commitTextUpdate,pt=t.commitMount,gt=t.commitUpdate,mt=t.insertBefore,vt=t.insertInContainerBefore,yt=t.removeChild,bt=t.removeChildFromContainer,wt=t.resetTextContent,Dt=t.hideInstance,At=t.hideTextInstance,xt=t.unhideInstance,Ct=t.unhideTextInstance,St=t.clearContainer,Ft=t.cloneInstance,Et=t.createContainerChildSet,kt=t.appendChildToContainerChildSet,Mt=t.finalizeContainerChildren,Tt=t.replaceContainerChildren,Pt=t.cloneHiddenInstance,_t=t.cloneHiddenTextInstance,Rt=t.canHydrateInstance,Bt=t.canHydrateTextInstance,It=t.canHydrateSuspenseInstance,Nt=t.isSuspenseInstancePending,Lt=t.isSuspenseInstanceFallback,Ot=t.getSuspenseInstanceFallbackErrorDetails,Wt=t.registerSuspenseInstanceRetry,zt=t.getNextHydratableSibling,jt=t.getFirstHydratableChild,Ut=t.getFirstHydratableChildWithinContainer,Gt=t.getFirstHydratableChildWithinSuspenseInstance,Vt=t.hydrateInstance,Ht=t.hydrateTextInstance,qt=t.hydrateSuspenseInstance,Xt=t.getNextHydratableInstanceAfterSuspenseInstance,Kt=t.commitHydratedContainer,Yt=t.commitHydratedSuspenseInstance,Zt=t.clearSuspenseBoundary,Qt=t.clearSuspenseBoundaryFromContainer,Jt=t.shouldDeleteUnhydratedTailInstances,$t=t.didNotMatchHydratedContainerTextInstance,te=t.didNotMatchHydratedTextInstance;function ee(t){if(void 0===P)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);P=e&&e[1]||""}return"\n"+P+t}var ne=!1;function ie(t,e){if(!t||ne)return"";ne=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var i=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){i=u}t.call(e.prototype)}else{try{throw Error()}catch(u){i=u}t()}}catch(u){if(u&&i&&"string"===typeof u.stack){for(var r=u.stack.split("\n"),o=i.stack.split("\n"),s=r.length-1,a=o.length-1;1<=s&&0<=a&&r[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==o[a]){if(1!==s||1!==a)do{if(s--,0>--a||r[s]!==o[a]){var l="\n"+r[s].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}}while(1<=s&&0<=a);break}}}finally{ne=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?ee(t):""}var re=Object.prototype.hasOwnProperty,oe=[],se=-1;function ae(t){return{current:t}}function le(t){0>se||(t.current=oe[se],oe[se]=null,se--)}function ue(t,e){se++,oe[se]=t.current,t.current=e}var ce={},he=ae(ce),de=ae(!1),fe=ce;function pe(t,e){var n=t.type.contextTypes;if(!n)return ce;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=e[r];return i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function ge(t){return null!==(t=t.childContextTypes)&&void 0!==t}function me(){le(de),le(he)}function ve(t,e,n){if(he.current!==ce)throw Error(s(168));ue(he,e),ue(de,n)}function ye(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,"function"!==typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in e))throw Error(s(108,C(t)||"Unknown",r));return o({},n,i)}function be(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ce,fe=he.current,ue(he,t),ue(de,de.current),!0}function we(t,e,n){var i=t.stateNode;if(!i)throw Error(s(169));n?(t=ye(t,e,fe),i.__reactInternalMemoizedMergedChildContext=t,le(de),le(he),ue(he,t)):le(de),ue(de,n)}var De=Math.clz32?Math.clz32:function(t){return 0===(t>>>=0)?32:31-(Ae(t)/xe|0)|0},Ae=Math.log,xe=Math.LN2;var Ce=64,Se=4194304;function Fe(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ee(t,e){var n=t.pendingLanes;if(0===n)return 0;var i=0,r=t.suspendedLanes,o=t.pingedLanes,s=268435455&n;if(0!==s){var a=s&~r;0!==a?i=Fe(a):0!==(o&=s)&&(i=Fe(o))}else 0!==(s=n&~r)?i=Fe(s):0!==o&&(i=Fe(o));if(0===i)return 0;if(0!==e&&e!==i&&0===(e&r)&&((r=i&-i)>=(o=e&-e)||16===r&&0!==(4194240&o)))return e;if(0!==(4&i)&&(i|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=i;0<e;)r=1<<(n=31-De(e)),i|=t[n],e&=~r;return i}function ke(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;default:return-1}}function Me(t){return 0!==(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function Te(){var t=Ce;return 0===(4194240&(Ce<<=1))&&(Ce=64),t}function Pe(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function _e(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-De(e)]=n}function Re(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-De(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}var Be=0;function Ie(t){return 1<(t&=-t)?4<t?0!==(268435455&t)?16:536870912:4:1}var Ne=r.unstable_scheduleCallback,Le=r.unstable_cancelCallback,Oe=r.unstable_shouldYield,We=r.unstable_requestPaint,ze=r.unstable_now,je=r.unstable_ImmediatePriority,Ue=r.unstable_UserBlockingPriority,Ge=r.unstable_NormalPriority,Ve=r.unstable_IdlePriority,He=null,qe=null;var Xe="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},Ke=null,Ye=!1,Ze=!1;function Qe(t){null===Ke?Ke=[t]:Ke.push(t)}function Je(){if(!Ze&&null!==Ke){Ze=!0;var t=0,e=Be;try{var n=Ke;for(Be=1;t<n.length;t++){var i=n[t];do{i=i(!0)}while(null!==i)}Ke=null,Ye=!1}catch(r){throw null!==Ke&&(Ke=Ke.slice(t+1)),Ne(je,Je),r}finally{Be=e,Ze=!1}}return null}var $e=[],tn=0,en=null,nn=0,rn=[],on=0,sn=null,an=1,ln="";function un(t,e){$e[tn++]=nn,$e[tn++]=en,en=t,nn=e}function cn(t,e,n){rn[on++]=an,rn[on++]=ln,rn[on++]=sn,sn=t;var i=an;t=ln;var r=32-De(i)-1;i&=~(1<<r),n+=1;var o=32-De(e)+r;if(30<o){var s=r-r%5;o=(i&(1<<s)-1).toString(32),i>>=s,r-=s,an=1<<32-De(e)+r|n<<r|i,ln=o+t}else an=1<<o|n<<r|i,ln=t}function hn(t){null!==t.return&&(un(t,1),cn(t,1,0))}function dn(t){for(;t===en;)en=$e[--tn],$e[tn]=null,nn=$e[--tn],$e[tn]=null;for(;t===sn;)sn=rn[--on],rn[on]=null,ln=rn[--on],rn[on]=null,an=rn[--on],rn[on]=null}var fn=null,pn=null,gn=!1,mn=!1,vn=null;function yn(t,e){var n=sa(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,null===(e=t.deletions)?(t.deletions=[n],t.flags|=16):e.push(n)}function bn(t,e){switch(t.tag){case 5:return null!==(e=Rt(e,t.type,t.pendingProps))&&(t.stateNode=e,fn=t,pn=jt(e),!0);case 6:return null!==(e=Bt(e,t.pendingProps))&&(t.stateNode=e,fn=t,pn=null,!0);case 13:if(null!==(e=It(e))){var n=null!==sn?{id:an,overflow:ln}:null;return t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},(n=sa(18,null,null,0)).stateNode=e,n.return=t,t.child=n,fn=t,pn=null,!0}return!1;default:return!1}}function wn(t){return 0!==(1&t.mode)&&0===(128&t.flags)}function Dn(t){if(gn){var e=pn;if(e){var n=e;if(!bn(t,e)){if(wn(t))throw Error(s(418));e=zt(n);var i=fn;e&&bn(t,e)?yn(i,n):(t.flags=-4097&t.flags|2,gn=!1,fn=t)}}else{if(wn(t))throw Error(s(418));t.flags=-4097&t.flags|2,gn=!1,fn=t}}}function An(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;fn=t}function xn(t){if(!Z||t!==fn)return!1;if(!gn)return An(t),gn=!0,!1;if(3!==t.tag&&(5!==t.tag||Jt(t.type)&&!U(t.type,t.memoizedProps))){var e=pn;if(e){if(wn(t))throw Cn(),Error(s(418));for(;e;)yn(t,e),e=zt(e)}}if(An(t),13===t.tag){if(!Z)throw Error(s(316));if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(s(317));pn=Xt(t)}else pn=fn?zt(t.stateNode):null;return!0}function Cn(){for(var t=pn;t;)t=zt(t)}function Sn(){Z&&(pn=fn=null,mn=gn=!1)}function Fn(t){null===vn?vn=[t]:vn.push(t)}var En=a.ReactCurrentBatchConfig;function kn(t,e){if(Xe(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!re.call(e,r)||!Xe(t[r],e[r]))return!1}return!0}function Mn(t){switch(t.tag){case 5:return ee(t.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return t=ie(t.type,!1);case 11:return t=ie(t.type.render,!1);case 1:return t=ie(t.type,!0);default:return""}}function Tn(t,e,n){if(null!==(t=n.ref)&&"function"!==typeof t&&"object"!==typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var i=n.stateNode}if(!i)throw Error(s(147,t));var r=i,o=""+t;return null!==e&&null!==e.ref&&"function"===typeof e.ref&&e.ref._stringRef===o?e.ref:(e=function(t){var e=r.refs;null===t?delete e[o]:e[o]=t},e._stringRef=o,e)}if("string"!==typeof t)throw Error(s(284));if(!n._owner)throw Error(s(290,t))}return t}function Pn(t,e){throw t=Object.prototype.toString.call(e),Error(s(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function _n(t){return(0,t._init)(t._payload)}function Rn(t){function e(e,n){if(t){var i=e.deletions;null===i?(e.deletions=[n],e.flags|=16):i.push(n)}}function n(n,i){if(!t)return null;for(;null!==i;)e(n,i),i=i.sibling;return null}function i(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function r(t,e){return(t=la(t,e)).index=0,t.sibling=null,t}function o(e,n,i){return e.index=i,t?null!==(i=e.alternate)?(i=i.index)<n?(e.flags|=2,n):i:(e.flags|=2,n):(e.flags|=1048576,n)}function a(e){return t&&null===e.alternate&&(e.flags|=2),e}function h(t,e,n,i){return null===e||6!==e.tag?((e=da(n,t.mode,i)).return=t,e):((e=r(e,n)).return=t,e)}function d(t,e,n,i){var o=n.type;return o===c?p(t,e,n.props.children,i,n.key):null!==e&&(e.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===b&&_n(o)===e.type)?((i=r(e,n.props)).ref=Tn(t,e,n),i.return=t,i):((i=ua(n.type,n.key,n.props,null,t.mode,i)).ref=Tn(t,e,n),i.return=t,i)}function f(t,e,n,i){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=fa(n,t.mode,i)).return=t,e):((e=r(e,n.children||[])).return=t,e)}function p(t,e,n,i,o){return null===e||7!==e.tag?((e=ca(n,t.mode,i,o)).return=t,e):((e=r(e,n)).return=t,e)}function g(t,e,n){if("string"===typeof e&&""!==e||"number"===typeof e)return(e=da(""+e,t.mode,n)).return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case l:return(n=ua(e.type,e.key,e.props,null,t.mode,n)).ref=Tn(t,null,e),n.return=t,n;case u:return(e=fa(e,t.mode,n)).return=t,e;case b:return g(t,(0,e._init)(e._payload),n)}if(_(e)||A(e))return(e=ca(e,t.mode,n,null)).return=t,e;Pn(t,e)}return null}function m(t,e,n,i){var r=null!==e?e.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:h(t,e,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case l:return n.key===r?d(t,e,n,i):null;case u:return n.key===r?f(t,e,n,i):null;case b:return m(t,e,(r=n._init)(n._payload),i)}if(_(n)||A(n))return null!==r?null:p(t,e,n,i,null);Pn(t,n)}return null}function v(t,e,n,i,r){if("string"===typeof i&&""!==i||"number"===typeof i)return h(e,t=t.get(n)||null,""+i,r);if("object"===typeof i&&null!==i){switch(i.$$typeof){case l:return d(e,t=t.get(null===i.key?n:i.key)||null,i,r);case u:return f(e,t=t.get(null===i.key?n:i.key)||null,i,r);case b:return v(t,e,n,(0,i._init)(i._payload),r)}if(_(i)||A(i))return p(e,t=t.get(n)||null,i,r,null);Pn(e,i)}return null}function y(r,s,a,l){for(var u=null,c=null,h=s,d=s=0,f=null;null!==h&&d<a.length;d++){h.index>d?(f=h,h=null):f=h.sibling;var p=m(r,h,a[d],l);if(null===p){null===h&&(h=f);break}t&&h&&null===p.alternate&&e(r,h),s=o(p,s,d),null===c?u=p:c.sibling=p,c=p,h=f}if(d===a.length)return n(r,h),gn&&un(r,d),u;if(null===h){for(;d<a.length;d++)null!==(h=g(r,a[d],l))&&(s=o(h,s,d),null===c?u=h:c.sibling=h,c=h);return gn&&un(r,d),u}for(h=i(r,h);d<a.length;d++)null!==(f=v(h,r,d,a[d],l))&&(t&&null!==f.alternate&&h.delete(null===f.key?d:f.key),s=o(f,s,d),null===c?u=f:c.sibling=f,c=f);return t&&h.forEach(function(t){return e(r,t)}),gn&&un(r,d),u}function w(r,a,l,u){var c=A(l);if("function"!==typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var h=c=null,d=a,f=a=0,p=null,y=l.next();null!==d&&!y.done;f++,y=l.next()){d.index>f?(p=d,d=null):p=d.sibling;var b=m(r,d,y.value,u);if(null===b){null===d&&(d=p);break}t&&d&&null===b.alternate&&e(r,d),a=o(b,a,f),null===h?c=b:h.sibling=b,h=b,d=p}if(y.done)return n(r,d),gn&&un(r,f),c;if(null===d){for(;!y.done;f++,y=l.next())null!==(y=g(r,y.value,u))&&(a=o(y,a,f),null===h?c=y:h.sibling=y,h=y);return gn&&un(r,f),c}for(d=i(r,d);!y.done;f++,y=l.next())null!==(y=v(d,r,f,y.value,u))&&(t&&null!==y.alternate&&d.delete(null===y.key?f:y.key),a=o(y,a,f),null===h?c=y:h.sibling=y,h=y);return t&&d.forEach(function(t){return e(r,t)}),gn&&un(r,f),c}return function t(i,o,s,h){if("object"===typeof s&&null!==s&&s.type===c&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case l:t:{for(var d=s.key,f=o;null!==f;){if(f.key===d){if((d=s.type)===c){if(7===f.tag){n(i,f.sibling),(o=r(f,s.props.children)).return=i,i=o;break t}}else if(f.elementType===d||"object"===typeof d&&null!==d&&d.$$typeof===b&&_n(d)===f.type){n(i,f.sibling),(o=r(f,s.props)).ref=Tn(i,f,s),o.return=i,i=o;break t}n(i,f);break}e(i,f),f=f.sibling}s.type===c?((o=ca(s.props.children,i.mode,h,s.key)).return=i,i=o):((h=ua(s.type,s.key,s.props,null,i.mode,h)).ref=Tn(i,o,s),h.return=i,i=h)}return a(i);case u:t:{for(f=s.key;null!==o;){if(o.key===f){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(i,o.sibling),(o=r(o,s.children||[])).return=i,i=o;break t}n(i,o);break}e(i,o),o=o.sibling}(o=fa(s,i.mode,h)).return=i,i=o}return a(i);case b:return t(i,o,(f=s._init)(s._payload),h)}if(_(s))return y(i,o,s,h);if(A(s))return w(i,o,s,h);Pn(i,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==o&&6===o.tag?(n(i,o.sibling),(o=r(o,s)).return=i,i=o):(n(i,o),(o=da(s,i.mode,h)).return=i,i=o),a(i)):n(i,o)}}var Bn=Rn(!0),In=Rn(!1),Nn=ae(null),Ln=null,On=null,Wn=null;function zn(){Wn=On=Ln=null}function jn(t,e,n){X?(ue(Nn,e._currentValue),e._currentValue=n):(ue(Nn,e._currentValue2),e._currentValue2=n)}function Un(t){var e=Nn.current;le(Nn),X?t._currentValue=e:t._currentValue2=e}function Gn(t,e,n){for(;null!==t;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==i&&(i.childLanes|=e)):null!==i&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Vn(t,e){Ln=t,Wn=On=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!==(t.lanes&e)&&(Rr=!0),t.firstContext=null)}function Hn(t){var e=X?t._currentValue:t._currentValue2;if(Wn!==t)if(t={context:t,memoizedValue:e,next:null},null===On){if(null===Ln)throw Error(s(308));On=t,Ln.dependencies={lanes:0,firstContext:t}}else On=On.next=t;return e}var qn=null;function Xn(t){null===qn?qn=[t]:qn.push(t)}function Kn(t,e,n,i){var r=e.interleaved;return null===r?(n.next=n,Xn(e)):(n.next=r.next,r.next=n),e.interleaved=n,Yn(t,i)}function Yn(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}var Zn=!1;function Qn(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jn(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function $n(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function ti(t,e,n){var i=t.updateQueue;if(null===i)return null;if(i=i.shared,0!==(2&ns)){var r=i.pending;return null===r?e.next=e:(e.next=r.next,r.next=e),i.pending=e,Yn(t,n)}return null===(r=i.interleaved)?(e.next=e,Xn(i)):(e.next=r.next,r.next=e),i.interleaved=e,Yn(t,n)}function ei(t,e,n){if(null!==(e=e.updateQueue)&&(e=e.shared,0!==(4194240&n))){var i=e.lanes;n|=i&=t.pendingLanes,e.lanes=n,Re(t,n)}}function ni(t,e){var n=t.updateQueue,i=t.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?r=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?r=o=e:o=o.next=e}else r=o=e;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function ii(t,e,n,i){var r=t.updateQueue;Zn=!1;var s=r.firstBaseUpdate,a=r.lastBaseUpdate,l=r.shared.pending;if(null!==l){r.shared.pending=null;var u=l,c=u.next;u.next=null,null===a?s=c:a.next=c,a=u;var h=t.alternate;null!==h&&((l=(h=h.updateQueue).lastBaseUpdate)!==a&&(null===l?h.firstBaseUpdate=c:l.next=c,h.lastBaseUpdate=u))}if(null!==s){var d=r.baseState;for(a=0,h=c=u=null,l=s;;){var f=l.lane,p=l.eventTime;if((i&f)===f){null!==h&&(h=h.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});t:{var g=t,m=l;switch(f=e,p=n,m.tag){case 1:if("function"===typeof(g=m.payload)){d=g.call(p,d,f);break t}d=g;break t;case 3:g.flags=-65537&g.flags|128;case 0:if(null===(f="function"===typeof(g=m.payload)?g.call(p,d,f):g)||void 0===f)break t;d=o({},d,f);break t;case 2:Zn=!0}}null!==l.callback&&0!==l.lane&&(t.flags|=64,null===(f=r.effects)?r.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===h?(c=h=p,u=d):h=h.next=p,a|=f;if(null===(l=l.next)){if(null===(l=r.shared.pending))break;l=(f=l).next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}if(null===h&&(u=d),r.baseState=u,r.firstBaseUpdate=c,r.lastBaseUpdate=h,null!==(e=r.shared.interleaved)){r=e;do{a|=r.lane,r=r.next}while(r!==e)}else null===s&&(r.shared.lanes=0);cs|=a,t.lanes=a,t.memoizedState=d}}function ri(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var i=t[e],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!==typeof r)throw Error(s(191,r));r.call(i)}}}var oi={},si=ae(oi),ai=ae(oi),li=ae(oi);function ui(t){if(t===oi)throw Error(s(174));return t}function ci(t,e){ue(li,e),ue(ai,t),ue(si,oi),t=B(e),le(si),ue(si,t)}function hi(){le(si),le(ai),le(li)}function di(t){var e=ui(li.current),n=ui(si.current);n!==(e=I(n,t.type,e))&&(ue(ai,t),ue(si,e))}function fi(t){ai.current===t&&(le(si),le(ai))}var pi=ae(0);function gi(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Nt(n)||Lt(n)))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var mi=[];function vi(){for(var t=0;t<mi.length;t++){var e=mi[t];X?e._workInProgressVersionPrimary=null:e._workInProgressVersionSecondary=null}mi.length=0}var yi=a.ReactCurrentDispatcher,bi=a.ReactCurrentBatchConfig,wi=0,Di=null,Ai=null,xi=null,Ci=!1,Si=!1,Fi=0,Ei=0;function ki(){throw Error(s(321))}function Mi(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Xe(t[n],e[n]))return!1;return!0}function Ti(t,e,n,i,r,o){if(wi=o,Di=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,yi.current=null===t||null===t.memoizedState?fr:pr,t=n(i,r),Si){o=0;do{if(Si=!1,Fi=0,25<=o)throw Error(s(301));o+=1,xi=Ai=null,e.updateQueue=null,yi.current=gr,t=n(i,r)}while(Si)}if(yi.current=dr,e=null!==Ai&&null!==Ai.next,wi=0,xi=Ai=Di=null,Ci=!1,e)throw Error(s(300));return t}function Pi(){var t=0!==Fi;return Fi=0,t}function _i(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===xi?Di.memoizedState=xi=t:xi=xi.next=t,xi}function Ri(){if(null===Ai){var t=Di.alternate;t=null!==t?t.memoizedState:null}else t=Ai.next;var e=null===xi?Di.memoizedState:xi.next;if(null!==e)xi=e,Ai=t;else{if(null===t)throw Error(s(310));t={memoizedState:(Ai=t).memoizedState,baseState:Ai.baseState,baseQueue:Ai.baseQueue,queue:Ai.queue,next:null},null===xi?Di.memoizedState=xi=t:xi=xi.next=t}return xi}function Bi(t,e){return"function"===typeof e?e(t):e}function Ii(t){var e=Ri(),n=e.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=t;var i=Ai,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var a=r.next;r.next=o.next,o.next=a}i.baseQueue=r=o,n.pending=null}if(null!==r){o=r.next,i=i.baseState;var l=a=null,u=null,c=o;do{var h=c.lane;if((wi&h)===h)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:t(i,c.action);else{var d={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=i):u=u.next=d,Di.lanes|=h,cs|=h}c=c.next}while(null!==c&&c!==o);null===u?a=i:u.next=l,Xe(i,e.memoizedState)||(Rr=!0),e.memoizedState=i,e.baseState=a,e.baseQueue=u,n.lastRenderedState=i}if(null!==(t=n.interleaved)){r=t;do{o=r.lane,Di.lanes|=o,cs|=o,r=r.next}while(r!==t)}else null===r&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Ni(t){var e=Ri(),n=e.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,o=e.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{o=t(o,a.action),a=a.next}while(a!==r);Xe(o,e.memoizedState)||(Rr=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function Li(){}function Oi(t,e){var n=Di,i=Ri(),r=e(),o=!Xe(i.memoizedState,r);if(o&&(i.memoizedState=r,Rr=!0),i=i.queue,Zi(ji.bind(null,n,i,t),[t]),i.getSnapshot!==e||o||null!==xi&&1&xi.memoizedState.tag){if(n.flags|=2048,Hi(9,zi.bind(null,n,i,r,e),void 0,null),null===is)throw Error(s(349));0!==(30&wi)||Wi(n,e,r)}return r}function Wi(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},null===(e=Di.updateQueue)?(e={lastEffect:null,stores:null},Di.updateQueue=e,e.stores=[t]):null===(n=e.stores)?e.stores=[t]:n.push(t)}function zi(t,e,n,i){e.value=n,e.getSnapshot=i,Ui(e)&&Gi(t)}function ji(t,e,n){return n(function(){Ui(e)&&Gi(t)})}function Ui(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Xe(t,n)}catch(i){return!0}}function Gi(t){var e=Yn(t,1);null!==e&&_s(e,t,1,-1)}function Vi(t){var e=_i();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:t},e.queue=t,t=t.dispatch=lr.bind(null,Di,t),[e.memoizedState,t]}function Hi(t,e,n,i){return t={tag:t,create:e,destroy:n,deps:i,next:null},null===(e=Di.updateQueue)?(e={lastEffect:null,stores:null},Di.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function qi(){return Ri().memoizedState}function Xi(t,e,n,i){var r=_i();Di.flags|=t,r.memoizedState=Hi(1|e,n,void 0,void 0===i?null:i)}function Ki(t,e,n,i){var r=Ri();i=void 0===i?null:i;var o=void 0;if(null!==Ai){var s=Ai.memoizedState;if(o=s.destroy,null!==i&&Mi(i,s.deps))return void(r.memoizedState=Hi(e,n,o,i))}Di.flags|=t,r.memoizedState=Hi(1|e,n,o,i)}function Yi(t,e){return Xi(8390656,8,t,e)}function Zi(t,e){return Ki(2048,8,t,e)}function Qi(t,e){return Ki(4,2,t,e)}function Ji(t,e){return Ki(4,4,t,e)}function $i(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function tr(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,Ki(4,4,$i.bind(null,e,t),n)}function er(){}function nr(t,e){var n=Ri();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&Mi(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function ir(t,e){var n=Ri();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&Mi(e,i[1])?i[0]:(t=t(),n.memoizedState=[t,e],t)}function rr(t,e,n){return 0===(21&wi)?(t.baseState&&(t.baseState=!1,Rr=!0),t.memoizedState=n):(Xe(n,e)||(n=Te(),Di.lanes|=n,cs|=n,t.baseState=!0),e)}function or(t,e){var n=Be;Be=0!==n&&4>n?n:4,t(!0);var i=bi.transition;bi.transition={};try{t(!1),e()}finally{Be=n,bi.transition=i}}function sr(){return Ri().memoizedState}function ar(t,e,n){var i=Ps(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},ur(t))cr(e,n);else if(null!==(n=Kn(t,e,n,i))){_s(n,t,i,Ts()),hr(n,e,i)}}function lr(t,e,n){var i=Ps(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(ur(t))cr(e,r);else{var o=t.alternate;if(0===t.lanes&&(null===o||0===o.lanes)&&null!==(o=e.lastRenderedReducer))try{var s=e.lastRenderedState,a=o(s,n);if(r.hasEagerState=!0,r.eagerState=a,Xe(a,s)){var l=e.interleaved;return null===l?(r.next=r,Xn(e)):(r.next=l.next,l.next=r),void(e.interleaved=r)}}catch(u){}null!==(n=Kn(t,e,r,i))&&(_s(n,t,i,r=Ts()),hr(n,e,i))}}function ur(t){var e=t.alternate;return t===Di||null!==e&&e===Di}function cr(t,e){Si=Ci=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function hr(t,e,n){if(0!==(4194240&n)){var i=e.lanes;n|=i&=t.pendingLanes,e.lanes=n,Re(t,n)}}var dr={readContext:Hn,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},fr={readContext:Hn,useCallback:function(t,e){return _i().memoizedState=[t,void 0===e?null:e],t},useContext:Hn,useEffect:Yi,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,Xi(4194308,4,$i.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Xi(4194308,4,t,e)},useInsertionEffect:function(t,e){return Xi(4,2,t,e)},useMemo:function(t,e){var n=_i();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=_i();return e=void 0!==n?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=ar.bind(null,Di,t),[i.memoizedState,t]},useRef:function(t){return t={current:t},_i().memoizedState=t},useState:Vi,useDebugValue:er,useDeferredValue:function(t){return _i().memoizedState=t},useTransition:function(){var t=Vi(!1),e=t[0];return t=or.bind(null,t[1]),_i().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=Di,r=_i();if(gn){if(void 0===n)throw Error(s(407));n=n()}else{if(n=e(),null===is)throw Error(s(349));0!==(30&wi)||Wi(i,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,Yi(ji.bind(null,i,o,t),[t]),i.flags|=2048,Hi(9,zi.bind(null,i,o,n,e),void 0,null),n},useId:function(){var t=_i(),e=is.identifierPrefix;if(gn){var n=ln;e=":"+e+"R"+(n=(an&~(1<<32-De(an)-1)).toString(32)+n),0<(n=Fi++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=Ei++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},pr={readContext:Hn,useCallback:nr,useContext:Hn,useEffect:Zi,useImperativeHandle:tr,useInsertionEffect:Qi,useLayoutEffect:Ji,useMemo:ir,useReducer:Ii,useRef:qi,useState:function(){return Ii(Bi)},useDebugValue:er,useDeferredValue:function(t){return rr(Ri(),Ai.memoizedState,t)},useTransition:function(){return[Ii(Bi)[0],Ri().memoizedState]},useMutableSource:Li,useSyncExternalStore:Oi,useId:sr,unstable_isNewReconciler:!1},gr={readContext:Hn,useCallback:nr,useContext:Hn,useEffect:Zi,useImperativeHandle:tr,useInsertionEffect:Qi,useLayoutEffect:Ji,useMemo:ir,useReducer:Ni,useRef:qi,useState:function(){return Ni(Bi)},useDebugValue:er,useDeferredValue:function(t){var e=Ri();return null===Ai?e.memoizedState=t:rr(e,Ai.memoizedState,t)},useTransition:function(){return[Ni(Bi)[0],Ri().memoizedState]},useMutableSource:Li,useSyncExternalStore:Oi,useId:sr,unstable_isNewReconciler:!1};function mr(t,e){if(t&&t.defaultProps){for(var n in e=o({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}function vr(t,e,n,i){n=null===(n=n(i,e=t.memoizedState))||void 0===n?e:o({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var yr={isMounted:function(t){return!!(t=t._reactInternals)&&S(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Ts(),r=Ps(t),o=$n(i,r);o.payload=e,void 0!==n&&null!==n&&(o.callback=n),null!==(e=ti(t,o,r))&&(_s(e,t,r,i),ei(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Ts(),r=Ps(t),o=$n(i,r);o.tag=1,o.payload=e,void 0!==n&&null!==n&&(o.callback=n),null!==(e=ti(t,o,r))&&(_s(e,t,r,i),ei(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ts(),i=Ps(t),r=$n(n,i);r.tag=2,void 0!==e&&null!==e&&(r.callback=e),null!==(e=ti(t,r,i))&&(_s(e,t,i,n),ei(e,t,i))}};function br(t,e,n,i,r,o,s){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(i,o,s):!e.prototype||!e.prototype.isPureReactComponent||(!kn(n,i)||!kn(r,o))}function wr(t,e,n){var i=!1,r=ce,o=e.contextType;return"object"===typeof o&&null!==o?o=Hn(o):(r=ge(e)?fe:he.current,o=(i=null!==(i=e.contextTypes)&&void 0!==i)?pe(t,r):ce),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=yr,t.stateNode=e,e._reactInternals=t,i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=o),e}function Dr(t,e,n,i){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,i),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&yr.enqueueReplaceState(e,e.state,null)}function Ar(t,e,n,i){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs={},Qn(t);var o=e.contextType;"object"===typeof o&&null!==o?r.context=Hn(o):(o=ge(e)?fe:he.current,r.context=pe(t,o)),r.state=t.memoizedState,"function"===typeof(o=e.getDerivedStateFromProps)&&(vr(t,e,o,n),r.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(e=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),e!==r.state&&yr.enqueueReplaceState(r,r.state,null),ii(t,n,r,i),r.state=t.memoizedState),"function"===typeof r.componentDidMount&&(t.flags|=4194308)}function xr(t,e){try{var n="",i=e;do{n+=Mn(i),i=i.return}while(i);var r=n}catch(o){r="\nError generating stack: "+o.message+"\n"+o.stack}return{value:t,source:e,stack:r,digest:null}}function Cr(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function Sr(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Fr="function"===typeof WeakMap?WeakMap:Map;function Er(t,e,n){(n=$n(-1,n)).tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){ws||(ws=!0,Ds=i),Sr(0,e)},n}function kr(t,e,n){(n=$n(-1,n)).tag=3;var i=t.type.getDerivedStateFromError;if("function"===typeof i){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){Sr(0,e)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){Sr(0,e),"function"!==typeof i&&(null===As?As=new Set([this]):As.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function Mr(t,e,n){var i=t.pingCache;if(null===i){i=t.pingCache=new Fr;var r=new Set;i.set(e,r)}else void 0===(r=i.get(e))&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=ta.bind(null,t,e,n),e.then(t,t))}function Tr(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function Pr(t,e,n,i,r){return 0===(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=$n(-1,1)).tag=2,ti(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=r,t)}var _r=a.ReactCurrentOwner,Rr=!1;function Br(t,e,n,i){e.child=null===t?In(e,null,n,i):Bn(e,t.child,n,i)}function Ir(t,e,n,i,r){n=n.render;var o=e.ref;return Vn(e,r),i=Ti(t,e,n,i,o,r),n=Pi(),null===t||Rr?(gn&&n&&hn(e),e.flags|=1,Br(t,e,i,r),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,ro(t,e,r))}function Nr(t,e,n,i,r){if(null===t){var o=n.type;return"function"!==typeof o||aa(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=ua(n.type,null,i,e,e.mode,r)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=o,Lr(t,e,o,i,r))}if(o=t.child,0===(t.lanes&r)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:kn)(s,i)&&t.ref===e.ref)return ro(t,e,r)}return e.flags|=1,(t=la(o,i)).ref=e.ref,t.return=e,e.child=t}function Lr(t,e,n,i,r){if(null!==t){var o=t.memoizedProps;if(kn(o,i)&&t.ref===e.ref){if(Rr=!1,e.pendingProps=i=o,0===(t.lanes&r))return e.lanes=t.lanes,ro(t,e,r);0!==(131072&t.flags)&&(Rr=!0)}}return zr(t,e,n,i,r)}function Or(t,e,n){var i=e.pendingProps,r=i.children,o=null!==t?t.memoizedState:null;if("hidden"===i.mode)if(0===(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(as,ss),ss|=n;else{if(0===(1073741824&n))return t=null!==o?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ue(as,ss),ss|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==o?o.baseLanes:n,ue(as,ss),ss|=i}else null!==o?(i=o.baseLanes|n,e.memoizedState=null):i=n,ue(as,ss),ss|=i;return Br(t,e,r,n),e.child}function Wr(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function zr(t,e,n,i,r){var o=ge(n)?fe:he.current;return o=pe(e,o),Vn(e,r),n=Ti(t,e,n,i,o,r),i=Pi(),null===t||Rr?(gn&&i&&hn(e),e.flags|=1,Br(t,e,n,r),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,ro(t,e,r))}function jr(t,e,n,i,r){if(ge(n)){var o=!0;be(e)}else o=!1;if(Vn(e,r),null===e.stateNode)io(t,e),wr(e,n,i),Ar(e,n,i,r),i=!0;else if(null===t){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;"object"===typeof u&&null!==u?u=Hn(u):u=pe(e,u=ge(n)?fe:he.current);var c=n.getDerivedStateFromProps,h="function"===typeof c||"function"===typeof s.getSnapshotBeforeUpdate;h||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==i||l!==u)&&Dr(e,s,i,u),Zn=!1;var d=e.memoizedState;s.state=d,ii(e,i,s,r),l=e.memoizedState,a!==i||d!==l||de.current||Zn?("function"===typeof c&&(vr(e,n,c,i),l=e.memoizedState),(a=Zn||br(e,n,a,i,d,l,u))?(h||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(e.flags|=4194308)):("function"===typeof s.componentDidMount&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=l),s.props=i,s.state=l,s.context=u,i=a):("function"===typeof s.componentDidMount&&(e.flags|=4194308),i=!1)}else{s=e.stateNode,Jn(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:mr(e.type,a),s.props=u,h=e.pendingProps,d=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Hn(l):l=pe(e,l=ge(n)?fe:he.current);var f=n.getDerivedStateFromProps;(c="function"===typeof f||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==h||d!==l)&&Dr(e,s,i,l),Zn=!1,d=e.memoizedState,s.state=d,ii(e,i,s,r);var p=e.memoizedState;a!==h||d!==p||de.current||Zn?("function"===typeof f&&(vr(e,n,f,i),p=e.memoizedState),(u=Zn||br(e,n,u,i,d,p,l)||!1)?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(i,p,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,p,l)),"function"===typeof s.componentDidUpdate&&(e.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!==typeof s.componentDidUpdate||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=p),s.props=i,s.state=p,s.context=l,i=u):("function"!==typeof s.componentDidUpdate||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),i=!1)}return Ur(t,e,n,i,o,r)}function Ur(t,e,n,i,r,o){Wr(t,e);var s=0!==(128&e.flags);if(!i&&!s)return r&&we(e,n,!1),ro(t,e,o);i=e.stateNode,_r.current=e;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:i.render();return e.flags|=1,null!==t&&s?(e.child=Bn(e,t.child,null,o),e.child=Bn(e,null,a,o)):Br(t,e,a,o),e.memoizedState=i.state,r&&we(e,n,!0),e.child}function Gr(t){var e=t.stateNode;e.pendingContext?ve(0,e.pendingContext,e.pendingContext!==e.context):e.context&&ve(0,e.context,!1),ci(t,e.containerInfo)}function Vr(t,e,n,i,r){return Sn(),Fn(r),e.flags|=256,Br(t,e,n,i),e.child}var Hr,qr,Xr,Kr,Yr={dehydrated:null,treeContext:null,retryLane:0};function Zr(t){return{baseLanes:t,cachePool:null,transitions:null}}function Qr(t,e,n){var i,r=e.pendingProps,o=pi.current,a=!1,l=0!==(128&e.flags);if((i=l)||(i=(null===t||null!==t.memoizedState)&&0!==(2&o)),i?(a=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(o|=1),ue(pi,1&o),null===t)return Dn(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0===(1&e.mode)?e.lanes=1:Lt(t)?e.lanes=8:e.lanes=1073741824,null):(l=r.children,t=r.fallback,a?(r=e.mode,a=e.child,l={mode:"hidden",children:l},0===(1&r)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=ha(l,r,0,null),t=ca(t,r,n,null),a.return=e,t.return=e,a.sibling=t,e.child=a,e.child.memoizedState=Zr(n),e.memoizedState=Yr,t):Jr(e,l));if(null!==(o=t.memoizedState)&&null!==(i=o.dehydrated))return function(t,e,n,i,r,o,a){if(n)return 256&e.flags?(e.flags&=-257,$r(t,e,a,i=Cr(Error(s(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(o=i.fallback,r=e.mode,i=ha({mode:"visible",children:i.children},r,0,null),(o=ca(o,r,a,null)).flags|=2,i.return=e,o.return=e,i.sibling=o,e.child=i,0!==(1&e.mode)&&Bn(e,t.child,null,a),e.child.memoizedState=Zr(a),e.memoizedState=Yr,o);if(0===(1&e.mode))return $r(t,e,a,null);if(Lt(r))return i=Ot(r).digest,o=Error(s(419)),i=Cr(o,i,void 0),$r(t,e,a,i);if(n=0!==(a&t.childLanes),Rr||n){if(null!==(i=is)){switch(a&-a){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(i.suspendedLanes|a))?0:r)&&r!==o.retryLane&&(o.retryLane=r,Yn(t,r),_s(i,t,r,-1))}return Vs(),$r(t,e,a,i=Cr(Error(s(421))))}return Nt(r)?(e.flags|=128,e.child=t.child,e=na.bind(null,t),Wt(r,e),null):(t=o.treeContext,Z&&(pn=Gt(r),fn=e,gn=!0,vn=null,mn=!1,null!==t&&(rn[on++]=an,rn[on++]=ln,rn[on++]=sn,an=t.id,ln=t.overflow,sn=e)),e=Jr(e,i.children),e.flags|=4096,e)}(t,e,l,r,i,o,n);if(a){a=r.fallback,l=e.mode,i=(o=t.child).sibling;var u={mode:"hidden",children:r.children};return 0===(1&l)&&e.child!==o?((r=e.child).childLanes=0,r.pendingProps=u,e.deletions=null):(r=la(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==i?a=la(i,a):(a=ca(a,l,n,null)).flags|=2,a.return=e,r.return=e,r.sibling=a,e.child=r,r=a,a=e.child,l=null===(l=t.child.memoizedState)?Zr(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=t.childLanes&~n,e.memoizedState=Yr,r}return t=(a=t.child).sibling,r=la(a,{mode:"visible",children:r.children}),0===(1&e.mode)&&(r.lanes=n),r.return=e,r.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Jr(t,e){return(e=ha({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function $r(t,e,n,i){return null!==i&&Fn(i),Bn(e,t.child,null,n),(t=Jr(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function to(t,e,n){t.lanes|=e;var i=t.alternate;null!==i&&(i.lanes|=e),Gn(t.return,e,n)}function eo(t,e,n,i,r){var o=t.memoizedState;null===o?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function no(t,e,n){var i=e.pendingProps,r=i.revealOrder,o=i.tail;if(Br(t,e,i.children,n),0!==(2&(i=pi.current)))i=1&i|2,e.flags|=128;else{if(null!==t&&0!==(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&to(t,n,e);else if(19===t.tag)to(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(ue(pi,i),0===(1&e.mode))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;null!==n;)null!==(t=n.alternate)&&null===gi(t)&&(r=n),n=n.sibling;null===(n=r)?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),eo(e,!1,r,n,o);break;case"backwards":for(n=null,r=e.child,e.child=null;null!==r;){if(null!==(t=r.alternate)&&null===gi(t)){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}eo(e,!0,n,null,o);break;case"together":eo(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function io(t,e){0===(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function ro(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),cs|=e.lanes,0===(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(s(153));if(null!==e.child){for(n=la(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=la(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function oo(t){t.flags|=4}function so(t,e){if(null!==t&&t.child===e.child)return!0;if(0!==(16&e.flags))return!1;for(t=e.child;null!==t;){if(0!==(12854&t.flags)||0!==(12854&t.subtreeFlags))return!1;t=t.sibling}return!0}if(K)Hr=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)W(t,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qr=function(){},Xr=function(t,e,n,i,r){if((t=t.memoizedProps)!==i){var o=e.stateNode,s=ui(si.current);n=j(o,n,t,i,r,s),(e.updateQueue=n)&&oo(e)}},Kr=function(t,e,n,i){n!==i&&oo(e)};else if(Y){Hr=function(t,e,n,i){for(var r=e.child;null!==r;){if(5===r.tag){var o=r.stateNode;n&&i&&(o=Pt(o,r.type,r.memoizedProps,r)),W(t,o)}else if(6===r.tag)o=r.stateNode,n&&i&&(o=_t(o,r.memoizedProps,r)),W(t,o);else if(4!==r.tag)if(22===r.tag&&null!==r.memoizedState)null!==(o=r.child)&&(o.return=r),Hr(t,r,!0,!0);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};var ao=function(t,e,n,i){for(var r=e.child;null!==r;){if(5===r.tag){var o=r.stateNode;n&&i&&(o=Pt(o,r.type,r.memoizedProps,r)),kt(t,o)}else if(6===r.tag)o=r.stateNode,n&&i&&(o=_t(o,r.memoizedProps,r)),kt(t,o);else if(4!==r.tag)if(22===r.tag&&null!==r.memoizedState)null!==(o=r.child)&&(o.return=r),ao(t,r,!0,!0);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};qr=function(t,e){var n=e.stateNode;if(!so(t,e)){t=n.containerInfo;var i=Et(t);ao(i,e,!1,!1),n.pendingChildren=i,oo(e),Mt(t,i)}},Xr=function(t,e,n,i,r){var o=t.stateNode,s=t.memoizedProps;if((t=so(t,e))&&s===i)e.stateNode=o;else{var a=e.stateNode,l=ui(si.current),u=null;s!==i&&(u=j(a,n,s,i,r,l)),t&&null===u?e.stateNode=o:(o=Ft(o,u,n,s,i,e,t,a),z(o,n,i,r,l)&&oo(e),e.stateNode=o,t?oo(e):Hr(o,e,!1,!1))}},Kr=function(t,e,n,i){n!==i?(t=ui(li.current),n=ui(si.current),e.stateNode=G(i,t,n,e),oo(e)):e.stateNode=t.stateNode}}else qr=function(){},Xr=function(){},Kr=function(){};function lo(t,e){if(!gn)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?e||null===t.tail?t.tail=null:t.tail.sibling=null:i.sibling=null}}function uo(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=t,r=r.sibling;else for(r=t.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function co(t,e,n){var i=e.pendingProps;switch(dn(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return uo(e),null;case 1:case 17:return ge(e.type)&&me(),uo(e),null;case 3:return n=e.stateNode,hi(),le(de),le(he),vi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||(xn(e)?oo(e):null===t||t.memoizedState.isDehydrated&&0===(256&e.flags)||(e.flags|=1024,null!==vn&&(Ns(vn),vn=null))),qr(t,e),uo(e),null;case 5:fi(e),n=ui(li.current);var r=e.type;if(null!==t&&null!=e.stateNode)Xr(t,e,r,i,n),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(null===e.stateNode)throw Error(s(166));return uo(e),null}if(t=ui(si.current),xn(e)){if(!Z)throw Error(s(175));t=Vt(e.stateNode,e.type,e.memoizedProps,n,t,e,!mn),e.updateQueue=t,null!==t&&oo(e)}else{var o=O(r,i,n,t,e);Hr(o,e,!1,!1),e.stateNode=o,z(o,r,i,n,t)&&oo(e)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return uo(e),null;case 6:if(t&&null!=e.stateNode)Kr(t,e,t.memoizedProps,i);else{if("string"!==typeof i&&null===e.stateNode)throw Error(s(166));if(t=ui(li.current),n=ui(si.current),xn(e)){if(!Z)throw Error(s(176));if(t=e.stateNode,n=e.memoizedProps,(i=Ht(t,n,e,!mn))&&null!==(r=fn))switch(r.tag){case 3:$t(r.stateNode.containerInfo,t,n,0!==(1&r.mode));break;case 5:te(r.type,r.memoizedProps,r.stateNode,t,n,0!==(1&r.mode))}i&&oo(e)}else e.stateNode=G(i,t,n,e)}return uo(e),null;case 13:if(le(pi),i=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(gn&&null!==pn&&0!==(1&e.mode)&&0===(128&e.flags))Cn(),Sn(),e.flags|=98560,r=!1;else if(r=xn(e),null!==i&&null!==i.dehydrated){if(null===t){if(!r)throw Error(s(318));if(!Z)throw Error(s(344));if(!(r=null!==(r=e.memoizedState)?r.dehydrated:null))throw Error(s(317));qt(r,e)}else Sn(),0===(128&e.flags)&&(e.memoizedState=null),e.flags|=4;uo(e),r=!1}else null!==vn&&(Ns(vn),vn=null),r=!0;if(!r)return 65536&e.flags?e:null}return 0!==(128&e.flags)?(e.lanes=n,e):((n=null!==i)!==(null!==t&&null!==t.memoizedState)&&n&&(e.child.flags|=8192,0!==(1&e.mode)&&(null===t||0!==(1&pi.current)?0===ls&&(ls=3):Vs())),null!==e.updateQueue&&(e.flags|=4),uo(e),null);case 4:return hi(),qr(t,e),null===t&&J(e.stateNode.containerInfo),uo(e),null;case 10:return Un(e.type._context),uo(e),null;case 19:if(le(pi),null===(r=e.memoizedState))return uo(e),null;if(i=0!==(128&e.flags),null===(o=r.rendering))if(i)lo(r,!1);else{if(0!==ls||null!==t&&0!==(128&t.flags))for(t=e.child;null!==t;){if(null!==(o=gi(t))){for(e.flags|=128,lo(r,!1),null!==(t=o.updateQueue)&&(e.updateQueue=t,e.flags|=4),e.subtreeFlags=0,t=n,n=e.child;null!==n;)r=t,(i=n).flags&=14680066,null===(o=i.alternate)?(i.childLanes=0,i.lanes=r,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,r=o.dependencies,i.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext}),n=n.sibling;return ue(pi,1&pi.current|2),e.child}t=t.sibling}null!==r.tail&&ze()>ms&&(e.flags|=128,i=!0,lo(r,!1),e.lanes=4194304)}else{if(!i)if(null!==(t=gi(o))){if(e.flags|=128,i=!0,null!==(t=t.updateQueue)&&(e.updateQueue=t,e.flags|=4),lo(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!gn)return uo(e),null}else 2*ze()-r.renderingStartTime>ms&&1073741824!==n&&(e.flags|=128,i=!0,lo(r,!1),e.lanes=4194304);r.isBackwards?(o.sibling=e.child,e.child=o):(null!==(t=r.last)?t.sibling=o:e.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ze(),e.sibling=null,t=pi.current,ue(pi,i?1&t|2:1&t),e):(uo(e),null);case 22:case 23:return zs(),n=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==n&&(e.flags|=8192),n&&0!==(1&e.mode)?0!==(1073741824&ss)&&(uo(e),K&&6&e.subtreeFlags&&(e.flags|=8192)):uo(e),null;case 24:case 25:return null}throw Error(s(156,e.tag))}function ho(t,e){switch(dn(e),e.tag){case 1:return ge(e.type)&&me(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return hi(),le(de),le(he),vi(),0!==(65536&(t=e.flags))&&0===(128&t)?(e.flags=-65537&t|128,e):null;case 5:return fi(e),null;case 13:if(le(pi),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(s(340));Sn()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return le(pi),null;case 4:return hi(),null;case 10:return Un(e.type._context),null;case 22:case 23:return zs(),null;default:return null}}var fo=!1,po=!1,go="function"===typeof WeakSet?WeakSet:Set,mo=null;function vo(t,e){var n=t.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(i){$s(t,e,i)}else n.current=null}function yo(t,e,n){try{n()}catch(i){$s(t,e,i)}}var bo=!1;function wo(t,e,n){var i=e.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,void 0!==o&&yo(e,n,o)}r=r.next}while(r!==i)}}function Do(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function Ao(t){var e=t.ref;if(null!==e){var n=t.stateNode;if(5===t.tag)t=R(n);else t=n;"function"===typeof e?e(t):e.current=t}}function xo(t){var e=t.alternate;null!==e&&(t.alternate=null,xo(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&(null!==(e=t.stateNode)&&tt(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Co(t){return 5===t.tag||3===t.tag||4===t.tag}function So(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||Co(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function Fo(t,e,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,e?vt(n,t,e):dt(n,t);else if(4!==i&&null!==(t=t.child))for(Fo(t,e,n),t=t.sibling;null!==t;)Fo(t,e,n),t=t.sibling}function Eo(t,e,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,e?mt(n,t,e):ht(n,t);else if(4!==i&&null!==(t=t.child))for(Eo(t,e,n),t=t.sibling;null!==t;)Eo(t,e,n),t=t.sibling}var ko=null,Mo=!1;function To(t,e,n){for(n=n.child;null!==n;)Po(t,e,n),n=n.sibling}function Po(t,e,n){if(qe&&"function"===typeof qe.onCommitFiberUnmount)try{qe.onCommitFiberUnmount(He,n)}catch(a){}switch(n.tag){case 5:po||vo(n,e);case 6:if(K){var i=ko,r=Mo;ko=null,To(t,e,n),Mo=r,null!==(ko=i)&&(Mo?bt(ko,n.stateNode):yt(ko,n.stateNode))}else To(t,e,n);break;case 18:K&&null!==ko&&(Mo?Qt(ko,n.stateNode):Zt(ko,n.stateNode));break;case 4:K?(i=ko,r=Mo,ko=n.stateNode.containerInfo,Mo=!0,To(t,e,n),ko=i,Mo=r):(Y&&(i=n.stateNode.containerInfo,r=Et(i),Tt(i,r)),To(t,e,n));break;case 0:case 11:case 14:case 15:if(!po&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){r=i=i.next;do{var o=r,s=o.destroy;o=o.tag,void 0!==s&&(0!==(2&o)||0!==(4&o))&&yo(n,e,s),r=r.next}while(r!==i)}To(t,e,n);break;case 1:if(!po&&(vo(n,e),"function"===typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){$s(n,e,a)}To(t,e,n);break;case 21:To(t,e,n);break;case 22:1&n.mode?(po=(i=po)||null!==n.memoizedState,To(t,e,n),po=i):To(t,e,n);break;default:To(t,e,n)}}function _o(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new go),e.forEach(function(e){var i=ia.bind(null,t,e);n.has(e)||(n.add(e),e.then(i,i))})}}function Ro(t,e){var n=e.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var o=t,a=e;if(K){var l=a;t:for(;null!==l;){switch(l.tag){case 5:ko=l.stateNode,Mo=!1;break t;case 3:case 4:ko=l.stateNode.containerInfo,Mo=!0;break t}l=l.return}if(null===ko)throw Error(s(160));Po(o,a,r),ko=null,Mo=!1}else Po(o,a,r);var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(c){$s(r,e,c)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)Bo(e,t),e=e.sibling}function Bo(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ro(e,t),Io(t),4&i){try{wo(3,t,t.return),Do(3,t)}catch(f){$s(t,t.return,f)}try{wo(5,t,t.return)}catch(f){$s(t,t.return,f)}}break;case 1:Ro(e,t),Io(t),512&i&&null!==n&&vo(n,n.return);break;case 5:if(Ro(e,t),Io(t),512&i&&null!==n&&vo(n,n.return),K){if(32&t.flags){var r=t.stateNode;try{wt(r)}catch(f){$s(t,t.return,f)}}if(4&i&&null!=(r=t.stateNode)){var o=t.memoizedProps;if(n=null!==n?n.memoizedProps:o,i=t.type,e=t.updateQueue,t.updateQueue=null,null!==e)try{gt(r,e,i,n,o,t)}catch(f){$s(t,t.return,f)}}}break;case 6:if(Ro(e,t),Io(t),4&i&&K){if(null===t.stateNode)throw Error(s(162));r=t.stateNode,o=t.memoizedProps,n=null!==n?n.memoizedProps:o;try{ft(r,n,o)}catch(f){$s(t,t.return,f)}}break;case 3:if(Ro(e,t),Io(t),4&i){if(K&&Z&&null!==n&&n.memoizedState.isDehydrated)try{Kt(e.containerInfo)}catch(f){$s(t,t.return,f)}if(Y){r=e.containerInfo,o=e.pendingChildren;try{Tt(r,o)}catch(f){$s(t,t.return,f)}}}break;case 4:if(Ro(e,t),Io(t),4&i&&Y){r=(o=t.stateNode).containerInfo,o=o.pendingChildren;try{Tt(r,o)}catch(f){$s(t,t.return,f)}}break;case 13:Ro(e,t),Io(t),8192&(r=t.child).flags&&(o=null!==r.memoizedState,r.stateNode.isHidden=o,!o||null!==r.alternate&&null!==r.alternate.memoizedState||(gs=ze())),4&i&&_o(t);break;case 22:var a=null!==n&&null!==n.memoizedState;if(1&t.mode?(po=(n=po)||a,Ro(e,t),po=n):Ro(e,t),Io(t),8192&i){if(n=null!==t.memoizedState,(t.stateNode.isHidden=n)&&!a&&0!==(1&t.mode))for(mo=t,i=t.child;null!==i;){for(e=mo=i;null!==mo;){var l=(a=mo).child;switch(a.tag){case 0:case 11:case 14:case 15:wo(4,a,a.return);break;case 1:vo(a,a.return);var u=a.stateNode;if("function"===typeof u.componentWillUnmount){var c=a,h=a.return;try{var d=c;u.props=d.memoizedProps,u.state=d.memoizedState,u.componentWillUnmount()}catch(f){$s(c,h,f)}}break;case 5:vo(a,a.return);break;case 22:if(null!==a.memoizedState){Wo(e);continue}}null!==l?(l.return=a,mo=l):Wo(e)}i=i.sibling}if(K)t:if(i=null,K)for(e=t;;){if(5===e.tag){if(null===i){i=e;try{r=e.stateNode,n?Dt(r):xt(e.stateNode,e.memoizedProps)}catch(f){$s(t,t.return,f)}}}else if(6===e.tag){if(null===i)try{o=e.stateNode,n?At(o):Ct(o,e.memoizedProps)}catch(f){$s(t,t.return,f)}}else if((22!==e.tag&&23!==e.tag||null===e.memoizedState||e===t)&&null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;null===e.sibling;){if(null===e.return||e.return===t)break t;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}}break;case 19:Ro(e,t),Io(t),4&i&&_o(t);break;case 21:break;default:Ro(e,t),Io(t)}}function Io(t){var e=t.flags;if(2&e){try{if(K){t:{for(var n=t.return;null!==n;){if(Co(n)){var i=n;break t}n=n.return}throw Error(s(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(wt(r),i.flags&=-33),Eo(t,So(t),r);break;case 3:case 4:var o=i.stateNode.containerInfo;Fo(t,So(t),o);break;default:throw Error(s(161))}}}catch(a){$s(t,t.return,a)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function No(t,e,n){mo=t,Lo(t,e,n)}function Lo(t,e,n){for(var i=0!==(1&t.mode);null!==mo;){var r=mo,o=r.child;if(22===r.tag&&i){var s=null!==r.memoizedState||fo;if(!s){var a=r.alternate,l=null!==a&&null!==a.memoizedState||po;a=fo;var u=po;if(fo=s,(po=l)&&!u)for(mo=r;null!==mo;)l=(s=mo).child,22===s.tag&&null!==s.memoizedState?zo(r):null!==l?(l.return=s,mo=l):zo(r);for(;null!==o;)mo=o,Lo(o,e,n),o=o.sibling;mo=r,fo=a,po=u}Oo(t)}else 0!==(8772&r.subtreeFlags)&&null!==o?(o.return=r,mo=o):Oo(t)}}function Oo(t){for(;null!==mo;){var e=mo;if(0!==(8772&e.flags)){var n=e.alternate;try{if(0!==(8772&e.flags))switch(e.tag){case 0:case 11:case 15:po||Do(5,e);break;case 1:var i=e.stateNode;if(4&e.flags&&!po)if(null===n)i.componentDidMount();else{var r=e.elementType===e.type?n.memoizedProps:mr(e.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;null!==o&&ri(e,o,i);break;case 3:var a=e.updateQueue;if(null!==a){if(n=null,null!==e.child)switch(e.child.tag){case 5:n=R(e.child.stateNode);break;case 1:n=e.child.stateNode}ri(e,a,n)}break;case 5:var l=e.stateNode;null===n&&4&e.flags&&pt(l,e.type,e.memoizedProps,e);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(Z&&null===e.memoizedState){var u=e.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var h=c.dehydrated;null!==h&&Yt(h)}}}break;default:throw Error(s(163))}po||512&e.flags&&Ao(e)}catch(d){$s(e,e.return,d)}}if(e===t){mo=null;break}if(null!==(n=e.sibling)){n.return=e.return,mo=n;break}mo=e.return}}function Wo(t){for(;null!==mo;){var e=mo;if(e===t){mo=null;break}var n=e.sibling;if(null!==n){n.return=e.return,mo=n;break}mo=e.return}}function zo(t){for(;null!==mo;){var e=mo;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{Do(4,e)}catch(l){$s(e,n,l)}break;case 1:var i=e.stateNode;if("function"===typeof i.componentDidMount){var r=e.return;try{i.componentDidMount()}catch(l){$s(e,r,l)}}var o=e.return;try{Ao(e)}catch(l){$s(e,o,l)}break;case 5:var s=e.return;try{Ao(e)}catch(l){$s(e,s,l)}}}catch(l){$s(e,e.return,l)}if(e===t){mo=null;break}var a=e.sibling;if(null!==a){a.return=e.return,mo=a;break}mo=e.return}}var jo=0,Uo=1,Go=2,Vo=3,Ho=4;if("function"===typeof Symbol&&Symbol.for){var qo=Symbol.for;jo=qo("selector.component"),Uo=qo("selector.has_pseudo_class"),Go=qo("selector.role"),Vo=qo("selector.test_id"),Ho=qo("selector.text")}function Xo(t){var e=Q(t);if(null!=e){if("string"!==typeof e.memoizedProps["data-testname"])throw Error(s(364));return e}if(null===(t=rt(t)))throw Error(s(362));return t.stateNode.current}function Ko(t,e){switch(e.$$typeof){case jo:if(t.type===e.value)return!0;break;case Uo:t:{e=e.value,t=[t,0];for(var n=0;n<t.length;){var i=t[n++],r=t[n++],o=e[r];if(5!==i.tag||!at(i)){for(;null!=o&&Ko(i,o);)o=e[++r];if(r===e.length){e=!0;break t}for(i=i.child;null!==i;)t.push(i,r),i=i.sibling}}e=!1}return e;case Go:if(5===t.tag&&lt(t.stateNode,e.value))return!0;break;case Ho:if((5===t.tag||6===t.tag)&&(null!==(t=st(t))&&0<=t.indexOf(e.value)))return!0;break;case Vo:if(5===t.tag&&("string"===typeof(t=t.memoizedProps["data-testname"])&&t.toLowerCase()===e.value.toLowerCase()))return!0;break;default:throw Error(s(365))}return!1}function Yo(t){switch(t.$$typeof){case jo:return"<"+(x(t.value)||"Unknown")+">";case Uo:return":has("+(Yo(t)||"")+")";case Go:return'[role="'+t.value+'"]';case Ho:return'"'+t.value+'"';case Vo:return'[data-testname="'+t.value+'"]';default:throw Error(s(365))}}function Zo(t,e){var n=[];t=[t,0];for(var i=0;i<t.length;){var r=t[i++],o=t[i++],s=e[o];if(5!==r.tag||!at(r)){for(;null!=s&&Ko(r,s);)s=e[++o];if(o===e.length)n.push(r);else for(r=r.child;null!==r;)t.push(r,o),r=r.sibling}}return n}function Qo(t,e){if(!it)throw Error(s(363));t=Zo(t=Xo(t),e),e=[],t=Array.from(t);for(var n=0;n<t.length;){var i=t[n++];if(5===i.tag)at(i)||e.push(i.stateNode);else for(i=i.child;null!==i;)t.push(i),i=i.sibling}return e}var Jo=Math.ceil,$o=a.ReactCurrentDispatcher,ts=a.ReactCurrentOwner,es=a.ReactCurrentBatchConfig,ns=0,is=null,rs=null,os=0,ss=0,as=ae(0),ls=0,us=null,cs=0,hs=0,ds=0,fs=null,ps=null,gs=0,ms=1/0,vs=null;function ys(){ms=ze()+500}var bs,ws=!1,Ds=null,As=null,xs=!1,Cs=null,Ss=0,Fs=0,Es=null,ks=-1,Ms=0;function Ts(){return 0!==(6&ns)?ze():-1!==ks?ks:ks=ze()}function Ps(t){return 0===(1&t.mode)?1:0!==(2&ns)&&0!==os?os&-os:null!==En.transition?(0===Ms&&(Ms=Te()),Ms):0!==(t=Be)?t:$()}function _s(t,e,n,i){if(50<Fs)throw Fs=0,Es=null,Error(s(185));_e(t,n,i),0!==(2&ns)&&t===is||(t===is&&(0===(2&ns)&&(hs|=n),4===ls&&Ls(t,os)),Rs(t,i),1===n&&0===ns&&0===(1&e.mode)&&(ys(),Ye&&Je()))}function Rs(t,e){var n=t.callbackNode;!function(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes;0<o;){var s=31-De(o),a=1<<s,l=r[s];-1===l?0!==(a&n)&&0===(a&i)||(r[s]=ke(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}(t,e);var i=Ee(t,t===is?os:0);if(0===i)null!==n&&Le(n),t.callbackNode=null,t.callbackPriority=0;else if(e=i&-i,t.callbackPriority!==e){if(null!=n&&Le(n),1===e)0===t.tag?function(t){Ye=!0,Qe(t)}(Os.bind(null,t)):Qe(Os.bind(null,t)),et?nt(function(){0===(6&ns)&&Je()}):Ne(je,Je),n=null;else{switch(Ie(i)){case 1:n=je;break;case 4:n=Ue;break;case 16:default:n=Ge;break;case 536870912:n=Ve}n=ra(n,Bs.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Bs(t,e){if(ks=-1,Ms=0,0!==(6&ns))throw Error(s(327));var n=t.callbackNode;if(Qs()&&t.callbackNode!==n)return null;var i=Ee(t,t===is?os:0);if(0===i)return null;if(0!==(30&i)||0!==(i&t.expiredLanes)||e)e=Hs(t,i);else{e=i;var r=ns;ns|=2;var o=Gs();for(is===t&&os===e||(vs=null,ys(),js(t,e));;)try{Xs();break}catch(l){Us(t,l)}zn(),$o.current=o,ns=r,null!==rs?e=0:(is=null,os=0,e=ls)}if(0!==e){if(2===e&&(0!==(r=Me(t))&&(i=r,e=Is(t,r))),1===e)throw n=us,js(t,0),Ls(t,i),Rs(t,ze()),n;if(6===e)Ls(t,i);else{if(r=t.current.alternate,0===(30&i)&&!function(t){for(var e=t;;){if(16384&e.flags){var n=e.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!Xe(o(),r))return!1}catch(a){return!1}}}if(n=e.child,16384&e.subtreeFlags&&null!==n)n.return=e,e=n;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(r)&&(2===(e=Hs(t,i))&&(0!==(o=Me(t))&&(i=o,e=Is(t,o))),1===e))throw n=us,js(t,0),Ls(t,i),Rs(t,ze()),n;switch(t.finishedWork=r,t.finishedLanes=i,e){case 0:case 1:throw Error(s(345));case 2:case 5:Zs(t,ps,vs);break;case 3:if(Ls(t,i),(130023424&i)===i&&10<(e=gs+500-ze())){if(0!==Ee(t,0))break;if(((r=t.suspendedLanes)&i)!==i){Ts(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=V(Zs.bind(null,t,ps,vs),e);break}Zs(t,ps,vs);break;case 4:if(Ls(t,i),(4194240&i)===i)break;for(e=t.eventTimes,r=-1;0<i;){var a=31-De(i);o=1<<a,(a=e[a])>r&&(r=a),i&=~o}if(i=r,10<(i=(120>(i=ze()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Jo(i/1960))-i)){t.timeoutHandle=V(Zs.bind(null,t,ps,vs),i);break}Zs(t,ps,vs);break;default:throw Error(s(329))}}}return Rs(t,ze()),t.callbackNode===n?Bs.bind(null,t):null}function Is(t,e){var n=fs;return t.current.memoizedState.isDehydrated&&(js(t,e).flags|=256),2!==(t=Hs(t,e))&&(e=ps,ps=n,null!==e&&Ns(e)),t}function Ns(t){null===ps?ps=t:ps.push.apply(ps,t)}function Ls(t,e){for(e&=~ds,e&=~hs,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-De(e),i=1<<n;t[n]=-1,e&=~i}}function Os(t){if(0!==(6&ns))throw Error(s(327));Qs();var e=Ee(t,0);if(0===(1&e))return Rs(t,ze()),null;var n=Hs(t,e);if(0!==t.tag&&2===n){var i=Me(t);0!==i&&(e=i,n=Is(t,i))}if(1===n)throw n=us,js(t,0),Ls(t,e),Rs(t,ze()),n;if(6===n)throw Error(s(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Zs(t,ps,vs),Rs(t,ze()),null}function Ws(t){null!==Cs&&0===Cs.tag&&0===(6&ns)&&Qs();var e=ns;ns|=1;var n=es.transition,i=Be;try{if(es.transition=null,Be=1,t)return t()}finally{Be=i,es.transition=n,0===(6&(ns=e))&&Je()}}function zs(){ss=as.current,le(as)}function js(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==q&&(t.timeoutHandle=q,H(n)),null!==rs)for(n=rs.return;null!==n;){var i=n;switch(dn(i),i.tag){case 1:null!==(i=i.type.childContextTypes)&&void 0!==i&&me();break;case 3:hi(),le(de),le(he),vi();break;case 5:fi(i);break;case 4:hi();break;case 13:case 19:le(pi);break;case 10:Un(i.type._context);break;case 22:case 23:zs()}n=n.return}if(is=t,rs=t=la(t.current,null),os=ss=e,ls=0,us=null,ds=hs=cs=0,ps=fs=null,null!==qn){for(e=0;e<qn.length;e++)if(null!==(i=(n=qn[e]).interleaved)){n.interleaved=null;var r=i.next,o=n.pending;if(null!==o){var s=o.next;o.next=r,i.next=s}n.pending=i}qn=null}return t}function Us(t,e){for(;;){var n=rs;try{if(zn(),yi.current=dr,Ci){for(var i=Di.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}Ci=!1}if(wi=0,xi=Ai=Di=null,Si=!1,Fi=0,ts.current=null,null===n||null===n.return){ls=1,us=e,rs=null;break}t:{var o=t,a=n.return,l=n,u=e;if(e=os,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,h=l,d=h.tag;if(0===(1&h.mode)&&(0===d||11===d||15===d)){var f=h.alternate;f?(h.updateQueue=f.updateQueue,h.memoizedState=f.memoizedState,h.lanes=f.lanes):(h.updateQueue=null,h.memoizedState=null)}var p=Tr(a);if(null!==p){p.flags&=-257,Pr(p,a,l,0,e),1&p.mode&&Mr(o,c,e),u=c;var g=(e=p).updateQueue;if(null===g){var m=new Set;m.add(u),e.updateQueue=m}else g.add(u);break t}if(0===(1&e)){Mr(o,c,e),Vs();break t}u=Error(s(426))}else if(gn&&1&l.mode){var v=Tr(a);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),Pr(v,a,l,0,e),Fn(xr(u,l));break t}}o=u=xr(u,l),4!==ls&&(ls=2),null===fs?fs=[o]:fs.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e,ni(o,Er(0,u,e));break t;case 1:l=u;var y=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===As||!As.has(b)))){o.flags|=65536,e&=-e,o.lanes|=e,ni(o,kr(o,l,e));break t}}o=o.return}while(null!==o)}Ys(n)}catch(w){e=w,rs===n&&null!==n&&(rs=n=n.return);continue}break}}function Gs(){var t=$o.current;return $o.current=dr,null===t?dr:t}function Vs(){0!==ls&&3!==ls&&2!==ls||(ls=4),null===is||0===(268435455&cs)&&0===(268435455&hs)||Ls(is,os)}function Hs(t,e){var n=ns;ns|=2;var i=Gs();for(is===t&&os===e||(vs=null,js(t,e));;)try{qs();break}catch(r){Us(t,r)}if(zn(),ns=n,$o.current=i,null!==rs)throw Error(s(261));return is=null,os=0,ls}function qs(){for(;null!==rs;)Ks(rs)}function Xs(){for(;null!==rs&&!Oe();)Ks(rs)}function Ks(t){var e=bs(t.alternate,t,ss);t.memoizedProps=t.pendingProps,null===e?Ys(t):rs=e,ts.current=null}function Ys(t){var e=t;do{var n=e.alternate;if(t=e.return,0===(32768&e.flags)){if(null!==(n=co(n,e,ss)))return void(rs=n)}else{if(null!==(n=ho(n,e)))return n.flags&=32767,void(rs=n);if(null===t)return ls=6,void(rs=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}if(null!==(e=e.sibling))return void(rs=e);rs=e=t}while(null!==e);0===ls&&(ls=5)}function Zs(t,e,n){var i=Be,r=es.transition;try{es.transition=null,Be=1,function(t,e,n,i){do{Qs()}while(null!==Cs);if(0!==(6&ns))throw Error(s(327));n=t.finishedWork;var r=t.finishedLanes;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(s(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0<n;){var r=31-De(n),o=1<<r;e[r]=0,i[r]=-1,t[r]=-1,n&=~o}}(t,o),t===is&&(rs=is=null,os=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||xs||(xs=!0,ra(Ge,function(){return Qs(),null})),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=es.transition,es.transition=null;var a=Be;Be=1;var l=ns;ns|=4,ts.current=null,function(t,e){for(N(t.containerInfo),mo=e;null!==mo;)if(e=(t=mo).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,mo=e;else for(;null!==mo;){t=mo;try{var n=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var i=n.memoizedProps,r=n.memoizedState,o=t.stateNode,a=o.getSnapshotBeforeUpdate(t.elementType===t.type?i:mr(t.type,i),r);o.__reactInternalSnapshotBeforeUpdate=a}break;case 3:K&&St(t.stateNode.containerInfo);break;default:throw Error(s(163))}}catch(l){$s(t,t.return,l)}if(null!==(e=t.sibling)){e.return=t.return,mo=e;break}mo=t.return}n=bo,bo=!1}(t,n),Bo(n,t),L(t.containerInfo),t.current=n,No(n,t,r),We(),ns=l,Be=a,es.transition=o}else t.current=n;if(xs&&(xs=!1,Cs=t,Ss=r),o=t.pendingLanes,0===o&&(As=null),function(t){if(qe&&"function"===typeof qe.onCommitFiberRoot)try{qe.onCommitFiberRoot(He,t,void 0,128===(128&t.current.flags))}catch(e){}}(n.stateNode),Rs(t,ze()),null!==e)for(i=t.onRecoverableError,n=0;n<e.length;n++)r=e[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(ws)throw ws=!1,t=Ds,Ds=null,t;0!==(1&Ss)&&0!==t.tag&&Qs(),o=t.pendingLanes,0!==(1&o)?t===Es?Fs++:(Fs=0,Es=t):Fs=0,Je()}(t,e,n,i)}finally{es.transition=r,Be=i}return null}function Qs(){if(null!==Cs){var t=Ie(Ss),e=es.transition,n=Be;try{if(es.transition=null,Be=16>t?16:t,null===Cs)var i=!1;else{if(t=Cs,Cs=null,Ss=0,0!==(6&ns))throw Error(s(331));var r=ns;for(ns|=4,mo=t.current;null!==mo;){var o=mo,a=o.child;if(0!==(16&mo.flags)){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(mo=c;null!==mo;){var h=mo;switch(h.tag){case 0:case 11:case 15:wo(8,h,o)}var d=h.child;if(null!==d)d.return=h,mo=d;else for(;null!==mo;){var f=(h=mo).sibling,p=h.return;if(xo(h),h===c){mo=null;break}if(null!==f){f.return=p,mo=f;break}mo=p}}}var g=o.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}mo=o}}if(0!==(2064&o.subtreeFlags)&&null!==a)a.return=o,mo=a;else t:for(;null!==mo;){if(0!==(2048&(o=mo).flags))switch(o.tag){case 0:case 11:case 15:wo(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,mo=y;break t}mo=o.return}}var b=t.current;for(mo=b;null!==mo;){var w=(a=mo).child;if(0!==(2064&a.subtreeFlags)&&null!==w)w.return=a,mo=w;else t:for(a=b;null!==mo;){if(0!==(2048&(l=mo).flags))try{switch(l.tag){case 0:case 11:case 15:Do(9,l)}}catch(A){$s(l,l.return,A)}if(l===a){mo=null;break t}var D=l.sibling;if(null!==D){D.return=l.return,mo=D;break t}mo=l.return}}if(ns=r,Je(),qe&&"function"===typeof qe.onPostCommitFiberRoot)try{qe.onPostCommitFiberRoot(He,t)}catch(A){}i=!0}return i}finally{Be=n,es.transition=e}}return!1}function Js(t,e,n){t=ti(t,e=Er(0,e=xr(n,e),1),1),e=Ts(),null!==t&&(_e(t,1,e),Rs(t,e))}function $s(t,e,n){if(3===t.tag)Js(t,t,n);else for(;null!==e;){if(3===e.tag){Js(e,t,n);break}if(1===e.tag){var i=e.stateNode;if("function"===typeof e.type.getDerivedStateFromError||"function"===typeof i.componentDidCatch&&(null===As||!As.has(i))){e=ti(e,t=kr(e,t=xr(n,t),1),1),t=Ts(),null!==e&&(_e(e,1,t),Rs(e,t));break}}e=e.return}}function ta(t,e,n){var i=t.pingCache;null!==i&&i.delete(e),e=Ts(),t.pingedLanes|=t.suspendedLanes&n,is===t&&(os&n)===n&&(4===ls||3===ls&&(130023424&os)===os&&500>ze()-gs?js(t,0):ds|=n),Rs(t,e)}function ea(t,e){0===e&&(0===(1&t.mode)?e=1:(e=Se,0===(130023424&(Se<<=1))&&(Se=4194304)));var n=Ts();null!==(t=Yn(t,e))&&(_e(t,e,n),Rs(t,n))}function na(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),ea(t,n)}function ia(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(s(314))}null!==i&&i.delete(e),ea(t,n)}function ra(t,e){return Ne(t,e)}function oa(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sa(t,e,n,i){return new oa(t,e,n,i)}function aa(t){return!(!(t=t.prototype)||!t.isReactComponent)}function la(t,e){var n=t.alternate;return null===n?((n=sa(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&t.flags,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ua(t,e,n,i,r,o){var a=2;if(i=t,"function"===typeof t)aa(t)&&(a=1);else if("string"===typeof t)a=5;else t:switch(t){case c:return ca(n.children,r,o,e);case h:a=8,r|=8;break;case d:return(t=sa(12,n,e,2|r)).elementType=d,t.lanes=o,t;case m:return(t=sa(13,n,e,r)).elementType=m,t.lanes=o,t;case v:return(t=sa(19,n,e,r)).elementType=v,t.lanes=o,t;case w:return ha(n,r,o,e);default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case f:a=10;break t;case p:a=9;break t;case g:a=11;break t;case y:a=14;break t;case b:a=16,i=null;break t}throw Error(s(130,null==t?t:typeof t,""))}return(e=sa(a,n,e,r)).elementType=t,e.type=i,e.lanes=o,e}function ca(t,e,n,i){return(t=sa(7,t,i,e)).lanes=n,t}function ha(t,e,n,i){return(t=sa(22,t,i,e)).elementType=w,t.lanes=n,t.stateNode={isHidden:!1},t}function da(t,e,n){return(t=sa(6,t,null,e)).lanes=n,t}function fa(t,e,n){return(e=sa(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function pa(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=q,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pe(0),this.expirationTimes=Pe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.identifierPrefix=i,this.onRecoverableError=r,Z&&(this.mutableSourceEagerHydrationData=null)}function ga(t,e,n,i,r,o,s,a,l){return t=new pa(t,e,n,a,l),1===e?(e=1,!0===o&&(e|=8)):e=0,o=sa(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qn(o),t}function ma(t){if(!t)return ce;t:{if(S(t=t._reactInternals)!==t||1!==t.tag)throw Error(s(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(ge(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(s(171))}if(1===t.tag){var n=t.type;if(ge(n))return ye(t,n,e)}return e}function va(t){var e=t._reactInternals;if(void 0===e){if("function"===typeof t.render)throw Error(s(188));throw t=Object.keys(t).join(","),Error(s(268,t))}return null===(t=k(e))?null:t.stateNode}function ya(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function ba(t,e){ya(t,e),(t=t.alternate)&&ya(t,e)}function wa(t){return null===(t=k(t))?null:t.stateNode}function Da(){return null}return bs=function(t,e,n){if(null!==t)if(t.memoizedProps!==e.pendingProps||de.current)Rr=!0;else{if(0===(t.lanes&n)&&0===(128&e.flags))return Rr=!1,function(t,e,n){switch(e.tag){case 3:Gr(e),Sn();break;case 5:di(e);break;case 1:ge(e.type)&&be(e);break;case 4:ci(e,e.stateNode.containerInfo);break;case 10:jn(0,e.type._context,e.memoizedProps.value);break;case 13:var i=e.memoizedState;if(null!==i)return null!==i.dehydrated?(ue(pi,1&pi.current),e.flags|=128,null):0!==(n&e.child.childLanes)?Qr(t,e,n):(ue(pi,1&pi.current),null!==(t=ro(t,e,n))?t.sibling:null);ue(pi,1&pi.current);break;case 19:if(i=0!==(n&e.childLanes),0!==(128&t.flags)){if(i)return no(t,e,n);e.flags|=128}var r=e.memoizedState;if(null!==r&&(r.rendering=null,r.tail=null,r.lastEffect=null),ue(pi,pi.current),i)break;return null;case 22:case 23:return e.lanes=0,Or(t,e,n)}return ro(t,e,n)}(t,e,n);Rr=0!==(131072&t.flags)}else Rr=!1,gn&&0!==(1048576&e.flags)&&cn(e,nn,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;io(t,e),t=e.pendingProps;var r=pe(e,he.current);Vn(e,n),r=Ti(null,e,i,t,r,n);var o=Pi();return e.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ge(i)?(o=!0,be(e)):o=!1,e.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Qn(e),r.updater=yr,e.stateNode=r,r._reactInternals=e,Ar(e,i,t,n),e=Ur(null,e,i,!0,o,n)):(e.tag=0,gn&&o&&hn(e),Br(null,e,r,n),e=e.child),e;case 16:i=e.elementType;t:{switch(io(t,e),t=e.pendingProps,i=(r=i._init)(i._payload),e.type=i,r=e.tag=function(t){if("function"===typeof t)return aa(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===g)return 11;if(t===y)return 14}return 2}(i),t=mr(i,t),r){case 0:e=zr(null,e,i,t,n);break t;case 1:e=jr(null,e,i,t,n);break t;case 11:e=Ir(null,e,i,t,n);break t;case 14:e=Nr(null,e,i,mr(i.type,t),n);break t}throw Error(s(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,zr(t,e,i,r=e.elementType===i?r:mr(i,r),n);case 1:return i=e.type,r=e.pendingProps,jr(t,e,i,r=e.elementType===i?r:mr(i,r),n);case 3:t:{if(Gr(e),null===t)throw Error(s(387));i=e.pendingProps,r=(o=e.memoizedState).element,Jn(t,e),ii(e,i,null,n);var a=e.memoizedState;if(i=a.element,Z&&o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=o,e.memoizedState=o,256&e.flags){e=Vr(t,e,i,n,r=xr(Error(s(423)),e));break t}if(i!==r){e=Vr(t,e,i,n,r=xr(Error(s(424)),e));break t}for(Z&&(pn=Ut(e.stateNode.containerInfo),fn=e,gn=!0,vn=null,mn=!1),n=In(e,null,i,n),e.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Sn(),i===r){e=ro(t,e,n);break t}Br(t,e,i,n)}e=e.child}return e;case 5:return di(e),null===t&&Dn(e),i=e.type,r=e.pendingProps,o=null!==t?t.memoizedProps:null,a=r.children,U(i,r)?a=null:null!==o&&U(i,o)&&(e.flags|=32),Wr(t,e),Br(t,e,a,n),e.child;case 6:return null===t&&Dn(e),null;case 13:return Qr(t,e,n);case 4:return ci(e,e.stateNode.containerInfo),i=e.pendingProps,null===t?e.child=Bn(e,null,i,n):Br(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,Ir(t,e,i,r=e.elementType===i?r:mr(i,r),n);case 7:return Br(t,e,e.pendingProps,n),e.child;case 8:case 12:return Br(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(i=e.type._context,r=e.pendingProps,o=e.memoizedProps,jn(0,i,a=r.value),null!==o)if(Xe(o.value,a)){if(o.children===r.children&&!de.current){e=ro(t,e,n);break t}}else for(null!==(o=e.child)&&(o.return=e);null!==o;){var l=o.dependencies;if(null!==l){a=o.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===o.tag){(u=$n(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var h=(c=c.shared).pending;null===h?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Gn(o.return,n,e),l.lanes|=n;break}u=u.next}}else if(10===o.tag)a=o.type===e.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(s(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Gn(a,n,e),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===e){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}Br(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,Vn(e,n),i=i(r=Hn(r)),e.flags|=1,Br(t,e,i,n),e.child;case 14:return r=mr(i=e.type,e.pendingProps),Nr(t,e,i,r=mr(i.type,r),n);case 15:return Lr(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:mr(i,r),io(t,e),e.tag=1,ge(i)?(t=!0,be(e)):t=!1,Vn(e,n),wr(e,i,r),Ar(e,i,r,n),Ur(null,e,i,!0,t,n);case 19:return no(t,e,n);case 22:return Or(t,e,n)}throw Error(s(156,e.tag))},e.attemptContinuousHydration=function(t){if(13===t.tag){var e=Yn(t,134217728);if(null!==e)_s(e,t,134217728,Ts());ba(t,134217728)}},e.attemptDiscreteHydration=function(t){if(13===t.tag){var e=Yn(t,1);if(null!==e)_s(e,t,1,Ts());ba(t,1)}},e.attemptHydrationAtCurrentPriority=function(t){if(13===t.tag){var e=Ps(t),n=Yn(t,e);if(null!==n)_s(n,t,e,Ts());ba(t,e)}},e.attemptSynchronousHydration=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Fe(e.pendingLanes);0!==n&&(Re(e,1|n),Rs(e,ze()),0===(6&ns)&&(ys(),Je()))}break;case 13:Ws(function(){var e=Yn(t,1);if(null!==e){var n=Ts();_s(e,t,1,n)}}),ba(t,1)}},e.batchedUpdates=function(t,e){var n=ns;ns|=1;try{return t(e)}finally{0===(ns=n)&&(ys(),Ye&&Je())}},e.createComponentSelector=function(t){return{$$typeof:jo,value:t}},e.createContainer=function(t,e,n,i,r,o,s){return ga(t,e,!1,null,0,i,0,o,s)},e.createHasPseudoClassSelector=function(t){return{$$typeof:Uo,value:t}},e.createHydrationContainer=function(t,e,n,i,r,o,s,a,l){return(t=ga(n,i,!0,t,0,o,0,a,l)).context=ma(null),n=t.current,(o=$n(i=Ts(),r=Ps(n))).callback=void 0!==e&&null!==e?e:null,ti(n,o,r),t.current.lanes=r,_e(t,r,i),Rs(t,i),t},e.createPortal=function(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==i?null:""+i,children:t,containerInfo:e,implementation:n}},e.createRoleSelector=function(t){return{$$typeof:Go,value:t}},e.createTestNameSelector=function(t){return{$$typeof:Vo,value:t}},e.createTextSelector=function(t){return{$$typeof:Ho,value:t}},e.deferredUpdates=function(t){var e=Be,n=es.transition;try{return es.transition=null,Be=16,t()}finally{Be=e,es.transition=n}},e.discreteUpdates=function(t,e,n,i,r){var o=Be,s=es.transition;try{return es.transition=null,Be=1,t(e,n,i,r)}finally{Be=o,es.transition=s,0===ns&&ys()}},e.findAllNodes=Qo,e.findBoundingRects=function(t,e){if(!it)throw Error(s(363));e=Qo(t,e),t=[];for(var n=0;n<e.length;n++)t.push(ot(e[n]));for(e=t.length-1;0<e;e--)for(var i=(n=t[e]).x,r=i+n.width,o=n.y,a=o+n.height,l=e-1;0<=l;l--)if(e!==l){var u=t[l],c=u.x,h=c+u.width,d=u.y,f=d+u.height;if(i>=c&&o>=d&&r<=h&&a<=f){t.splice(e,1);break}if(!(i!==c||n.width!==u.width||f<o||d>a)){d>o&&(u.height+=d-o,u.y=o),f<a&&(u.height=a-d),t.splice(e,1);break}if(!(o!==d||n.height!==u.height||h<i||c>r)){c>i&&(u.width+=c-i,u.x=i),h<r&&(u.width=r-c),t.splice(e,1);break}}return t},e.findHostInstance=va,e.findHostInstanceWithNoPortals=function(t){return null===(t=null!==(t=E(t))?T(t):null)?null:t.stateNode},e.findHostInstanceWithWarning=function(t){return va(t)},e.flushControlled=function(t){var e=ns;ns|=1;var n=es.transition,i=Be;try{es.transition=null,Be=1,t()}finally{Be=i,es.transition=n,0===(ns=e)&&(ys(),Je())}},e.flushPassiveEffects=Qs,e.flushSync=Ws,e.focusWithin=function(t,e){if(!it)throw Error(s(363));for(e=Zo(t=Xo(t),e),e=Array.from(e),t=0;t<e.length;){var n=e[t++];if(!at(n)){if(5===n.tag&&ut(n.stateNode))return!0;for(n=n.child;null!==n;)e.push(n),n=n.sibling}}return!1},e.getCurrentUpdatePriority=function(){return Be},e.getFindAllNodesFailureDescription=function(t,e){if(!it)throw Error(s(363));var n=0,i=[];t=[Xo(t),0];for(var r=0;r<t.length;){var o=t[r++],a=t[r++],l=e[a];if((5!==o.tag||!at(o))&&(Ko(o,l)&&(i.push(Yo(l)),++a>n&&(n=a)),a<e.length))for(o=o.child;null!==o;)t.push(o,a),o=o.sibling}if(n<e.length){for(t=[];n<e.length;n++)t.push(Yo(e[n]));return"findAllNodes was able to match part of the selector:\n "+i.join(" > ")+"\n\nNo matching component was found for:\n "+t.join(" > ")}return null},e.getPublicRootInstance=function(t){return(t=t.current).child?5===t.child.tag?R(t.child.stateNode):t.child.stateNode:null},e.injectIntoDevTools=function(t){if(t={bundleType:t.bundleType,version:t.version,rendererPackageName:t.rendererPackageName,rendererConfig:t.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:a.ReactCurrentDispatcher,findHostInstanceByFiber:wa,findFiberByHostInstance:t.findFiberByHostInstance||Da,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},"undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)t=!1;else{var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)t=!0;else{try{He=e.inject(t),qe=e}catch(n){}t=!!e.checkDCE}}return t},e.isAlreadyRendering=function(){return!1},e.observeVisibleRects=function(t,e,n,i){if(!it)throw Error(s(363));t=Qo(t,e);var r=ct(t,n,i).disconnect;return{disconnect:function(){r()}}},e.registerMutableSourceForHydration=function(t,e){var n=e._getVersion;n=n(e._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[e,n]:t.mutableSourceEagerHydrationData.push(e,n)},e.runWithPriority=function(t,e){var n=Be;try{return Be=t,e()}finally{Be=n}},e.shouldError=function(){return null},e.shouldSuspend=function(){return!1},e.updateContainer=function(t,e,n,i){var r=e.current,o=Ts(),s=Ps(r);return n=ma(n),null===e.context?e.context=n:e.pendingContext=n,(e=$n(o,s)).payload={element:t},null!==(i=void 0===i?null:i)&&(e.callback=i),null!==(t=ti(r,e,s))&&(_s(t,r,s,o),ei(t,r,s)),s},e}},7762:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(94922);function r(t,e){switch(e.type){case"RESOLVE":return{value:e.value,error:void 0};case"REJECT":return{value:!1,error:e.error};case"RESET":return{value:void 0,error:void 0};default:return t}}function o(){return(0,i.useReducer)(r,{value:void 0,error:void 0})}},9375:t=>{"use strict";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}},17402:(t,e,n)=>{"use strict";n.d(e,{A:()=>E});var i=n(89379),r=n(53986),o=n(89261),s=n(94922),a=n(47215),l=Object.prototype.hasOwnProperty;function u(t,e,n){for(n of t.keys())if(c(n,e))return n}function c(t,e){var n,i,r;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&c(t[i],e[i]););return-1===i}if(n===Set){if(t.size!==e.size)return!1;for(i of t){if((r=i)&&"object"===typeof r&&!(r=u(e,r)))return!1;if(!e.has(r))return!1}return!0}if(n===Map){if(t.size!==e.size)return!1;for(i of t){if((r=i[0])&&"object"===typeof r&&!(r=u(e,r)))return!1;if(!c(i[1],e.get(r)))return!1}return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return-1===i}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return-1===i}if(!n||"object"===typeof t){for(n in i=0,t){if(l.call(t,n)&&++i&&!l.call(e,n))return!1;if(!(n in e)||!c(t[n],e[n]))return!1}return Object.keys(e).length===i}}return t!==t&&e!==e}var h=n(78805),d=n(41338),f=n(51938),p=n(64288),g=n(21058),m=n(88648);class v{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(t){this.pdfDocument=t}setViewer(t){this.pdfViewer=t}setExternalLinkRel(t){this.externalLinkRel=t}setExternalLinkTarget(t){this.externalLinkTarget=t}setHash(){}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return(0,p.A)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(t){(0,p.A)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=t}get rotation(){return 0}set rotation(t){}addLinkAttributes(t,e,n){t.href=e,t.rel=this.externalLinkRel||"noopener noreferrer nofollow",t.target=n?"_blank":this.externalLinkTarget||""}goToDestination(t){return new Promise(e=>{(0,p.A)(this.pdfDocument,"PDF document not loaded."),(0,p.A)(t,"Destination is not specified."),"string"===typeof t?this.pdfDocument.getDestination(t).then(e):Array.isArray(t)?e(t):t.then(e)}).then(t=>{(0,p.A)(Array.isArray(t),'"'.concat(t,'" is not a valid destination array.'));const e=t[0];new Promise(t=>{(0,p.A)(this.pdfDocument,"PDF document not loaded."),e instanceof Object?this.pdfDocument.getPageIndex(e).then(e=>{t(e)}).catch(()=>{(0,p.A)(!1,'"'.concat(e,'" is not a valid page reference.'))}):"number"===typeof e?t(e):(0,p.A)(!1,'"'.concat(e,'" is not a valid destination reference.'))}).then(e=>{const n=e+1;(0,p.A)(this.pdfViewer,"PDF viewer is not initialized."),(0,p.A)(n>=1&&n<=this.pagesCount,'"'.concat(n,'" is not a valid page number.')),this.pdfViewer.scrollPageIntoView({dest:t,pageIndex:e,pageNumber:n})})})}goToPage(t){const e=t-1;(0,p.A)(this.pdfViewer,"PDF viewer is not initialized."),(0,p.A)(t>=1&&t<=this.pagesCount,'"'.concat(t,'" is not a valid page number.')),this.pdfViewer.scrollPageIntoView({pageIndex:e,pageNumber:t})}goToXY(){}cachePageRef(){}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}executeNamedAction(){}executeSetOCGState(){}isPageVisible(){return!0}isPageCached(){return!0}navigateTo(t){this.goToDestination(t)}}var y=n(60591);const b={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var w=n(7762),D=n(63185);const A=["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate","scale"],x=["url"],{Tm:C}=f,S=(t,e)=>{switch(e){case b.NEED_PASSWORD:t(prompt("Enter the password to open this PDF file."));break;case b.INCORRECT_PASSWORD:t(prompt("Invalid password. Please try again."));break}};function F(t){return"object"===typeof t&&null!==t&&("data"in t||"range"in t||"url"in t)}const E=(0,s.forwardRef)(function(t,e){let{children:n,className:l,error:u="Failed to load PDF file.",externalLinkRel:b,externalLinkTarget:E,file:k,inputRef:M,imageResourcesPath:T,loading:P="Loading PDF\u2026",noData:_="No PDF file specified.",onItemClick:R,onLoadError:B,onLoadProgress:I,onLoadSuccess:N,onPassword:L=S,onSourceError:O,onSourceSuccess:W,options:z,renderMode:j,rotate:U,scale:G}=t,V=(0,r.A)(t,A);const[H,q]=(0,w.A)(),{value:X,error:K}=H,[Y,Z]=(0,w.A)(),{value:Q,error:J}=Y,$=(0,s.useRef)(new v),tt=(0,s.useRef)([]),et=(0,s.useRef)(void 0),nt=(0,s.useRef)(void 0);k&&k!==et.current&&F(k)&&(g(!c(k,et.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.'),et.current=k),z&&z!==nt.current&&(g(!c(z,nt.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.'),nt.current=z);const it=(0,s.useRef)({scrollPageIntoView:t=>{const{dest:e,pageNumber:n,pageIndex:i=n-1}=t;if(R)return void R({dest:e,pageIndex:i,pageNumber:n});const r=tt.current[i];r?r.scrollIntoView():g(!1,"An internal link leading to page ".concat(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,s.useImperativeHandle)(e,()=>({linkService:$,pages:tt,viewer:it}),[]),(0,s.useEffect)(function(){q({type:"RESET"})},[k,q]);const rt=(0,s.useCallback)(async()=>{if(!k)return null;if("string"===typeof k){if((0,D.zL)(k)){return{data:(0,D.jA)(k)}}return(0,D.qC)(),{url:k}}if(k instanceof C)return{range:k};if((0,D.mw)(k))return{data:k};if(D.Bd&&(0,D.qf)(k)){return{data:await(0,D.h1)(k)}}if((0,p.A)("object"===typeof k,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,p.A)(F(k),"Invalid parameter object: need either .data, .range or .url"),"url"in k&&"string"===typeof k.url){if((0,D.zL)(k.url)){const{url:t}=k,e=(0,r.A)(k,x),n=(0,D.jA)(t);return(0,i.A)({data:n},e)}(0,D.qC)()}return k},[k]);(0,s.useEffect)(()=>{const t=(0,h.A)(rt());return t.promise.then(t=>{q({type:"RESOLVE",value:t})}).catch(t=>{q({type:"REJECT",error:t})}),()=>{(0,D.xL)(t)}},[rt,q]),(0,s.useEffect)(()=>{"undefined"!==typeof X&&(!1!==X?W&&W():K&&(g(!1,K.toString()),O&&O(K)))},[X]),(0,s.useEffect)(function(){Z({type:"RESET"})},[Z,X]),(0,s.useEffect)(function(){if(!X)return;const t=z?(0,i.A)((0,i.A)({},X),z):X,e=f.YE(t);I&&(e.onProgress=I),L&&(e.onPassword=L);const n=e,r=n.promise.then(t=>{Z({type:"RESOLVE",value:t})}).catch(t=>{n.destroyed||Z({type:"REJECT",error:t})});return()=>{r.finally(()=>n.destroy())}},[z,Z,X]),(0,s.useEffect)(()=>{"undefined"!==typeof Q&&(!1!==Q?Q&&(N&&N(Q),tt.current=new Array(Q.numPages),$.current.setDocument(Q)):J&&(g(!1,J.toString()),B&&B(J)))},[Q]),(0,s.useEffect)(function(){$.current.setViewer(it.current),$.current.setExternalLinkRel(b),$.current.setExternalLinkTarget(E)},[b,E]);const ot=(0,s.useCallback)((t,e)=>{tt.current[t]=e},[]),st=(0,s.useCallback)(t=>{delete tt.current[t]},[]),at=(0,s.useMemo)(()=>({imageResourcesPath:T,linkService:$.current,onItemClick:R,pdf:Q,registerPage:ot,renderMode:j,rotate:U,scale:G,unregisterPage:st}),[T,R,Q,ot,j,U,G,st]),lt=(0,s.useMemo)(()=>(0,d.Ay)(V,()=>Q),[V,Q]);return(0,o.jsx)("div",(0,i.A)((0,i.A)({className:(0,a.A)("react-pdf__Document",l),ref:M},lt),{},{children:k?void 0===Q||null===Q?(0,o.jsx)(y.A,{type:"loading",children:"function"===typeof P?P():P}):!1===Q?(0,o.jsx)(y.A,{type:"error",children:"function"===typeof u?u():u}):function(){if(t=at,!Boolean(null===t||void 0===t?void 0:t.pdf))throw new Error("pdf is undefined");var t;const e="function"===typeof n?n(at):n;return(0,o.jsx)(m.A.Provider,{value:at,children:e})}():(0,o.jsx)(y.A,{type:"no-data",children:"function"===typeof _?_():_})}))})},19495:(t,e,n)=>{"use strict";function i(t){var e,n,i,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);o--;){if(n&&null!=(e=t[n]))return e.call(t);if(i&&null!=(e=t[i]))return new r(e.call(t));n="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function r(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then(function(t){return{value:t,done:e}})}return r=function(t){this.s=t,this.n=t.next},r.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new r(t)}n.d(e,{A:()=>i})},20816:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(82284);function r(t){var e=function(t,e){if("object"!=(0,i.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=(0,i.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,i.A)(e)?e:e+""}},21058:t=>{"use strict";var e=function(){};t.exports=e},26754:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){"use strict";function n(t){var e=t.getContext("2d"),n=t.width,i=t.height,r=e.getImageData(0,0,n,i).data,a=o(!0,n,i,r),l=o(!1,n,i,r),u=s(!0,n,i,r),c=s(!1,n,i,r)-u+1,h=l-a+1,d=e.getImageData(u,a,c,h);return t.width=c,t.height=h,e.clearRect(0,0,c,h),e.putImageData(d,0,0),t}function i(t,e,n,i){return{red:i[4*(n*e+t)],green:i[4*(n*e+t)+1],blue:i[4*(n*e+t)+2],alpha:i[4*(n*e+t)+3]}}function r(t,e,n,r){return i(t,e,n,r).alpha}function o(t,e,n,i){for(var o=t?1:-1,s=t?0:n-1;t?s<n:s>-1;s+=o)for(var a=0;a<e;a++)if(r(a,s,e,i))return s;return null}function s(t,e,n,i){for(var o=t?1:-1,s=t?0:e-1;t?s<e:s>-1;s+=o)for(var a=0;a<n;a++)if(r(s,a,e,i))return s;return null}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n}])},30408:t=>{"use strict";t.exports=function(t,e,n,i){for(var r=65535&t,o=t>>>16&65535,s=0;0!==n;){n-=s=n>2e3?2e3:n;do{o=o+(r=r+e[i++]|0)|0}while(--s);r%=65521,o%=65521}return r|o<<16}},31035:(t,e,n)=>{t.exports=n(4167)()},36018:(t,e,n)=>{"use strict";function i(t){let{fast:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e)return t();"requestIdleCallback"in window?requestIdleCallback(t,{timeout:50}):setTimeout(t,1)}function r(){if(typeof navigator>"u")return!1;let t=navigator.userAgent||"",e=t.toLowerCase(),n=e.includes("safari")&&!e.includes("chrome")&&!e.includes("crios")&&!e.includes("fxios")&&!e.includes("android"),i=/applewebkit/i.test(t),r=/mobile/i.test(t),o=!/safari/i.test(t),s=i&&r&&o,a=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(t),l=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(e),u=/ipad|iphone|ipod/.test(e)&&i;return n||s||a||l||u}n.d(e,{a:()=>i,b:()=>r})},36382:(t,e,n)=>{var i=n(74807),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},36928:t=>{"use strict";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}},37839:(t,e,n)=>{"use strict";var i=n(68208),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(u){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){o=!1}for(var s=new i.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",s=0;s<e;s++)n+=String.fromCharCode(t[s]);return n}s[254]=s[254]=1,e.string2buf=function(t){var e,n,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296===(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320===(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),s=0,o=0;s<l;o++)55296===(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320===(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|63&n):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|63&n):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|63&n);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,i,r,o,a=e||t.length,u=new Array(2*a);for(i=0,n=0;n<a;)if((r=t[n++])<128)u[i++]=r;else if((o=s[r])>4)u[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&n<a;)r=r<<6|63&t[n++],o--;o>1?u[i++]=65533:r<65536?u[i++]=r:(r-=65536,u[i++]=55296|r>>10&1023,u[i++]=56320|1023&r)}return l(u,i)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128===(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}},39789:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},41338:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>r});const i=["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onBlur","onInput","onInvalid","onReset","onSubmit","onLoad","onError","onKeyDown","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onChange","onToggle"];function r(t,e){const n={};for(const r of i){const i=t[r];i&&(n[r]=e?t=>i(t,e(r)):i)}return n}},47018:t=>{"use strict";var e=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,n,i,r){var o=e,s=r+i;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^n[a])];return-1^t}},47215:(t,e,n)=>{"use strict";function i(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=i(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function r(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=i(t))&&(r&&(r+=" "),r+=e);return r}n.d(e,{$:()=>r,A:()=>o});const o=r},47356:(t,e,n)=>{"use strict";var i=n(5406),r=n(68208),o=n(37839),s=n(98129),a=n(9375),l=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(s[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"===typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=i.deflateSetDictionary(this.strm,c)))throw new Error(s[n]);this._dict_set=!0}}function c(t,e){var n=new u(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}u.prototype.push=function(t,e){var n,s,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"===typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(u),a.next_out=0,a.avail_out=u),1!==(n=i.deflate(a,s))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==n);return 4===s?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==s||(this.onEnd(0),a.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=u,e.deflate=c,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,c(t,e)}},47460:(t,e)=>{"use strict";e.DefaultEventPriority=16,e.LegacyRoot=0},48863:(t,e,n)=>{"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(e,{A:()=>a});var o=n(94922),s=n(78678);const a=function(t,e){e=Object.assign({},{defaultValue:"defaultValue",value:"value",onChange:"onChange"},e);var n=(0,o.useRef)(e.value in t),i=r((0,o.useState)(t[e.defaultValue]),2),a=i[0],l=i[1],u=n.current?t[e.value]:a;return[u,(0,s.A)(function(i){for(var r="function"===typeof i?u=i(u):i,o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];t[e.onChange]&&t[e.onChange].apply(t,[r].concat(s)),n.current||l(r)})]}},49266:(t,e,n)=>{var i=n(36382).Symbol;t.exports=i},50713:t=>{"use strict";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}},50805:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(94922),r=n(98771),o=n.n(r),s=n(95600),a=n.n(s),l=n(78678);const u=(t,e)=>{const n=(0,i.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},e);const r=(0,i.useRef)(null),s=(0,l.A)(t);return(0,i.useLayoutEffect)(()=>{const t=r.current,e=()=>window.requestAnimationFrame(()=>{t&&s(t)});e();const i=new ResizeObserver((n.current.isDebounce?a():o())(e,n.current.time));return t&&i.observe(t),()=>{i.disconnect()}},[s]),r}},51766:(t,e,n)=>{"use strict";function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(null,arguments)}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function c(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}n.d(e,{A:()=>b});var h=n(31035),d=n(94922);function f(t,e,n){this.x=t,this.y=e,this.time=n||(new Date).getTime()}function p(t,e,n,i){this.startPoint=t,this.control1=e,this.control2=n,this.endPoint=i}function g(t,e){var n=this,i=e||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this.throttle?this._strokeMoveUpdate=function(t,e,n){var i,r,o,s=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),s=null,o=t.apply(i,r),s||(i=r=null)};return function(){var u=Date.now();a||!1!==n.leading||(a=u);var c=e-(u-a);return i=this,r=arguments,c<=0||c>e?(s&&(clearTimeout(s),s=null),a=u,o=t.apply(i,r),s||(i=r=null)):s||!1===n.trailing||(s=setTimeout(l,c)),o}}(g.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=g.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=t,this._ctx=t.getContext("2d"),this.clear(),this._handleMouseDown=function(t){1===t.which&&(n._mouseButtonDown=!0,n._strokeBegin(t))},this._handleMouseMove=function(t){n._mouseButtonDown&&n._strokeMoveUpdate(t)},this._handleMouseUp=function(t){1===t.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(t))},this._handleTouchStart=function(t){if(1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},this._handleTouchMove=function(t){t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},this._handleTouchEnd=function(t){t.target===n._canvas&&(t.preventDefault(),n._strokeEnd(t))},this.on()}f.prototype.velocityFrom=function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):1},f.prototype.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},f.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.time===t.time},p.prototype.length=function(){for(var t=0,e=void 0,n=void 0,i=0;i<=10;i+=1){var r=i/10,o=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var a=o-e,l=s-n;t+=Math.sqrt(a*a+l*l)}e=o,n=s}return t},p.prototype._point=function(t,e,n,i,r){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*i*(1-t)*t*t+r*t*t*t},g.prototype.clear=function(){var t=this._ctx,e=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(),this._isEmpty=!0},g.prototype.fromDataURL=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,r=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/r,s=n.height||this._canvas.height/r;this._reset(),i.src=t,i.onload=function(){e._ctx.drawImage(i,0,0,o,s)},this._isEmpty=!1},g.prototype.toDataURL=function(t){var e;if("image/svg+xml"===t)return this._toSVG();for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(e=this._canvas).toDataURL.apply(e,[t].concat(i))},g.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},g.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},g.prototype.isEmpty=function(){return this._isEmpty},g.prototype._strokeBegin=function(t){this._data.push([]),this._reset(),this._strokeUpdate(t),"function"===typeof this.onBegin&&this.onBegin(t)},g.prototype._strokeUpdate=function(t){var e=t.clientX,n=t.clientY,i=this._createPoint(e,n),r=this._data[this._data.length-1],o=r&&r[r.length-1],s=o&&i.distanceTo(o)<this.minDistance;if(!o||!s){var a=this._addPoint(i),l=a.curve,u=a.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:i.x,y:i.y,time:i.time,color:this.penColor})}},g.prototype._strokeEnd=function(t){var e=this.points.length>2,n=this.points[0];if(!e&&n&&this._drawDot(n),n){var i=this._data[this._data.length-1],r=i[i.length-1];n.equals(r)||i.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"===typeof this.onEnd&&this.onEnd(t)},g.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},g.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},g.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},g.prototype._createPoint=function(t,e,n){var i=this._canvas.getBoundingClientRect();return new f(t-i.left,e-i.top,n||(new Date).getTime())},g.prototype._addPoint=function(t){var e=this.points;if(e.push(t),e.length>2){3===e.length&&e.unshift(e[0]);var n=this._calculateCurveControlPoints(e[0],e[1],e[2]).c2,i=this._calculateCurveControlPoints(e[1],e[2],e[3]).c1,r=new p(e[1],n,i,e[2]),o=this._calculateCurveWidths(r);return e.shift(),{curve:r,widths:o}}return{}},g.prototype._calculateCurveControlPoints=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,o=e.x-n.x,s=e.y-n.y,a=(t.x+e.x)/2,l=(t.y+e.y)/2,u=(e.x+n.x)/2,c=(e.y+n.y)/2,h=Math.sqrt(i*i+r*r),d=Math.sqrt(o*o+s*s),p=d/(h+d),g=u+(a-u)*p,m=c+(l-c)*p,v=e.x-g,y=e.y-m;return{c1:new f(a+v,l+y),c2:new f(u+v,c+y)}},g.prototype._calculateCurveWidths=function(t){var e=t.startPoint,n=t.endPoint,i={start:null,end:null},r=this.velocityFilterWeight*n.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r);return i.start=this._lastWidth,i.end=o,this._lastVelocity=r,this._lastWidth=o,i},g.prototype._strokeWidth=function(t){return Math.max(this.maxWidth/(t+1),this.minWidth)},g.prototype._drawPoint=function(t,e,n){var i=this._ctx;i.moveTo(t,e),i.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1},g.prototype._drawCurve=function(t,e,n){var i=this._ctx,r=n-e,o=Math.floor(t.length());i.beginPath();for(var s=0;s<o;s+=1){var a=s/o,l=a*a,u=l*a,c=1-a,h=c*c,d=h*c,f=d*t.startPoint.x;f+=3*h*a*t.control1.x,f+=3*c*l*t.control2.x,f+=u*t.endPoint.x;var p=d*t.startPoint.y;p+=3*h*a*t.control1.y,p+=3*c*l*t.control2.y,p+=u*t.endPoint.y;var g=e+u*r;this._drawPoint(f,p,g)}i.closePath(),i.fill()},g.prototype._drawDot=function(t){var e=this._ctx,n="function"===typeof this.dotSize?this.dotSize():this.dotSize;e.beginPath(),this._drawPoint(t.x,t.y,n),e.closePath(),e.fill()},g.prototype._fromData=function(t,e,n){for(var i=0;i<t.length;i+=1){var r=t[i];if(r.length>1)for(var o=0;o<r.length;o+=1){var s=r[o],a=new f(s.x,s.y,s.time),l=s.color;if(0===o)this.penColor=l,this._reset(),this._addPoint(a);else if(o!==r.length-1){var u=this._addPoint(a),c=u.curve,h=u.widths;c&&h&&e(c,h,l)}}else this._reset(),n(r[0])}},g.prototype._toSVG=function(){var t=this,e=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),r=n.width/i,o=n.height/i,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttributeNS(null,"width",n.width),s.setAttributeNS(null,"height",n.height),this._fromData(e,function(t,e,n){var i=document.createElement("path");if(!isNaN(t.control1.x)&&!isNaN(t.control1.y)&&!isNaN(t.control2.x)&&!isNaN(t.control2.y)){var r="M "+t.startPoint.x.toFixed(3)+","+t.startPoint.y.toFixed(3)+" C "+t.control1.x.toFixed(3)+","+t.control1.y.toFixed(3)+" "+t.control2.x.toFixed(3)+","+t.control2.y.toFixed(3)+" "+t.endPoint.x.toFixed(3)+","+t.endPoint.y.toFixed(3);i.setAttribute("d",r),i.setAttribute("stroke-width",(2.25*e.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),s.appendChild(i)}},function(e){var n=document.createElement("circle"),i="function"===typeof t.dotSize?t.dotSize():t.dotSize;n.setAttribute("r",i),n.setAttribute("cx",e.x),n.setAttribute("cy",e.y),n.setAttribute("fill",e.color),s.appendChild(n)});var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+o+'" width="'+r+'" height="'+o+'">',l=s.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=s.childNodes;u.innerHTML="";for(var h=0;h<c.length;h+=1)u.appendChild(c[h].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},g.prototype.fromData=function(t){var e=this;this.clear(),this._fromData(t,function(t,n){return e._drawCurve(t,n.start,n.end)},function(t){return e._drawDot(t)}),this._data=t},g.prototype.toData=function(){return this._data};const m=g;var v=n(26754),y=["canvasProps","clearOnResize"],b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,t);var e,n,r,o=function(t){var e=u();return function(){var n,i=l(t);if(e){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return c(this,n)}}(h);function h(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))).staticThis=t.constructor,t._sigPad=null,t._canvas=null,t.setRef=function(e){t._canvas=e,null===t._canvas&&(t._sigPad=null)},t._excludeOurProps=function(){var e=t.props;return e.canvasProps,e.clearOnResize,function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(e,y)},t.componentDidMount=function(){var e=t.getCanvas();t._sigPad=new m(e,t._excludeOurProps()),t._resizeCanvas(),t.on()},t.componentWillUnmount=function(){t.off()},t.componentDidUpdate=function(){Object.assign(t._sigPad,t._excludeOurProps())},t.getCanvas=function(){if(null===t._canvas)throw t.staticThis.refNullError;return t._canvas},t.getTrimmedCanvas=function(){var e=t.getCanvas(),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0),v(n)},t.getSignaturePad=function(){if(null===t._sigPad)throw t.staticThis.refNullError;return t._sigPad},t._checkClearOnResize=function(){t.props.clearOnResize&&t._resizeCanvas()},t._resizeCanvas=function(){var e,n,i=null!==(e=t.props.canvasProps)&&void 0!==e?e:{},r=i.width,o=i.height;if("undefined"===typeof r||"undefined"===typeof o){var s=t.getCanvas(),a=Math.max(null!==(n=window.devicePixelRatio)&&void 0!==n?n:1,1);"undefined"===typeof r&&(s.width=s.offsetWidth*a),"undefined"===typeof o&&(s.height=s.offsetHeight*a),s.getContext("2d").scale(a,a),t.clear()}},t.render=function(){var e=t.props.canvasProps;return d.createElement("canvas",i({ref:t.setRef},e))},t.on=function(){return window.addEventListener("resize",t._checkClearOnResize),t.getSignaturePad().on()},t.off=function(){return window.removeEventListener("resize",t._checkClearOnResize),t.getSignaturePad().off()},t.clear=function(){return t.getSignaturePad().clear()},t.isEmpty=function(){return t.getSignaturePad().isEmpty()},t.fromDataURL=function(e,n){return t.getSignaturePad().fromDataURL(e,n)},t.toDataURL=function(e,n){return t.getSignaturePad().toDataURL(e,n)},t.fromData=function(e){return t.getSignaturePad().fromData(e)},t.toData=function(){return t.getSignaturePad().toData()},t}return e=h,n&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(d.Component);b.propTypes={velocityFilterWeight:h.number,minWidth:h.number,maxWidth:h.number,minDistance:h.number,dotSize:h.oneOfType([h.number,h.func]),penColor:h.string,throttle:h.number,onEnd:h.func,onBegin:h.func,canvasProps:h.object,clearOnResize:h.bool},b.defaultProps={clearOnResize:!0},b.refNullError=new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.")},51938:(t,e,n)=>{"use strict";function i(t,e,n){e||(e=[]);var i=e.length++;return Object.defineProperty({},"_",{set:function(r){e[i]=r,t.apply(n,e)}})}n.d(e,{dU:()=>uf,ng:()=>G,EA:()=>Pl,Tm:()=>uc,D6:()=>Uu,YE:()=>ec});var r=n(89379);function o(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(t,e){o(t,e),e.add(t)}function a(t,e,n){o(t,e),e.set(t,n)}function l(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function u(t,e,n){return n(l(t,e))}function c(t,e){return t.get(l(t,e))}function h(t,e,n){return t.set(l(t,e),n),n}var d,f,p,g,m,v,y,b,w,D,A,x,C,S,F,E,k,M,T=n(64467),P=n(19495);const _="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type),R=[.001,0,0,.001,0,0],B=1.35,I=1,N=2,L=4,O=16,W=32,z=64,j=128,U=256,G={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},V="pdfjs_internal_editor_",H={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},q={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},X=0,K=1,Y=2,Z=3,Q=3,J=4,$={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},tt={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},et=1,nt=2,it=3,rt=4,ot=5,st={ERRORS:0,WARNINGS:1,INFOS:5},at={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},lt=0,ut=1,ct=2,ht=3;let dt=st.WARNINGS;function ft(t){Number.isInteger(t)&&(dt=t)}function pt(){return dt}function gt(t){dt>=st.INFOS&&console.info("Info: ".concat(t))}function mt(t){dt>=st.WARNINGS&&console.warn("Warning: ".concat(t))}function vt(t){throw new Error(t)}function yt(t,e){t||vt(e)}function bt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;if(n&&"string"===typeof t){if(n.addDefaultProtocol&&t.startsWith("www.")){const e=t.match(/\./g);(null===e||void 0===e?void 0:e.length)>=2&&(t="http://".concat(t))}if(n.tryConvertEncoding)try{t=decodeURIComponent(escape(t))}catch(r){}}const i=e?URL.parse(t,e):URL.parse(t);return function(t){switch(null===t||void 0===t?void 0:t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i)?i:null}function wt(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=URL.parse(t);return i?(i.hash=e,i.href):n&&bt(t,"http://example.com")?t.split("#",1)[0]+"".concat(e?"#".concat(e):""):""}function Dt(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(t,e,{value:n,enumerable:!i,configurable:!0,writable:!1}),n}const At=function(){function t(t,e){this.message=t,this.name=e}return t.prototype=new Error,t.constructor=t,t}();class xt extends At{constructor(t,e){super(t,"PasswordException"),this.code=e}}class Ct extends At{constructor(t,e){super(t,"UnknownErrorException"),this.details=e}}class St extends At{constructor(t){super(t,"InvalidPDFException")}}class Ft extends At{constructor(t,e,n){super(t,"ResponseException"),this.status=e,this.missing=n}}class Et extends At{constructor(t){super(t,"FormatError")}}class kt extends At{constructor(t){super(t,"AbortException")}}function Mt(t){"object"===typeof t&&void 0!==(null===t||void 0===t?void 0:t.length)||vt("Invalid argument for bytesToString");const e=t.length,n=8192;if(e<n)return String.fromCharCode.apply(null,t);const i=[];for(let r=0;r<e;r+=n){const o=Math.min(r+n,e),s=t.subarray(r,o);i.push(String.fromCharCode.apply(null,s))}return i.join("")}function Tt(t){"string"!==typeof t&&vt("Invalid argument for stringToBytes");const e=t.length,n=new Uint8Array(e);for(let i=0;i<e;++i)n[i]=255&t.charCodeAt(i);return n}class Pt{static get isLittleEndian(){return Dt(this,"isLittleEndian",function(){const t=new Uint8Array(4);return t[0]=1,1===new Uint32Array(t.buffer,0,1)[0]}())}static get isEvalSupported(){return Dt(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(t){return!1}}())}static get isOffscreenCanvasSupported(){return Dt(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}static get isImageDecoderSupported(){return Dt(this,"isImageDecoderSupported","undefined"!==typeof ImageDecoder)}static get platform(){const{platform:t,userAgent:e}=navigator;return Dt(this,"platform",{isAndroid:e.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:e.includes("Firefox")})}static get isCSSRoundSupported(){var t,e;return Dt(this,"isCSSRoundSupported",null===(t=globalThis.CSS)||void 0===t||null===(e=t.supports)||void 0===e?void 0:e.call(t,"width: round(1.5px, 1px)"))}}const _t=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0"));class Rt{static makeHexColor(t,e,n){return"#".concat(_t[t]).concat(_t[e]).concat(_t[n])}static domMatrixToTransform(t){return[t.a,t.b,t.c,t.d,t.e,t.f]}static scaleMinMax(t,e){let n;t[0]?(t[0]<0&&(n=e[0],e[0]=e[2],e[2]=n),e[0]*=t[0],e[2]*=t[0],t[3]<0&&(n=e[1],e[1]=e[3],e[3]=n),e[1]*=t[3],e[3]*=t[3]):(n=e[0],e[0]=e[1],e[1]=n,n=e[2],e[2]=e[3],e[3]=n,t[1]<0&&(n=e[1],e[1]=e[3],e[3]=n),e[1]*=t[1],e[3]*=t[1],t[2]<0&&(n=e[0],e[0]=e[2],e[2]=n),e[0]*=t[2],e[2]*=t[2]),e[0]+=t[4],e[1]+=t[5],e[2]+=t[4],e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static multiplyByDOMMatrix(t,e){return[t[0]*e.a+t[2]*e.b,t[1]*e.a+t[3]*e.b,t[0]*e.c+t[2]*e.d,t[1]*e.c+t[3]*e.d,t[0]*e.e+t[2]*e.f+t[4],t[1]*e.e+t[3]*e.f+t[5]]}static applyTransform(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=t[n],r=t[n+1];t[n]=i*e[0]+r*e[2]+e[4],t[n+1]=i*e[1]+r*e[3]+e[5]}static applyTransformToBezier(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5];for(let u=0;u<6;u+=2){const e=t[n+u],c=t[n+u+1];t[n+u]=e*i+c*o+a,t[n+u+1]=e*r+c*s+l}}static applyInverseTransform(t,e){const n=t[0],i=t[1],r=e[0]*e[3]-e[1]*e[2];t[0]=(n*e[3]-i*e[2]+e[2]*e[5]-e[4]*e[3])/r,t[1]=(-n*e[1]+i*e[0]+e[4]*e[1]-e[5]*e[0])/r}static axialAlignedBoundingBox(t,e,n){const i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=t[0],c=t[1],h=t[2],d=t[3];let f=i*u+a,p=f,g=i*h+a,m=g,v=s*c+l,y=v,b=s*d+l,w=b;if(0!==r||0!==o){const t=r*u,e=r*h,n=o*c,i=o*d;f+=n,m+=n,g+=i,p+=i,v+=t,w+=t,b+=e,y+=e}n[0]=Math.min(n[0],f,g,p,m),n[1]=Math.min(n[1],v,b,y,w),n[2]=Math.max(n[2],f,g,p,m),n[3]=Math.max(n[3],v,b,y,w)}static inverseTransform(t){const e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t,e){const n=t[0],i=t[1],r=t[2],o=t[3],s=n**2+i**2,a=n*r+i*o,l=r**2+o**2,u=(s+l)/2,c=Math.sqrt(u**2-(s*l-a**2));e[0]=Math.sqrt(u+c||1),e[1]=Math.sqrt(u-c||1)}static normalizeRect(t){const e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}static intersect(t,e){const n=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),i=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(n>i)return null;const r=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),o=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return r>o?null:[n,r,i,o]}static pointBoundingBox(t,e,n){n[0]=Math.min(n[0],t),n[1]=Math.min(n[1],e),n[2]=Math.max(n[2],t),n[3]=Math.max(n[3],e)}static rectBoundingBox(t,e,n,i,r){r[0]=Math.min(r[0],t,n),r[1]=Math.min(r[1],e,i),r[2]=Math.max(r[2],t,n),r[3]=Math.max(r[3],e,i)}static bezierBoundingBox(t,e,n,i,r,o,s,a,u){u[0]=Math.min(u[0],t,s),u[1]=Math.min(u[1],e,a),u[2]=Math.max(u[2],t,s),u[3]=Math.max(u[3],e,a),l(Rt,this,It).call(this,t,n,r,s,e,i,o,a,3*(3*(n-r)-t+s),6*(t-2*n+r),3*(n-t),u),l(Rt,this,It).call(this,t,n,r,s,e,i,o,a,3*(3*(i-o)-e+a),6*(e-2*i+o),3*(i-e),u)}}function Bt(t,e,n,i,r,o,s,a,l,u){if(l<=0||l>=1)return;const c=1-l,h=l*l,d=h*l,f=c*(c*(c*t+3*l*e)+3*h*n)+d*i,p=c*(c*(c*r+3*l*o)+3*h*s)+d*a;u[0]=Math.min(u[0],f),u[1]=Math.min(u[1],p),u[2]=Math.max(u[2],f),u[3]=Math.max(u[3],p)}function It(t,e,n,i,r,o,s,a,u,c,h,f){if(Math.abs(u)<1e-12)return void(Math.abs(c)>=1e-12&&l(d,this,Bt).call(this,t,e,n,i,r,o,s,a,-h/c,f));const p=c**2-4*h*u;if(p<0)return;const g=Math.sqrt(p),m=2*u;l(d,this,Bt).call(this,t,e,n,i,r,o,s,a,(-c+g)/m,f),l(d,this,Bt).call(this,t,e,n,i,r,o,s,a,(-c-g)/m,f)}d=Rt;let Nt=null,Lt=null;function Ot(){if("function"===typeof crypto.randomUUID)return crypto.randomUUID();const t=new Uint8Array(32);return crypto.getRandomValues(t),Mt(t)}const Wt="pdfjs_internal_id_";function zt(t,e,n){return Math.min(Math.max(t,e),n)}function jt(t){return Uint8Array.prototype.toBase64?t.toBase64():btoa(Mt(t))}"function"!==typeof Promise.try&&(Promise.try=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return new Promise(e=>{e(t(...n))})}),"function"!==typeof Math.sumPrecise&&(Math.sumPrecise=function(t){return t.reduce((t,e)=>t+e,0)});class Ut{static textContent(t){const e=[],n={items:e,styles:Object.create(null)};return function t(n){var i;if(!n)return;let r=null;const o=n.name;if("#text"===o)r=n.value;else{if(!Ut.shouldBuildText(o))return;null!==n&&void 0!==n&&null!==(i=n.attributes)&&void 0!==i&&i.textContent?r=n.attributes.textContent:n.value&&(r=n.value)}if(null!==r&&e.push({str:r}),n.children)for(const e of n.children)t(e)}(t),n}static shouldBuildText(t){return!("textarea"===t||"input"===t||"option"===t||"select"===t)}}class Gt{static setupStorage(t,e,n,i,r){const o=i.getValue(e,{value:null});switch(n.name){case"textarea":if(null!==o.value&&(t.textContent=o.value),"print"===r)break;t.addEventListener("input",t=>{i.setValue(e,{value:t.target.value})});break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(o.value===n.attributes.xfaOn?t.setAttribute("checked",!0):o.value===n.attributes.xfaOff&&t.removeAttribute("checked"),"print"===r)break;t.addEventListener("change",t=>{i.setValue(e,{value:t.target.checked?t.target.getAttribute("xfaOn"):t.target.getAttribute("xfaOff")})})}else{if(null!==o.value&&t.setAttribute("value",o.value),"print"===r)break;t.addEventListener("input",t=>{i.setValue(e,{value:t.target.value})})}break;case"select":if(null!==o.value){t.setAttribute("value",o.value);for(const t of n.children)t.attributes.value===o.value?t.attributes.selected=!0:t.attributes.hasOwnProperty("selected")&&delete t.attributes.selected}t.addEventListener("input",t=>{const n=t.target.options,r=-1===n.selectedIndex?"":n[n.selectedIndex].value;i.setValue(e,{value:r})})}}static setAttributes(t){let{html:e,element:n,storage:i=null,intent:r,linkService:o}=t;const{attributes:s}=n,a=e instanceof HTMLAnchorElement;"radio"===s.type&&(s.name="".concat(s.name,"-").concat(r));for(const[l,u]of Object.entries(s))if(null!==u&&void 0!==u)switch(l){case"class":u.length&&e.setAttribute(l,u.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",u);break;case"style":Object.assign(e.style,u);break;case"textContent":e.textContent=u;break;default:(!a||"href"!==l&&"newWindow"!==l)&&e.setAttribute(l,u)}a&&o.addLinkAttributes(e,s.href,s.newWindow),i&&s.dataId&&this.setupStorage(e,s.dataId,n,i)}static render(t){const e=t.annotationStorage,n=t.linkService,i=t.xfaHtml,r=t.intent||"display",o=document.createElement(i.name);i.attributes&&this.setAttributes({html:o,element:i,intent:r,linkService:n});const s="richText"!==r,a=t.div;if(a.append(o),t.viewport){const e="matrix(".concat(t.viewport.transform.join(","),")");a.style.transform=e}s&&a.setAttribute("class","xfaLayer xfaFont");const l=[];if(0===i.children.length){if(i.value){const t=document.createTextNode(i.value);o.append(t),s&&Ut.shouldBuildText(i.name)&&l.push(t)}return{textDivs:l}}const u=[[i,-1,o]];for(;u.length>0;){var c,h;const[t,i,o]=u.at(-1);if(i+1===t.children.length){u.pop();continue}const a=t.children[++u.at(-1)[1]];if(null===a)continue;const{name:d}=a;if("#text"===d){const t=document.createTextNode(a.value);l.push(t),o.append(t);continue}const f=null!==a&&void 0!==a&&null!==(c=a.attributes)&&void 0!==c&&c.xmlns?document.createElementNS(a.attributes.xmlns,d):document.createElement(d);if(o.append(f),a.attributes&&this.setAttributes({html:f,element:a,storage:e,intent:r,linkService:n}),(null===(h=a.children)||void 0===h?void 0:h.length)>0)u.push([a,-1,f]);else if(a.value){const t=document.createTextNode(a.value);s&&Ut.shouldBuildText(d)&&l.push(t),f.append(t)}}for(const d of a.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))d.setAttribute("readOnly",!0);return{textDivs:l}}static update(t){const e="matrix(".concat(t.viewport.transform.join(","),")");t.div.style.transform=e,t.div.hidden=!1}}const Vt="http://www.w3.org/2000/svg";class Ht{}async function qt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";if(Jt(t,document.baseURI)){const n=await fetch(t);if(!n.ok)throw new Error(n.statusText);switch(e){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,i)=>{const r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType=e,r.onreadystatechange=()=>{if(r.readyState===XMLHttpRequest.DONE)if(200!==r.status&&0!==r.status)i(new Error(r.statusText));else{switch(e){case"arraybuffer":case"blob":case"json":return void n(r.response)}n(r.responseText)}},r.send(null)})}f=Ht,(0,T.A)(Ht,"CSS",96),(0,T.A)(Ht,"PDF",72),(0,T.A)(Ht,"PDF_TO_CSS_UNITS",f.CSS/f.PDF);class Xt{constructor(t){let{viewBox:e,userUnit:n,scale:i,rotation:r,offsetX:o=0,offsetY:s=0,dontFlip:a=!1}=t;this.viewBox=e,this.userUnit=n,this.scale=i,this.rotation=r,this.offsetX=o,this.offsetY=s,i*=n;const l=(e[2]+e[0])/2,u=(e[3]+e[1])/2;let c,h,d,f,p,g,m,v;switch(r%=360,r<0&&(r+=360),r){case 180:c=-1,h=0,d=0,f=1;break;case 90:c=0,h=1,d=1,f=0;break;case 270:c=0,h=-1,d=-1,f=0;break;case 0:c=1,h=0,d=0,f=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(d=-d,f=-f),0===c?(p=Math.abs(u-e[1])*i+o,g=Math.abs(l-e[0])*i+s,m=(e[3]-e[1])*i,v=(e[2]-e[0])*i):(p=Math.abs(l-e[0])*i+o,g=Math.abs(u-e[1])*i+s,m=(e[2]-e[0])*i,v=(e[3]-e[1])*i),this.transform=[c*i,h*i,d*i,f*i,p-c*i*l-d*i*u,g-h*i*l-f*i*u],this.width=m,this.height=v}get rawDims(){const t=this.viewBox;return Dt(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone(){let{scale:t=this.scale,rotation:e=this.rotation,offsetX:n=this.offsetX,offsetY:i=this.offsetY,dontFlip:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Xt({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:e,offsetX:n,offsetY:i,dontFlip:r})}convertToViewportPoint(t,e){const n=[t,e];return Rt.applyTransform(n,this.transform),n}convertToViewportRectangle(t){const e=[t[0],t[1]];Rt.applyTransform(e,this.transform);const n=[t[2],t[3]];return Rt.applyTransform(n,this.transform),[e[0],e[1],n[0],n[1]]}convertToPdfPoint(t,e){const n=[t,e];return Rt.applyInverseTransform(n,this.transform),n}}class Kt extends At{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(t,"RenderingCancelledException"),this.extraDelay=e}}function Yt(t){const e=t.length;let n=0;for(;n<e&&""===t[n].trim();)n++;return"data:"===t.substring(n,n+5).toLowerCase()}function Zt(t){return"string"===typeof t&&/\.pdf$/i.test(t)}class Qt{constructor(){(0,T.A)(this,"started",Object.create(null)),(0,T.A)(this,"times",[])}time(t){t in this.started&&mt("Timer is already running for ".concat(t)),this.started[t]=Date.now()}timeEnd(t){t in this.started||mt("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){const t=[];let e=0;for(const{name:n}of this.times)e=Math.max(n.length,e);for(const{name:n,start:i,end:r}of this.times)t.push("".concat(n.padEnd(e)," ").concat(r-i,"ms\n"));return t.join("")}}function Jt(t,e){const n=e?URL.parse(t,e):URL.parse(t);return"http:"===(null===n||void 0===n?void 0:n.protocol)||"https:"===(null===n||void 0===n?void 0:n.protocol)}function $t(t){t.preventDefault()}function te(t){t.preventDefault(),t.stopPropagation()}class ee{static toDateObject(t){if(t instanceof Date)return t;if(!t||"string"!==typeof t)return null;l(ee,this,ne)._||(ne._=l(ee,this,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?")));const e=l(ee,this,ne)._.exec(t);if(!e)return null;const n=parseInt(e[1],10);let i=parseInt(e[2],10);i=i>=1&&i<=12?i-1:0;let r=parseInt(e[3],10);r=r>=1&&r<=31?r:1;let o=parseInt(e[4],10);o=o>=0&&o<=23?o:0;let s=parseInt(e[5],10);s=s>=0&&s<=59?s:0;let a=parseInt(e[6],10);a=a>=0&&a<=59?a:0;const u=e[7]||"Z";let c=parseInt(e[8],10);c=c>=0&&c<=23?c:0;let h=parseInt(e[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===u?(o+=c,s+=h):"+"===u&&(o-=c,s-=h),new Date(Date.UTC(n,i,r,o,s,a))}}var ne={_:void 0};function ie(t){if(t.startsWith("#")){const e=parseInt(t.slice(1),16);return[(16711680&e)>>16,(65280&e)>>8,255&e]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map(t=>parseInt(t)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(mt('Not a valid color format: "'.concat(t,'"')),[0,0,0])}function re(t){const{a:e,b:n,c:i,d:r,e:o,f:s}=t.getTransform();return[e,n,i,r,o,s]}function oe(t){const{a:e,b:n,c:i,d:r,e:o,f:s}=t.getTransform().invertSelf();return[e,n,i,r,o,s]}function se(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e instanceof Xt){const{pageWidth:i,pageHeight:r}=e.rawDims,{style:o}=t,s=Pt.isCSSRoundSupported,a="var(--total-scale-factor) * ".concat(i,"px"),l="var(--total-scale-factor) * ".concat(r,"px"),u=s?"round(down, ".concat(a,", var(--scale-round-x))"):"calc(".concat(a,")"),c=s?"round(down, ".concat(l,", var(--scale-round-y))"):"calc(".concat(l,")");n&&e.rotation%180!==0?(o.width=c,o.height=u):(o.width=u,o.height=c)}i&&t.setAttribute("data-main-rotation",e.rotation)}class ae{constructor(){const{pixelRatio:t}=ae;this.sx=t,this.sy=t}get scaled(){return 1!==this.sx||1!==this.sy}get symmetric(){return this.sx===this.sy}limitCanvas(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=1/0,s=1/0,a=1/0;(n=ae.capPixels(n,r))>0&&(o=Math.sqrt(n/(t*e))),-1!==i&&(s=i/t,a=i/e);const l=Math.min(o,s,a);return(this.sx>l||this.sy>l)&&(this.sx=l,this.sy=l,!0)}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(t,e){if(e>=0){const n=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+e/100));return t>0?Math.min(t,n):n}return t}}const le=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"];class ue{static get isDarkMode(){var t,e;return Dt(this,"isDarkMode",!(null===(t=window)||void 0===t||null===(e=t.matchMedia)||void 0===e||!e.call(t,"(prefers-color-scheme: dark)").matches))}}function ce(t,e){const n=t[0]/255,i=t[1]/255,r=t[2]/255,o=Math.max(n,i,r),s=Math.min(n,i,r),a=(o+s)/2;if(o===s)e[0]=e[1]=0;else{const t=o-s;switch(e[1]=a<.5?t/(o+s):t/(2-o-s),o){case n:e[0]=60*((i-r)/t+(i<r?6:0));break;case i:e[0]=60*((r-n)/t+2);break;case r:e[0]=60*((n-i)/t+4)}}e[2]=a}function he(t,e){const n=t[0],i=t[1],r=t[2],o=(1-Math.abs(2*r-1))*i,s=o*(1-Math.abs(n/60%2-1)),a=r-o/2;switch(Math.floor(n/60)){case 0:e[0]=o+a,e[1]=s+a,e[2]=a;break;case 1:e[0]=s+a,e[1]=o+a,e[2]=a;break;case 2:e[0]=a,e[1]=o+a,e[2]=s+a;break;case 3:e[0]=a,e[1]=s+a,e[2]=o+a;break;case 4:e[0]=s+a,e[1]=a,e[2]=o+a;break;case 5:case 6:e[0]=o+a,e[1]=a,e[2]=s+a}}function de(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function fe(t,e,n){he(t,n),n.map(de);const i=.2126*n[0]+.7152*n[1]+.0722*n[2];he(e,n),n.map(de);const r=.2126*n[0]+.7152*n[1]+.0722*n[2];return i>r?(i+.05)/(r+.05):(r+.05)/(i+.05)}const pe=new Map;function ge(t,e){let{html:n,dir:i,className:r}=t;const o=document.createDocumentFragment();if("string"===typeof n){const t=document.createElement("p");t.dir=i||"auto";const e=n.split(/(?:\r\n?|\n)/);for(let n=0,i=e.length;n<i;++n){const r=e[n];t.append(document.createTextNode(r)),n<i-1&&t.append(document.createElement("br"))}o.append(t)}else Gt.render({xfaHtml:n,div:o,intent:"richText"});o.firstChild.classList.add("richText",r),e.append(o)}var me=new WeakMap,ve=new WeakMap,ye=new WeakMap,be=new WeakMap,we=new WeakMap,De=new WeakMap,Ae=new WeakMap,xe=new WeakMap,Ce=new WeakSet;class Se{constructor(t){s(this,Ce),a(this,me,null),a(this,ve,null),a(this,ye,void 0),a(this,be,null),a(this,we,null),a(this,De,null),a(this,Ae,null),a(this,xe,null),h(ye,this,t),Pe._||(Pe._=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"}))}render(){const t=h(me,this,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");const e=c(ye,this)._uiManager._signal;e instanceof AbortSignal&&!e.aborted&&(t.addEventListener("contextmenu",$t,{signal:e}),t.addEventListener("pointerdown",Fe,{signal:e}));const n=h(be,this,document.createElement("div"));n.className="buttons",t.append(n);const i=c(ye,this).toolbarPosition;if(i){const{style:e}=t,n="ltr"===c(ye,this)._uiManager.direction?1-i[0]:i[0];e.insetInlineEnd="".concat(100*n,"%"),e.top="calc(".concat(100*i[1],"% + var(--editor-toolbar-vert-offset))")}return t}get div(){return c(me,this)}hide(){var t;c(me,this).classList.add("hidden"),null===(t=c(ve,this))||void 0===t||t.hideDropdown()}show(){var t,e;c(me,this).classList.remove("hidden"),null===(t=c(we,this))||void 0===t||t.shown(),null===(e=c(De,this))||void 0===e||e.shown()}addDeleteButton(){const{editorType:t,_uiManager:e}=c(ye,this),n=document.createElement("button");n.classList.add("basic","deleteButton"),n.tabIndex=0,n.setAttribute("data-l10n-id",Pe._[t]),l(Ce,this,Me).call(this,n)&&n.addEventListener("click",t=>{e.delete()},{signal:e._signal}),c(be,this).append(n)}async addAltText(t){const e=await t.render();l(Ce,this,Me).call(this,e),c(be,this).append(e,u(Ce,this,Te)),h(we,this,t)}addComment(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(c(De,this))return;const n=t.renderForToolbar();if(!n)return;l(Ce,this,Me).call(this,n);const i=h(Ae,this,u(Ce,this,Te));e?(c(be,this).insertBefore(n,e),c(be,this).insertBefore(i,e)):c(be,this).append(n,i),h(De,this,t),t.toolbar=this}addColorPicker(t){if(c(ve,this))return;h(ve,this,t);const e=t.renderButton();l(Ce,this,Me).call(this,e),c(be,this).append(e,u(Ce,this,Te))}async addEditSignatureButton(t){const e=h(xe,this,await t.renderEditButton(c(ye,this)));l(Ce,this,Me).call(this,e),c(be,this).append(e,u(Ce,this,Te))}removeButton(t){var e,n;if("comment"===t)null===(e=c(De,this))||void 0===e||e.removeToolbarCommentButton(),h(De,this,null),null===(n=c(Ae,this))||void 0===n||n.remove(),h(Ae,this,null)}async addButton(t,e){switch(t){case"colorPicker":this.addColorPicker(e);break;case"altText":await this.addAltText(e);break;case"editSignature":await this.addEditSignatureButton(e);break;case"delete":this.addDeleteButton();break;case"comment":this.addComment(e)}}async addButtonBefore(t,e,n){const i=c(be,this).querySelector(n);i&&"comment"===t&&this.addComment(e,i)}updateEditSignatureButton(t){c(xe,this)&&(c(xe,this).title=t)}remove(){var t;c(me,this).remove(),null===(t=c(ve,this))||void 0===t||t.destroy(),h(ve,this,null)}}function Fe(t){t.stopPropagation()}function Ee(t){c(ye,this)._focusEventsAllowed=!1,te(t)}function ke(t){c(ye,this)._focusEventsAllowed=!0,te(t)}function Me(t){const e=c(ye,this)._uiManager._signal;return e instanceof AbortSignal&&!e.aborted&&(t.addEventListener("focusin",l(Ce,this,Ee).bind(this),{capture:!0,signal:e}),t.addEventListener("focusout",l(Ce,this,ke).bind(this),{capture:!0,signal:e}),t.addEventListener("contextmenu",$t,{signal:e}),!0)}function Te(t){const e=document.createElement("div");return e.className="divider",e}var Pe={_:null},_e=new WeakMap,Re=new WeakMap,Be=new WeakMap,Ie=new WeakSet;class Ne{constructor(t){s(this,Ie),a(this,_e,null),a(this,Re,null),a(this,Be,void 0),h(Be,this,t)}show(t,e,n){const[i,r]=l(Ie,this,Oe).call(this,e,n),{style:o}=c(Re,this)||h(Re,this,l(Ie,this,Le).call(this));t.append(c(Re,this)),o.insetInlineEnd="".concat(100*i,"%"),o.top="calc(".concat(100*r,"% + var(--editor-toolbar-vert-offset))")}hide(){c(Re,this).remove()}}function Le(){const t=h(Re,this,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar");const e=c(Be,this)._signal;e instanceof AbortSignal&&!e.aborted&&t.addEventListener("contextmenu",$t,{signal:e});const n=h(_e,this,document.createElement("div"));return n.className="buttons",t.append(n),c(Be,this).hasCommentManager()&&l(Ie,this,We).call(this,"commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{c(Be,this).commentSelection("floating_button")}),l(Ie,this,We).call(this,"highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{c(Be,this).highlightSelection("floating_button")}),t}function Oe(t,e){let n=0,i=0;for(const r of t){const t=r.y+r.height;if(t<n)continue;const o=r.x+(e?r.width:0);t>n?(i=o,n=t):e?o>i&&(i=o):o<i&&(i=o)}return[e?1-i:i,n]}function We(t,e,n,i){const r=document.createElement("button");r.classList.add("basic",t),r.tabIndex=0,r.setAttribute("data-l10n-id",e);const o=document.createElement("span");r.append(o),o.className="visuallyHidden",o.setAttribute("data-l10n-id",n);const s=c(Be,this)._signal;s instanceof AbortSignal&&!s.aborted&&(r.addEventListener("contextmenu",$t,{signal:s}),r.addEventListener("click",i,{signal:s})),c(_e,this).append(r)}function ze(t,e,n){for(const i of n)e.addEventListener(i,t[i].bind(t))}var je=new WeakMap;class Ue{constructor(){a(this,je,0)}get id(){var t,e;return"".concat(V).concat((h(je,this,(t=c(je,this),e=t++,t)),e))}}var Ge=new WeakMap,Ve=new WeakMap,He=new WeakMap,qe=new WeakSet;class Xe{constructor(){s(this,qe),a(this,Ge,Ot()),a(this,Ve,0),a(this,He,null)}static get _isSVGFittingCanvas(){const t=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),e=new Image;e.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>';return Dt(this,"_isSVGFittingCanvas",e.decode().then(()=>(t.drawImage(e,0,0,1,1,0,0,1,3),0===new Uint32Array(t.getImageData(0,0,1,1).data.buffer)[0])))}async getFromFile(t){const{lastModified:e,name:n,size:i,type:r}=t;return l(qe,this,Ke).call(this,"".concat(e,"_").concat(n,"_").concat(i,"_").concat(r),t)}async getFromUrl(t){return l(qe,this,Ke).call(this,t,t)}async getFromBlob(t,e){const n=await e;return l(qe,this,Ke).call(this,t,n)}async getFromId(t){c(He,this)||h(He,this,new Map);const e=c(He,this).get(t);if(!e)return null;if(e.bitmap)return e.refCounter+=1,e;if(e.file)return this.getFromFile(e.file);if(e.blobPromise){const{blobPromise:t}=e;return delete e.blobPromise,this.getFromBlob(e.id,t)}return this.getFromUrl(e.url)}getFromCanvas(t,e){var n,i,r;c(He,this)||h(He,this,new Map);let o=c(He,this).get(t);if(null!==(r=o)&&void 0!==r&&r.bitmap)return o.refCounter+=1,o;const s=new OffscreenCanvas(e.width,e.height);return s.getContext("2d").drawImage(e,0,0),o={bitmap:s.transferToImageBitmap(),id:"image_".concat(c(Ge,this),"_").concat((h(Ve,this,(n=c(Ve,this),i=n++,n)),i)),refCounter:1,isSvg:!1},c(He,this).set(t,o),c(He,this).set(o.id,o),o}getSvgUrl(t){const e=c(He,this).get(t);return null!==e&&void 0!==e&&e.isSvg?e.svgUrl:null}deleteId(t){var e;c(He,this)||h(He,this,new Map);const n=c(He,this).get(t);if(!n)return;if(n.refCounter-=1,0!==n.refCounter)return;const{bitmap:i}=n;if(!n.url&&!n.file){const t=new OffscreenCanvas(i.width,i.height);t.getContext("bitmaprenderer").transferFromImageBitmap(i),n.blobPromise=t.convertToBlob()}null===(e=i.close)||void 0===e||e.call(i),n.bitmap=null}isValidId(t){return t.startsWith("image_".concat(c(Ge,this),"_"))}}async function Ke(t,e){var n;c(He,this)||h(He,this,new Map);let i=c(He,this).get(t);if(null===i)return null;if(null!==(n=i)&&void 0!==n&&n.bitmap)return i.refCounter+=1,i;try{var r,o;let t;if(i||(i={bitmap:null,id:"image_".concat(c(Ge,this),"_").concat((h(Ve,this,(r=c(Ve,this),o=r++,r)),o)),refCounter:0,isSvg:!1}),"string"===typeof e?(i.url=e,t=await qt(e,"blob")):e instanceof File?t=i.file=e:e instanceof Blob&&(t=e),"image/svg+xml"===t.type){const e=p._isSVGFittingCanvas,n=new FileReader,r=new Image,o=new Promise((t,o)=>{r.onload=()=>{i.bitmap=r,i.isSvg=!0,t()},n.onload=async()=>{const t=i.svgUrl=n.result;r.src=await e?"".concat(t,"#svgView(preserveAspectRatio(none))"):t},r.onerror=n.onerror=o});n.readAsDataURL(t),await o}else i.bitmap=await createImageBitmap(t);i.refCounter=1}catch(s){mt(s),i=null}return c(He,this).set(t,i),i&&c(He,this).set(i.id,i),i}p=Xe;var Ye=new WeakMap,Ze=new WeakMap,Qe=new WeakMap,Je=new WeakMap;class $e{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;a(this,Ye,[]),a(this,Ze,!1),a(this,Qe,void 0),a(this,Je,-1),h(Qe,this,t)}add(t){let{cmd:e,undo:n,post:i,mustExec:r,type:o=NaN,overwriteIfSameType:s=!1,keepUndo:a=!1}=t;if(r&&e(),c(Ze,this))return;const l={cmd:e,undo:n,post:i,type:o};if(-1===c(Je,this))return c(Ye,this).length>0&&(c(Ye,this).length=0),h(Je,this,0),void c(Ye,this).push(l);if(s&&c(Ye,this)[c(Je,this)].type===o)return a&&(l.undo=c(Ye,this)[c(Je,this)].undo),void(c(Ye,this)[c(Je,this)]=l);const u=c(Je,this)+1;u===c(Qe,this)?c(Ye,this).splice(0,1):(h(Je,this,u),u<c(Ye,this).length&&c(Ye,this).splice(u)),c(Ye,this).push(l)}undo(){if(-1===c(Je,this))return;h(Ze,this,!0);const{undo:t,post:e}=c(Ye,this)[c(Je,this)];t(),null===e||void 0===e||e(),h(Ze,this,!1),h(Je,this,c(Je,this)-1)}redo(){if(c(Je,this)<c(Ye,this).length-1){h(Je,this,c(Je,this)+1),h(Ze,this,!0);const{cmd:t,post:e}=c(Ye,this)[c(Je,this)];t(),null===e||void 0===e||e(),h(Ze,this,!1)}}hasSomethingToUndo(){return-1!==c(Je,this)}hasSomethingToRedo(){return c(Je,this)<c(Ye,this).length-1}cleanType(t){if(-1!==c(Je,this)){for(let e=c(Je,this);e>=0;e--)if(c(Ye,this)[e].type!==t)return c(Ye,this).splice(e+1,c(Je,this)-e),void h(Je,this,e);c(Ye,this).length=0,h(Je,this,-1)}}destroy(){h(Ye,this,null)}}var tn=new WeakSet;class en{constructor(t){s(this,tn),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:e}=Pt.platform;for(const[n,i,r={}]of t)for(const t of n){const n=t.startsWith("mac+");e&&n?(this.callbacks.set(t.slice(4),{callback:i,options:r}),this.allKeys.add(t.split("+").at(-1))):e||n||(this.callbacks.set(t,{callback:i,options:r}),this.allKeys.add(t.split("+").at(-1)))}}exec(t,e){if(!this.allKeys.has(e.key))return;const n=this.callbacks.get(l(tn,this,nn).call(this,e));if(!n)return;const{callback:i,options:{bubbles:r=!1,args:o=[],checker:s=null}}=n;s&&!s(t,e)||(i.bind(t,...o,e)(),r||te(e))}}function nn(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const e=this.buffer.join("+");return this.buffer.length=0,e}class rn{get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return function(t){const e=document.createElement("span");e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e);for(const n of t.keys()){e.style.color=n;const i=window.getComputedStyle(e).color;t.set(n,ie(i))}e.remove()}(t),Dt(this,"_colors",t)}convert(t){const e=ie(t);if(!window.matchMedia("(forced-colors: active)").matches)return e;for(const[n,i]of this._colors)if(i.every((t,n)=>t===e[n]))return rn._colorsMapping.get(n);return e}getHexCode(t){const e=this._colors.get(t);return e?Rt.makeHexColor(...e):t}}(0,T.A)(rn,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));var on=new WeakMap,sn=new WeakMap,an=new WeakMap,ln=new WeakMap,un=new WeakMap,cn=new WeakMap,hn=new WeakMap,dn=new WeakMap,fn=new WeakMap,pn=new WeakMap,gn=new WeakMap,mn=new WeakMap,vn=new WeakMap,yn=new WeakMap,bn=new WeakMap,wn=new WeakMap,Dn=new WeakMap,An=new WeakMap,xn=new WeakMap,Cn=new WeakMap,Sn=new WeakMap,Fn=new WeakMap,En=new WeakMap,kn=new WeakMap,Mn=new WeakMap,Tn=new WeakMap,Pn=new WeakMap,_n=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,In=new WeakMap,Nn=new WeakMap,Ln=new WeakMap,On=new WeakMap,Wn=new WeakMap,zn=new WeakMap,jn=new WeakMap,Un=new WeakMap,Gn=new WeakMap,Vn=new WeakMap,Hn=new WeakMap,qn=new WeakMap,Xn=new WeakMap,Kn=new WeakMap,Yn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Jn=new WeakMap,$n=new WeakMap,ti=new WeakSet;class ei{static get _keyboardManager(){const t=ei.prototype,e=t=>c(Zn,t).contains(document.activeElement)&&"BUTTON"!==document.activeElement.tagName&&t.hasSomethingToControl(),n=(t,e)=>{let{target:n}=e;if(n instanceof HTMLInputElement){const{type:t}=n;return"text"!==t&&"number"!==t}return!0},i=this.TRANSLATE_SMALL,r=this.TRANSLATE_BIG;return Dt(this,"_keyboardManager",new en([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],t.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:n}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(t,e)=>{let{target:n}=e;return!(n instanceof HTMLButtonElement)&&c(Zn,t).contains(n)&&!t.isEnterHandled}}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(t,e)=>{let{target:n}=e;return!(n instanceof HTMLButtonElement)&&c(Zn,t).contains(document.activeElement)}}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-r,0],checker:e}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[r,0],checker:e}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-r],checker:e}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,r],checker:e}]]))}constructor(t,e,n,i,r,o,u,d,f,p,g,m,v,y,b,w){s(this,ti),a(this,on,new AbortController),a(this,sn,null),a(this,an,null),a(this,ln,new Map),a(this,un,new Map),a(this,cn,null),a(this,hn,null),a(this,dn,null),a(this,fn,new $e),a(this,pn,null),a(this,gn,null),a(this,mn,null),a(this,vn,0),a(this,yn,new Set),a(this,bn,null),a(this,wn,null),a(this,Dn,new Set),(0,T.A)(this,"_editorUndoBar",null),a(this,An,!1),a(this,xn,!1),a(this,Cn,!1),a(this,Sn,null),a(this,Fn,null),a(this,En,null),a(this,kn,null),a(this,Mn,!1),a(this,Tn,null),a(this,Pn,new Ue),a(this,_n,!1),a(this,Rn,!1),a(this,Bn,!1),a(this,In,null),a(this,Nn,null),a(this,Ln,null),a(this,On,null),a(this,Wn,null),a(this,zn,H.NONE),a(this,jn,new Set),a(this,Un,null),a(this,Gn,null),a(this,Vn,null),a(this,Hn,null),a(this,qn,null),a(this,Xn,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1}),a(this,Kn,[0,0]),a(this,Yn,null),a(this,Zn,null),a(this,Qn,null),a(this,Jn,null),a(this,$n,null);const D=this._signal=c(on,this).signal;h(Zn,this,t),h(Qn,this,e),h(Jn,this,n),h(cn,this,i),h(pn,this,r),h(Gn,this,o),h(qn,this,d),this._eventBus=u,u._on("editingaction",this.onEditingAction.bind(this),{signal:D}),u._on("pagechanging",this.onPageChanging.bind(this),{signal:D}),u._on("scalechanging",this.onScaleChanging.bind(this),{signal:D}),u._on("rotationchanging",this.onRotationChanging.bind(this),{signal:D}),u._on("setpreference",this.onSetPreference.bind(this),{signal:D}),u._on("switchannotationeditorparams",t=>this.updateParams(t.type,t.value),{signal:D}),window.addEventListener("pointerdown",()=>{h(Rn,this,!0)},{capture:!0,signal:D}),window.addEventListener("pointerup",()=>{h(Rn,this,!1)},{capture:!0,signal:D}),l(ti,this,ai).call(this),l(ti,this,pi).call(this),l(ti,this,ci).call(this),h(hn,this,d.annotationStorage),h(Sn,this,d.filterFactory),h(Vn,this,f),h(kn,this,p||null),h(An,this,g),h(xn,this,m),h(Cn,this,v),h(Wn,this,y||null),this.viewParameters={realScale:Ht.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=b||null,this._supportsPinchToZoom=!1!==w,null===r||void 0===r||r.setSidebarUiManager(this)}destroy(){var t,e,n,i,r,o,s,a,l;null===(t=c($n,this))||void 0===t||t.resolve(),h($n,this,null),null===(e=c(on,this))||void 0===e||e.abort(),h(on,this,null),this._signal=null;for(const u of c(un,this).values())u.destroy();c(un,this).clear(),c(ln,this).clear(),c(Dn,this).clear(),null===(n=c(On,this))||void 0===n||n.clear(),h(sn,this,null),c(jn,this).clear(),c(fn,this).destroy(),null===(i=c(cn,this))||void 0===i||i.destroy(),null===(r=c(pn,this))||void 0===r||r.destroy(),null===(o=c(Gn,this))||void 0===o||o.destroy(),null===(s=c(Tn,this))||void 0===s||s.hide(),h(Tn,this,null),null===(a=c(Ln,this))||void 0===a||a.destroy(),h(Ln,this,null),h(an,this,null),c(Fn,this)&&(clearTimeout(c(Fn,this)),h(Fn,this,null)),c(Yn,this)&&(clearTimeout(c(Yn,this)),h(Yn,this,null)),null===(l=this._editorUndoBar)||void 0===l||l.destroy(),h(qn,this,null)}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return c(Wn,this)}get useNewAltTextFlow(){return c(xn,this)}get useNewAltTextWhenAddingImage(){return c(Cn,this)}get hcmFilter(){return Dt(this,"hcmFilter",c(Vn,this)?c(Sn,this).addHCMFilter(c(Vn,this).foreground,c(Vn,this).background):"none")}get direction(){return Dt(this,"direction",getComputedStyle(c(Zn,this)).direction)}get _highlightColors(){return Dt(this,"_highlightColors",c(kn,this)?new Map(c(kn,this).split(",").map(t=>((t=t.split("=").map(t=>t.trim()))[1]=t[1].toUpperCase(),t))):null)}get highlightColors(){const{_highlightColors:t}=this;if(!t)return Dt(this,"highlightColors",null);const e=new Map,n=!!c(Vn,this);for(const[i,r]of t){const t=i.endsWith("_HCM");n&&t?e.set(i.replace("_HCM",""),r):n||t||e.set(i,r)}return Dt(this,"highlightColors",e)}get highlightColorNames(){return Dt(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}getNonHCMColor(t){if(!this._highlightColors)return t;const e=this.highlightColorNames.get(t);return this._highlightColors.get(e)||t}getNonHCMColorName(t){return this.highlightColorNames.get(t)||t}setCurrentDrawingSession(t){t?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),h(mn,this,t)}setMainHighlightColorPicker(t){h(Ln,this,t)}editAltText(t){var e;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null===(e=c(cn,this))||void 0===e||e.editAltText(this,t,n)}hasCommentManager(){return!!c(pn,this)}editComment(t,e,n,i){var r;null===(r=c(pn,this))||void 0===r||r.showDialog(this,t,e,n,i)}selectComment(t,e){const n=c(un,this).get(t),i=null===n||void 0===n?void 0:n.getEditorByUID(e);null===i||void 0===i||i.toggleComment(!0,!0)}updateComment(t){var e;null===(e=c(pn,this))||void 0===e||e.updateComment(t.getData())}updatePopupColor(t){var e;null===(e=c(pn,this))||void 0===e||e.updatePopupColor(t)}removeComment(t){var e;null===(e=c(pn,this))||void 0===e||e.removeComments([t.uid])}toggleComment(t,e){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;null===(n=c(pn,this))||void 0===n||n.toggleCommentPopup(t,e,i)}makeCommentColor(t,e){var n;return t&&(null===(n=c(pn,this))||void 0===n?void 0:n.makeCommentColor(t,e))||null}getCommentDialogElement(){var t;return(null===(t=c(pn,this))||void 0===t?void 0:t.dialogElement)||null}async waitForEditorsRendered(t){if(c(un,this).has(t-1))return;const{resolve:e,promise:n}=Promise.withResolvers(),i=n=>{n.pageNumber===t&&(this._eventBus._off("editorsrendered",i),e())};this._eventBus.on("editorsrendered",i),await n}getSignature(t){var e;null===(e=c(Gn,this))||void 0===e||e.getSignature({uiManager:this,editor:t})}get signatureManager(){return c(Gn,this)}switchToMode(t,e){this._eventBus.on("annotationeditormodechanged",e,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t})}setPreference(t,e){this._eventBus.dispatch("setpreference",{source:this,name:t,value:e})}onSetPreference(t){let{name:e,value:n}=t;if("enableNewAltTextWhenAddingImage"===e)h(Cn,this,n)}onPageChanging(t){let{pageNumber:e}=t;h(vn,this,e-1)}focusMainContainer(){c(Zn,this).focus()}findParent(t,e){for(const n of c(un,this).values()){const{x:i,y:r,width:o,height:s}=n.div.getBoundingClientRect();if(t>=i&&t<=i+o&&e>=r&&e<=r+s)return n}return null}disableUserSelect(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c(Qn,this).classList.toggle("noUserSelect",t)}addShouldRescale(t){c(Dn,this).add(t)}removeShouldRescale(t){c(Dn,this).delete(t)}onScaleChanging(t){var e;let{scale:n}=t;this.commitOrRemove(),this.viewParameters.realScale=n*Ht.PDF_TO_CSS_UNITS;for(const i of c(Dn,this))i.onScaleChanging();null===(e=c(mn,this))||void 0===e||e.onScaleChanging()}onRotationChanging(t){let{pagesRotation:e}=t;this.commitOrRemove(),this.viewParameters.rotation=e}highlightSelection(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}=n,a=n.toString(),u=l(ti,this,ni).call(this,n).closest(".textLayer"),h=this.getSelectionBoxes(u);if(!h)return;n.empty();const d=l(ti,this,ii).call(this,u),f=c(zn,this)===H.NONE,p=()=>{const n=null===d||void 0===d?void 0:d.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:h,anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s,text:a});f&&this.showAllEditors("highlight",!0,!0),e&&(null===n||void 0===n||n.editComment())};f?this.switchToMode(H.HIGHLIGHT,p):p()}commentSelection(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.highlightSelection(t,!0)}getAndRemoveDataFromAnnotationStorage(t){if(!c(hn,this))return null;const e="".concat(V).concat(t),n=c(hn,this).getRawValue(e);return n&&c(hn,this).remove(e),n}addToAnnotationStorage(t){t.isEmpty()||!c(hn,this)||c(hn,this).has(t.id)||c(hn,this).setValue(t.id,t)}a11yAlert(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=c(Jn,this);n&&(n.setAttribute("data-l10n-id",t),e?n.setAttribute("data-l10n-args",JSON.stringify(e)):n.removeAttribute("data-l10n-args"))}blur(){if(this.isShiftKeyDown=!1,c(Mn,this)&&(h(Mn,this,!1),l(ti,this,si).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const e of c(jn,this))if(e.div.contains(t)){h(Nn,this,[e,t]),e._focusEventsAllowed=!1;break}}focus(){if(!c(Nn,this))return;const[t,e]=c(Nn,this);h(Nn,this,null),e.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),e.focus()}addEditListeners(){l(ti,this,ci).call(this),l(ti,this,di).call(this)}removeEditListeners(){l(ti,this,hi).call(this),l(ti,this,fi).call(this)}dragOver(t){for(const{type:e}of t.dataTransfer.items)for(const n of c(wn,this))if(n.isHandlingMimeForPasting(e))return t.dataTransfer.dropEffect="copy",void t.preventDefault()}drop(t){for(const e of t.dataTransfer.items)for(const n of c(wn,this))if(n.isHandlingMimeForPasting(e.type))return n.paste(e,this.currentLayer),void t.preventDefault()}copy(t){var e;if(t.preventDefault(),null===(e=c(sn,this))||void 0===e||e.commitOrRemove(),!this.hasSelection)return;const n=[];for(const i of c(jn,this)){const t=i.serialize(!0);t&&n.push(t)}0!==n.length&&t.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(t){this.copy(t),this.delete()}async paste(t){t.preventDefault();const{clipboardData:e}=t;for(const o of e.items)for(const t of c(wn,this))if(t.isHandlingMimeForPasting(o.type))return void t.paste(o,this.currentLayer);let n=e.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(r){return void mt('paste: "'.concat(r.message,'".'))}if(!Array.isArray(n))return;this.unselectAll();const i=this.currentLayer;try{const t=[];for(const o of n){const e=await i.deserialize(o);if(!e)return;t.push(e)}const e=()=>{for(const e of t)l(ti,this,bi).call(this,e);l(ti,this,Ai).call(this,t)},r=()=>{for(const e of t)e.remove()};this.addCommands({cmd:e,undo:r,mustExec:!0})}catch(r){mt('paste: "'.concat(r.message,'".'))}}keydown(t){this.isShiftKeyDown||"Shift"!==t.key||(this.isShiftKeyDown=!0),c(zn,this)===H.NONE||this.isEditorHandlingKeyboard||ei._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&"Shift"===t.key&&(this.isShiftKeyDown=!1,c(Mn,this)&&(h(Mn,this,!1),l(ti,this,si).call(this,"main_toolbar")))}onEditingAction(t){let{name:e}=t;switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu")}}setEditingState(t){t?(l(ti,this,li).call(this),l(ti,this,di).call(this),l(ti,this,gi).call(this,{isEditing:c(zn,this)!==H.NONE,isEmpty:l(ti,this,Di).call(this),hasSomethingToUndo:c(fn,this).hasSomethingToUndo(),hasSomethingToRedo:c(fn,this).hasSomethingToRedo(),hasSelectedEditor:!1})):(l(ti,this,ui).call(this),l(ti,this,fi).call(this),l(ti,this,gi).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!c(wn,this)){h(wn,this,t);for(const t of c(wn,this))l(ti,this,mi).call(this,t.defaultPropertiesToUpdate)}}getId(){return c(Pn,this).id}get currentLayer(){return c(un,this).get(c(vn,this))}getLayer(t){return c(un,this).get(t)}get currentPageIndex(){return c(vn,this)}addLayer(t){c(un,this).set(t.pageIndex,t),c(_n,this)?t.enable():t.disable()}removeLayer(t){c(un,this).delete(t.pageIndex)}async updateMode(t){var e,n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(c(zn,this)!==t&&(!c($n,this)||(await c($n,this).promise,c($n,this)))){var a,u;if(h($n,this,Promise.withResolvers()),null===(e=c(mn,this))||void 0===e||e.commitOrRemove(),c(zn,this)===H.POPUP)null===(a=c(pn,this))||void 0===a||a.hideSidebar();if(null===(n=c(pn,this))||void 0===n||n.destroyPopup(),h(zn,this,t),t===H.NONE){var d;this.setEditingState(!1),l(ti,this,yi).call(this);for(const t of c(ln,this).values())t.hideStandaloneCommentButton();return null===(d=this._editorUndoBar)||void 0===d||d.hide(),this.toggleComment(null),void c($n,this).resolve()}for(const t of c(ln,this).values())t.addStandaloneCommentButton();if(t===H.SIGNATURE)await(null===(u=c(Gn,this))||void 0===u?void 0:u.loadSignatures());this.setEditingState(!0),await l(ti,this,vi).call(this),this.unselectAll();for(const e of c(un,this).values())e.updateMode(t);if(t===H.POPUP){var f;c(an,this)||h(an,this,await c(qn,this).getAnnotationsByType(new Set(c(wn,this).map(t=>t._editorType))));const t=new Set,e=[];for(const n of c(ln,this).values()){const{annotationElementId:i,hasComment:r,deleted:o}=n;i&&t.add(i),r&&!o&&e.push(n.getData())}for(const n of c(an,this)){const{id:i,popupRef:r,contentsObj:o}=n;r&&null!==o&&void 0!==o&&o.str&&!t.has(i)&&!c(yn,this).has(i)&&e.push(n)}null===(f=c(pn,this))||void 0===f||f.showSidebar(e)}if(!i)return r&&this.addNewEditorFromKeyboard(),void c($n,this).resolve();for(const t of c(ln,this).values())t.uid===i?(this.setSelected(t),s?t.editComment():o?t.enterInEditMode():t.focus()):t.unselect();c($n,this).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t.mode!==c(zn,this)&&this._eventBus.dispatch("switchannotationeditormode",(0,r.A)({source:this},t))}updateParams(t,e){if(c(wn,this)){switch(t){case q.CREATE:return void this.currentLayer.addNewEditor(e);case q.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(c(Hn,this)||h(Hn,this,new Map)).set(t,e),this.showAllEditors("highlight",e)}if(this.hasSelection)for(const n of c(jn,this))n.updateParams(t,e);else for(const n of c(wn,this))n.updateDefaultParams(t,e)}}showAllEditors(t,e){var n,i;for(const r of c(ln,this).values())r.editorType===t&&r.show(e);(null===(n=null===(i=c(Hn,this))||void 0===i?void 0:i.get(q.HIGHLIGHT_SHOW_ALL))||void 0===n||n)!==e&&l(ti,this,mi).call(this,[[q.HIGHLIGHT_SHOW_ALL,e]])}enableWaiting(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(c(Bn,this)!==t){h(Bn,this,t);for(const e of c(un,this).values())t?e.disableClick():e.enableClick(),e.div.classList.toggle("waiting",t)}}*getEditors(t){for(const e of c(ln,this).values())e.pageIndex===t&&(yield e)}getEditor(t){return c(ln,this).get(t)}addEditor(t){c(ln,this).set(t.id,t)}removeEditor(t){var e,n;(t.div.contains(document.activeElement)&&(c(Fn,this)&&clearTimeout(c(Fn,this)),h(Fn,this,setTimeout(()=>{this.focusMainContainer(),h(Fn,this,null)},0))),c(ln,this).delete(t.id),t.annotationElementId)&&(null===(e=c(On,this))||void 0===e||e.delete(t.annotationElementId));(this.unselect(t),t.annotationElementId&&c(yn,this).has(t.annotationElementId))||(null===(n=c(hn,this))||void 0===n||n.remove(t.id))}addDeletedAnnotationElement(t){c(yn,this).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return c(yn,this).has(t)}removeDeletedAnnotationElement(t){c(yn,this).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}setActiveEditor(t){c(sn,this)!==t&&(h(sn,this,t),t&&l(ti,this,mi).call(this,t.propertiesToUpdate))}updateUI(t){u(ti,this,wi)===t&&l(ti,this,mi).call(this,t.propertiesToUpdate)}updateUIForDefaultProperties(t){l(ti,this,mi).call(this,t.defaultPropertiesToUpdate)}toggleSelected(t){if(c(jn,this).has(t))return c(jn,this).delete(t),t.unselect(),void l(ti,this,gi).call(this,{hasSelectedEditor:this.hasSelection});c(jn,this).add(t),t.select(),l(ti,this,mi).call(this,t.propertiesToUpdate),l(ti,this,gi).call(this,{hasSelectedEditor:!0})}setSelected(t){var e;this.updateToolbar({mode:t.mode,editId:t.id}),null===(e=c(mn,this))||void 0===e||e.commitOrRemove();for(const n of c(jn,this))n!==t&&n.unselect();c(jn,this).clear(),c(jn,this).add(t),t.select(),l(ti,this,mi).call(this,t.propertiesToUpdate),l(ti,this,gi).call(this,{hasSelectedEditor:!0})}isSelected(t){return c(jn,this).has(t)}get firstSelectedEditor(){return c(jn,this).values().next().value}unselect(t){t.unselect(),c(jn,this).delete(t),l(ti,this,gi).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==c(jn,this).size}get isEnterHandled(){return 1===c(jn,this).size&&this.firstSelectedEditor.isEnterHandled}undo(){var t;c(fn,this).undo(),l(ti,this,gi).call(this,{hasSomethingToUndo:c(fn,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:l(ti,this,Di).call(this)}),null===(t=this._editorUndoBar)||void 0===t||t.hide()}redo(){c(fn,this).redo(),l(ti,this,gi).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:c(fn,this).hasSomethingToRedo(),isEmpty:l(ti,this,Di).call(this)})}addCommands(t){c(fn,this).add(t),l(ti,this,gi).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:l(ti,this,Di).call(this)})}cleanUndoStack(t){c(fn,this).cleanType(t)}delete(){var t;this.commitOrRemove();const e=null===(t=this.currentLayer)||void 0===t?void 0:t.endDrawingSession(!0);if(!this.hasSelection&&!e)return;const n=e?[e]:[...c(jn,this)],i=()=>{for(const t of n)l(ti,this,bi).call(this,t)};this.addCommands({cmd:()=>{var t;null===(t=this._editorUndoBar)||void 0===t||t.show(i,1===n.length?n[0].editorType:n.length);for(const e of n)e.remove()},undo:i,mustExec:!0})}commitOrRemove(){var t;null===(t=c(sn,this))||void 0===t||t.commitOrRemove()}hasSomethingToControl(){return c(sn,this)||this.hasSelection}selectAll(){for(const t of c(jn,this))t.commit();l(ti,this,Ai).call(this,c(ln,this).values())}unselectAll(){var t;if((!c(sn,this)||(c(sn,this).commitOrRemove(),c(zn,this)===H.NONE))&&(null===(t=c(mn,this))||void 0===t||!t.commitOrRemove())&&this.hasSelection){for(const t of c(jn,this))t.unselect();c(jn,this).clear(),l(ti,this,gi).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(t,e){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),!this.hasSelection)return;c(Kn,this)[0]+=t,c(Kn,this)[1]+=e;const[n,i]=c(Kn,this),r=[...c(jn,this)];c(Yn,this)&&clearTimeout(c(Yn,this)),h(Yn,this,setTimeout(()=>{h(Yn,this,null),c(Kn,this)[0]=c(Kn,this)[1]=0,this.addCommands({cmd:()=>{for(const t of r)c(ln,this).has(t.id)&&(t.translateInPage(n,i),t.translationDone())},undo:()=>{for(const t of r)c(ln,this).has(t.id)&&(t.translateInPage(-n,-i),t.translationDone())},mustExec:!1})},1e3));for(const o of r)o.translateInPage(t,e),o.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),h(bn,this,new Map);for(const t of c(jn,this))c(bn,this).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!c(bn,this))return!1;this.disableUserSelect(!1);const t=c(bn,this);h(bn,this,null);let e=!1;for(const[{x:i,y:r,pageIndex:o},s]of t)s.newX=i,s.newY=r,s.newPageIndex=o,e||(e=i!==s.savedX||r!==s.savedY||o!==s.savedPageIndex);if(!e)return!1;const n=(t,e,n,i)=>{if(c(ln,this).has(t.id)){const r=c(un,this).get(i);r?t._setParentAndPosition(r,e,n):(t.pageIndex=i,t.x=e,t.y=n)}};return this.addCommands({cmd:()=>{for(const[e,{newX:i,newY:r,newPageIndex:o}]of t)n(e,i,r,o)},undo:()=>{for(const[e,{savedX:i,savedY:r,savedPageIndex:o}]of t)n(e,i,r,o)},mustExec:!0}),!0}dragSelectedEditors(t,e){if(c(bn,this))for(const n of c(bn,this).keys())n.drag(t,e)}rebuild(t){if(null===t.parent){const e=this.getLayer(t.pageIndex);e?(e.changeParent(t),e.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){var t;return(null===(t=this.getActive())||void 0===t?void 0:t.shouldGetKeyboardEvents())||1===c(jn,this).size&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return c(sn,this)===t}getActive(){return c(sn,this)}getMode(){return c(zn,this)}isEditingMode(){return c(zn,this)!==H.NONE}get imageManager(){return Dt(this,"imageManager",new Xe)}getSelectionBoxes(t){if(!t)return null;const e=document.getSelection();for(let l=0,u=e.rangeCount;l<u;l++)if(!t.contains(e.getRangeAt(l).commonAncestorContainer))return null;const{x:n,y:i,width:r,height:o}=t.getBoundingClientRect();let s;switch(t.getAttribute("data-main-rotation")){case"90":s=(t,e,s,a)=>({x:(e-i)/o,y:1-(t+s-n)/r,width:a/o,height:s/r});break;case"180":s=(t,e,s,a)=>({x:1-(t+s-n)/r,y:1-(e+a-i)/o,width:s/r,height:a/o});break;case"270":s=(t,e,s,a)=>({x:1-(e+a-i)/o,y:(t-n)/r,width:a/o,height:s/r});break;default:s=(t,e,s,a)=>({x:(t-n)/r,y:(e-i)/o,width:s/r,height:a/o})}const a=[];for(let l=0,u=e.rangeCount;l<u;l++){const t=e.getRangeAt(l);if(!t.collapsed)for(const{x:e,y:n,width:i,height:r}of t.getClientRects())0!==i&&0!==r&&a.push(s(e,n,i,r))}return 0===a.length?null:a}addChangedExistingAnnotation(t){let{annotationElementId:e,id:n}=t;(c(dn,this)||h(dn,this,new Map)).set(e,n)}removeChangedExistingAnnotation(t){var e;let{annotationElementId:n}=t;null===(e=c(dn,this))||void 0===e||e.delete(n)}renderAnnotationElement(t){var e;const n=null===(e=c(dn,this))||void 0===e?void 0:e.get(t.data.id);if(!n)return;const i=c(hn,this).getRawValue(n);i&&(c(zn,this)!==H.NONE||i.hasBeenModified)&&i.renderAnnotationElement(t)}setMissingCanvas(t,e,n){var i;const r=null===(i=c(On,this))||void 0===i?void 0:i.get(t);r&&(r.setCanvas(e,n),c(On,this).delete(t))}addMissingCanvas(t,e){(c(On,this)||h(On,this,new Map)).set(t,e)}}function ni(t){let{anchorNode:e}=t;return e.nodeType===Node.TEXT_NODE?e.parentElement:e}function ii(t){const{currentLayer:e}=this;if(e.hasTextLayer(t))return e;for(const n of c(un,this).values())if(n.hasTextLayer(t))return n;return null}function ri(){const t=document.getSelection();if(!t||t.isCollapsed)return;const e=l(ti,this,ni).call(this,t).closest(".textLayer"),n=this.getSelectionBoxes(e);n&&(c(Tn,this)||h(Tn,this,new Ne(this)),c(Tn,this).show(e,n,"ltr"===this.direction))}function oi(){var t;const e=document.getSelection();if(!e||e.isCollapsed){var n;if(c(Un,this))null===(n=c(Tn,this))||void 0===n||n.hide(),h(Un,this,null),l(ti,this,gi).call(this,{hasSelectedText:!1});return}const{anchorNode:i}=e;if(i===c(Un,this))return;const r=l(ti,this,ni).call(this,e).closest(".textLayer");var o;if(r){if(null===(t=c(Tn,this))||void 0===t||t.hide(),h(Un,this,i),l(ti,this,gi).call(this,{hasSelectedText:!0}),(c(zn,this)===H.HIGHLIGHT||c(zn,this)===H.NONE)&&(c(zn,this)===H.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),h(Mn,this,this.isShiftKeyDown),!this.isShiftKeyDown)){const t=c(zn,this)===H.HIGHLIGHT?l(ti,this,ii).call(this,r):null;if(null===t||void 0===t||t.toggleDrawing(),c(Rn,this)){const e=new AbortController,n=this.combinedSignal(e),i=n=>{"pointerup"===n.type&&0!==n.button||(e.abort(),null===t||void 0===t||t.toggleDrawing(!0),"pointerup"===n.type&&l(ti,this,si).call(this,"main_toolbar"))};window.addEventListener("pointerup",i,{signal:n}),window.addEventListener("blur",i,{signal:n})}else null===t||void 0===t||t.toggleDrawing(!0),l(ti,this,si).call(this,"main_toolbar")}}else c(Un,this)&&(null===(o=c(Tn,this))||void 0===o||o.hide(),h(Un,this,null),l(ti,this,gi).call(this,{hasSelectedText:!1}))}function si(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";c(zn,this)===H.HIGHLIGHT?this.highlightSelection(t):c(An,this)&&l(ti,this,ri).call(this)}function ai(){document.addEventListener("selectionchange",l(ti,this,oi).bind(this),{signal:this._signal})}function li(){if(c(En,this))return;h(En,this,new AbortController);const t=this.combinedSignal(c(En,this));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})}function ui(){var t;null===(t=c(En,this))||void 0===t||t.abort(),h(En,this,null)}function ci(){if(c(In,this))return;h(In,this,new AbortController);const t=this.combinedSignal(c(In,this));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})}function hi(){var t;null===(t=c(In,this))||void 0===t||t.abort(),h(In,this,null)}function di(){if(c(gn,this))return;h(gn,this,new AbortController);const t=this.combinedSignal(c(gn,this));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t})}function fi(){var t;null===(t=c(gn,this))||void 0===t||t.abort(),h(gn,this,null)}function pi(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}function gi(t){Object.entries(t).some(t=>{let[e,n]=t;return c(Xn,this)[e]!==n})&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(c(Xn,this),t)}),c(zn,this)===H.HIGHLIGHT&&!1===t.hasSelectedEditor&&l(ti,this,mi).call(this,[[q.HIGHLIGHT_FREE,!0]]))}function mi(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}async function vi(){if(!c(_n,this)){h(_n,this,!0);const t=[];for(const e of c(un,this).values())t.push(e.enable());await Promise.all(t);for(const e of c(ln,this).values())e.enable()}}function yi(){if(this.unselectAll(),c(_n,this)){h(_n,this,!1);for(const t of c(un,this).values())t.disable();for(const t of c(ln,this).values())t.disable()}}function bi(t){const e=c(un,this).get(t.pageIndex);e?e.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}function wi(t){let e=null;for(e of c(jn,t));return e}function Di(){if(0===c(ln,this).size)return!0;if(1===c(ln,this).size)for(const t of c(ln,this).values())return t.isEmpty();return!1}function Ai(t){for(const e of c(jn,this))e.unselect();c(jn,this).clear();for(const e of t)e.isEmpty()||(c(jn,this).add(e),e.select());l(ti,this,gi).call(this,{hasSelectedEditor:this.hasSelection})}(0,T.A)(ei,"TRANSLATE_SMALL",1),(0,T.A)(ei,"TRANSLATE_BIG",10);var xi=new WeakMap,Ci=new WeakMap,Si=new WeakMap,Fi=new WeakMap,Ei=new WeakMap,ki=new WeakMap,Mi=new WeakMap,Ti=new WeakMap,Pi=new WeakMap,_i=new WeakMap,Ri=new WeakMap,Bi=new WeakMap,Ii=new WeakSet;class Ni{constructor(t){s(this,Ii),a(this,xi,null),a(this,Ci,!1),a(this,Si,null),a(this,Fi,null),a(this,Ei,null),a(this,ki,null),a(this,Mi,!1),a(this,Ti,null),a(this,Pi,null),a(this,_i,null),a(this,Ri,null),a(this,Bi,!1),h(Pi,this,t),h(Bi,this,t._uiManager.useNewAltTextFlow),Wi._||(Wi._=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}))}static initialize(t){var e;null!==(e=Ni._l10n)&&void 0!==e||(Ni._l10n=t)}async render(){const t=h(Si,this,document.createElement("button"));t.className="altText",t.tabIndex="0";const e=h(Fi,this,document.createElement("span"));t.append(e),c(Bi,this)?(t.classList.add("new"),t.setAttribute("data-l10n-id",Wi._.missing),e.setAttribute("data-l10n-id",Wi._["missing-label"])):(t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const n=c(Pi,this)._uiManager._signal;t.addEventListener("contextmenu",$t,{signal:n}),t.addEventListener("pointerdown",t=>t.stopPropagation(),{signal:n});const i=t=>{t.preventDefault(),c(Pi,this)._uiManager.editAltText(c(Pi,this)),c(Bi,this)&&c(Pi,this)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:u(Ii,this,Li)}})};return t.addEventListener("click",i,{capture:!0,signal:n}),t.addEventListener("keydown",e=>{e.target===t&&"Enter"===e.key&&(h(Mi,this,!0),i(e))},{signal:n}),await l(Ii,this,Oi).call(this),t}finish(){c(Si,this)&&(c(Si,this).focus({focusVisible:c(Mi,this)}),h(Mi,this,!1))}isEmpty(){return c(Bi,this)?null===c(xi,this):!c(xi,this)&&!c(Ci,this)}hasData(){return c(Bi,this)?null!==c(xi,this)||!!c(_i,this):this.isEmpty()}get guessedText(){return c(_i,this)}async setGuessedText(t){null===c(xi,this)&&(h(_i,this,t),h(Ri,this,await Ni._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t})),l(Ii,this,Oi).call(this))}toggleAltTextBadge(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e;if(!c(Bi,this)||c(xi,this))return null===(e=c(Ti,this))||void 0===e||e.remove(),void h(Ti,this,null);if(!c(Ti,this)){const t=h(Ti,this,document.createElement("div"));t.className="noAltTextBadge",c(Pi,this).div.append(t)}c(Ti,this).classList.toggle("hidden",!t)}serialize(t){let e=c(xi,this);return t||c(_i,this)!==e||(e=c(Ri,this)),{altText:e,decorative:c(Ci,this),guessedText:c(_i,this),textWithDisclaimer:c(Ri,this)}}get data(){return{altText:c(xi,this),decorative:c(Ci,this)}}set data(t){let{altText:e,decorative:n,guessedText:i,textWithDisclaimer:r,cancel:o=!1}=t;i&&(h(_i,this,i),h(Ri,this,r)),c(xi,this)===e&&c(Ci,this)===n||(o||(h(xi,this,e),h(Ci,this,n)),l(Ii,this,Oi).call(this))}toggle(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c(Si,this)&&(!t&&c(ki,this)&&(clearTimeout(c(ki,this)),h(ki,this,null)),c(Si,this).disabled=!t)}shown(){c(Pi,this)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:u(Ii,this,Li)}})}destroy(){var t,e;null===(t=c(Si,this))||void 0===t||t.remove(),h(Si,this,null),h(Fi,this,null),h(Ei,this,null),null===(e=c(Ti,this))||void 0===e||e.remove(),h(Ti,this,null)}}function Li(t){return(c(xi,t)?"added":null===c(xi,t)&&t.guessedText&&"review")||"missing"}async function Oi(){const t=c(Si,this);if(!t)return;if(c(Bi,this)){var e,n;if(t.classList.toggle("done",!!c(xi,this)),t.setAttribute("data-l10n-id",Wi._[u(Ii,this,Li)]),null===(e=c(Fi,this))||void 0===e||e.setAttribute("data-l10n-id",Wi._["".concat(u(Ii,this,Li),"-label")]),!c(xi,this))return void(null===(n=c(Ei,this))||void 0===n||n.remove())}else{var i;if(!c(xi,this)&&!c(Ci,this))return t.classList.remove("done"),void(null===(i=c(Ei,this))||void 0===i||i.remove());t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let r=c(Ei,this);if(!r){h(Ei,this,r=document.createElement("span")),r.className="tooltip",r.setAttribute("role","tooltip"),r.id="alt-text-tooltip-".concat(c(Pi,this).id);const e=100,n=c(Pi,this)._uiManager._signal;n.addEventListener("abort",()=>{clearTimeout(c(ki,this)),h(ki,this,null)},{once:!0}),t.addEventListener("mouseenter",()=>{h(ki,this,setTimeout(()=>{h(ki,this,null),c(Ei,this).classList.add("show"),c(Pi,this)._reportTelemetry({action:"alt_text_tooltip"})},e))},{signal:n}),t.addEventListener("mouseleave",()=>{var t;c(ki,this)&&(clearTimeout(c(ki,this)),h(ki,this,null)),null===(t=c(Ei,this))||void 0===t||t.classList.remove("show")},{signal:n})}c(Ci,this)?r.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(r.removeAttribute("data-l10n-id"),r.textContent=c(xi,this)),r.parentNode||t.append(r);const o=c(Pi,this).getElementForAltText();null===o||void 0===o||o.setAttribute("aria-describedby",r.id)}var Wi={_:null};(0,T.A)(Ni,"_l10n",null);var zi=new WeakMap,ji=new WeakMap,Ui=new WeakMap,Gi=new WeakMap,Vi=new WeakMap,Hi=new WeakMap,qi=new WeakMap,Xi=new WeakMap,Ki=new WeakMap,Yi=new WeakMap,Zi=new WeakSet;class Qi{constructor(t){s(this,Zi),a(this,zi,null),a(this,ji,null),a(this,Ui,!1),a(this,Gi,null),a(this,Vi,null),a(this,Hi,null),a(this,qi,null),a(this,Xi,null),a(this,Ki,!1),a(this,Yi,null),h(Gi,this,t)}renderForToolbar(){const t=h(ji,this,document.createElement("button"));return t.className="comment",l(Zi,this,Ji).call(this,t,!1)}renderForStandalone(){const t=h(zi,this,document.createElement("button"));t.className="annotationCommentButton";const e=c(Gi,this).commentButtonPosition;if(e){const{style:n}=t;n.insetInlineEnd="calc(".concat(100*("ltr"===c(Gi,this)._uiManager.direction?1-e[0]:e[0]),"% - var(--comment-button-dim))"),n.top="calc(".concat(100*e[1],"% - var(--comment-button-dim))");const i=c(Gi,this).commentButtonColor;i&&(n.backgroundColor=i)}return l(Zi,this,Ji).call(this,t,!0)}focusButton(){setTimeout(()=>{var t,e;null===(t=null!==(e=c(zi,this))&&void 0!==e?e:c(ji,this))||void 0===t||t.focus()},0)}onUpdatedColor(){if(!c(zi,this))return;const t=c(Gi,this).commentButtonColor;t&&(c(zi,this).style.backgroundColor=t),c(Gi,this)._uiManager.updatePopupColor(c(Gi,this))}get commentButtonWidth(){var t,e;return(null!==(t=null===(e=c(zi,this))||void 0===e?void 0:e.getBoundingClientRect().width)&&void 0!==t?t:0)/c(Gi,this).parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(c(Yi,this))return c(Yi,this);if(!c(zi,this))return null;const{x:t,y:e,height:n}=c(zi,this).getBoundingClientRect(),{x:i,y:r,width:o,height:s}=c(Gi,this).parent.boundingClientRect;return[(t-i)/o,(e+n-r)/s]}set commentPopupPositionInLayer(t){h(Yi,this,t)}hasDefaultPopupPosition(){return null===c(Yi,this)}removeStandaloneCommentButton(){var t;null===(t=c(zi,this))||void 0===t||t.remove(),h(zi,this,null)}removeToolbarCommentButton(){var t;null===(t=c(ji,this))||void 0===t||t.remove(),h(ji,this,null)}setCommentButtonStates(t){let{selected:e,hasPopup:n}=t;c(zi,this)&&(c(zi,this).classList.toggle("selected",e),c(zi,this).ariaExpanded=n)}edit(t){const e=this.commentPopupPositionInLayer;let n,i;if(e)[n,i]=e;else{[n,i]=c(Gi,this).commentButtonPosition;const{width:t,height:e,x:r,y:o}=c(Gi,this);n=r+n*t,i=o+i*e}const o=c(Gi,this).parent.boundingClientRect,{x:s,y:a,width:l,height:u}=o;c(Gi,this)._uiManager.editComment(c(Gi,this),s+n*l,a+i*u,(0,r.A)((0,r.A)({},t),{},{parentDimensions:o}))}finish(){c(ji,this)&&(c(ji,this).focus({focusVisible:c(Ui,this)}),h(Ui,this,!1))}isDeleted(){return c(Ki,this)||""===c(qi,this)}isEmpty(){return null===c(qi,this)}hasBeenEdited(){return this.isDeleted()||c(qi,this)!==c(Vi,this)}serialize(){return this.data}get data(){return{text:c(qi,this),richText:c(Hi,this),date:c(Xi,this),deleted:this.isDeleted()}}set data(t){if(t!==c(qi,this)&&h(Hi,this,null),null===t)return h(qi,this,""),void h(Ki,this,!0);h(qi,this,t),h(Xi,this,new Date),h(Ki,this,!1)}setInitialText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(Vi,this,t),this.data=t,h(Xi,this,null),h(Hi,this,e)}shown(){}destroy(){var t,e;null===(t=c(ji,this))||void 0===t||t.remove(),h(ji,this,null),null===(e=c(zi,this))||void 0===e||e.remove(),h(zi,this,null),h(qi,this,""),h(Hi,this,null),h(Xi,this,null),h(Gi,this,null),h(Ui,this,!1),h(Ki,this,!1)}}function Ji(t,e){if(!c(Gi,this)._uiManager.hasCommentManager())return null;t.tabIndex="0",t.ariaHasPopup="dialog",e?(t.ariaControls="commentPopup",t.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(t.ariaControlsElements=[c(Gi,this)._uiManager.getCommentDialogElement()],t.setAttribute("data-l10n-id","pdfjs-editor-edit-comment-button"));const n=c(Gi,this)._uiManager._signal;if(!(n instanceof AbortSignal)||n.aborted)return t;t.addEventListener("contextmenu",$t,{signal:n}),e&&(t.addEventListener("focusin",t=>{c(Gi,this)._focusEventsAllowed=!1,te(t)},{capture:!0,signal:n}),t.addEventListener("focusout",t=>{c(Gi,this)._focusEventsAllowed=!0,te(t)},{capture:!0,signal:n})),t.addEventListener("pointerdown",t=>t.stopPropagation(),{signal:n});const i=e=>{e.preventDefault(),t===c(ji,this)?this.edit():c(Gi,this).toggleComment(!0)};return t.addEventListener("click",i,{capture:!0,signal:n}),t.addEventListener("keydown",e=>{e.target===t&&"Enter"===e.key&&(h(Ui,this,!0),i(e))},{signal:n}),t.addEventListener("pointerenter",()=>{c(Gi,this).toggleComment(!1,!0)},{signal:n}),t.addEventListener("pointerleave",()=>{c(Gi,this).toggleComment(!1,!1)},{signal:n}),t}var $i=new WeakMap,tr=new WeakMap,er=new WeakMap,nr=new WeakMap,ir=new WeakMap,rr=new WeakMap,or=new WeakMap,sr=new WeakMap,ar=new WeakMap,lr=new WeakMap,ur=new WeakMap,cr=new WeakMap,hr=new WeakSet;class dr{constructor(t){let{container:e,isPinchingDisabled:n=null,isPinchingStopped:i=null,onPinchStart:r=null,onPinching:o=null,onPinchEnd:u=null,signal:d}=t;s(this,hr),a(this,$i,void 0),a(this,tr,!1),a(this,er,null),a(this,nr,void 0),a(this,ir,void 0),a(this,rr,void 0),a(this,or,void 0),a(this,sr,null),a(this,ar,void 0),a(this,lr,null),a(this,ur,void 0),a(this,cr,null),h($i,this,e),h(er,this,i),h(nr,this,n),h(ir,this,r),h(rr,this,o),h(or,this,u),h(ur,this,new AbortController),h(ar,this,AbortSignal.any([d,c(ur,this).signal])),e.addEventListener("touchstart",l(hr,this,fr).bind(this),{passive:!1,signal:c(ar,this)})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/ae.pixelRatio}destroy(){var t,e;null===(t=c(ur,this))||void 0===t||t.abort(),h(ur,this,null),null===(e=c(sr,this))||void 0===e||e.abort(),h(sr,this,null)}}function fr(t){var e,n;if(null!==(e=c(nr,this))&&void 0!==e&&e.call(this))return;if(1===t.touches.length){if(c(sr,this))return;const t=h(sr,this,new AbortController),e=AbortSignal.any([c(ar,this),t.signal]),n=c($i,this),i={capture:!0,signal:e,passive:!1},r=t=>{var e;"touch"===t.pointerType&&(null===(e=c(sr,this))||void 0===e||e.abort(),h(sr,this,null))};return n.addEventListener("pointerdown",t=>{"touch"===t.pointerType&&(te(t),r(t))},i),n.addEventListener("pointerup",r,i),void n.addEventListener("pointercancel",r,i)}if(!c(cr,this)){var i;h(cr,this,new AbortController);const t=AbortSignal.any([c(ar,this),c(cr,this).signal]),e=c($i,this),n={signal:t,capture:!1,passive:!1};e.addEventListener("touchmove",l(hr,this,pr).bind(this),n);const r=l(hr,this,gr).bind(this);e.addEventListener("touchend",r,n),e.addEventListener("touchcancel",r,n),n.capture=!0,e.addEventListener("pointerdown",te,n),e.addEventListener("pointermove",te,n),e.addEventListener("pointercancel",te,n),e.addEventListener("pointerup",te,n),null===(i=c(ir,this))||void 0===i||i.call(this)}if(te(t),2!==t.touches.length||null!==(n=c(er,this))&&void 0!==n&&n.call(this))return void h(lr,this,null);let[r,o]=t.touches;r.identifier>o.identifier&&([r,o]=[o,r]),h(lr,this,{touch0X:r.screenX,touch0Y:r.screenY,touch1X:o.screenX,touch1Y:o.screenY})}function pr(t){var e;if(!c(lr,this)||2!==t.touches.length)return;te(t);let[n,i]=t.touches;n.identifier>i.identifier&&([n,i]=[i,n]);const{screenX:r,screenY:o}=n,{screenX:s,screenY:a}=i,l=c(lr,this),{touch0X:u,touch0Y:d,touch1X:f,touch1Y:p}=l,m=f-u,v=p-d,y=s-r,b=a-o,w=Math.hypot(y,b)||1,D=Math.hypot(m,v)||1;if(!c(tr,this)&&Math.abs(D-w)<=g.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=r,l.touch0Y=o,l.touch1X=s,l.touch1Y=a,!c(tr,this))return void h(tr,this,!0);const A=[(r+s)/2,(o+a)/2];null===(e=c(rr,this))||void 0===e||e.call(this,A,D,w)}function gr(t){if(!(t.touches.length>=2)){var e;if(c(cr,this))c(cr,this).abort(),h(cr,this,null),null===(e=c(or,this))||void 0===e||e.call(this);c(lr,this)&&(te(t),h(lr,this,null),h(tr,this,!1))}}g=dr;var mr=new WeakMap,vr=new WeakMap,yr=new WeakMap,br=new WeakMap,wr=new WeakMap,Dr=new WeakMap,Ar=new WeakMap,xr=new WeakMap,Cr=new WeakMap,Sr=new WeakMap,Fr=new WeakMap,Er=new WeakMap,kr=new WeakMap,Mr=new WeakMap,Tr=new WeakMap,Pr=new WeakMap,_r=new WeakMap,Rr=new WeakMap,Br=new WeakMap,Ir=new WeakMap,Nr=new WeakMap,Lr=new WeakMap,Or=new WeakMap,Wr=new WeakMap,zr=new WeakMap,jr=new WeakMap,Ur=new WeakSet;class Gr{static get _resizerKeyboardManager(){const t=Gr.prototype._resizeWithKeyboard,e=ei.TRANSLATE_SMALL,n=ei.TRANSLATE_BIG;return Dt(this,"_resizerKeyboardManager",new en([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-e,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[e,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-e]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,e]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,n]}],[["Escape","mac+Escape"],Gr.prototype._stopResizingWithKeyboard]]))}constructor(t){s(this,Ur),a(this,mr,null),a(this,vr,null),a(this,yr,null),a(this,br,null),a(this,wr,null),a(this,Dr,!1),a(this,Ar,null),a(this,xr,""),a(this,Cr,null),a(this,Sr,null),a(this,Fr,null),a(this,Er,null),a(this,kr,null),a(this,Mr,""),a(this,Tr,!1),a(this,Pr,null),a(this,_r,!1),a(this,Rr,!1),a(this,Br,!1),a(this,Ir,null),a(this,Nr,0),a(this,Lr,0),a(this,Or,null),a(this,Wr,null),(0,T.A)(this,"isSelected",!1),(0,T.A)(this,"_isCopy",!1),(0,T.A)(this,"_editToolbar",null),(0,T.A)(this,"_initialOptions",Object.create(null)),(0,T.A)(this,"_initialData",null),(0,T.A)(this,"_isVisible",!0),(0,T.A)(this,"_uiManager",null),(0,T.A)(this,"_focusEventsAllowed",!0),a(this,zr,!1),a(this,jr,Gr._zIndex++),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null,this.annotationElementId=t.annotationElementId||null,this.creationDate=t.creationDate||new Date,this.modificationDate=t.modificationDate||null;const{rotation:e,rawDims:{pageWidth:n,pageHeight:i,pageX:r,pageY:o}}=this.parent.viewport;this.rotation=e,this.pageRotation=(360+e-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,i],this.pageTranslation=[r,o];const[l,u]=this.parentDimensions;this.x=t.x/l,this.y=t.y/u,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return Dt(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const e=new uo({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});e.annotationElementId=t.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}static initialize(t,e){var n;if(null!==(n=Gr._l10n)&&void 0!==n||(Gr._l10n=t),Gr._l10nResizer||(Gr._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),-1!==Gr._borderLineWidth)return;const i=getComputedStyle(document.documentElement);Gr._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,e){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,e){vt("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return c(zr,this)}set _isDraggable(t){var e;h(zr,this,t),null===(e=this.div)||void 0===e||e.classList.toggle("draggable",t)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){const[t,e]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*e/(2*t),this.y+=this.width*t/(2*e);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*e/(2*t),this.y-=this.width*t/(2*e);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=c(jr,this)}setParent(t){var e;null!==t?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):(l(Ur,this,lo).call(this),null===(e=c(Er,this))||void 0===e||e.remove(),h(Er,this,null));this.parent=t}focusin(t){this._focusEventsAllowed&&(c(Tr,this)?h(Tr,this,!1):this.parent.setSelected(this))}focusout(t){var e;if(!this._focusEventsAllowed)return;if(!this.isAttachedToDOM)return;const n=t.relatedTarget;null!==n&&void 0!==n&&n.closest("#".concat(this.id))||(t.preventDefault(),null!==(e=this.parent)&&void 0!==e&&e.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,e,n,i){const[r,o]=this.parentDimensions;[n,i]=this.screenToPageTranslation(n,i),this.x=(t+n)/r,this.y=(e+i)/o,this.fixAndSetPosition()}_moveAfterPaste(t,e){const[n,i]=this.parentDimensions;this.setAt(t*n,e*i,this.width*n,this.height*i),this._onTranslated()}translate(t,e){l(Ur,this,Vr).call(this,this.parentDimensions,t,e)}translateInPage(t,e){c(Pr,this)||h(Pr,this,[this.x,this.y,this.width,this.height]),l(Ur,this,Vr).call(this,this.pageDimensions,t,e),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(t,e){c(Pr,this)||h(Pr,this,[this.x,this.y,this.width,this.height]);const{div:n,parentDimensions:[i,r]}=this;if(this.x+=t/i,this.y+=e/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:t,y:e}=this.div.getBoundingClientRect();this.parent.findNewParent(this,t,e)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:o,y:s}=this;const[a,l]=this.getBaseTranslation();o+=a,s+=l;const{style:u}=n;u.left="".concat((100*o).toFixed(2),"%"),u.top="".concat((100*s).toFixed(2),"%"),this._onTranslating(o,s),n.scrollIntoView({block:"nearest"})}_onTranslating(t,e){}_onTranslated(t,e){}get _hasBeenMoved(){return!!c(Pr,this)&&(c(Pr,this)[0]!==this.x||c(Pr,this)[1]!==this.y)}get _hasBeenResized(){return!!c(Pr,this)&&(c(Pr,this)[2]!==this.width||c(Pr,this)[3]!==this.height)}getBaseTranslation(){const[t,e]=this.parentDimensions,{_borderLineWidth:n}=Gr,i=n/t,r=n/e;switch(this.rotation){case 90:return[-i,r];case 180:return[i,r];case 270:return[i,-r];default:return[-i,-r]}}get _mustFixPosition(){return!0}fixAndSetPosition(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rotation;const{div:{style:e},pageDimensions:[n,i]}=this;let{x:r,y:o,width:s,height:a}=this;if(s*=n,a*=i,r*=n,o*=i,this._mustFixPosition)switch(t){case 0:r=zt(r,0,n-s),o=zt(o,0,i-a);break;case 90:r=zt(r,0,n-a),o=zt(o,s,i);break;case 180:r=zt(r,s,n),o=zt(o,a,i);break;case 270:r=zt(r,a,n),o=zt(o,0,i-s)}this.x=r/=n,this.y=o/=i;const[l,u]=this.getBaseTranslation();r+=l,o+=u,e.left="".concat((100*r).toFixed(2),"%"),e.top="".concat((100*o).toFixed(2),"%"),this.moveInDOM()}screenToPageTranslation(t,e){return Hr.call(Gr,t,e,this.parentRotation)}pageTranslationToScreen(t,e){return Hr.call(Gr,t,e,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[e,n]}=this;return[e*t,n*t]}setDims(){const{div:{style:t},width:e,height:n}=this;t.width="".concat((100*e).toFixed(2),"%"),t.height="".concat((100*n).toFixed(2),"%")}getInitialTranslation(){return[0,0]}_onResized(){}static _round(t){return Math.round(1e4*t)/1e4}_onResizing(){}altTextFinish(){var t;null===(t=c(yr,this))||void 0===t||t.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||c(Rr,this))return this._editToolbar;this._editToolbar=new Se(this),this.div.append(this._editToolbar.render());const{toolbarButtons:t}=this;if(t)for(const[e,n]of t)await this._editToolbar.addButton(e,n);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar}addCommentButtonInToolbar(){var t;null===(t=this._editToolbar)||void 0===t||t.addButtonBefore("comment",this.addCommentButton(),".deleteButton")}removeCommentButtonFromToolbar(){var t;null===(t=this._editToolbar)||void 0===t||t.removeButton("comment")}removeEditToolbar(){var t,e;null===(t=this._editToolbar)||void 0===t||t.remove(),this._editToolbar=null,null===(e=c(yr,this))||void 0===e||e.destroy()}addContainer(t){var e;const n=null===(e=this._editToolbar)||void 0===e?void 0:e.div;n?n.before(t):this.div.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return c(yr,this)||(Ni.initialize(Gr._l10n),h(yr,this,new Ni(this)),c(mr,this)&&(c(yr,this).data=c(mr,this),h(mr,this,null))),c(yr,this)}get altTextData(){var t;return null===(t=c(yr,this))||void 0===t?void 0:t.data}set altTextData(t){c(yr,this)&&(c(yr,this).data=t)}get guessedAltText(){var t;return null===(t=c(yr,this))||void 0===t?void 0:t.guessedText}async setGuessedAltText(t){var e;await(null===(e=c(yr,this))||void 0===e?void 0:e.setGuessedText(t))}serializeAltText(t){var e;return null===(e=c(yr,this))||void 0===e?void 0:e.serialize(t)}hasAltText(){return!!c(yr,this)&&!c(yr,this).isEmpty()}hasAltTextData(){var t,e;return null!==(t=null===(e=c(yr,this))||void 0===e?void 0:e.hasData())&&void 0!==t&&t}focusCommentButton(){var t;null===(t=c(br,this))||void 0===t||t.focusButton()}addCommentButton(){return c(br,this)||h(br,this,new Qi(this))}addStandaloneCommentButton(){c(wr,this)?this._uiManager.isEditingMode()&&c(wr,this).classList.remove("hidden"):this.hasComment&&(h(wr,this,c(br,this).renderForStandalone()),this.div.append(c(wr,this)))}removeStandaloneCommentButton(){c(br,this).removeStandaloneCommentButton(),h(wr,this,null)}hideStandaloneCommentButton(){var t;null===(t=c(wr,this))||void 0===t||t.classList.add("hidden")}get comment(){var t;const{data:{richText:e,text:n,date:i,deleted:r}}=c(br,this);return{text:n,richText:e,date:i,deleted:r,color:this.getNonHCMColor(),opacity:null!==(t=this.opacity)&&void 0!==t?t:1}}set comment(t){c(br,this)||h(br,this,new Qi(this)),c(br,this).data=t,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData(t){let{comment:e,popupRef:n,richText:i}=t;if(!n)return;if(c(br,this)||h(br,this,new Qi(this)),c(br,this).setInitialText(e,i),!this.annotationElementId)return;const r=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);r&&this.updateFromAnnotationLayer(r)}get hasEditedComment(){var t;return null===(t=c(br,this))||void 0===t?void 0:t.hasBeenEdited()}get hasDeletedComment(){var t;return null===(t=c(br,this))||void 0===t?void 0:t.isDeleted()}get hasComment(){return!!c(br,this)&&!c(br,this).isEmpty()&&!c(br,this).isDeleted()}async editComment(t){c(br,this)||h(br,this,new Qi(this)),c(br,this).edit(t)}toggleComment(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.hasComment&&this._uiManager.toggleComment(this,t,e)}setSelectedCommentButton(t){c(br,this).setSelectedButton(t)}addComment(t){if(this.hasEditedComment){const e=180,n=100,[,,,i]=t.rect,[r]=this.pageDimensions,[o]=this.pageTranslation,s=o+r+1,a=i-n,l=s+e;t.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[s,a,l,i]}}}updateFromAnnotationLayer(t){let{popup:{contents:e,deleted:n}}=t;c(br,this).data=n?null:e}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){var t;const e=this.div=document.createElement("div");e.setAttribute("data-editor-rotation",(360-this.rotation)%360),e.className=this.name,e.setAttribute("id",this.id),e.tabIndex=c(Dr,this)?-1:0,e.setAttribute("role","application"),this.defaultL10nId&&e.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||e.classList.add("hidden"),this.setInForeground(),l(Ur,this,io).call(this);const[n,i]=this.parentDimensions;this.parentRotation%180!==0&&(e.style.maxWidth="".concat((100*i/n).toFixed(2),"%"),e.style.maxHeight="".concat((100*n/i).toFixed(2),"%"));const[r,o]=this.getInitialTranslation();return this.translate(r,o),ze(this,e,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(c(Wr,this)||h(Wr,this,new dr({container:e,isPinchingDisabled:()=>!this.isSelected,onPinchStart:l(Ur,this,Jr).bind(this),onPinching:l(Ur,this,$r).bind(this),onPinchEnd:l(Ur,this,to).bind(this),signal:this._uiManager._signal}))),this.addStandaloneCommentButton(),null===(t=this._uiManager._editorUndoBar)||void 0===t||t.hide(),e}pointerdown(t){const{isMac:e}=Pt.platform;0!==t.button||t.ctrlKey&&e?t.preventDefault():(h(Tr,this,!0),this._isDraggable?l(Ur,this,no).call(this,t):l(Ur,this,eo).call(this,t))}_onStartDragging(){}_onStopDragging(){}moveInDOM(){c(Ir,this)&&clearTimeout(c(Ir,this)),h(Ir,this,setTimeout(()=>{var t;h(Ir,this,null),null===(t=this.parent)||void 0===t||t.moveEditorInDOM(this)},0))}_setParentAndPosition(t,e,n){t.changeParent(this),this.x=e,this.y=n,this.fixAndSetPosition(),this._onTranslated()}getRect(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.rotation;const i=this.parentScale,[r,o]=this.pageDimensions,[s,a]=this.pageTranslation,l=t/i,u=e/i,c=this.x*r,h=this.y*o,d=this.width*r,f=this.height*o;switch(n){case 0:return[c+l+s,o-h-u-f+a,c+l+d+s,o-h-u+a];case 90:return[c+u+s,o-h+l+a,c+u+f+s,o-h+l+d+a];case 180:return[c-l-d+s,o-h+u+a,c-l+s,o-h+u+f+a];case 270:return[c-u-f+s,o-h-l-d+a,c-u+s,o-h-l+a];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,e){const[n,i,r,o]=t,s=r-n,a=o-i;switch(this.rotation){case 0:return[n,e-o,s,a];case 90:return[n,e-i,a,s];case 180:return[r,e-i,s,a];case 270:return[r,e-o,a,s];default:throw new Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&Gr._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){var t;null===(t=c(br,this))||void 0===t||t.onUpdatedColor()}getData(){const{comment:{text:t,color:e,date:n,opacity:i,deleted:r,richText:o},uid:s,pageIndex:a,creationDate:l,modificationDate:u}=this;return{id:s,pageIndex:a,rect:this.getPDFRect(),richText:o,contentsObj:{str:t},creationDate:l,modificationDate:n||u,popupRef:!r,color:e,opacity:i}}onceAdded(t){}isEmpty(){return!1}enableEditMode(){return!this.isInEditMode()&&(this.parent.setEditingState(!1),h(Rr,this,!0),!0)}disableEditMode(){return!!this.isInEditMode()&&(this.parent.setEditingState(!0),h(Rr,this,!1),!0)}isInEditMode(){return c(Rr,this)}shouldGetKeyboardEvents(){return c(Br,this)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:t,left:e,bottom:n,right:i}=this.getClientDimensions(),{innerHeight:r,innerWidth:o}=window;return e<o&&i>0&&t<r&&n>0}rebuild(){l(Ur,this,io).call(this)}rotate(t){}resize(){}serializeDeleted(){var t;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:(null===(t=this._initialData)||void 0===t?void 0:t.popupRef)||""}}serialize(){var t;return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:(null===(t=this._initialData)||void 0===t?void 0:t.popupRef)||""}}static async deserialize(t,e,n){const i=new this.prototype.constructor({parent:e,id:e.getNextId(),uiManager:n,annotationElementId:t.annotationElementId,creationDate:t.creationDate,modificationDate:t.modificationDate});i.rotation=t.rotation,h(mr,i,t.accessibilityData),i._isCopy=t.isCopy||!1;const[r,o]=i.pageDimensions,[s,a,l,u]=i.getRectInCurrentCoords(t.rect,o);return i.x=s/r,i.y=a/o,i.width=l/r,i.height=u/o,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||null!==this.serialize())}remove(){var t,e;if(null===(t=c(kr,this))||void 0===t||t.abort(),h(kr,this,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),c(Ir,this)&&(clearTimeout(c(Ir,this)),h(Ir,this,null)),l(Ur,this,lo).call(this),this.removeEditToolbar(),c(Or,this)){for(const t of c(Or,this).values())clearTimeout(t);h(Or,this,null)}this.parent=null,null===(e=c(Wr,this))||void 0===e||e.destroy(),h(Wr,this,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(l(Ur,this,Xr).call(this),c(Cr,this).classList.remove("hidden"))}get toolbarPosition(){return null}get commentButtonPosition(){return"ltr"===this._uiManager.direction?[1,0]:[0,0]}get commentButtonPositionInPage(){const{commentButtonPosition:[t,e]}=this,[n,i,r,o]=this.getPDFRect();return[Gr._round(n+(r-n)*t),Gr._round(i+(o-i)*(1-e))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return c(br,this).commentPopupPositionInLayer}set commentPopupPosition(t){c(br,this).commentPopupPositionInLayer=t}hasDefaultPopupPosition(){return c(br,this).hasDefaultPopupPosition()}get commentButtonWidth(){return c(br,this).commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(t){c(br,this).setCommentButtonStates(t)}keydown(t){if(!this.isResizable||t.target!==this.div||"Enter"!==t.key)return;this._uiManager.setSelected(this),h(Fr,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const e=c(Cr,this).children;if(!c(vr,this)){h(vr,this,Array.from(e));const t=l(Ur,this,ro).bind(this),n=l(Ur,this,oo).bind(this),i=this._uiManager._signal;for(const e of c(vr,this)){const r=e.getAttribute("data-resizer-name");e.setAttribute("role","spinbutton"),e.addEventListener("keydown",t,{signal:i}),e.addEventListener("blur",n,{signal:i}),e.addEventListener("focus",l(Ur,this,so).bind(this,r),{signal:i}),e.setAttribute("data-l10n-id",Gr._l10nResizer[r])}}const n=c(vr,this)[0];let i=0;for(const o of e){if(o===n)break;i++}const r=(360-this.rotation+this.parentRotation)%360/90*(c(vr,this).length/4);if(r!==i){if(r<i)for(let e=0;e<i-r;e++)c(Cr,this).append(c(Cr,this).firstChild);else if(r>i)for(let e=0;e<r-i;e++)c(Cr,this).firstChild.before(c(Cr,this).lastChild);let t=0;for(const n of e){const e=c(vr,this)[t++].getAttribute("data-resizer-name");n.setAttribute("data-l10n-id",Gr._l10nResizer[e])}}l(Ur,this,ao).call(this,0),h(Br,this,!0),c(Cr,this).firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}_resizeWithKeyboard(t,e){c(Br,this)&&l(Ur,this,Qr).call(this,c(Mr,this),{deltaX:t,deltaY:e,fromKeyboard:!0})}_stopResizingWithKeyboard(){l(Ur,this,lo).call(this),this.div.focus()}select(){var t,e,n;this.isSelected&&this._editToolbar?this._editToolbar.show():(this.isSelected=!0,this.makeResizable(),null===(t=this.div)||void 0===t||t.classList.add("selectedEditor"),this._editToolbar?(null===(e=this._editToolbar)||void 0===e||e.show(),null===(n=c(yr,this))||void 0===n||n.toggleAltTextBadge(!1)):this.addEditToolbar().then(()=>{var t,e;null!==(t=this.div)&&void 0!==t&&t.classList.contains("selectedEditor")&&(null===(e=this._editToolbar)||void 0===e||e.show())}))}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>{var t;return null===(t=this.div)||void 0===t?void 0:t.focus({preventScroll:!0})},0)}unselect(){var t,e,n,i,r;this.isSelected&&(this.isSelected=!1,null===(t=c(Cr,this))||void 0===t||t.classList.add("hidden"),null===(e=this.div)||void 0===e||e.classList.remove("selectedEditor"),null!==(n=this.div)&&void 0!==n&&n.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),null===(i=this._editToolbar)||void 0===i||i.hide(),null===(r=c(yr,this))||void 0===r||r.toggleAltTextBadge(!0),this.hasComment&&this._uiManager.toggleComment(this,!1,!1))}updateParams(t,e){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(t){"BUTTON"!==t.target.nodeName&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.id}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return c(_r,this)}set isEditing(t){h(_r,this,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){c(Or,this)||h(Or,this,new Map);const{action:e}=t;let n=c(Or,this).get(e);return n&&clearTimeout(n),n=setTimeout(()=>{this._reportTelemetry(t),c(Or,this).delete(e),0===c(Or,this).size&&h(Or,this,null)},Gr._telemetryTimeout),void c(Or,this).set(e,n)}t.type||(t.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible;this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),h(Dr,this,!1)}disable(){this.div&&(this.div.tabIndex=-1),h(Dr,this,!0)}updateFakeAnnotationElement(t){if(c(Er,this)||this.deleted)return this.deleted?(c(Er,this).remove(),void h(Er,this,null)):void((this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&c(Er,this).updateEdited({rect:this.getPDFRect(),popup:this.comment}));h(Er,this,t.addFakeAnnotation(this))}renderAnnotationElement(t){if(this.deleted)return t.hide(),null;let e=t.container.querySelector(".annotationContent");if(e){if("CANVAS"===e.nodeName){const t=e;e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),t.before(e)}}else e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),t.container.prepend(e);return e}resetAnnotationElement(t){const{firstChild:e}=t.container;"DIV"===(null===e||void 0===e?void 0:e.nodeName)&&e.classList.contains("annotationContent")&&e.remove()}}function Vr(t,e,n){let[i,r]=t;[e,n]=this.screenToPageTranslation(e,n),this.x+=e/i,this.y+=n/r,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}function Hr(t,e,n){switch(n){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}}function qr(t){switch(t){case 90:{const[t,e]=this.pageDimensions;return[0,-t/e,e/t,0]}case 180:return[-1,0,0,-1];case 270:{const[t,e]=this.pageDimensions;return[0,t/e,-e/t,0]}default:return[1,0,0,1]}}function Xr(){if(c(Cr,this))return;h(Cr,this,document.createElement("div")),c(Cr,this).classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],e=this._uiManager._signal;for(const n of t){const t=document.createElement("div");c(Cr,this).append(t),t.classList.add("resizer",n),t.setAttribute("data-resizer-name",n),t.addEventListener("pointerdown",l(Ur,this,Kr).bind(this,n),{signal:e}),t.addEventListener("contextmenu",$t,{signal:e}),t.tabIndex=-1}this.div.prepend(c(Cr,this))}function Kr(t,e){var n;e.preventDefault();const{isMac:i}=Pt.platform;if(0!==e.button||e.ctrlKey&&i)return;null===(n=c(yr,this))||void 0===n||n.toggle(!1);const r=this._isDraggable;this._isDraggable=!1,h(Sr,this,[e.screenX,e.screenY]);const o=new AbortController,s=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",l(Ur,this,Qr).bind(this,t),{passive:!0,capture:!0,signal:s}),window.addEventListener("touchmove",te,{passive:!1,signal:s}),window.addEventListener("contextmenu",$t,{signal:s}),h(Fr,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const a=this.parent.div.style.cursor,u=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;const d=()=>{var t;o.abort(),this.parent.togglePointerEvents(!0),null===(t=c(yr,this))||void 0===t||t.toggle(!0),this._isDraggable=r,this.parent.div.style.cursor=a,this.div.style.cursor=u,l(Ur,this,Zr).call(this)};window.addEventListener("pointerup",d,{signal:s}),window.addEventListener("blur",d,{signal:s})}function Yr(t,e,n,i){this.width=n,this.height=i,this.x=t,this.y=e,this.setDims(),this.fixAndSetPosition(),this._onResized()}function Zr(){if(!c(Fr,this))return;const{savedX:t,savedY:e,savedWidth:n,savedHeight:i}=c(Fr,this);h(Fr,this,null);const r=this.x,o=this.y,s=this.width,a=this.height;r===t&&o===e&&s===n&&a===i||this.addCommands({cmd:l(Ur,this,Yr).bind(this,r,o,s,a),undo:l(Ur,this,Yr).bind(this,t,e,n,i),mustExec:!0})}function Qr(t,e){const[n,i]=this.parentDimensions,r=this.x,o=this.y,s=this.width,a=this.height,u=m.MIN_SIZE/n,d=m.MIN_SIZE/i,f=l(Ur,this,qr).call(this,this.rotation),p=(t,e)=>[f[0]*t+f[2]*e,f[1]*t+f[3]*e],g=l(Ur,this,qr).call(this,360-this.rotation);let v,y,b=!1,w=!1;switch(t){case"topLeft":b=!0,v=(t,e)=>[0,0],y=(t,e)=>[t,e];break;case"topMiddle":v=(t,e)=>[t/2,0],y=(t,e)=>[t/2,e];break;case"topRight":b=!0,v=(t,e)=>[t,0],y=(t,e)=>[0,e];break;case"middleRight":w=!0,v=(t,e)=>[t,e/2],y=(t,e)=>[0,e/2];break;case"bottomRight":b=!0,v=(t,e)=>[t,e],y=(t,e)=>[0,0];break;case"bottomMiddle":v=(t,e)=>[t/2,e],y=(t,e)=>[t/2,0];break;case"bottomLeft":b=!0,v=(t,e)=>[0,e],y=(t,e)=>[t,0];break;case"middleLeft":w=!0,v=(t,e)=>[0,e/2],y=(t,e)=>[t,e/2]}const D=v(s,a),A=y(s,a);let x=p(...A);const C=m._round(r+x[0]),S=m._round(o+x[1]);let F,E,k=1,M=1;if(e.fromKeyboard)({deltaX:F,deltaY:E}=e);else{const{screenX:t,screenY:n}=e,[i,r]=c(Sr,this);[F,E]=this.screenToPageTranslation(t-i,n-r),c(Sr,this)[0]=t,c(Sr,this)[1]=n}var T,P;if([F,E]=(T=F/n,P=E/i,[g[0]*T+g[2]*P,g[1]*T+g[3]*P]),b){const t=Math.hypot(s,a);k=M=Math.max(Math.min(Math.hypot(A[0]-D[0]-F,A[1]-D[1]-E)/t,1/s,1/a),u/s,d/a)}else w?k=zt(Math.abs(A[0]-D[0]-F),u,1)/s:M=zt(Math.abs(A[1]-D[1]-E),d,1)/a;const _=m._round(s*k),R=m._round(a*M);x=p(...y(_,R));const B=C-x[0],I=S-x[1];c(Pr,this)||h(Pr,this,[this.x,this.y,this.width,this.height]),this.width=_,this.height=R,this.x=B,this.y=I,this.setDims(),this.fixAndSetPosition(),this._onResizing()}function Jr(){var t;h(Fr,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),null===(t=c(yr,this))||void 0===t||t.toggle(!1),this.parent.togglePointerEvents(!1)}function $r(t,e,n){let i=n/e*.7+1-.7;if(1===i)return;const r=l(Ur,this,qr).call(this,this.rotation),o=(t,e)=>[r[0]*t+r[2]*e,r[1]*t+r[3]*e],[s,a]=this.parentDimensions,u=this.x,d=this.y,f=this.width,p=this.height,g=m.MIN_SIZE/s,v=m.MIN_SIZE/a;i=Math.max(Math.min(i,1/f,1/p),g/f,v/p);const y=m._round(f*i),b=m._round(p*i);if(y===f&&b===p)return;c(Pr,this)||h(Pr,this,[u,d,f,p]);const w=o(f/2,p/2),D=m._round(u+w[0]),A=m._round(d+w[1]),x=o(y/2,b/2);this.x=D-x[0],this.y=A-x[1],this.width=y,this.height=b,this.setDims(),this.fixAndSetPosition(),this._onResizing()}function to(){var t;null===(t=c(yr,this))||void 0===t||t.toggle(!0),this.parent.togglePointerEvents(!0),l(Ur,this,Zr).call(this)}function eo(t){const{isMac:e}=Pt.platform;t.ctrlKey&&!e||t.shiftKey||t.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this)}function no(t){const{isSelected:e}=this;this._uiManager.setUpDragSession();let n=!1;const i=new AbortController,r=this._uiManager.combinedSignal(i),o={capture:!0,passive:!1,signal:r},s=t=>{i.abort(),h(Ar,this,null),h(Tr,this,!1),this._uiManager.endDragSession()||l(Ur,this,eo).call(this,t),n&&this._onStopDragging()};e&&(h(Nr,this,t.clientX),h(Lr,this,t.clientY),h(Ar,this,t.pointerId),h(xr,this,t.pointerType),window.addEventListener("pointermove",t=>{n||(n=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());const{clientX:e,clientY:i,pointerId:r}=t;if(r!==c(Ar,this))return void te(t);const[o,s]=this.screenToPageTranslation(e-c(Nr,this),i-c(Lr,this));h(Nr,this,e),h(Lr,this,i),this._uiManager.dragSelectedEditors(o,s)},o),window.addEventListener("touchmove",te,o),window.addEventListener("pointerdown",t=>{t.pointerType===c(xr,this)&&(c(Wr,this)||t.isPrimary)&&s(t),te(t)},o));const a=t=>{c(Ar,this)&&c(Ar,this)!==t.pointerId?te(t):s(t)};window.addEventListener("pointerup",a,{signal:r}),window.addEventListener("blur",a,{signal:r})}function io(){if(c(kr,this)||!this.div)return;h(kr,this,new AbortController);const t=this._uiManager.combinedSignal(c(kr,this));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})}function ro(t){m._resizerKeyboardManager.exec(this,t)}function oo(t){var e;c(Br,this)&&(null===(e=t.relatedTarget)||void 0===e?void 0:e.parentNode)!==c(Cr,this)&&l(Ur,this,lo).call(this)}function so(t){h(Mr,this,c(Br,this)?t:"")}function ao(t){if(c(vr,this))for(const e of c(vr,this))e.tabIndex=t}function lo(){h(Br,this,!1),l(Ur,this,ao).call(this,-1),l(Ur,this,Zr).call(this)}m=Gr,(0,T.A)(Gr,"_l10n",null),(0,T.A)(Gr,"_l10nResizer",null),(0,T.A)(Gr,"_borderLineWidth",-1),(0,T.A)(Gr,"_colorManager",new rn),(0,T.A)(Gr,"_zIndex",1),(0,T.A)(Gr,"_telemetryTimeout",1e3);class uo extends Gr{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const co=3285377520,ho=4294901760,fo=65535;class po{constructor(t){this.h1=t?4294967295&t:co,this.h2=t?4294967295&t:co}update(t){let e,n;if("string"===typeof t){e=new Uint8Array(2*t.length),n=0;for(let i=0,r=t.length;i<r;i++){const r=t.charCodeAt(i);r<=255?e[n++]=r:(e[n++]=r>>>8,e[n++]=255&r)}}else{if(!ArrayBuffer.isView(t))throw new Error("Invalid data format, must be a string or TypedArray.");e=t.slice(),n=e.byteLength}const i=n>>2,r=n-4*i,o=new Uint32Array(e.buffer,0,i);let s=0,a=0,l=this.h1,u=this.h2;const c=3432918353,h=461845907,d=11601,f=13715;for(let p=0;p<i;p++)1&p?(s=o[p],s=s*c&ho|s*d&fo,s=s<<15|s>>>17,s=s*h&ho|s*f&fo,l^=s,l=l<<13|l>>>19,l=5*l+3864292196):(a=o[p],a=a*c&ho|a*d&fo,a=a<<15|a>>>17,a=a*h&ho|a*f&fo,u^=a,u=u<<13|u>>>19,u=5*u+3864292196);switch(s=0,r){case 3:s^=e[4*i+2]<<16;case 2:s^=e[4*i+1]<<8;case 1:s^=e[4*i],s=s*c&ho|s*d&fo,s=s<<15|s>>>17,s=s*h&ho|s*f&fo,1&i?l^=s:u^=s}this.h1=l,this.h2=u}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,t=3981806797*t&ho|36045*t&fo,e=4283543511*e&ho|(2950163797*(e<<16|t>>>16)&ho)>>>16,t^=e>>>1,t=444984403*t&ho|60499*t&fo,e=3301882366*e&ho|(3120437893*(e<<16|t>>>16)&ho)>>>16,t^=e>>>1,(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}}const go=Object.freeze({map:null,hash:"",transfer:void 0});var mo=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo=new WeakMap,wo=new WeakSet;class Do{constructor(){s(this,wo),a(this,mo,!1),a(this,vo,null),a(this,yo,null),a(this,bo,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,e){const n=c(bo,this).get(t);return void 0===n?e:Object.assign(e,n)}getRawValue(t){return c(bo,this).get(t)}remove(t){const e=c(bo,this).get(t);if(void 0!==e&&(e instanceof Gr&&c(yo,this).delete(e.annotationElementId),c(bo,this).delete(t),0===c(bo,this).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor)){for(const t of c(bo,this).values())if(t instanceof Gr)return;this.onAnnotationEditor(null)}}setValue(t,e){const n=c(bo,this).get(t);let i=!1;if(void 0!==n)for(const[r,o]of Object.entries(e))n[r]!==o&&(i=!0,n[r]=o);else i=!0,c(bo,this).set(t,e);i&&l(wo,this,Ao).call(this),e instanceof Gr&&((c(yo,this)||h(yo,this,new Map)).set(e.annotationElementId,e),"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(e.constructor._type))}has(t){return c(bo,this).has(t)}get size(){return c(bo,this).size}resetModified(){c(mo,this)&&(h(mo,this,!1),"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new Co(this)}get serializable(){if(0===c(bo,this).size)return go;const t=new Map,e=new po,n=[],i=Object.create(null);let r=!1;for(const[o,s]of c(bo,this)){const n=s instanceof Gr?s.serialize(!1,i):s;n&&(t.set(o,n),e.update("".concat(o,":").concat(JSON.stringify(n))),r||(r=!!n.bitmap))}if(r)for(const o of t.values())o.bitmap&&n.push(o.bitmap);return t.size>0?{map:t,hash:e.hexdigest(),transfer:n}:go}get editorStats(){let t=null;const e=new Map;let n=0,i=0;for(const s of c(bo,this).values()){var r;if(!(s instanceof Gr)){s.popup&&(s.popup.deleted?i+=1:n+=1);continue}s.isCommentDeleted?i+=1:s.hasEditedComment&&(n+=1);const a=s.telemetryFinalData;if(!a)continue;const{type:l}=a;e.has(l)||e.set(l,Object.getPrototypeOf(s).constructor),t||(t=Object.create(null));const u=(r=t)[l]||(r[l]=new Map);for(const[t,e]of Object.entries(a)){var o;if("type"===t)continue;let n=u.get(t);n||(n=new Map,u.set(t,n));const i=null!==(o=n.get(e))&&void 0!==o?o:0;n.set(e,i+1)}}if((i>0||n>0)&&(t||(t=Object.create(null)),t.comments={deleted:i,edited:n}),!t)return null;for(const[s,a]of e)t[s]=a.computeTelemetryFinalData(t[s]);return t}resetModifiedIds(){h(vo,this,null)}updateEditor(t,e){var n;const i=null===(n=c(yo,this))||void 0===n?void 0:n.get(t);return!!i&&(i.updateFromAnnotationLayer(e),!0)}getEditor(t){var e;return(null===(e=c(yo,this))||void 0===e?void 0:e.get(t))||null}get modifiedIds(){if(c(vo,this))return c(vo,this);const t=[];if(c(yo,this))for(const e of c(yo,this).values())e.serialize()&&t.push(e.annotationElementId);return h(vo,this,{ids:new Set(t),hash:t.join(",")})}[Symbol.iterator](){return c(bo,this).entries()}}function Ao(){c(mo,this)||(h(mo,this,!0),"function"===typeof this.onSetModified&&this.onSetModified())}var xo=new WeakMap;class Co extends Do{constructor(t){super(),a(this,xo,void 0);const{map:e,hash:n,transfer:i}=t.serializable,r=structuredClone(e,i?{transfer:i}:null);h(xo,this,{map:r,hash:n,transfer:i})}get print(){vt("Should not call PrintAnnotationStorage.print")}get serializable(){return c(xo,this)}get modifiedIds(){return Dt(this,"modifiedIds",{ids:new Set,hash:""})}}var So=new WeakMap;class Fo{constructor(t){let{ownerDocument:e=globalThis.document,styleElement:n=null}=t;a(this,So,new Set),this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const e=this.styleElement.sheet;e.insertRule(t,e.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),c(So,this).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(t){let{systemFontInfo:e,disableFontFace:n,_inspectFont:i}=t;if(e&&!c(So,this).has(e.loadedName)){if(yt(!n,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:t,src:n,style:o}=e,s=new FontFace(t,n,o);this.addNativeFontFace(s);try{await s.load(),c(So,this).add(t),null===i||void 0===i||i(e)}catch(r){mt("Cannot load system font: ".concat(e.baseFontName,", installing it could help to improve PDF rendering.")),this.removeNativeFontFace(s)}return}vt("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo)return void await this.loadSystemFont(t);if(this.isFontLoadingAPISupported){const e=t.createNativeFontFace();if(e){this.addNativeFontFace(e);try{await e.loaded}catch(n){throw mt("Failed to load font '".concat(e.family,"': '").concat(n,"'.")),t.disableFontFace=!0,n}}return}const e=t.createFontFaceRule();if(e){if(this.insertRule(e),this.isSyncFontLoadingSupported)return;await new Promise(e=>{const n=this._queueLoadingCallback(e);this._prepareFontLoadEvent(t,n)})}}get isFontLoadingAPISupported(){var t;return Dt(this,"isFontLoadingAPISupported",!(null===(t=this._document)||void 0===t||!t.fonts))}get isSyncFontLoadingSupported(){return Dt(this,"isSyncFontLoadingSupported",_||Pt.platform.isFirefox)}_queueLoadingCallback(t){const{loadingRequests:e}=this,n={done:!1,complete:function(){for(yt(!n.done,"completeRequest() cannot be called twice."),n.done=!0;e.length>0&&e[0].done;){const t=e.shift();setTimeout(t.callback,0)}},callback:t};return e.push(n),n}get _loadTestFont(){return Dt(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AA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AAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(t,e){function n(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function i(t,e,n,i){return t.substring(0,e)+i+t.substring(e+n)}let r,o;const s=this._document.createElement("canvas");s.width=1,s.height=1;const a=s.getContext("2d");let l=0;const u="lt".concat(Date.now()).concat(this.loadTestFontId++);let c=this._loadTestFont;c=i(c,976,u.length,u);const h=1482184792;let d=n(c,16);for(r=0,o=u.length-3;r<o;r+=4)d=d-h+n(u,r)|0;var f;r<u.length&&(d=d-h+n(u+"XXX",r)|0),c=i(c,16,4,(f=d,String.fromCharCode(f>>24&255,f>>16&255,f>>8&255,255&f)));const p="url(data:font/opentype;base64,".concat(btoa(c),");"),g='@font-face {font-family:"'.concat(u,'";src:').concat(p,"}");this.insertRule(g);const m=this._document.createElement("div");m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px";for(const v of[t.loadedName,u]){const t=this._document.createElement("span");t.textContent="Hi",t.style.fontFamily=v,m.append(t)}this._document.body.append(m),function t(e,n){if(++l>30)return mt("Load test font never loaded."),void n();a.font="30px "+e,a.fillText(".",0,20),a.getImageData(0,0,1,1).data[3]>0?n():setTimeout(t.bind(null,e,n))}(u,()=>{m.remove(),e.complete()})}}var Eo=new WeakMap;class ko{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;a(this,Eo,void 0),this.compiledGlyphs=Object.create(null),h(Eo,this,t),this._inspectFont=e,n&&Object.assign(this,n),i&&(this.charProcOperatorList=i)}createNativeFontFace(){var t;if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return null===(t=this._inspectFont)||void 0===t||t.call(this,this),e}createFontFaceRule(){var t;if(!this.data||this.disableFontFace)return null;const e="url(data:".concat(this.mimetype,";base64,").concat(jt(this.data),");");let n;if(this.cssFontInfo){let t="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(t+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),n='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(t,"src:").concat(e,"}")}else n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(e,"}");return null===(t=this._inspectFont)||void 0===t||t.call(this,this,e),n}getPathGenerator(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];const n=this.loadedName+"_path_"+e;let i;try{i=t.get(n)}catch(o){mt('getPathGenerator - ignoring character: "'.concat(o,'".'))}const r=new Path2D(i||"");return this.fontExtraProperties||t.delete(n),this.compiledGlyphs[e]=r}get black(){return c(Eo,this).black}get bold(){return c(Eo,this).bold}get disableFontFace(){var t;return null!==(t=c(Eo,this).disableFontFace)&&void 0!==t&&t}get fontExtraProperties(){var t;return null!==(t=c(Eo,this).fontExtraProperties)&&void 0!==t&&t}get isInvalidPDFjsFont(){return c(Eo,this).isInvalidPDFjsFont}get isType3Font(){return c(Eo,this).isType3Font}get italic(){return c(Eo,this).italic}get missingFile(){return c(Eo,this).missingFile}get remeasure(){return c(Eo,this).remeasure}get vertical(){return c(Eo,this).vertical}get ascent(){return c(Eo,this).ascent}get defaultWidth(){return c(Eo,this).defaultWidth}get descent(){return c(Eo,this).descent}get bbox(){return c(Eo,this).bbox}get fontMatrix(){return c(Eo,this).fontMatrix}get fallbackName(){return c(Eo,this).fallbackName}get loadedName(){return c(Eo,this).loadedName}get mimetype(){return c(Eo,this).mimetype}get name(){return c(Eo,this).name}get data(){return c(Eo,this).data}clearData(){c(Eo,this).clearData()}get cssFontInfo(){return c(Eo,this).cssFontInfo}get systemFontInfo(){return c(Eo,this).systemFontInfo}get defaultVMetrics(){return c(Eo,this).defaultVMetrics}}function Mo(t){if("string"!==typeof t)return null;if(t.endsWith("/"))return t;throw new Error('Invalid factory url: "'.concat(t,'" must include trailing slash.'))}const To=t=>"object"===typeof t&&Number.isInteger(null===t||void 0===t?void 0:t.num)&&t.num>=0&&Number.isInteger(null===t||void 0===t?void 0:t.gen)&&t.gen>=0,Po=function(t,e,n){if(!Array.isArray(n)||n.length<2)return!1;const[i,r,...o]=n;if(!t(i)&&!Number.isInteger(i))return!1;if(!e(r))return!1;const s=o.length;let a=!0;switch(r.name){case"XYZ":if(s<2||s>3)return!1;break;case"Fit":case"FitB":return 0===s;case"FitH":case"FitBH":case"FitV":case"FitBV":if(s>1)return!1;break;case"FitR":if(4!==s)return!1;a=!1;break;default:return!1}for(const l of o)if(!("number"===typeof l||a&&null===l))return!1;return!0}.bind(null,To,t=>"object"===typeof t&&"string"===typeof(null===t||void 0===t?void 0:t.name));var _o=new WeakMap,Ro=new WeakMap;class Bo{constructor(){a(this,_o,new Map),a(this,Ro,Promise.resolve())}postMessage(t,e){const n={data:structuredClone(t,e?{transfer:e}:null)};c(Ro,this).then(()=>{for(const[t]of c(_o,this))t.call(this,n)})}addEventListener(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;if((null===n||void 0===n?void 0:n.signal)instanceof AbortSignal){const{signal:r}=n;if(r.aborted)return void mt("LoopbackPort - cannot use an `aborted` signal.");const o=()=>this.removeEventListener(t,e);i=()=>r.removeEventListener("abort",o),r.addEventListener("abort",o)}c(_o,this).set(e,i)}removeEventListener(t,e){const n=c(_o,this).get(e);null===n||void 0===n||n(),c(_o,this).delete(e)}terminate(){for(const[,t]of c(_o,this))null===t||void 0===t||t();c(_o,this).clear()}}const Io=1,No=2,Lo=1,Oo=2,Wo=3,zo=4,jo=5,Uo=6,Go=7,Vo=8;function Ho(){}function qo(t){if(t instanceof kt||t instanceof St||t instanceof xt||t instanceof Ft||t instanceof Ct)return t;switch(t instanceof Error||"object"===typeof t&&null!==t||vt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new kt(t.message);case"InvalidPDFException":return new St(t.message);case"PasswordException":return new xt(t.message,t.code);case"ResponseException":return new Ft(t.message,t.status,t.missing);case"UnknownErrorException":return new Ct(t.message,t.details)}return new Ct(t.message,t.toString())}var Xo=new WeakMap,Ko=new WeakSet;class Yo{constructor(t,e,n){s(this,Ko),a(this,Xo,new AbortController),this.sourceName=t,this.targetName=e,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),n.addEventListener("message",l(Ko,this,Zo).bind(this),{signal:c(Xo,this).signal})}on(t,e){const n=this.actionHandler;if(n[t])throw new Error('There is already an actionName called "'.concat(t,'"'));n[t]=e}send(t,e,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},n)}sendWithPromise(t,e,n){const i=this.callbackId++,r=Promise.withResolvers();this.callbackCapabilities[i]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:e},n)}catch(o){r.reject(o)}return r.promise}sendWithStream(t,e,n,i){const r=this.streamId++,o=this.sourceName,s=this.targetName,a=this.comObj;return new ReadableStream({start:n=>{const l=Promise.withResolvers();return this.streamControllers[r]={controller:n,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},a.postMessage({sourceName:o,targetName:s,action:t,streamId:r,data:e,desiredSize:n.desiredSize},i),l.promise},pull:t=>{const e=Promise.withResolvers();return this.streamControllers[r].pullCall=e,a.postMessage({sourceName:o,targetName:s,stream:Uo,streamId:r,desiredSize:t.desiredSize}),e.promise},cancel:t=>{yt(t instanceof Error,"cancel must have a valid reason");const e=Promise.withResolvers();return this.streamControllers[r].cancelCall=e,this.streamControllers[r].isClosed=!0,a.postMessage({sourceName:o,targetName:s,stream:Lo,streamId:r,reason:qo(t)}),e.promise}},n)}destroy(){var t;null===(t=c(Xo,this))||void 0===t||t.abort(),h(Xo,this,null)}}function Zo(t){let{data:e}=t;if(e.targetName!==this.sourceName)return;if(e.stream)return void l(Ko,this,Jo).call(this,e);if(e.callback){const t=e.callbackId,n=this.callbackCapabilities[t];if(!n)throw new Error("Cannot resolve callback ".concat(t));if(delete this.callbackCapabilities[t],e.callback===Io)n.resolve(e.data);else{if(e.callback!==No)throw new Error("Unexpected callback case");n.reject(qo(e.reason))}return}const n=this.actionHandler[e.action];if(!n)throw new Error("Unknown action from worker: ".concat(e.action));if(e.callbackId){const t=this.sourceName,i=e.sourceName,r=this.comObj;return void Promise.try(n,e.data).then(function(n){r.postMessage({sourceName:t,targetName:i,callback:Io,callbackId:e.callbackId,data:n})},function(n){r.postMessage({sourceName:t,targetName:i,callback:No,callbackId:e.callbackId,reason:qo(n)})})}e.streamId?l(Ko,this,Qo).call(this,e):n(e.data)}function Qo(t){const e=t.streamId,n=this.sourceName,i=t.sourceName,r=this.comObj,o=this,s=this.actionHandler[t.action],a={enqueue(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const a=this.desiredSize;this.desiredSize-=o,a>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),r.postMessage({sourceName:n,targetName:i,stream:zo,streamId:e,chunk:t},s)},close(){this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:n,targetName:i,stream:Wo,streamId:e}),delete o.streamSinks[e])},error(t){yt(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:n,targetName:i,stream:jo,streamId:e,reason:qo(t)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};a.sinkCapability.resolve(),a.ready=a.sinkCapability.promise,this.streamSinks[e]=a,Promise.try(s,t.data,a).then(function(){r.postMessage({sourceName:n,targetName:i,stream:Vo,streamId:e,success:!0})},function(t){r.postMessage({sourceName:n,targetName:i,stream:Vo,streamId:e,reason:qo(t)})})}function Jo(t){const e=t.streamId,n=this.sourceName,i=t.sourceName,r=this.comObj,o=this.streamControllers[e],s=this.streamSinks[e];switch(t.stream){case Vo:t.success?o.startCall.resolve():o.startCall.reject(qo(t.reason));break;case Go:t.success?o.pullCall.resolve():o.pullCall.reject(qo(t.reason));break;case Uo:if(!s){r.postMessage({sourceName:n,targetName:i,stream:Go,streamId:e,success:!0});break}s.desiredSize<=0&&t.desiredSize>0&&s.sinkCapability.resolve(),s.desiredSize=t.desiredSize,Promise.try(s.onPull||Ho).then(function(){r.postMessage({sourceName:n,targetName:i,stream:Go,streamId:e,success:!0})},function(t){r.postMessage({sourceName:n,targetName:i,stream:Go,streamId:e,reason:qo(t)})});break;case zo:if(yt(o,"enqueue should have stream controller"),o.isClosed)break;o.controller.enqueue(t.chunk);break;case Wo:if(yt(o,"close should have stream controller"),o.isClosed)break;o.isClosed=!0,o.controller.close(),l(Ko,this,$o).call(this,o,e);break;case jo:yt(o,"error should have stream controller"),o.controller.error(qo(t.reason)),l(Ko,this,$o).call(this,o,e);break;case Oo:t.success?o.cancelCall.resolve():o.cancelCall.reject(qo(t.reason)),l(Ko,this,$o).call(this,o,e);break;case Lo:if(!s)break;const a=qo(t.reason);Promise.try(s.onCancel||Ho,a).then(function(){r.postMessage({sourceName:n,targetName:i,stream:Oo,streamId:e,success:!0})},function(t){r.postMessage({sourceName:n,targetName:i,stream:Oo,streamId:e,reason:qo(t)})}),s.sinkCapability.reject(a),s.isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}async function $o(t,e){var n,i,r;await Promise.allSettled([null===(n=t.startCall)||void 0===n?void 0:n.promise,null===(i=t.pullCall)||void 0===i?void 0:i.promise,null===(r=t.cancelCall)||void 0===r?void 0:r.promise]),delete this.streamControllers[e]}var ts=new WeakMap;class es{constructor(t){let{enableHWA:e=!1}=t;a(this,ts,!1),h(ts,this,e)}create(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(t,e);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!c(ts,this)})}}reset(t,e,n){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||n<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=n}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,e){vt("Abstract method `_createCanvas` called.")}}class ns extends es{constructor(t){let{ownerDocument:e=globalThis.document,enableHWA:n=!1}=t;super({enableHWA:n}),this._document=e}_createCanvas(t,e){const n=this._document.createElement("canvas");return n.width=t,n.height=e,n}}class is{constructor(t){let{baseUrl:e=null,isCompressed:n=!0}=t;this.baseUrl=e,this.isCompressed=n}async fetch(t){let{name:e}=t;if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");const n=this.baseUrl+e+(this.isCompressed?".bcmap":"");return this._fetch(n).then(t=>({cMapData:t,isCompressed:this.isCompressed})).catch(t=>{throw new Error("Unable to load ".concat(this.isCompressed?"binary ":"","CMap at: ").concat(n))})}async _fetch(t){vt("Abstract method `_fetch` called.")}}class rs extends is{async _fetch(t){const e=await qt(t,this.isCompressed?"arraybuffer":"text");return e instanceof ArrayBuffer?new Uint8Array(e):Tt(e)}}class os{addFilter(t){return"none"}addHCMFilter(t,e){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,e,n,i,r){return"none"}destroy(){}}var ss=new WeakMap,as=new WeakMap,ls=new WeakMap,us=new WeakMap,cs=new WeakMap,hs=new WeakMap,ds=new WeakMap,fs=new WeakSet;class ps extends os{constructor(t){let{docId:e,ownerDocument:n=globalThis.document}=t;super(),s(this,fs),a(this,ss,void 0),a(this,as,void 0),a(this,ls,void 0),a(this,us,void 0),a(this,cs,void 0),a(this,hs,void 0),a(this,ds,0),h(us,this,e),h(cs,this,n)}addFilter(t){var e,n;if(!t)return"none";let i=u(fs,this,gs).get(t);if(i)return i;const[r,o,s]=l(fs,this,ys).call(this,t),a=1===t.length?r:"".concat(r).concat(o).concat(s);if(i=u(fs,this,gs).get(a),i)return u(fs,this,gs).set(t,i),i;const d="g_".concat(c(us,this),"_transfer_map_").concat((h(ds,this,(e=c(ds,this),n=e++,e)),n)),f=l(fs,this,bs).call(this,d);u(fs,this,gs).set(t,f),u(fs,this,gs).set(a,f);const p=l(fs,this,As).call(this,d);return l(fs,this,Cs).call(this,r,o,s,p),f}addHCMFilter(t,e){var n;const i="".concat(t,"-").concat(e),r="base";let o=u(fs,this,ms).get(r);if((null===(n=o)||void 0===n?void 0:n.key)===i)return o.url;var s;o?(null===(s=o.filter)||void 0===s||s.remove(),o.key=i,o.url="none",o.filter=null):(o={key:i,url:"none",filter:null},u(fs,this,ms).set(r,o));if(!t||!e)return o.url;const a=l(fs,this,Fs).call(this,t);t=Rt.makeHexColor(...a);const h=l(fs,this,Fs).call(this,e);if(e=Rt.makeHexColor(...h),u(fs,this,vs).style.color="","#000000"===t&&"#ffffff"===e||t===e)return o.url;const d=new Array(256);for(let l=0;l<=255;l++){const t=l/255;d[l]=t<=.03928?t/12.92:((t+.055)/1.055)**2.4}const f=d.join(","),p="g_".concat(c(us,this),"_hcm_filter"),g=o.filter=l(fs,this,As).call(this,p);l(fs,this,Cs).call(this,f,f,f,g),l(fs,this,Ds).call(this,g);const m=(t,e)=>{const n=a[t]/255,i=h[t]/255,r=new Array(e+1);for(let o=0;o<=e;o++)r[o]=n+o/e*(i-n);return r.join(",")};return l(fs,this,Cs).call(this,m(0,5),m(1,5),m(2,5),g),o.url=l(fs,this,bs).call(this,p),o.url}addAlphaFilter(t){var e,n;let i=u(fs,this,gs).get(t);if(i)return i;const[r]=l(fs,this,ys).call(this,[t]),o="alpha_".concat(r);if(i=u(fs,this,gs).get(o),i)return u(fs,this,gs).set(t,i),i;const s="g_".concat(c(us,this),"_alpha_map_").concat((h(ds,this,(e=c(ds,this),n=e++,e)),n)),a=l(fs,this,bs).call(this,s);u(fs,this,gs).set(t,a),u(fs,this,gs).set(o,a);const d=l(fs,this,As).call(this,s);return l(fs,this,Ss).call(this,r,d),a}addLuminosityFilter(t){var e,n;let i,r,o=u(fs,this,gs).get(t||"luminosity");if(o)return o;if(t?([i]=l(fs,this,ys).call(this,[t]),r="luminosity_".concat(i)):r="luminosity",o=u(fs,this,gs).get(r),o)return u(fs,this,gs).set(t,o),o;const s="g_".concat(c(us,this),"_luminosity_map_").concat((h(ds,this,(e=c(ds,this),n=e++,e)),n)),a=l(fs,this,bs).call(this,s);u(fs,this,gs).set(t,a),u(fs,this,gs).set(r,a);const d=l(fs,this,As).call(this,s);return l(fs,this,ws).call(this,d),t&&l(fs,this,Ss).call(this,i,d),a}addHighlightHCMFilter(t,e,n,i,r){var o;const s="".concat(e,"-").concat(n,"-").concat(i,"-").concat(r);let a=u(fs,this,ms).get(t);if((null===(o=a)||void 0===o?void 0:o.key)===s)return a.url;var h;a?(null===(h=a.filter)||void 0===h||h.remove(),a.key=s,a.url="none",a.filter=null):(a={key:s,url:"none",filter:null},u(fs,this,ms).set(t,a));if(!e||!n)return a.url;const[d,f]=[e,n].map(l(fs,this,Fs).bind(this));let p=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),g=Math.round(.2126*f[0]+.7152*f[1]+.0722*f[2]),[m,v]=[i,r].map(l(fs,this,Fs).bind(this));g<p&&([p,g,m,v]=[g,p,v,m]),u(fs,this,vs).style.color="";const y=(t,e,n)=>{const i=new Array(256),r=(g-p)/n,o=t/255,s=(e-t)/(255*n);let a=0;for(let l=0;l<=n;l++){const t=Math.round(p+l*r),e=o+l*s;for(let n=a;n<=t;n++)i[n]=e;a=t+1}for(let l=a;l<256;l++)i[l]=i[a-1];return i.join(",")},b="g_".concat(c(us,this),"_hcm_").concat(t,"_filter"),w=a.filter=l(fs,this,As).call(this,b);return l(fs,this,Ds).call(this,w),l(fs,this,Cs).call(this,y(m[0],v[0],5),y(m[1],v[1],5),y(m[2],v[2],5),w),a.url=l(fs,this,bs).call(this,b),a.url}destroy(){var t,e,n,i;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&null!==(t=c(hs,this))&&void 0!==t&&t.size||(null===(e=c(ls,this))||void 0===e||e.parentNode.parentNode.remove(),h(ls,this,null),null===(n=c(as,this))||void 0===n||n.clear(),h(as,this,null),null===(i=c(hs,this))||void 0===i||i.clear(),h(hs,this,null),h(ds,this,0))}}function gs(t){return c(as,t)||h(as,t,new Map)}function ms(t){return c(hs,t)||h(hs,t,new Map)}function vs(t){if(!c(ls,t)){const e=c(cs,t).createElement("div"),{style:n}=e;n.visibility="hidden",n.contain="strict",n.width=n.height=0,n.position="absolute",n.top=n.left=0,n.zIndex=-1;const i=c(cs,t).createElementNS(Vt,"svg");i.setAttribute("width",0),i.setAttribute("height",0),h(ls,t,c(cs,t).createElementNS(Vt,"defs")),e.append(i),i.append(c(ls,t)),c(cs,t).body.append(e)}return c(ls,t)}function ys(t){if(1===t.length){const e=t[0],n=new Array(256);for(let t=0;t<256;t++)n[t]=e[t]/255;const i=n.join(",");return[i,i,i]}const[e,n,i]=t,r=new Array(256),o=new Array(256),s=new Array(256);for(let a=0;a<256;a++)r[a]=e[a]/255,o[a]=n[a]/255,s[a]=i[a]/255;return[r.join(","),o.join(","),s.join(",")]}function bs(t){if(void 0===c(ss,this)){h(ss,this,"");const t=c(cs,this).URL;t!==c(cs,this).baseURI&&(Yt(t)?mt('#createUrl: ignore "data:"-URL for performance reasons.'):h(ss,this,wt(t,"")))}return"url(".concat(c(ss,this),"#").concat(t,")")}function ws(t){const e=c(cs,this).createElementNS(Vt,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(e)}function Ds(t){const e=c(cs,this).createElementNS(Vt,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(e)}function As(t){const e=c(cs,this).createElementNS(Vt,"filter");return e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("id",t),u(fs,this,vs).append(e),e}function xs(t,e,n){const i=c(cs,this).createElementNS(Vt,e);i.setAttribute("type","discrete"),i.setAttribute("tableValues",n),t.append(i)}function Cs(t,e,n,i){const r=c(cs,this).createElementNS(Vt,"feComponentTransfer");i.append(r),l(fs,this,xs).call(this,r,"feFuncR",t),l(fs,this,xs).call(this,r,"feFuncG",e),l(fs,this,xs).call(this,r,"feFuncB",n)}function Ss(t,e){const n=c(cs,this).createElementNS(Vt,"feComponentTransfer");e.append(n),l(fs,this,xs).call(this,n,"feFuncA",t)}function Fs(t){return u(fs,this,vs).style.color=t,ie(getComputedStyle(u(fs,this,vs)).getPropertyValue("color"))}class Es{constructor(t){let{baseUrl:e=null}=t;this.baseUrl=e}async fetch(t){let{filename:e}=t;if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");const n="".concat(this.baseUrl).concat(e);return this._fetch(n).catch(t=>{throw new Error("Unable to load font data at: ".concat(n))})}async _fetch(t){vt("Abstract method `_fetch` called.")}}class ks extends Es{async _fetch(t){const e=await qt(t,"arraybuffer");return new Uint8Array(e)}}class Ms{constructor(t){let{baseUrl:e=null}=t;this.baseUrl=e}async fetch(t){let{filename:e}=t;if(!this.baseUrl)throw new Error("Ensure that the `wasmUrl` API parameter is provided.");if(!e)throw new Error("Wasm filename must be specified.");const n="".concat(this.baseUrl).concat(e);return this._fetch(n).catch(t=>{throw new Error("Unable to load wasm data at: ".concat(n))})}async _fetch(t){vt("Abstract method `_fetch` called.")}}class Ts extends Ms{async _fetch(t){const e=await qt(t,"arraybuffer");return new Uint8Array(e)}}async function Ps(t){const e=process.getBuiltinModule("fs"),n=await e.promises.readFile(t);return new Uint8Array(n)}_&&mt("Please use the `legacy` build in Node.js environments.");class _s extends os{}class Rs extends es{_createCanvas(t,e){return process.getBuiltinModule("module").createRequire("file:///home/runner/work/react-pdf-sign/react-pdf-sign/node_modules/pdfjs-dist/build/pdf.mjs")("@napi-rs/canvas").createCanvas(t,e)}}class Bs extends is{async _fetch(t){return Ps(t)}}class Is extends Es{async _fetch(t){return Ps(t)}}class Ns extends Ms{async _fetch(t){return Ps(t)}}const Ls="__forcedDependency",{floor:Os,ceil:Ws}=Math;function zs(t,e,n,i,r,o){t[4*e+0]=Math.min(t[4*e+0],n),t[4*e+1]=Math.min(t[4*e+1],i),t[4*e+2]=Math.max(t[4*e+2],r),t[4*e+3]=Math.max(t[4*e+3],o)}const js=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0];var Us=new WeakMap,Gs=new WeakMap;class Vs{constructor(t,e){a(this,Us,void 0),a(this,Gs,void 0),h(Us,this,t),h(Gs,this,e)}get length(){return c(Us,this).length}isEmpty(t){return c(Us,this)[t]===js}minX(t){return c(Gs,this)[4*t+0]/256}minY(t){return c(Gs,this)[4*t+1]/256}maxX(t){return(c(Gs,this)[4*t+2]+1)/256}maxY(t){return(c(Gs,this)[4*t+3]+1)/256}}const Hs=(t,e)=>{if(!t)return;let n=t.get(e);return n||(n={dependencies:new Set,isRenderingOperation:!1},t.set(e,n)),n};var qs=new WeakMap,Xs=new WeakMap,Ks=new WeakMap,Ys=new WeakMap,Zs=new WeakMap,Qs=new WeakMap,Js=new WeakMap,$s=new WeakMap,ta=new WeakMap,ea=new WeakMap,na=new WeakMap,ia=new WeakMap,ra=new WeakMap,oa=new WeakMap,sa=new WeakMap,aa=new WeakMap,la=new WeakMap,ua=new WeakSet;class ca{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,ua),a(this,qs,{__proto__:null}),a(this,Xs,{__proto__:null,transform:[],moveText:[],sameLineText:[],[Ls]:[]}),a(this,Ks,new Map),a(this,Ys,[]),a(this,Zs,[]),a(this,Qs,[[1,0,0,1,0,0]]),a(this,Js,[-1/0,-1/0,1/0,1/0]),a(this,$s,new Float64Array([1/0,1/0,-1/0,-1/0])),a(this,ta,-1),a(this,ea,new Set),a(this,na,new Map),a(this,ia,new Map),a(this,ra,void 0),a(this,oa,void 0),a(this,sa,void 0),a(this,aa,void 0),a(this,la,void 0),h(ra,this,t.width),h(oa,this,t.height),l(ua,this,ha).call(this,e),n&&h(la,this,new Map)}growOperationsCount(t){t>=c(aa,this).length&&l(ua,this,ha).call(this,t,c(aa,this))}save(t){return h(qs,this,{__proto__:c(qs,this)}),h(Xs,this,{__proto__:c(Xs,this),transform:{__proto__:c(Xs,this).transform},moveText:{__proto__:c(Xs,this).moveText},sameLineText:{__proto__:c(Xs,this).sameLineText},[Ls]:{__proto__:c(Xs,this)[Ls]}}),h(Js,this,{__proto__:c(Js,this)}),c(Ys,this).push(t),this}restore(t){const e=Object.getPrototypeOf(c(qs,this));if(null===e)return this;h(qs,this,e),h(Xs,this,Object.getPrototypeOf(c(Xs,this))),h(Js,this,Object.getPrototypeOf(c(Js,this)));const n=c(Ys,this).pop();var i;void 0!==n&&(null===(i=Hs(c(la,this),t))||void 0===i||i.dependencies.add(n),c(aa,this)[t]=c(aa,this)[n]);return this}recordOpenMarker(t){return c(Ys,this).push(t),this}getOpenMarker(){return 0===c(Ys,this).length?null:c(Ys,this).at(-1)}recordCloseMarker(t){const e=c(Ys,this).pop();var n;void 0!==e&&(null===(n=Hs(c(la,this),t))||void 0===n||n.dependencies.add(e),c(aa,this)[t]=c(aa,this)[e]);return this}beginMarkedContent(t){return c(Zs,this).push(t),this}endMarkedContent(t){const e=c(Zs,this).pop();var n;void 0!==e&&(null===(n=Hs(c(la,this),t))||void 0===n||n.dependencies.add(e),c(aa,this)[t]=c(aa,this)[e]);return this}pushBaseTransform(t){return c(Qs,this).push(Rt.multiplyByDOMMatrix(c(Qs,this).at(-1),t.getTransform())),this}popBaseTransform(){return c(Qs,this).length>1&&c(Qs,this).pop(),this}recordSimpleData(t,e){return c(qs,this)[t]=e,this}recordIncrementalData(t,e){return c(Xs,this)[t].push(e),this}resetIncrementalData(t,e){return c(Xs,this)[t].length=0,this}recordNamedData(t,e){return c(Ks,this).set(t,e),this}recordSimpleDataFromNamed(t,e,n){var i;c(qs,this)[t]=null!==(i=c(Ks,this).get(e))&&void 0!==i?i:n}recordFutureForcedDependency(t,e){return this.recordIncrementalData(Ls,e),this}inheritSimpleDataAsFutureForcedDependencies(t){for(const e of t)e in c(qs,this)&&this.recordFutureForcedDependency(e,c(qs,this)[e]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(const t of c(ea,this))this.recordFutureForcedDependency(Ls,t);return this}resetBBox(t){return c(ta,this)!==t&&(h(ta,this,t),c($s,this)[0]=1/0,c($s,this)[1]=1/0,c($s,this)[2]=-1/0,c($s,this)[3]=-1/0),this}recordClipBox(t,e,n,i,r,o){const s=Rt.multiplyByDOMMatrix(c(Qs,this).at(-1),e.getTransform()),a=[1/0,1/0,-1/0,-1/0];Rt.axialAlignedBoundingBox([n,r,i,o],s,a);const l=Rt.intersect(c(Js,this),a);return l?(c(Js,this)[0]=l[0],c(Js,this)[1]=l[1],c(Js,this)[2]=l[2],c(Js,this)[3]=l[3]):(c(Js,this)[0]=c(Js,this)[1]=1/0,c(Js,this)[2]=c(Js,this)[3]=-1/0),this}recordBBox(t,e,n,i,r,o){const s=c(Js,this);if(s[0]===1/0)return this;const a=Rt.multiplyByDOMMatrix(c(Qs,this).at(-1),e.getTransform());if(s[0]===-1/0)return Rt.axialAlignedBoundingBox([n,r,i,o],a,c($s,this)),this;const l=[1/0,1/0,-1/0,-1/0];return Rt.axialAlignedBoundingBox([n,r,i,o],a,l),c($s,this)[0]=Math.min(c($s,this)[0],Math.max(l[0],s[0])),c($s,this)[1]=Math.min(c($s,this)[1],Math.max(l[1],s[1])),c($s,this)[2]=Math.max(c($s,this)[2],Math.min(l[2],s[2])),c($s,this)[3]=Math.max(c($s,this)[3],Math.min(l[3],s[3])),this}recordCharacterBBox(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6?arguments[6]:void 0;const a=n.bbox;let l,u;if(a&&(l=a[2]!==a[0]&&a[3]!==a[1]&&c(ia,this).get(n),!1!==l&&(u=[0,0,0,0],Rt.axialAlignedBoundingBox(a,n.fontMatrix,u),1===i&&0===r&&0===o||Rt.scaleMinMax([i,0,0,-i,r,o],u),l)))return this.recordBBox(t,e,u[0],u[2],u[1],u[3]);if(!s)return this.recordFullPageBBox(t);const h=s();return a&&u&&void 0===l&&(l=u[0]<=r-h.actualBoundingBoxLeft&&u[2]>=r+h.actualBoundingBoxRight&&u[1]<=o-h.actualBoundingBoxAscent&&u[3]>=o+h.actualBoundingBoxDescent,c(ia,this).set(n,l),l)?this.recordBBox(t,e,u[0],u[2],u[1],u[3]):this.recordBBox(t,e,r-h.actualBoundingBoxLeft,r+h.actualBoundingBoxRight,o-h.actualBoundingBoxAscent,o+h.actualBoundingBoxDescent)}recordFullPageBBox(t){return c($s,this)[0]=Math.max(0,c(Js,this)[0]),c($s,this)[1]=Math.max(0,c(Js,this)[1]),c($s,this)[2]=Math.min(c(ra,this),c(Js,this)[2]),c($s,this)[3]=Math.min(c(oa,this),c(Js,this)[3]),this}getSimpleIndex(t){return c(qs,this)[t]}recordDependencies(t,e){const n=c(ea,this),i=c(qs,this),r=c(Xs,this);for(const o of e)o in c(qs,this)?n.add(i[o]):o in r&&r[o].forEach(n.add,n);return this}recordNamedDependency(t,e){return c(Ks,this).has(e)&&c(ea,this).add(c(Ks,this).get(e)),this}recordOperation(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.recordDependencies(t,[Ls]),c(la,this)){const e=Hs(c(la,this),t),{dependencies:n}=e;c(ea,this).forEach(n.add,n),c(Ys,this).forEach(n.add,n),c(Zs,this).forEach(n.add,n),n.delete(t),e.isRenderingOperation=!0}if(c(ta,this)===t){const n=Os(256*c($s,this)[0]/c(ra,this)),i=Os(256*c($s,this)[1]/c(oa,this)),r=Ws(256*c($s,this)[2]/c(ra,this)),o=Ws(256*c($s,this)[3]/c(oa,this));zs(c(sa,this),t,n,i,r,o);for(const e of c(ea,this))e!==t&&zs(c(sa,this),e,n,i,r,o);for(const e of c(Ys,this))e!==t&&zs(c(sa,this),e,n,i,r,o);for(const e of c(Zs,this))e!==t&&zs(c(sa,this),e,n,i,r,o);e||(c(ea,this).clear(),h(ta,this,-1))}return this}recordShowTextOperation(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Array.from(c(ea,this));this.recordOperation(t,e),this.recordIncrementalData("sameLineText",t);for(const i of n)this.recordIncrementalData("sameLineText",i);return this}bboxToClipBoxDropOperation(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c(ta,this)===t&&(h(ta,this,-1),c(Js,this)[0]=Math.max(c(Js,this)[0],c($s,this)[0]),c(Js,this)[1]=Math.max(c(Js,this)[1],c($s,this)[1]),c(Js,this)[2]=Math.min(c(Js,this)[2],c($s,this)[2]),c(Js,this)[3]=Math.min(c(Js,this)[3],c($s,this)[3]),e||c(ea,this).clear()),this}_takePendingDependencies(){const t=c(ea,this);return h(ea,this,new Set),t}_extractOperation(t){const e=c(na,this).get(t);return c(na,this).delete(t),e}_pushPendingDependencies(t){for(const e of t)c(ea,this).add(e)}take(){return c(ia,this).clear(),new Vs(c(aa,this),c(sa,this))}takeDebugMetadata(){return c(la,this)}}function ha(t,e){const n=new ArrayBuffer(4*t);h(sa,this,new Uint8ClampedArray(n)),h(aa,this,new Uint32Array(n)),e&&e.length>0?(c(aa,this).set(e),c(aa,this).fill(js,e.length)):c(aa,this).fill(js)}var da=new WeakMap,fa=new WeakMap,pa=new WeakMap,ga=new WeakMap,ma=new WeakMap;class va{constructor(t,e,n){if(a(this,da,void 0),a(this,fa,void 0),a(this,pa,void 0),a(this,ga,0),a(this,ma,0),t instanceof va&&c(pa,t)===!!n)return t;h(da,this,t),h(fa,this,e),h(pa,this,!!n)}growOperationsCount(){throw new Error("Unreachable")}save(t){var e;return h(ma,this,(e=c(ma,this),e++,e)),c(da,this).save(c(fa,this)),this}restore(t){var e;c(ma,this)>0&&(c(da,this).restore(c(fa,this)),h(ma,this,(e=c(ma,this),e--,e)));return this}recordOpenMarker(t){var e;return h(ga,this,(e=c(ga,this),e++,e)),this}getOpenMarker(){return c(ga,this)>0?c(fa,this):c(da,this).getOpenMarker()}recordCloseMarker(t){var e;return h(ga,this,(e=c(ga,this),e--,e)),this}beginMarkedContent(t){return this}endMarkedContent(t){return this}pushBaseTransform(t){return c(da,this).pushBaseTransform(t),this}popBaseTransform(){return c(da,this).popBaseTransform(),this}recordSimpleData(t,e){return c(da,this).recordSimpleData(t,c(fa,this)),this}recordIncrementalData(t,e){return c(da,this).recordIncrementalData(t,c(fa,this)),this}resetIncrementalData(t,e){return c(da,this).resetIncrementalData(t,c(fa,this)),this}recordNamedData(t,e){return this}recordSimpleDataFromNamed(t,e,n){return c(da,this).recordSimpleDataFromNamed(t,e,c(fa,this)),this}recordFutureForcedDependency(t,e){return c(da,this).recordFutureForcedDependency(t,c(fa,this)),this}inheritSimpleDataAsFutureForcedDependencies(t){return c(da,this).inheritSimpleDataAsFutureForcedDependencies(t),this}inheritPendingDependenciesAsFutureForcedDependencies(){return c(da,this).inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(t){return c(pa,this)||c(da,this).resetBBox(c(fa,this)),this}recordClipBox(t,e,n,i,r,o){return c(pa,this)||c(da,this).recordClipBox(c(fa,this),e,n,i,r,o),this}recordBBox(t,e,n,i,r,o){return c(pa,this)||c(da,this).recordBBox(c(fa,this),e,n,i,r,o),this}recordCharacterBBox(t,e,n,i,r,o,s){return c(pa,this)||c(da,this).recordCharacterBBox(c(fa,this),e,n,i,r,o,s),this}recordFullPageBBox(t){return c(pa,this)||c(da,this).recordFullPageBBox(c(fa,this)),this}getSimpleIndex(t){return c(da,this).getSimpleIndex(t)}recordDependencies(t,e){return c(da,this).recordDependencies(c(fa,this),e),this}recordNamedDependency(t,e){return c(da,this).recordNamedDependency(c(fa,this),e),this}recordOperation(t){return c(da,this).recordOperation(c(fa,this),!0),this}recordShowTextOperation(t){return c(da,this).recordShowTextOperation(c(fa,this),!0),this}bboxToClipBoxDropOperation(t){return c(pa,this)||c(da,this).bboxToClipBoxDropOperation(c(fa,this),!0),this}take(){throw new Error("Unreachable")}takeDebugMetadata(){throw new Error("Unreachable")}}const ya=["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],ba=["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],wa=["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],Da=["filter","fillColor","fillAlpha"],Aa=["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],xa=["transform"],Ca=["transform","fillColor"],Sa="Fill",Fa="Stroke",Ea="Shading";function ka(t,e){if(!e)return;const n=e[2]-e[0],i=e[3]-e[1],r=new Path2D;r.rect(e[0],e[1],n,i),t.clip(r)}class Ma{isModifyingCurrentTransform(){return!1}getPattern(){vt("Abstract method `getPattern` called.")}}class Ta extends Ma{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let e;"axial"===this._type?e=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(e=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)e.addColorStop(n[0],n[1]);return e}getPattern(t,e,n,i){let r;if(i===Fa||i===Sa){const o=e.current.getClippedPathBoundingBox(i,re(t))||[0,0,0,0],s=Math.ceil(o[2]-o[0])||1,a=Math.ceil(o[3]-o[1])||1,l=e.cachedCanvases.getCanvas("pattern",s,a),u=l.context;u.clearRect(0,0,u.canvas.width,u.canvas.height),u.beginPath(),u.rect(0,0,u.canvas.width,u.canvas.height),u.translate(-o[0],-o[1]),n=Rt.transform(n,[1,0,0,1,o[0],o[1]]),u.transform(...e.baseTransform),this.matrix&&u.transform(...this.matrix),ka(u,this._bbox),u.fillStyle=this._createGradient(u),u.fill(),r=t.createPattern(l.canvas,"no-repeat");const c=new DOMMatrix(n);r.setTransform(c)}else ka(t,this._bbox),r=this._createGradient(t);return r}}function Pa(t,e,n,i,r,o,s,a){const l=e.coords,u=e.colors,c=t.data,h=4*t.width;let d;l[n+1]>l[i+1]&&(d=n,n=i,i=d,d=o,o=s,s=d),l[i+1]>l[r+1]&&(d=i,i=r,r=d,d=s,s=a,a=d),l[n+1]>l[i+1]&&(d=n,n=i,i=d,d=o,o=s,s=d);const f=(l[n]+e.offsetX)*e.scaleX,p=(l[n+1]+e.offsetY)*e.scaleY,g=(l[i]+e.offsetX)*e.scaleX,m=(l[i+1]+e.offsetY)*e.scaleY,v=(l[r]+e.offsetX)*e.scaleX,y=(l[r+1]+e.offsetY)*e.scaleY;if(p>=y)return;const b=u[o],w=u[o+1],D=u[o+2],A=u[s],x=u[s+1],C=u[s+2],S=u[a],F=u[a+1],E=u[a+2],k=Math.round(p),M=Math.round(y);let T,P,_,R,B,I,N,L;for(let O=k;O<=M;O++){if(O<m){const t=O<p?0:(p-O)/(p-m);T=f-(f-g)*t,P=b-(b-A)*t,_=w-(w-x)*t,R=D-(D-C)*t}else{let t;t=O>y?1:m===y?0:(m-O)/(m-y),T=g-(g-v)*t,P=A-(A-S)*t,_=x-(x-F)*t,R=C-(C-E)*t}let t;t=O<p?0:O>y?1:(p-O)/(p-y),B=f-(f-v)*t,I=b-(b-S)*t,N=w-(w-F)*t,L=D-(D-E)*t;const e=Math.round(Math.min(T,B)),n=Math.round(Math.max(T,B));let i=h*O+4*e;for(let r=e;r<=n;r++)t=(T-r)/(T-B),t<0?t=0:t>1&&(t=1),c[i++]=P-(P-I)*t|0,c[i++]=_-(_-N)*t|0,c[i++]=R-(R-L)*t|0,c[i++]=255}}function _a(t,e,n){const i=e.coords,r=e.colors;let o,s;switch(e.type){case"lattice":const a=e.verticesPerRow,l=Math.floor(i.length/a)-1,u=a-1;for(o=0;o<l;o++){let e=o*a;for(let o=0;o<u;o++,e++)Pa(t,n,i[e],i[e+1],i[e+a],r[e],r[e+1],r[e+a]),Pa(t,n,i[e+a+1],i[e+1],i[e+a],r[e+a+1],r[e+1],r[e+a])}break;case"triangles":for(o=0,s=i.length;o<s;o+=3)Pa(t,n,i[o],i[o+1],i[o+2],r[o],r[o+1],r[o+2]);break;default:throw new Error("illegal figure")}}class Ra extends Ma{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[6],this._background=t[7],this.matrix=null}_createMeshCanvas(t,e,n){const i=Math.floor(this._bounds[0]),r=Math.floor(this._bounds[1]),o=Math.ceil(this._bounds[2])-i,s=Math.ceil(this._bounds[3])-r,a=Math.min(Math.ceil(Math.abs(o*t[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(s*t[1]*1.1)),3e3),u=o/a,c=s/l,h={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-r,scaleX:1/u,scaleY:1/c},d=a+4,f=l+4,p=n.getCanvas("mesh",d,f),g=p.context,m=g.createImageData(a,l);if(e){const t=m.data;for(let n=0,i=t.length;n<i;n+=4)t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=255}for(const v of this._figures)_a(m,v,h);g.putImageData(m,2,2);return{canvas:p.canvas,offsetX:i-2*u,offsetY:r-2*c,scaleX:u,scaleY:c}}isModifyingCurrentTransform(){return!0}getPattern(t,e,n,i){ka(t,this._bbox);const r=new Float32Array(2);if(i===Ea)Rt.singularValueDecompose2dScale(re(t),r);else if(this.matrix){Rt.singularValueDecompose2dScale(this.matrix,r);const[t,n]=r;Rt.singularValueDecompose2dScale(e.baseTransform,r),r[0]*=t,r[1]*=n}else Rt.singularValueDecompose2dScale(e.baseTransform,r);const o=this._createMeshCanvas(r,i===Ea?null:this._background,e.cachedCanvases);return i!==Ea&&(t.setTransform(...e.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(o.offsetX,o.offsetY),t.scale(o.scaleX,o.scaleY),t.createPattern(o.canvas,"no-repeat")}}class Ba extends Ma{getPattern(){return"hotpink"}}const Ia=1,Na=2;class La{constructor(t,e,n,i){this.color=t[1],this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.ctx=e,this.canvasGraphicsFactory=n,this.baseTransform=i}createPatternCanvas(t,e){var n,i;const{bbox:r,operatorList:o,paintType:s,tilingType:a,color:l,canvasGraphicsFactory:u}=this;let{xstep:c,ystep:h}=this;c=Math.abs(c),h=Math.abs(h),gt("TilingType: "+a);const d=r[0],f=r[1],p=r[2],g=r[3],m=p-d,v=g-f,y=new Float32Array(2);Rt.singularValueDecompose2dScale(this.matrix,y);const[b,w]=y;Rt.singularValueDecompose2dScale(this.baseTransform,y);const D=b*y[0],A=w*y[1];let x=m,C=v,S=!1,F=!1;const E=Math.ceil(c*D),k=Math.ceil(h*A);E>=Math.ceil(m*D)?x=c:S=!0,k>=Math.ceil(v*A)?C=h:F=!0;const M=this.getSizeAndScale(x,this.ctx.canvas.width,D),T=this.getSizeAndScale(C,this.ctx.canvas.height,A),P=t.cachedCanvases.getCanvas("pattern",M.size,T.size),_=P.context,R=u.createCanvasGraphics(_,e);if(R.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(R,s,l),_.translate(-M.scale*d,-T.scale*f),R.transform(0,M.scale,0,0,T.scale,0,0),_.save(),null===(n=R.dependencyTracker)||void 0===n||n.save(),this.clipBbox(R,d,f,p,g),R.baseTransform=re(R.ctx),R.executeOperatorList(o),R.endDrawing(),null===(i=R.dependencyTracker)||void 0===i||i.restore(),_.restore(),S||F){const e=P.canvas;S&&(x=c),F&&(C=h);const n=this.getSizeAndScale(x,this.ctx.canvas.width,D),i=this.getSizeAndScale(C,this.ctx.canvas.height,A),r=n.size,o=i.size,s=t.cachedCanvases.getCanvas("pattern-workaround",r,o),a=s.context,l=S?Math.floor(m/c):0,u=F?Math.floor(v/h):0;for(let t=0;t<=l;t++)for(let n=0;n<=u;n++)a.drawImage(e,r*t,o*n,r,o,0,0,r,o);return{canvas:s.canvas,scaleX:n.scale,scaleY:i.scale,offsetX:d,offsetY:f}}return{canvas:P.canvas,scaleX:M.scale,scaleY:T.scale,offsetX:d,offsetY:f}}getSizeAndScale(t,e,n){const i=Math.max(La.MAX_PATTERN_SIZE,e);let r=Math.ceil(t*n);return r>=i?r=i:n=r/t,{scale:n,size:r}}clipBbox(t,e,n,i,r){const o=i-e,s=r-n;t.ctx.rect(e,n,o,s),Rt.axialAlignedBoundingBox([e,n,i,r],re(t.ctx),t.current.minMax),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,e,n){const i=t.ctx,r=t.current;switch(e){case Ia:const{fillStyle:t,strokeStyle:o}=this.ctx;i.fillStyle=r.fillColor=t,i.strokeStyle=r.strokeColor=o;break;case Na:i.fillStyle=i.strokeStyle=n,r.fillColor=r.strokeColor=n;break;default:throw new Et("Unsupported paint type: ".concat(e))}}isModifyingCurrentTransform(){return!1}getPattern(t,e,n,i,r){let o=n;i!==Ea&&(o=Rt.transform(o,e.baseTransform),this.matrix&&(o=Rt.transform(o,this.matrix)));const s=this.createPatternCanvas(e,r);let a=new DOMMatrix(o);a=a.translate(s.offsetX,s.offsetY),a=a.scale(1/s.scaleX,1/s.scaleY);const l=t.createPattern(s.canvas,"repeat");return l.setTransform(a),l}}function Oa(t){let{src:e,srcPos:n=0,dest:i,width:r,height:o,nonBlackColor:s=4294967295,inverseDecode:a=!1}=t;const l=Pt.isLittleEndian?4278190080:255,[u,c]=a?[s,l]:[l,s],h=r>>3,d=7&r,f=e.length;i=new Uint32Array(i.buffer);let p=0;for(let g=0;g<o;g++){for(const r=n+h;n<r;n++){const t=n<f?e[n]:255;i[p++]=128&t?c:u,i[p++]=64&t?c:u,i[p++]=32&t?c:u,i[p++]=16&t?c:u,i[p++]=8&t?c:u,i[p++]=4&t?c:u,i[p++]=2&t?c:u,i[p++]=1&t?c:u}if(0===d)continue;const t=n<f?e[n++]:255;for(let e=0;e<d;e++)i[p++]=t&1<<7-e?c:u}return{srcPos:n,destPos:p}}(0,T.A)(La,"MAX_PATTERN_SIZE",3e3);const Wa=16,za=new DOMMatrix,ja=new Float32Array(2),Ua=new Float32Array([1/0,1/0,-1/0,-1/0]);class Ga{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,e,n){let i;return void 0!==this.cache[t]?(i=this.cache[t],this.canvasFactory.reset(i,e,n)):(i=this.canvasFactory.create(e,n),this.cache[t]=i),i}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}}function Va(t,e,n,i,r,o,s,a,l,u){const[c,h,d,f,p,g]=re(t);if(0===h&&0===d){const m=s*c+p,v=Math.round(m),y=a*f+g,b=Math.round(y),w=(s+l)*c+p,D=Math.abs(Math.round(w)-v)||1,A=(a+u)*f+g,x=Math.abs(Math.round(A)-b)||1;return t.setTransform(Math.sign(c),0,0,Math.sign(f),v,b),t.drawImage(e,n,i,r,o,0,0,D,x),t.setTransform(c,h,d,f,p,g),[D,x]}if(0===c&&0===f){const m=a*d+p,v=Math.round(m),y=s*h+g,b=Math.round(y),w=(a+u)*d+p,D=Math.abs(Math.round(w)-v)||1,A=(s+l)*h+g,x=Math.abs(Math.round(A)-b)||1;return t.setTransform(0,Math.sign(h),Math.sign(d),0,v,b),t.drawImage(e,n,i,r,o,0,0,x,D),t.setTransform(c,h,d,f,p,g),[x,D]}t.drawImage(e,n,i,r,o,s,a,l,u);return[Math.hypot(c,h)*l,Math.hypot(d,f)*u]}class Ha{constructor(t,e,n){(0,T.A)(this,"alphaIsShape",!1),(0,T.A)(this,"fontSize",0),(0,T.A)(this,"fontSizeScale",1),(0,T.A)(this,"textMatrix",null),(0,T.A)(this,"textMatrixScale",1),(0,T.A)(this,"fontMatrix",R),(0,T.A)(this,"leading",0),(0,T.A)(this,"x",0),(0,T.A)(this,"y",0),(0,T.A)(this,"lineX",0),(0,T.A)(this,"lineY",0),(0,T.A)(this,"charSpacing",0),(0,T.A)(this,"wordSpacing",0),(0,T.A)(this,"textHScale",1),(0,T.A)(this,"textRenderingMode",X),(0,T.A)(this,"textRise",0),(0,T.A)(this,"fillColor","#000000"),(0,T.A)(this,"strokeColor","#000000"),(0,T.A)(this,"patternFill",!1),(0,T.A)(this,"patternStroke",!1),(0,T.A)(this,"fillAlpha",1),(0,T.A)(this,"strokeAlpha",1),(0,T.A)(this,"lineWidth",1),(0,T.A)(this,"activeSMask",null),(0,T.A)(this,"transferMaps","none"),null===n||void 0===n||n(this),this.clipBox=new Float32Array([0,0,t,e]),this.minMax=Ua.slice()}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t.minMax=this.minMax.slice(),t}getPathBoundingBox(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sa,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=this.minMax.slice();if(t===Fa){e||vt("Stroke bounding box must include transform."),Rt.singularValueDecompose2dScale(e,ja);const t=ja[0]*this.lineWidth/2,i=ja[1]*this.lineWidth/2;n[0]-=t,n[1]-=i,n[2]+=t,n[3]+=i}return n}updateClipFromPath(){const t=Rt.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(t){this.clipBox.set(t,0),this.minMax.set(Ua,0)}getClippedPathBoundingBox(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sa,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Rt.intersect(this.clipBox,this.getPathBoundingBox(t,e))}}function qa(t,e){if(e instanceof ImageData)return void t.putImageData(e,0,0);const n=e.height,i=e.width,r=n%Wa,o=(n-r)/Wa,s=0===r?o:o+1,a=t.createImageData(i,Wa);let l,u=0;const c=e.data,h=a.data;let d,f,p,g;if(e.kind===$.GRAYSCALE_1BPP){const e=c.byteLength,n=new Uint32Array(h.buffer,0,h.byteLength>>2),g=n.length,m=i+7>>3,v=4294967295,y=Pt.isLittleEndian?4278190080:255;for(d=0;d<s;d++){for(p=d<o?Wa:r,l=0,f=0;f<p;f++){const t=e-u;let r=0;const o=t>m?i:8*t-7,s=-8&o;let a=0,h=0;for(;r<s;r+=8)h=c[u++],n[l++]=128&h?v:y,n[l++]=64&h?v:y,n[l++]=32&h?v:y,n[l++]=16&h?v:y,n[l++]=8&h?v:y,n[l++]=4&h?v:y,n[l++]=2&h?v:y,n[l++]=1&h?v:y;for(;r<o;r++)0===a&&(h=c[u++],a=128),n[l++]=h&a?v:y,a>>=1}for(;l<g;)n[l++]=0;t.putImageData(a,0,d*Wa)}}else if(e.kind===$.RGBA_32BPP){for(f=0,g=i*Wa*4,d=0;d<o;d++)h.set(c.subarray(u,u+g)),u+=g,t.putImageData(a,0,f),f+=Wa;d<s&&(g=i*r*4,h.set(c.subarray(u,u+g)),t.putImageData(a,0,f))}else{if(e.kind!==$.RGB_24BPP)throw new Error("bad image kind: ".concat(e.kind));for(p=Wa,g=i*p,d=0;d<s;d++){for(d>=o&&(p=r,g=i*p),l=0,f=g;f--;)h[l++]=c[u++],h[l++]=c[u++],h[l++]=c[u++],h[l++]=255;t.putImageData(a,0,d*Wa)}}}function Xa(t,e){if(e.bitmap)return void t.drawImage(e.bitmap,0,0);const n=e.height,i=e.width,r=n%Wa,o=(n-r)/Wa,s=0===r?o:o+1,a=t.createImageData(i,Wa);let l=0;const u=e.data,c=a.data;for(let h=0;h<s;h++){const e=h<o?Wa:r;({srcPos:l}=Oa({src:u,srcPos:l,dest:c,width:i,height:e,nonBlackColor:0})),t.putImageData(a,0,h*Wa)}}function Ka(t,e){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const i of n)void 0!==t[i]&&(e[i]=t[i]);void 0!==t.setLineDash&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function Ya(t){t.strokeStyle=t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",void 0!==t.setLineDash&&(t.setLineDash([]),t.lineDashOffset=0);const{filter:e}=t;"none"!==e&&""!==e&&(t.filter="none")}function Za(t,e){if(e)return!0;Rt.singularValueDecompose2dScale(t,ja);const n=Math.fround(ae.pixelRatio*Ht.PDF_TO_CSS_UNITS);return ja[0]<=n&&ja[1]<=n}const Qa=["butt","round","square"],Ja=["miter","round","bevel"],$a={},tl={};var el=new WeakSet;class nl{constructor(t,e,n,i,r,o,a,l,u){let{optionalContentConfig:c,markedContentStack:h=null}=o;s(this,el),this.ctx=t,this.current=new Ha(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=n,this.canvasFactory=i,this.filterFactory=r,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=h||[],this.optionalContentConfig=c,this.cachedCanvases=new Ga(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=a,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=l,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map,this.dependencyTracker=null!==u&&void 0!==u?u:null}getObject(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var i;return"string"===typeof e?(null===(i=this.dependencyTracker)||void 0===i||i.recordNamedDependency(t,e),e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e)):n}beginDrawing(t){let{transform:e,viewport:n,transparency:i=!1,background:r=null}=t;const o=this.ctx.canvas.width,s=this.ctx.canvas.height,a=this.ctx.fillStyle;if(this.ctx.fillStyle=r||"#ffffff",this.ctx.fillRect(0,0,o,s),this.ctx.fillStyle=a,i){const t=this.cachedCanvases.getCanvas("transparent",o,s);this.compositeCtx=this.ctx,this.transparentCanvas=t.canvas,this.ctx=t.context,this.ctx.save(),this.ctx.transform(...re(this.compositeCtx))}this.ctx.save(),Ya(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=re(this.ctx)}executeOperatorList(t,e,n,i,r){const o=t.argsArray,s=t.fnArray;let a=e||0;const l=o.length;if(l===a)return a;const u=l-a>10&&"function"===typeof n,c=u?Date.now()+15:0;let h=0;const d=this.commonObjs,f=this.objs;let p,g;for(;;){if(void 0!==i&&a===i.nextBreakPoint)return i.breakIt(a,n),a;var m;if(!r||r(a))if(p=s[a],g=null!==(m=o[a])&&void 0!==m?m:null,p!==at.dependency)null===g?this[p](a):this[p](a,...g);else for(const t of g){var v;null===(v=this.dependencyTracker)||void 0===v||v.recordNamedData(t,a);const e=t.startsWith("g_")?d:f;if(!e.has(t))return e.get(t,n),a}if(a++,a===l)return a;if(u&&++h>10){if(Date.now()>c)return n(),a;h=0}}}endDrawing(){l(el,this,il).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const e of t.values())"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement&&(e.width=e.height=0);t.clear()}this._cachedBitmapsMap.clear(),l(el,this,rl).call(this)}_scaleImage(t,e){var n,i;const r=null!==(n=t.width)&&void 0!==n?n:t.displayWidth,o=null!==(i=t.height)&&void 0!==i?i:t.displayHeight;let s,a,l=Math.max(Math.hypot(e[0],e[1]),1),u=Math.max(Math.hypot(e[2],e[3]),1),c=r,h=o,d="prescale1";for(;l>2&&c>1||u>2&&h>1;){let e=c,n=h;l>2&&c>1&&(e=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c/2),l/=c/e),u>2&&h>1&&(n=h>=16384?Math.floor(h/2)-1||1:Math.ceil(h)/2,u/=h/n),s=this.cachedCanvases.getCanvas(d,e,n),a=s.context,a.clearRect(0,0,e,n),a.drawImage(t,0,0,c,h,0,0,e,n),t=s.canvas,c=e,h=n,d="prescale1"===d?"prescale2":"prescale1"}return{img:t,paintWidth:c,paintHeight:h}}_createMaskCanvas(t,e){var n;const i=this.ctx,{width:r,height:o}=e,s=this.current.fillColor,a=this.current.patternFill,l=re(i);let u,c,h,d;if((e.bitmap||e.data)&&e.count>1){const n=e.bitmap||e.data.buffer;c=JSON.stringify(a?l:[l.slice(0,4),s]),u=this._cachedBitmapsMap.get(n),u||(u=new Map,this._cachedBitmapsMap.set(n,u));const i=u.get(c);if(i&&!a){var f;const e=Math.round(Math.min(l[0],l[2])+l[4]),n=Math.round(Math.min(l[1],l[3])+l[5]);return null===(f=this.dependencyTracker)||void 0===f||f.recordDependencies(t,Ca),{canvas:i,offsetX:e,offsetY:n}}h=i}h||(d=this.cachedCanvases.getCanvas("maskCanvas",r,o),Xa(d.context,e));let p=Rt.transform(l,[1/r,0,0,-1/o,0,0]);p=Rt.transform(p,[1,0,0,1,0,-o]);const g=Ua.slice();Rt.axialAlignedBoundingBox([0,0,r,o],p,g);const[m,v,y,b]=g,w=Math.round(y-m)||1,D=Math.round(b-v)||1,A=this.cachedCanvases.getCanvas("fillCanvas",w,D),x=A.context,C=m,S=v;x.translate(-C,-S),x.transform(...p),h||(h=this._scaleImage(d.canvas,oe(x)),h=h.img,u&&a&&u.set(c,h)),x.imageSmoothingEnabled=Za(re(x),e.interpolate),Va(x,h,0,0,h.width,h.height,0,0,r,o),x.globalCompositeOperation="source-in";const F=Rt.transform(oe(x),[1,0,0,1,-C,-S]);return x.fillStyle=a?s.getPattern(i,this,F,Sa,t):s,x.fillRect(0,0,r,o),u&&!a&&(this.cachedCanvases.delete("fillCanvas"),u.set(c,A.canvas)),null===(n=this.dependencyTracker)||void 0===n||n.recordDependencies(t,Ca),{canvas:A.canvas,offsetX:Math.round(C),offsetY:Math.round(S)}}setLineWidth(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("lineWidth",t),e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("lineCap",t),this.ctx.lineCap=Qa[e]}setLineJoin(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("lineJoin",t),this.ctx.lineJoin=Ja[e]}setMiterLimit(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("miterLimit",t),this.ctx.miterLimit=e}setDash(t,e,n){var i;null===(i=this.dependencyTracker)||void 0===i||i.recordSimpleData("dash",t);const r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=n)}setRenderingIntent(t,e){}setFlatness(t,e){}setGState(t,e){var n,i,r,o,s;for(const[a,l]of e)switch(a){case"LW":this.setLineWidth(t,l);break;case"LC":this.setLineCap(t,l);break;case"LJ":this.setLineJoin(t,l);break;case"ML":this.setMiterLimit(t,l);break;case"D":this.setDash(t,l[0],l[1]);break;case"RI":this.setRenderingIntent(t,l);break;case"FL":this.setFlatness(t,l);break;case"Font":this.setFont(t,l[0],l[1]);break;case"CA":null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("strokeAlpha",t),this.current.strokeAlpha=l;break;case"ca":null===(i=this.dependencyTracker)||void 0===i||i.recordSimpleData("fillAlpha",t),this.ctx.globalAlpha=this.current.fillAlpha=l;break;case"BM":null===(r=this.dependencyTracker)||void 0===r||r.recordSimpleData("globalCompositeOperation",t),this.ctx.globalCompositeOperation=l;break;case"SMask":null===(o=this.dependencyTracker)||void 0===o||o.recordSimpleData("SMask",t),this.current.activeSMask=l?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":null===(s=this.dependencyTracker)||void 0===s||s.recordSimpleData("filter",t),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(l)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(t){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,n=this.ctx.canvas.height,i="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(i,e,n);this.suspendedCtx=this.ctx;const o=this.ctx=r.context;o.setTransform(this.suspendedCtx.getTransform()),Ka(this.suspendedCtx,o),function(t,e){if(t._removeMirroring)throw new Error("Context is already forwarding operations.");t.__originalSave=t.save,t.__originalRestore=t.restore,t.__originalRotate=t.rotate,t.__originalScale=t.scale,t.__originalTranslate=t.translate,t.__originalTransform=t.transform,t.__originalSetTransform=t.setTransform,t.__originalResetTransform=t.resetTransform,t.__originalClip=t.clip,t.__originalMoveTo=t.moveTo,t.__originalLineTo=t.lineTo,t.__originalBezierCurveTo=t.bezierCurveTo,t.__originalRect=t.rect,t.__originalClosePath=t.closePath,t.__originalBeginPath=t.beginPath,t._removeMirroring=()=>{t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){e.save(),this.__originalSave()},t.restore=function(){e.restore(),this.__originalRestore()},t.translate=function(t,n){e.translate(t,n),this.__originalTranslate(t,n)},t.scale=function(t,n){e.scale(t,n),this.__originalScale(t,n)},t.transform=function(t,n,i,r,o,s){e.transform(t,n,i,r,o,s),this.__originalTransform(t,n,i,r,o,s)},t.setTransform=function(t,n,i,r,o,s){e.setTransform(t,n,i,r,o,s),this.__originalSetTransform(t,n,i,r,o,s)},t.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},t.rotate=function(t){e.rotate(t),this.__originalRotate(t)},t.clip=function(t){e.clip(t),this.__originalClip(t)},t.moveTo=function(t,n){e.moveTo(t,n),this.__originalMoveTo(t,n)},t.lineTo=function(t,n){e.lineTo(t,n),this.__originalLineTo(t,n)},t.bezierCurveTo=function(t,n,i,r,o,s){e.bezierCurveTo(t,n,i,r,o,s),this.__originalBezierCurveTo(t,n,i,r,o,s)},t.rect=function(t,n,i,r){e.rect(t,n,i,r),this.__originalRect(t,n,i,r)},t.closePath=function(){e.closePath(),this.__originalClosePath()},t.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState(t,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Ka(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const e=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,e,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,e,n,i){const r=i[0],o=i[1],s=i[2]-r,a=i[3]-o;0!==s&&0!==a&&(this.genericComposeSMask(e.context,n,s,a,e.subtype,e.backdrop,e.transferMap,r,o,e.offsetX,e.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(n.canvas,0,0),t.restore())}genericComposeSMask(t,e,n,i,r,o,s,a,l,u,c){let h=t.canvas,d=a-u,f=l-c;if(o)if(d<0||f<0||d+n>h.width||f+i>h.height){const t=this.cachedCanvases.getCanvas("maskExtension",n,i),e=t.context;e.drawImage(h,-d,-f),e.globalCompositeOperation="destination-atop",e.fillStyle=o,e.fillRect(0,0,n,i),e.globalCompositeOperation="source-over",h=t.canvas,d=f=0}else{t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const e=new Path2D;e.rect(d,f,n,i),t.clip(e),t.globalCompositeOperation="destination-atop",t.fillStyle=o,t.fillRect(d,f,n,i),t.restore()}e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0),"Alpha"===r&&s?e.filter=this.filterFactory.addAlphaFilter(s):"Luminosity"===r&&(e.filter=this.filterFactory.addLuminosityFilter(s));const p=new Path2D;p.rect(a,l,n,i),e.clip(p),e.globalCompositeOperation="destination-in",e.drawImage(h,d,f,n,i,a,l,n,i),e.restore()}save(t){var e;this.inSMaskMode&&Ka(this.ctx,this.suspendedCtx),this.ctx.save();const n=this.current;this.stateStack.push(n),this.current=n.clone(),null===(e=this.dependencyTracker)||void 0===e||e.save(t)}restore(t){var e;null===(e=this.dependencyTracker)||void 0===e||e.restore(t),0!==this.stateStack.length?(this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&Ka(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null):this.inSMaskMode&&this.endSMaskMode()}transform(t,e,n,i,r,o,s){var a;null===(a=this.dependencyTracker)||void 0===a||a.recordIncrementalData("transform",t),this.ctx.transform(e,n,i,r,o,s),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,e,n,i){let[r]=n;if(!i)return r||(r=n[0]=new Path2D),void this[e](t,r);if(null!==this.dependencyTracker){const n=e===at.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(t).recordBBox(t,this.ctx,i[0]-n,i[2]+n,i[1]-n,i[3]+n).recordDependencies(t,["transform"])}if(!(r instanceof Path2D)){const t=n[0]=new Path2D;for(let e=0,n=r.length;e<n;)switch(r[e++]){case lt:t.moveTo(r[e++],r[e++]);break;case ut:t.lineTo(r[e++],r[e++]);break;case ct:t.bezierCurveTo(r[e++],r[e++],r[e++],r[e++],r[e++],r[e++]);break;case ht:t.closePath();break;default:mt("Unrecognized drawing path operator: ".concat(r[e-1]))}r=t}Rt.axialAlignedBoundingBox(i,re(this.ctx),this.current.minMax),this[e](t,r),this._pathStartIdx=t}closePath(t){this.ctx.closePath()}stroke(t,e){var n;let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this.ctx,o=this.current.strokeColor;if(r.globalAlpha=this.current.strokeAlpha,this.contentVisible)if("object"===typeof o&&null!==o&&void 0!==o&&o.getPattern){const n=o.isModifyingCurrentTransform()?r.getTransform():null;if(r.save(),r.strokeStyle=o.getPattern(r,this,oe(r),Fa,t),n){const t=new Path2D;t.addPath(e,r.getTransform().invertSelf().multiplySelf(n)),e=t}this.rescaleAndStroke(e,!1),r.restore()}else this.rescaleAndStroke(e,!0);null===(n=this.dependencyTracker)||void 0===n||n.recordDependencies(t,ya),i&&this.consumePath(t,e,this.current.getClippedPathBoundingBox(Fa,re(this.ctx))),r.globalAlpha=this.current.fillAlpha}closeStroke(t,e){this.stroke(t,e)}fill(t,e){var n;let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this.ctx,o=this.current.fillColor;let s=!1;if(this.current.patternFill){var a;const n=o.isModifyingCurrentTransform()?r.getTransform():null;if(null===(a=this.dependencyTracker)||void 0===a||a.save(t),r.save(),r.fillStyle=o.getPattern(r,this,oe(r),Sa,t),n){const t=new Path2D;t.addPath(e,r.getTransform().invertSelf().multiplySelf(n)),e=t}s=!0}const l=this.current.getClippedPathBoundingBox();var u;(this.contentVisible&&null!==l&&(this.pendingEOFill?(r.fill(e,"evenodd"),this.pendingEOFill=!1):r.fill(e)),null===(n=this.dependencyTracker)||void 0===n||n.recordDependencies(t,ba),s)&&(r.restore(),null===(u=this.dependencyTracker)||void 0===u||u.restore(t));i&&this.consumePath(t,e,l)}eoFill(t,e){this.pendingEOFill=!0,this.fill(t,e)}fillStroke(t,e){this.fill(t,e,!1),this.stroke(t,e,!1),this.consumePath(t,e)}eoFillStroke(t,e){this.pendingEOFill=!0,this.fillStroke(t,e)}closeFillStroke(t,e){this.fillStroke(t,e)}closeEOFillStroke(t,e){this.pendingEOFill=!0,this.fillStroke(t,e)}endPath(t,e){this.consumePath(t,e)}rawFillPath(t,e){var n;this.ctx.fill(e),null===(n=this.dependencyTracker)||void 0===n||n.recordDependencies(t,Da).recordOperation(t)}clip(t){var e;null===(e=this.dependencyTracker)||void 0===e||e.recordFutureForcedDependency("clipMode",t),this.pendingClip=$a}eoClip(t){var e;null===(e=this.dependencyTracker)||void 0===e||e.recordFutureForcedDependency("clipMode",t),this.pendingClip=tl}beginText(t){var e;this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,null===(e=this.dependencyTracker)||void 0===e||e.recordOpenMarker(t).resetIncrementalData("sameLineText").resetIncrementalData("moveText",t)}endText(t){const e=this.pendingTextPaths,n=this.ctx;if(this.dependencyTracker){const{dependencyTracker:n}=this;void 0!==e&&n.recordFutureForcedDependency("textClip",n.getOpenMarker()).recordFutureForcedDependency("textClip",t),n.recordCloseMarker(t)}if(void 0!==e){const t=new Path2D,i=n.getTransform().invertSelf();for(const{transform:n,x:r,y:o,fontSize:s,path:a}of e)a&&t.addPath(a,new DOMMatrix(n).preMultiplySelf(i).translate(r,o).scale(s,-s));n.clip(t)}delete this.pendingTextPaths}setCharSpacing(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("charSpacing",t),this.current.charSpacing=e}setWordSpacing(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("wordSpacing",t),this.current.wordSpacing=e}setHScale(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("hScale",t),this.current.textHScale=e/100}setLeading(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("leading",t),this.current.leading=-e}setFont(t,e,n){var i,r;null===(i=this.dependencyTracker)||void 0===i||i.recordSimpleData("font",t).recordSimpleDataFromNamed("fontObj",e,t);const o=this.commonObjs.get(e),s=this.current;if(!o)throw new Error("Can't find font for ".concat(e));if(s.fontMatrix=o.fontMatrix||R,0!==s.fontMatrix[0]&&0!==s.fontMatrix[3]||mt("Invalid font matrix for font "+e),n<0?(n=-n,s.fontDirection=-1):s.fontDirection=1,this.current.font=o,this.current.fontSize=n,o.isType3Font)return;const a=o.loadedName||"sans-serif",l=(null===(r=o.systemFontInfo)||void 0===r?void 0:r.css)||'"'.concat(a,'", ').concat(o.fallbackName);let u="normal";o.black?u="900":o.bold&&(u="bold");const c=o.italic?"italic":"normal";let h=n;n<16?h=16:n>100&&(h=100),this.current.fontSizeScale=n/h,this.ctx.font="".concat(c," ").concat(u," ").concat(h,"px ").concat(l)}setTextRenderingMode(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("textRenderingMode",t),this.current.textRenderingMode=e}setTextRise(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("textRise",t),this.current.textRise=e}moveText(t,e,n){var i;null===(i=this.dependencyTracker)||void 0===i||i.resetIncrementalData("sameLineText").recordIncrementalData("moveText",t),this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=n}setLeadingMoveText(t,e,n){this.setLeading(t,-n),this.moveText(t,e,n)}setTextMatrix(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("textMatrix",t);const{current:i}=this;i.textMatrix=e,i.textMatrixScale=Math.hypot(e[0],e[1]),i.x=i.lineX=0,i.y=i.lineY=0}nextLine(t){var e,n;this.moveText(t,0,this.current.leading),null===(e=this.dependencyTracker)||void 0===e||e.recordIncrementalData("moveText",null!==(n=this.dependencyTracker.getSimpleIndex("leading"))&&void 0!==n?n:t)}paintChar(t,e,n,i,r,o){const s=this.ctx,a=this.current,u=a.font,c=a.textRenderingMode,h=a.fontSize/a.fontSizeScale,d=c&Q,f=!!(c&J),p=a.patternFill&&!u.missingFile,g=a.patternStroke&&!u.missingFile;let m;if((u.disableFontFace||f||p||g)&&!u.missingFile&&(m=u.getPathGenerator(this.commonObjs,e)),m&&(u.disableFontFace||p||g)){var v;let e;if(s.save(),s.translate(n,i),s.scale(h,-h),null===(v=this.dependencyTracker)||void 0===v||v.recordCharacterBBox(t,s,u),d===X||d===Y)if(r){e=s.getTransform(),s.setTransform(...r);const t=l(el,this,ol).call(this,m,e,r);s.fill(t)}else s.fill(m);if(d===K||d===Y)if(o){e||(e=s.getTransform()),s.setTransform(...o);const{a:t,b:n,c:i,d:r}=e,a=Rt.inverseTransform(o),u=Rt.transform([t,n,i,r,0,0],a);Rt.singularValueDecompose2dScale(u,ja),s.lineWidth*=Math.max(ja[0],ja[1])/h,s.stroke(l(el,this,ol).call(this,m,e,o))}else s.lineWidth/=h,s.stroke(m);s.restore()}else{var y;if(d===X||d===Y)s.fillText(e,n,i),null===(y=this.dependencyTracker)||void 0===y||y.recordCharacterBBox(t,s,u,h,n,i,()=>s.measureText(e));if(d===K||d===Y){var b;if(this.dependencyTracker)null===(b=this.dependencyTracker)||void 0===b||b.recordCharacterBBox(t,s,u,h,n,i,()=>s.measureText(e)).recordDependencies(t,ya);s.strokeText(e,n,i)}}if(f){var w;(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:re(s),x:n,y:i,fontSize:h,path:m}),null===(w=this.dependencyTracker)||void 0===w||w.recordCharacterBBox(t,s,u,h,n,i)}}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const e=t.getImageData(0,0,10,10).data;let n=!1;for(let i=3;i<e.length;i+=4)if(e[i]>0&&e[i]<255){n=!0;break}return Dt(this,"isFontSubpixelAAEnabled",n)}showText(t,e){var n;this.dependencyTracker&&(this.dependencyTracker.recordDependencies(t,Aa).resetBBox(t),this.current.textRenderingMode&J&&this.dependencyTracker.recordFutureForcedDependency("textClip",t).inheritPendingDependenciesAsFutureForcedDependencies());const i=this.current,r=i.font;var o;if(r.isType3Font)return this.showType3Text(t,e),void(null===(o=this.dependencyTracker)||void 0===o||o.recordShowTextOperation(t));const s=i.fontSize;var a;if(0===s)return void(null===(a=this.dependencyTracker)||void 0===a||a.recordOperation(t));const l=this.ctx,u=i.fontSizeScale,c=i.charSpacing,h=i.wordSpacing,d=i.fontDirection,f=i.textHScale*d,p=e.length,g=r.vertical,m=g?1:-1,v=r.defaultVMetrics,y=s*i.fontMatrix[0],b=i.textRenderingMode===X&&!r.disableFontFace&&!i.patternFill;let w,D;if(l.save(),i.textMatrix&&l.transform(...i.textMatrix),l.translate(i.x,i.y+i.textRise),d>0?l.scale(f,-1):l.scale(f,1),i.patternFill){l.save();const e=i.fillColor.getPattern(l,this,oe(l),Sa,t);w=re(l),l.restore(),l.fillStyle=e}if(i.patternStroke){l.save();const e=i.strokeColor.getPattern(l,this,oe(l),Fa,t);D=re(l),l.restore(),l.strokeStyle=e}let A=i.lineWidth;const x=i.textMatrixScale;if(0===x||0===A){const t=i.textRenderingMode&Q;t!==K&&t!==Y||(A=this.getSinglePixelWidth())}else A/=x;if(1!==u&&(l.scale(u,u),A/=u),l.lineWidth=A,r.isInvalidPDFjsFont){const n=[];let r=0;for(const t of e)n.push(t.unicode),r+=t.width;const o=n.join("");if(l.fillText(o,0,0),null!==this.dependencyTracker){const e=l.measureText(o);this.dependencyTracker.recordBBox(t,this.ctx,-e.actualBoundingBoxLeft,e.actualBoundingBoxRight,-e.actualBoundingBoxAscent,e.actualBoundingBoxDescent).recordShowTextOperation(t)}return i.x+=r*y*f,l.restore(),void this.compose()}let C,S=0;for(C=0;C<p;++C){const n=e[C];if("number"===typeof n){S+=m*n*s/1e3;continue}let i=!1;const o=(n.isSpace?h:0)+c,a=n.fontChar,f=n.accent;let p,A,x,E=n.width;if(g){const t=n.vmetric||v,e=-(n.vmetric?t[1]:.5*E)*y,i=t[2]*y;E=t?-t[0]:E,p=e/u,A=(S+i)/u}else p=S/u,A=0;if(r.remeasure&&E>0){x=l.measureText(a);const t=1e3*x.width/s*u;if(E<t&&this.isFontSubpixelAAEnabled){const e=E/t;i=!0,l.save(),l.scale(e,1),p/=e}else E!==t&&(p+=(E-t)/2e3*s/u)}var F;if(this.contentVisible&&(n.isInFont||r.missingFile))if(b&&!f)l.fillText(a,p,A),null===(F=this.dependencyTracker)||void 0===F||F.recordCharacterBBox(t,l,x?{bbox:null}:r,s/u,p,A,()=>null!==x&&void 0!==x?x:l.measureText(a));else if(this.paintChar(t,a,p,A,w,D),f){const e=p+s*f.offset.x/u,n=A-s*f.offset.y/u;this.paintChar(t,f.fontChar,e,n,w,D)}S+=g?E*y-o*d:E*y+o*d,i&&l.restore()}g?i.y-=S:i.x+=S*f,l.restore(),this.compose(),null===(n=this.dependencyTracker)||void 0===n||n.recordShowTextOperation(t)}showType3Text(t,e){const n=this.ctx,i=this.current,r=i.font,o=i.fontSize,s=i.fontDirection,a=r.vertical?1:-1,l=i.charSpacing,u=i.wordSpacing,c=i.textHScale*s,h=i.fontMatrix||R,d=e.length;let f,p,g,m;if(i.textRenderingMode===Z||0===o)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),i.textMatrix&&n.transform(...i.textMatrix),n.translate(i.x,i.y+i.textRise),n.scale(c,s);const v=this.dependencyTracker;for(this.dependencyTracker=v?new va(v,t):null,f=0;f<d;++f){if(p=e[f],"number"===typeof p){m=a*p*o/1e3,this.ctx.translate(m,0),i.x+=m*c;continue}const t=(p.isSpace?u:0)+l,s=r.charProcOperatorList[p.operatorListId];s?this.contentVisible&&(this.save(),n.scale(o,o),n.transform(...h),this.executeOperatorList(s),this.restore()):mt('Type3 character "'.concat(p.operatorListId,'" is not available.'));const d=[p.width,0];Rt.applyTransform(d,h),g=d[0]*o+t,n.translate(g,0),i.x+=g*c}n.restore(),v&&(this.dependencyTracker=v)}setCharWidth(t,e,n){}setCharWidthAndBounds(t,e,n,i,r,o,s){var a;const l=new Path2D;l.rect(i,r,o-i,s-r),this.ctx.clip(l),null===(a=this.dependencyTracker)||void 0===a||a.recordBBox(t,this.ctx,i,o,r,s).recordClipBox(t,this.ctx,i,o,r,s),this.endPath(t)}getColorN_Pattern(t,e){let n;if("TilingPattern"===e[0]){const t=this.baseTransform||re(this.ctx),i={createCanvasGraphics:(t,e)=>new nl(t,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new va(this.dependencyTracker,e,!0):null)};n=new La(e,this.ctx,i,t)}else n=this._getPattern(t,e[1],e[2]);return n}setStrokeColorN(t){var e;null===(e=this.dependencyTracker)||void 0===e||e.recordSimpleData("strokeColor",t);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.current.strokeColor=this.getColorN_Pattern(t,i),this.current.patternStroke=!0}setFillColorN(t){var e;null===(e=this.dependencyTracker)||void 0===e||e.recordSimpleData("fillColor",t);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.current.fillColor=this.getColorN_Pattern(t,i),this.current.patternFill=!0}setStrokeRGBColor(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("strokeColor",t),this.ctx.strokeStyle=this.current.strokeColor=e,this.current.patternStroke=!1}setStrokeTransparent(t){var e;null===(e=this.dependencyTracker)||void 0===e||e.recordSimpleData("strokeColor",t),this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("fillColor",t),this.ctx.fillStyle=this.current.fillColor=e,this.current.patternFill=!1}setFillTransparent(t){var e;null===(e=this.dependencyTracker)||void 0===e||e.recordSimpleData("fillColor",t),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(t,e){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.cachedPatterns.has(e)?n=this.cachedPatterns.get(e):(n=function(t){switch(t[0]){case"RadialAxial":return new Ta(t);case"Mesh":return new Ra(t);case"Dummy":return new Ba}throw new Error("Unknown IR type: ".concat(t[0]))}(this.getObject(t,e)),this.cachedPatterns.set(e,n)),i&&(n.matrix=i),n}shadingFill(t,e){var n;if(!this.contentVisible)return;const i=this.ctx;this.save(t);const r=this._getPattern(t,e);i.fillStyle=r.getPattern(i,this,oe(i),Ea,t);const o=oe(i);if(o){const{width:t,height:e}=i.canvas,n=Ua.slice();Rt.axialAlignedBoundingBox([0,0,t,e],o,n);const[r,s,a,l]=n;this.ctx.fillRect(r,s,a-r,l-s)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);null===(n=this.dependencyTracker)||void 0===n||n.resetBBox(t).recordFullPageBBox(t).recordDependencies(t,xa).recordDependencies(t,ba).recordOperation(t),this.compose(this.current.getClippedPathBoundingBox()),this.restore(t)}beginInlineImage(){vt("Should not call beginInlineImage")}beginImageData(){vt("Should not call beginImageData")}paintFormXObjectBegin(t,e,n){if(this.contentVisible&&(this.save(t),this.baseTransformStack.push(this.baseTransform),e&&this.transform(t,...e),this.baseTransform=re(this.ctx),n)){var i;Rt.axialAlignedBoundingBox(n,this.baseTransform,this.current.minMax);const[e,r,o,s]=n,a=new Path2D;a.rect(e,r,o-e,s-r),this.ctx.clip(a),null===(i=this.dependencyTracker)||void 0===i||i.recordClipBox(t,this.ctx,e,o,r,s),this.endPath(t)}}paintFormXObjectEnd(t){this.contentVisible&&(this.restore(t),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t,e){var n;if(!this.contentVisible)return;this.save(t),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const i=this.ctx;e.isolated||gt("TODO: Support non-isolated groups."),e.knockout&&mt("Knockout groups not supported.");const r=re(i);if(e.matrix&&i.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let o=Ua.slice();Rt.axialAlignedBoundingBox(e.bbox,re(i),o);const s=[0,0,i.canvas.width,i.canvas.height];o=Rt.intersect(o,s)||[0,0,0,0];const a=Math.floor(o[0]),l=Math.floor(o[1]),u=Math.max(Math.ceil(o[2])-a,1),c=Math.max(Math.ceil(o[3])-l,1);this.current.startNewPathAndClipBox([0,0,u,c]);let h="groupAt"+this.groupLevel;e.smask&&(h+="_smask_"+this.smaskCounter++%2);const d=this.cachedCanvases.getCanvas(h,u,c),f=d.context;f.translate(-a,-l),f.transform(...r);let p=new Path2D;const[g,m,v,y]=e.bbox;if(p.rect(g,m,v-g,y-m),e.matrix){const t=new Path2D;t.addPath(p,new DOMMatrix(e.matrix)),p=t}f.clip(p),e.smask&&this.smaskStack.push({canvas:d.canvas,context:f,offsetX:a,offsetY:l,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}),e.smask&&!this.dependencyTracker||(i.setTransform(1,0,0,1,0,0),i.translate(a,l),i.save()),Ka(i,f),this.ctx=f,null===(n=this.dependencyTracker)||void 0===n||n.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(i),this.setGState(t,[["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++}endGroup(t,e){var n;if(!this.contentVisible)return;this.groupLevel--;const i=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,null===(n=this.dependencyTracker)||void 0===n||n.popBaseTransform(),e.smask)this.tempSMask=this.smaskStack.pop(),this.restore(t),this.dependencyTracker&&this.ctx.restore();else{this.ctx.restore();const e=re(this.ctx);this.restore(t),this.ctx.save(),this.ctx.setTransform(...e);const n=Ua.slice();Rt.axialAlignedBoundingBox([0,0,i.canvas.width,i.canvas.height],e,n),this.ctx.drawImage(i.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(t,e,n,i,r,o){if(l(el,this,il).call(this),Ya(this.ctx),this.ctx.save(),this.save(t),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const r=n[2]-n[0],s=n[3]-n[1];if(o&&this.annotationCanvasMap){(i=i.slice())[4]-=n[0],i[5]-=n[1],(n=n.slice())[0]=n[1]=0,n[2]=r,n[3]=s,Rt.singularValueDecompose2dScale(re(this.ctx),ja);const{viewportScale:t}=this,o=Math.ceil(r*this.outputScaleX*t),a=Math.ceil(s*this.outputScaleY*t);this.annotationCanvas=this.canvasFactory.create(o,a);const{canvas:l,context:u}=this.annotationCanvas;this.annotationCanvasMap.set(e,l),this.annotationCanvas.savedCtx=this.ctx,this.ctx=u,this.ctx.save(),this.ctx.setTransform(ja[0],0,0,-ja[1],0,s*ja[1]),Ya(this.ctx)}else{Ya(this.ctx),this.endPath(t);const e=new Path2D;e.rect(n[0],n[1],r,s),this.ctx.clip(e)}}this.current=new Ha(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(t,...i),this.transform(t,...r)}endAnnotation(t){this.annotationCanvas&&(this.ctx.restore(),l(el,this,rl).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t,e){var n;if(!this.contentVisible)return;const i=e.count;(e=this.getObject(t,e.data,e)).count=i;const r=this.ctx,o=this._createMaskCanvas(t,e),s=o.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(s,o.offsetX,o.offsetY),null===(n=this.dependencyTracker)||void 0===n||n.resetBBox(t).recordBBox(t,this.ctx,o.offsetX,o.offsetX+s.width,o.offsetY,o.offsetY+s.height).recordOperation(t),r.restore(),this.compose()}paintImageMaskXObjectRepeat(t,e,n){var i,r;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;if(!this.contentVisible)return;e=this.getObject(t,e.data,e);const u=this.ctx;u.save();const c=re(u);u.transform(n,o,s,a,0,0);const h=this._createMaskCanvas(t,e);u.setTransform(1,0,0,1,h.offsetX-c[4],h.offsetY-c[5]),null===(i=this.dependencyTracker)||void 0===i||i.resetBBox(t);for(let f=0,p=l.length;f<p;f+=2){var d;const e=Rt.transform(c,[n,o,s,a,l[f],l[f+1]]);u.drawImage(h.canvas,e[4],e[5]),null===(d=this.dependencyTracker)||void 0===d||d.recordBBox(t,this.ctx,e[4],e[4]+h.canvas.width,e[5],e[5]+h.canvas.height)}u.restore(),this.compose(),null===(r=this.dependencyTracker)||void 0===r||r.recordOperation(t)}paintImageMaskXObjectGroup(t,e){var n,i;if(!this.contentVisible)return;const r=this.ctx,o=this.current.fillColor,s=this.current.patternFill;null===(n=this.dependencyTracker)||void 0===n||n.resetBBox(t).recordDependencies(t,Ca);for(const l of e){var a;const{data:e,width:n,height:i,transform:u}=l,c=this.cachedCanvases.getCanvas("maskCanvas",n,i),h=c.context;h.save();Xa(h,this.getObject(t,e,l)),h.globalCompositeOperation="source-in",h.fillStyle=s?o.getPattern(h,this,oe(r),Sa,t):o,h.fillRect(0,0,n,i),h.restore(),r.save(),r.transform(...u),r.scale(1,-1),Va(r,c.canvas,0,0,n,i,0,-1,1,1),null===(a=this.dependencyTracker)||void 0===a||a.recordBBox(t,r,0,n,0,i),r.restore()}this.compose(),null===(i=this.dependencyTracker)||void 0===i||i.recordOperation(t)}paintImageXObject(t,e){if(!this.contentVisible)return;const n=this.getObject(t,e);n?this.paintInlineImageXObject(t,n):mt("Dependent image isn't ready yet")}paintImageXObjectRepeat(t,e,n,i,r){if(!this.contentVisible)return;const o=this.getObject(t,e);if(!o)return void mt("Dependent image isn't ready yet");const s=o.width,a=o.height,l=[];for(let u=0,c=r.length;u<c;u+=2)l.push({transform:[n,0,0,i,r[u],r[u+1]],x:0,y:0,w:s,h:a});this.paintInlineImageXObjectGroup(t,o,l)}applyTransferMapsToCanvas(t){return"none"!==this.current.transferMaps&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if("none"===this.current.transferMaps)return t.bitmap;const{bitmap:e,width:n,height:i}=t,r=this.cachedCanvases.getCanvas("inlineImage",n,i),o=r.context;return o.filter=this.current.transferMaps,o.drawImage(e,0,0),o.filter="none",r.canvas}paintInlineImageXObject(t,e){var n;if(!this.contentVisible)return;const i=e.width,r=e.height,o=this.ctx;this.save(t);const{filter:s}=o;let a;if("none"!==s&&""!==s&&(o.filter="none"),o.scale(1/i,-1/r),e.bitmap)a=this.applyTransferMapsToBitmap(e);else if("function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e;else{const t=this.cachedCanvases.getCanvas("inlineImage",i,r).context;qa(t,e),a=this.applyTransferMapsToCanvas(t)}const l=this._scaleImage(a,oe(o));o.imageSmoothingEnabled=Za(re(o),e.interpolate),null===(n=this.dependencyTracker)||void 0===n||n.resetBBox(t).recordBBox(t,o,0,i,-r,0).recordDependencies(t,wa).recordOperation(t),Va(o,l.img,0,0,l.paintWidth,l.paintHeight,0,-r,i,r),this.compose(),this.restore(t)}paintInlineImageXObjectGroup(t,e,n){var i,r;if(!this.contentVisible)return;const o=this.ctx;let s;if(e.bitmap)s=e.bitmap;else{const t=e.width,n=e.height,i=this.cachedCanvases.getCanvas("inlineImage",t,n).context;qa(i,e),s=this.applyTransferMapsToCanvas(i)}null===(i=this.dependencyTracker)||void 0===i||i.resetBBox(t);for(const l of n){var a;o.save(),o.transform(...l.transform),o.scale(1,-1),Va(o,s,l.x,l.y,l.w,l.h,0,-1,1,1),null===(a=this.dependencyTracker)||void 0===a||a.recordBBox(t,o,0,1,-1,0),o.restore()}null===(r=this.dependencyTracker)||void 0===r||r.recordOperation(t),this.compose()}paintSolidColorImageMask(t){var e;this.contentVisible&&(null===(e=this.dependencyTracker)||void 0===e||e.resetBBox(t).recordBBox(t,this.ctx,0,1,0,1).recordDependencies(t,ba).recordOperation(t),this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t,e){}markPointProps(t,e,n){}beginMarkedContent(t,e){var n;null===(n=this.dependencyTracker)||void 0===n||n.beginMarkedContent(t),this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,e,n){var i;null===(i=this.dependencyTracker)||void 0===i||i.beginMarkedContent(t),"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(t){var e;null===(e=this.dependencyTracker)||void 0===e||e.endMarkedContent(t),this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(t){}endCompat(t){}consumePath(t,e,n){const i=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(n);const r=this.ctx;var o,s;this.pendingClip?(i||(this.pendingClip===tl?r.clip(e,"evenodd"):r.clip(e)),this.pendingClip=null,null===(o=this.dependencyTracker)||void 0===o||o.bboxToClipBoxDropOperation(t).recordFutureForcedDependency("clipPath",t)):null===(s=this.dependencyTracker)||void 0===s||s.recordOperation(t);this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=re(this.ctx);if(0===t[1]&&0===t[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const e=Math.abs(t[0]*t[3]-t[2]*t[1]),n=Math.hypot(t[0],t[2]),i=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(n,i)/e}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(-1===this._cachedScaleForStroking[0]){const{lineWidth:t}=this.current,{a:e,b:n,c:i,d:r}=this.ctx.getTransform();let o,s;if(0===n&&0===i){const n=Math.abs(e),i=Math.abs(r);if(n===i)if(0===t)o=s=1/n;else{const e=n*t;o=s=e<1?1/e:1}else if(0===t)o=1/n,s=1/i;else{const e=n*t,r=i*t;o=e<1?1/e:1,s=r<1?1/r:1}}else{const a=Math.abs(e*r-n*i),l=Math.hypot(e,n),u=Math.hypot(i,r);if(0===t)o=u/a,s=l/a;else{const e=t*a;o=u>e?u/e:1,s=l>e?l/e:1}}this._cachedScaleForStroking[0]=o,this._cachedScaleForStroking[1]=s}return this._cachedScaleForStroking}rescaleAndStroke(t,e){const{ctx:n,current:{lineWidth:i}}=this,[r,o]=this.getScaleForStroking();if(r===o)return n.lineWidth=(i||1)*r,void n.stroke(t);const s=n.getLineDash();e&&n.save(),n.scale(r,o),za.a=1/r,za.d=1/o;const a=new Path2D;if(a.addPath(t,za),s.length>0){const t=Math.max(r,o);n.setLineDash(s.map(e=>e/t)),n.lineDashOffset/=t}n.lineWidth=i||1,n.stroke(a),e&&n.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}function il(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}function rl(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==t){const e=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e}}}function ol(t,e,n){const i=new Path2D;return i.addPath(t,new DOMMatrix(n).invertSelf().multiplySelf(e)),i}for(const _v in at)void 0!==nl.prototype[_v]&&(nl.prototype[at[_v]]=nl.prototype[_v]);var sl=new WeakMap,al=new WeakMap,ll=new WeakMap,ul=new WeakSet;class cl{static write(t){const e=new TextEncoder,n={};let i=0;for(const l of cl.strings){const r=e.encode(t[l]);n[l]=r,i+=4+r.length}const r=new ArrayBuffer(i),o=new Uint8Array(r),s=new DataView(r);let a=0;for(const l of cl.strings){const t=n[l],e=t.length;s.setUint32(a,e),o.set(t,a+4),a+=4+e}return yt(a===r.byteLength,"CssFontInfo.write: Buffer overflow"),r}constructor(t){s(this,ul),a(this,sl,void 0),a(this,al,void 0),a(this,ll,void 0),h(sl,this,t),h(al,this,new DataView(c(sl,this))),h(ll,this,new TextDecoder)}get fontFamily(){return l(ul,this,hl).call(this,0)}get fontWeight(){return l(ul,this,hl).call(this,1)}get italicAngle(){return l(ul,this,hl).call(this,2)}}function hl(t){yt(t<v.strings.length,"Invalid string index");let e=0;for(let i=0;i<t;i++)e+=c(al,this).getUint32(e)+4;const n=c(al,this).getUint32(e);return c(ll,this).decode(new Uint8Array(c(sl,this),e+4,n))}v=cl,(0,T.A)(cl,"strings",["fontFamily","fontWeight","italicAngle"]);var dl=new WeakMap,fl=new WeakMap,pl=new WeakMap,gl=new WeakSet;class ml{static write(t){const e=new TextEncoder,n={};let i=0;for(const h of ml.strings){const r=e.encode(t[h]);n[h]=r,i+=4+r.length}i+=4;let r,o,s=1+i;t.style&&(r=e.encode(t.style.style),o=e.encode(t.style.weight),s+=4+r.length+4+o.length);const a=new ArrayBuffer(s),l=new Uint8Array(a),u=new DataView(a);let c=0;u.setUint8(c++,t.guessFallback?1:0),u.setUint32(c,0),c+=4,i=0;for(const h of ml.strings){const t=n[h],e=t.length;i+=4+e,u.setUint32(c,e),l.set(t,c+4),c+=4+e}return u.setUint32(c-i-4,i),t.style&&(u.setUint32(c,r.length),l.set(r,c+4),c+=4+r.length,u.setUint32(c,o.length),l.set(o,c+4),c+=4+o.length),yt(c<=a.byteLength,"SubstitionInfo.write: Buffer overflow"),a.transferToFixedLength(c)}constructor(t){s(this,gl),a(this,dl,void 0),a(this,fl,void 0),a(this,pl,void 0),h(dl,this,t),h(fl,this,new DataView(c(dl,this))),h(pl,this,new TextDecoder)}get guessFallback(){return 0!==c(fl,this).getUint8(0)}get css(){return l(gl,this,vl).call(this,0)}get loadedName(){return l(gl,this,vl).call(this,1)}get baseFontName(){return l(gl,this,vl).call(this,2)}get src(){return l(gl,this,vl).call(this,3)}get style(){let t=1;t+=4+c(fl,this).getUint32(t);const e=c(fl,this).getUint32(t),n=c(pl,this).decode(new Uint8Array(c(dl,this),t+4,e));t+=4+e;const i=c(fl,this).getUint32(t);return{style:n,weight:c(pl,this).decode(new Uint8Array(c(dl,this),t+4,i))}}}function vl(t){yt(t<y.strings.length,"Invalid string index");let e=5;for(let i=0;i<t;i++)e+=c(fl,this).getUint32(e)+4;const n=c(fl,this).getUint32(e);return c(pl,this).decode(new Uint8Array(c(dl,this),e+4,n))}y=ml,(0,T.A)(ml,"strings",["css","loadedName","baseFontName","src"]);var yl=new WeakMap,bl=new WeakMap,wl=new WeakMap,Dl=new WeakSet;class Al{constructor(t){let{data:e,extra:n}=t;s(this,Dl),a(this,yl,void 0),a(this,bl,void 0),a(this,wl,void 0),h(yl,this,e),h(bl,this,new TextDecoder),h(wl,this,new DataView(c(yl,this))),n&&Object.assign(this,n)}get black(){return l(Dl,this,xl).call(this,0)}get bold(){return l(Dl,this,xl).call(this,1)}get disableFontFace(){return l(Dl,this,xl).call(this,2)}get fontExtraProperties(){return l(Dl,this,xl).call(this,3)}get isInvalidPDFjsFont(){return l(Dl,this,xl).call(this,4)}get isType3Font(){return l(Dl,this,xl).call(this,5)}get italic(){return l(Dl,this,xl).call(this,6)}get missingFile(){return l(Dl,this,xl).call(this,7)}get remeasure(){return l(Dl,this,xl).call(this,8)}get vertical(){return l(Dl,this,xl).call(this,9)}get ascent(){return l(Dl,this,Cl).call(this,0)}get defaultWidth(){return l(Dl,this,Cl).call(this,1)}get descent(){return l(Dl,this,Cl).call(this,2)}get bbox(){let t=El._;if(0===c(wl,this).getUint8(t))return;t+=1;const e=[];for(let n=0;n<4;n++)e.push(c(wl,this).getInt16(t,!0)),t+=2;return e}get fontMatrix(){let t=kl._;if(0===c(wl,this).getUint8(t))return;t+=1;const e=[];for(let n=0;n<6;n++)e.push(c(wl,this).getFloat64(t,!0)),t+=8;return e}get defaultVMetrics(){let t=Ml._;if(0===c(wl,this).getUint8(t))return;t+=1;const e=[];for(let n=0;n<3;n++)e.push(c(wl,this).getInt16(t,!0)),t+=2;return e}get fallbackName(){return l(Dl,this,Sl).call(this,0)}get loadedName(){return l(Dl,this,Sl).call(this,1)}get mimetype(){return l(Dl,this,Sl).call(this,2)}get name(){return l(Dl,this,Sl).call(this,3)}get data(){let t=Tl._;t+=4+c(wl,this).getUint32(t);t+=4+c(wl,this).getUint32(t);t+=4+c(wl,this).getUint32(t);const e=c(wl,this).getUint32(t);if(0!==e)return new Uint8Array(c(yl,this),t+4,e)}clearData(){let t=Tl._;t+=4+c(wl,this).getUint32(t);t+=4+c(wl,this).getUint32(t);t+=4+c(wl,this).getUint32(t);const e=c(wl,this).getUint32(t);new Uint8Array(c(yl,this),t+4,e).fill(0),c(wl,this).setUint32(t,0)}get cssFontInfo(){let t=Tl._;t+=4+c(wl,this).getUint32(t);t+=4+c(wl,this).getUint32(t);const e=c(wl,this).getUint32(t);if(0===e)return null;const n=new Uint8Array(e);return n.set(new Uint8Array(c(yl,this),t+4,e)),new cl(n.buffer)}get systemFontInfo(){let t=Tl._;t+=4+c(wl,this).getUint32(t);const e=c(wl,this).getUint32(t);if(0===e)return null;const n=new Uint8Array(e);return n.set(new Uint8Array(c(yl,this),t+4,e)),new ml(n.buffer)}static write(t){const e=t.systemFontInfo?ml.write(t.systemFontInfo):null,n=t.cssFontInfo?cl.write(t.cssFontInfo):null,i=new TextEncoder,r={};let o=0;for(const p of Al.strings)r[p]=i.encode(t[p]),o+=4+r[p].length;const s=Tl._+4+o+4+(e?e.byteLength:0)+4+(n?n.byteLength:0)+4+(t.data?t.data.length:0),a=new ArrayBuffer(s),l=new Uint8Array(a),u=new DataView(a);let c=0;const h=Al.bools.length;let d=0,f=0;for(let p=0;p<h;p++){const e=t[Al.bools[p]];d|=(void 0===e?0:e?2:1)<<f,f+=2,8!==f&&p!==h-1||(u.setUint8(c++,d),d=0,f=0)}yt(c===Fl._,"FontInfo.write: Boolean properties offset mismatch");for(const p of Al.numbers)u.setFloat64(c,t[p]),c+=8;if(yt(c===El._,"FontInfo.write: Number properties offset mismatch"),t.bbox){u.setUint8(c++,4);for(const e of t.bbox)u.setInt16(c,e,!0),c+=2}else u.setUint8(c++,0),c+=8;if(yt(c===kl._,"FontInfo.write: BBox properties offset mismatch"),t.fontMatrix){u.setUint8(c++,6);for(const e of t.fontMatrix)u.setFloat64(c,e,!0),c+=8}else u.setUint8(c++,0),c+=48;if(yt(c===Ml._,"FontInfo.write: FontMatrix properties offset mismatch"),t.defaultVMetrics){u.setUint8(c++,1);for(const e of t.defaultVMetrics)u.setInt16(c,e,!0),c+=2}else u.setUint8(c++,0),c+=6;yt(c===Tl._,"FontInfo.write: DefaultVMetrics properties offset mismatch"),u.setUint32(Tl._,0),c+=4;for(const p of Al.strings){const t=r[p],e=t.length;u.setUint32(c,e),l.set(t,c+4),c+=4+e}if(u.setUint32(Tl._,c-Tl._-4),e){const t=e.byteLength;u.setUint32(c,t),yt(c+4+t<=a.byteLength,"FontInfo.write: Buffer overflow at systemFontInfo"),l.set(new Uint8Array(e),c+4),c+=4+t}else u.setUint32(c,0),c+=4;if(n){const t=n.byteLength;u.setUint32(c,t),yt(c+4+t<=a.byteLength,"FontInfo.write: Buffer overflow at cssFontInfo"),l.set(new Uint8Array(n),c+4),c+=4+t}else u.setUint32(c,0),c+=4;return void 0===t.data?(u.setUint32(c,0),c+=4):(u.setUint32(c,t.data.length),l.set(t.data,c+4),c+=4+t.data.length),yt(c<=a.byteLength,"FontInfo.write: Buffer overflow"),a.transferToFixedLength(c)}}function xl(t){yt(t<b.bools.length,"Invalid boolean index");const e=Math.floor(t/4),n=2*t%8,i=c(wl,this).getUint8(e)>>n&3;return 0===i?void 0:2===i}function Cl(t){return yt(t<b.numbers.length,"Invalid number index"),c(wl,this).getFloat64(Fl._+8*t)}function Sl(t){yt(t<b.strings.length,"Invalid string index");let e=Tl._+4;for(let r=0;r<t;r++)e+=c(wl,this).getUint32(e)+4;const n=c(wl,this).getUint32(e),i=new Uint8Array(n);return i.set(new Uint8Array(c(yl,this),e+4,n)),c(bl,this).decode(i)}b=Al,(0,T.A)(Al,"bools",["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"]),(0,T.A)(Al,"numbers",["ascent","defaultWidth","descent"]),(0,T.A)(Al,"strings",["fallbackName","loadedName","mimetype","name"]);var Fl={_:Math.ceil(2*b.bools.length/8)},El={_:l(b,b,Fl)._+8*b.numbers.length},kl={_:l(b,b,El)._+1+8},Ml={_:l(b,b,kl)._+1+48},Tl={_:l(b,b,Ml)._+1+6};class Pl{static get workerPort(){return l(Pl,this,_l)._}static set workerPort(t){if(!("undefined"!==typeof Worker&&t instanceof Worker)&&null!==t)throw new Error("Invalid `workerPort` type.");_l._=l(Pl,this,t)}static get workerSrc(){return l(Pl,this,Rl)._}static set workerSrc(t){if("string"!==typeof t)throw new Error("Invalid `workerSrc` type.");Rl._=l(Pl,this,t)}}var _l={_:null},Rl={_:""},Bl=new WeakMap,Il=new WeakMap;class Nl{constructor(t){let{parsedData:e,rawData:n}=t;a(this,Bl,void 0),a(this,Il,void 0),h(Bl,this,e),h(Il,this,n)}getRaw(){return c(Il,this)}get(t){var e;return null!==(e=c(Bl,this).get(t))&&void 0!==e?e:null}[Symbol.iterator](){return c(Bl,this).entries()}}const Ll=Symbol("INTERNAL");var Ol=new WeakMap,Wl=new WeakMap,zl=new WeakMap,jl=new WeakMap;class Ul{constructor(t,e){let{name:n,intent:i,usage:r,rbGroups:o}=e;a(this,Ol,!1),a(this,Wl,!1),a(this,zl,!1),a(this,jl,!0),h(Ol,this,!!(t&N)),h(Wl,this,!!(t&L)),this.name=n,this.intent=i,this.usage=r,this.rbGroups=o}get visible(){if(c(zl,this))return c(jl,this);if(!c(jl,this))return!1;const{print:t,view:e}=this.usage;return c(Ol,this)?"OFF"!==(null===e||void 0===e?void 0:e.viewState):!c(Wl,this)||"OFF"!==(null===t||void 0===t?void 0:t.printState)}_setVisible(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t!==Ll&&vt("Internal method `_setVisible` called."),h(zl,this,n),h(jl,this,e)}}var Gl=new WeakMap,Vl=new WeakMap,Hl=new WeakMap,ql=new WeakMap,Xl=new WeakSet;class Kl{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;if(s(this,Xl),a(this,Gl,null),a(this,Vl,new Map),a(this,Hl,null),a(this,ql,null),this.renderingIntent=e,this.name=null,this.creator=null,null!==t){this.name=t.name,this.creator=t.creator,h(ql,this,t.order);for(const n of t.groups)c(Vl,this).set(n.id,new Ul(e,n));if("OFF"===t.baseState)for(const t of c(Vl,this).values())t._setVisible(Ll,!1);for(const e of t.on)c(Vl,this).get(e)._setVisible(Ll,!0);for(const e of t.off)c(Vl,this).get(e)._setVisible(Ll,!1);h(Hl,this,this.getHash())}}isVisible(t){if(0===c(Vl,this).size)return!0;if(!t)return gt("Optional content group not defined."),!0;if("OCG"===t.type)return c(Vl,this).has(t.id)?c(Vl,this).get(t.id).visible:(mt("Optional content group not found: ".concat(t.id)),!0);if("OCMD"===t.type){if(t.expression)return l(Xl,this,Yl).call(this,t.expression);if(!t.policy||"AnyOn"===t.policy){for(const e of t.ids){if(!c(Vl,this).has(e))return mt("Optional content group not found: ".concat(e)),!0;if(c(Vl,this).get(e).visible)return!0}return!1}if("AllOn"===t.policy){for(const e of t.ids){if(!c(Vl,this).has(e))return mt("Optional content group not found: ".concat(e)),!0;if(!c(Vl,this).get(e).visible)return!1}return!0}if("AnyOff"===t.policy){for(const e of t.ids){if(!c(Vl,this).has(e))return mt("Optional content group not found: ".concat(e)),!0;if(!c(Vl,this).get(e).visible)return!0}return!1}if("AllOff"===t.policy){for(const e of t.ids){if(!c(Vl,this).has(e))return mt("Optional content group not found: ".concat(e)),!0;if(c(Vl,this).get(e).visible)return!1}return!0}return mt("Unknown optional content policy ".concat(t.policy,".")),!0}return mt("Unknown group type ".concat(t.type,".")),!0}setVisibility(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=c(Vl,this).get(t);if(i){if(n&&e&&i.rbGroups.length)for(const e of i.rbGroups)for(const n of e){var r;if(n!==t)null===(r=c(Vl,this).get(n))||void 0===r||r._setVisible(Ll,!1,!0)}i._setVisible(Ll,!!e,!0),h(Gl,this,null)}else mt("Optional content group not found: ".concat(t))}setOCGState(t){let e,{state:n,preserveRB:i}=t;for(const r of n){switch(r){case"ON":case"OFF":case"Toggle":e=r;continue}const t=c(Vl,this).get(r);if(t)switch(e){case"ON":this.setVisibility(r,!0,i);break;case"OFF":this.setVisibility(r,!1,i);break;case"Toggle":this.setVisibility(r,!t.visible,i)}}h(Gl,this,null)}get hasInitialVisibility(){return null===c(Hl,this)||this.getHash()===c(Hl,this)}getOrder(){return c(Vl,this).size?c(ql,this)?c(ql,this).slice():[...c(Vl,this).keys()]:null}getGroup(t){return c(Vl,this).get(t)||null}getHash(){if(null!==c(Gl,this))return c(Gl,this);const t=new po;for(const[e,n]of c(Vl,this))t.update("".concat(e,":").concat(n.visible));return h(Gl,this,t.hexdigest())}[Symbol.iterator](){return c(Vl,this).entries()}}function Yl(t){const e=t.length;if(e<2)return!0;const n=t[0];for(let i=1;i<e;i++){const e=t[i];let r;if(Array.isArray(e))r=l(Xl,this,Yl).call(this,e);else{if(!c(Vl,this).has(e))return mt("Optional content group not found: ".concat(e)),!0;r=c(Vl,this).get(e).visible}switch(n){case"And":if(!r)return!1;break;case"Or":if(r)return!0;break;case"Not":return!r;default:return!0}}return"And"===n}class Zl{constructor(t,e){let{disableRange:n=!1,disableStream:i=!1}=e;yt(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:r,initialData:o,progressiveDone:s,contentDispositionFilename:a}=t;if(this._queuedChunks=[],this._progressiveDone=s,this._contentDispositionFilename=a,(null===o||void 0===o?void 0:o.length)>0){const t=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(t)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!i,this._isRangeSupported=!n,this._contentLength=r,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((t,e)=>{this._onReceiveData({begin:t,chunk:e})}),t.addProgressListener((t,e)=>{this._onProgress({loaded:t,total:e})}),t.addProgressiveReadListener(t=>{this._onReceiveData({chunk:t})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData(t){let{begin:e,chunk:n}=t;const i=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(void 0===e)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{yt(this._rangeReaders.some(function(t){return t._begin===e&&(t._enqueue(i),!0)}),"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var t,e;return null!==(t=null===(e=this._fullRequestReader)||void 0===e?void 0:e._loaded)&&void 0!==t?t:0}_onProgress(t){var e,n,i,r;void 0===t.total?null===(e=this._rangeReaders[0])||void 0===e||null===(n=e.onProgress)||void 0===n||n.call(e,{loaded:t.loaded}):null===(i=this._fullRequestReader)||void 0===i||null===(r=i.onProgress)||void 0===r||r.call(i,{loaded:t.loaded,total:t.total})}_onProgressiveDone(){var t;null===(t=this._fullRequestReader)||void 0===t||t.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}getFullReader(){yt(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new Ql(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const n=new Jl(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(n),n}cancelAllRequests(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);for(const n of this._rangeReaders.slice(0))n.cancel(t);this._pdfDataRangeTransport.abort()}}class Ql{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=t,this._done=n||!1,this._filename=Zt(i)?i:null,this._queuedChunks=e||[],this._loaded=0;for(const r of this._queuedChunks)this._loaded+=r.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunks.push(t);this._loaded+=t.byteLength}}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0){return{value:this._queuedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Jl{constructor(t,e,n){this._stream=t,this._begin=e,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(0===this._requests.length)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function $l(t,e){const n=new Headers;if(!t||!e||"object"!==typeof e)return n;for(const i in e){const t=e[i];void 0!==t&&n.append(i,t)}return n}function tu(t){var e,n;return null!==(e=null===(n=URL.parse(t))||void 0===n?void 0:n.origin)&&void 0!==e?e:null}function eu(t){let{responseHeaders:e,isHttp:n,rangeChunkSize:i,disableRange:r}=t;const o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(e.get("Content-Length"),10);if(!Number.isInteger(s))return o;if(o.suggestedLength=s,s<=2*i)return o;if(r||!n)return o;if("bytes"!==e.get("Accept-Ranges"))return o;return"identity"!==(e.get("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o}function nu(t){const e=t.get("Content-Disposition");if(e){let t=function(t){let e=!0,n=i("filename\\*","i").exec(t);if(n){n=n[1];let t=s(n);return t=unescape(t),t=a(t),t=l(t),o(t)}if(n=function(t){const e=[];let n;const r=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(t));){let[,t,i,r]=n;if(t=parseInt(t,10),t in e){if(0===t)break}else e[t]=[i,r]}const o=[];for(let i=0;i<e.length&&i in e;++i){let[t,n]=e[i];n=s(n),t&&(n=unescape(n),0===i&&(n=a(n))),o.push(n)}return o.join("")}(t),n)return o(l(n));if(n=i("filename","i").exec(t),n){n=n[1];let t=s(n);return t=l(t),o(t)}function i(t,e){return new RegExp("(?:^|;)\\s*"+t+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',e)}function r(t,n){if(t){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const i=new TextDecoder(t,{fatal:!0}),r=Tt(n);n=i.decode(r),e=!1}catch(i){}}return n}function o(t){return e&&/[\x80-\xff]/.test(t)&&(t=r("utf-8",t),e&&(t=r("iso-8859-1",t))),t}function s(t){if(t.startsWith('"')){const e=t.slice(1).split('\\"');for(let t=0;t<e.length;++t){const n=e[t].indexOf('"');-1!==n&&(e[t]=e[t].slice(0,n),e.length=t+1),e[t]=e[t].replaceAll(/\\(.)/g,"$1")}t=e.join('"')}return t}function a(t){const e=t.indexOf("'");return-1===e?t:r(t.slice(0,e),t.slice(e+1).replace(/^[^']*'/,""))}function l(t){return!t.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(t)?t:t.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(t,e,n,i){if("q"===n||"Q"===n)return r(e,i=(i=i.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,function(t,e){return String.fromCharCode(parseInt(e,16))}));try{i=atob(i)}catch(o){}return r(e,i)})}return""}(e);if(t.includes("%"))try{t=decodeURIComponent(t)}catch(n){}if(Zt(t))return t}return null}function iu(t,e){return new Ft("Unexpected server response (".concat(t,') while retrieving PDF "').concat(e,'".'),t,404===t||0===t&&e.startsWith("file:"))}function ru(t){return 200===t||206===t}function ou(t,e,n){return{method:"GET",headers:t,signal:n.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function su(t){return t instanceof Uint8Array?t.buffer:t instanceof ArrayBuffer?t:(mt("getArrayBuffer - unexpected data format: ".concat(t)),new Uint8Array(t).buffer)}class au{constructor(t){(0,T.A)(this,"_responseOrigin",null),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.headers=$l(this.isHttp,t.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t,e;return null!==(t=null===(e=this._fullRequestReader)||void 0===e?void 0:e._loaded)&&void 0!==t?t:0}getFullReader(){return yt(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new lu(this),this._fullRequestReader}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const n=new uu(this,t,e);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);for(const n of this._rangeRequestReaders.slice(0))n.cancel(t)}}class lu{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const e=t.source;this._withCredentials=e.withCredentials||!1,this._contentLength=e.length,this._headersCapability=Promise.withResolvers(),this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange;const n=new Headers(t.headers),i=e.url;fetch(i,ou(n,this._withCredentials,this._abortController)).then(e=>{if(t._responseOrigin=tu(e.url),!ru(e.status))throw iu(e.status,i);this._reader=e.body.getReader(),this._headersCapability.resolve();const n=e.headers,{allowRangeRequests:r,suggestedLength:o}=eu({responseHeaders:n,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=r,this._contentLength=o||this._contentLength,this._filename=nu(n),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new kt("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var t;await this._headersCapability.promise;const{value:e,done:n}=await this._reader.read();return n?{value:e,done:n}:(this._loaded+=e.byteLength,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded,total:this._contentLength}),{value:su(e),done:!1})}cancel(t){var e;null===(e=this._reader)||void 0===e||e.cancel(t),this._abortController.abort()}}class uu{constructor(t,e,n){this._stream=t,this._reader=null,this._loaded=0;const i=t.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController;const r=new Headers(t.headers);r.append("Range","bytes=".concat(e,"-").concat(n-1));const o=i.url;fetch(o,ou(r,this._withCredentials,this._abortController)).then(e=>{const n=tu(e.url);if(n!==t._responseOrigin)throw new Error('Expected range response-origin "'.concat(n,'" to match "').concat(t._responseOrigin,'".'));if(!ru(e.status))throw iu(e.status,o);this._readCapability.resolve(),this._reader=e.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var t;await this._readCapability.promise;const{value:e,done:n}=await this._reader.read();return n?{value:e,done:n}:(this._loaded+=e.byteLength,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded}),{value:su(e),done:!1})}cancel(t){var e;null===(e=this._reader)||void 0===e||e.cancel(t),this._abortController.abort()}}class cu{constructor(t){let{url:e,httpHeaders:n,withCredentials:i}=t;(0,T.A)(this,"_responseOrigin",null),this.url=e,this.isHttp=/^https?:/i.test(e),this.headers=$l(this.isHttp,n),this.withCredentials=i||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(t){const e=new XMLHttpRequest,n=this.currXhrId++,i=this.pendingRequests[n]={xhr:e};e.open("GET",this.url),e.withCredentials=this.withCredentials;for(const[r,o]of this.headers)e.setRequestHeader(r,o);return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range","bytes=".concat(t.begin,"-").concat(t.end-1)),i.expectedStatus=206):i.expectedStatus=200,e.responseType="arraybuffer",yt(t.onError,"Expected `onError` callback to be provided."),e.onerror=()=>{t.onError(e.status)},e.onreadystatechange=this.onStateChange.bind(this,n),e.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=t.onHeadersReceived,i.onDone=t.onDone,i.onError=t.onError,i.onProgress=t.onProgress,e.send(null),n}onProgress(t,e){var n;const i=this.pendingRequests[t];i&&(null===(n=i.onProgress)||void 0===n||n.call(i,e))}onStateChange(t,e){const n=this.pendingRequests[t];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],0===i.status&&this.isHttp)return void n.onError(i.status);const r=i.status||200;if(!(200===r&&206===n.expectedStatus)&&r!==n.expectedStatus)return void n.onError(i.status);const o=function(t){const e=t.response;return"string"!==typeof e?e:Tt(e).buffer}(i);if(206===r){const t=i.getResponseHeader("Content-Range"),e=/bytes (\d+)-(\d+)\/(\d+)/.exec(t);e?n.onDone({begin:parseInt(e[1],10),chunk:o}):(mt('Missing or invalid "Content-Range" header.'),n.onError(0))}else o?n.onDone({begin:0,chunk:o}):n.onError(i.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}class hu{constructor(t){this._source=t,this._manager=new cu(t),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}getFullReader(){return yt(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new du(this._manager,this._source),this._fullRequestReader}getRangeReader(t,e){const n=new fu(this._manager,t,e);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);for(const n of this._rangeRequestReaders.slice(0))n.cancel(t)}}class du{constructor(t,e){this._manager=t,this._url=e.url,this._fullRequestId=t.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=e.disableRange||!1,this._contentLength=e.length,this._rangeChunkSize=e.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,e=this._manager.getRequestXhr(t);this._manager._responseOrigin=tu(e.responseURL);const n=e.getAllResponseHeaders(),i=new Headers(n?n.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(t=>{const[e,...n]=t.split(": ");return[e,n.join(": ")]}):[]),{allowRangeRequests:r,suggestedLength:o}=eu({responseHeaders:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=nu(i),this._isRangeSupported&&this._manager.abortRequest(t),this._headersCapability.resolve()}_onDone(t){if(t)if(this._requests.length>0){this._requests.shift().resolve({value:t.chunk,done:!1})}else this._cachedChunks.push(t.chunk);if(this._done=!0,!(this._cachedChunks.length>0)){for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=iu(t,this._url),this._headersCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){var e;null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0){return{value:this._cachedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersCapability.reject(t);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class fu{constructor(t,e,n){this._manager=t,this._url=t.url,this._requestId=t.request({begin:e,end:n,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){var t;const e=tu(null===(t=this._manager.getRequestXhr(this._requestId))||void 0===t?void 0:t.responseURL);e!==this._manager._responseOrigin&&(this._storedError=new Error('Expected range response-origin "'.concat(e,'" to match "').concat(this._manager._responseOrigin,'".')),this._onError(0))}_close(){var t;null===(t=this.onClosed)||void 0===t||t.call(this,this)}_onDone(t){const e=t.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunk=e;this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){var e;null!==(e=this._storedError)&&void 0!==e||(this._storedError=iu(t,this._url));for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){var e;this.isStreamingSupported||(null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:t.loaded}))}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const pu=/^[a-z][a-z0-9\-+.]+:/i;class gu{constructor(t){this.source=t,this.url=function(t){if(pu.test(t))return new URL(t);const e=process.getBuiltinModule("url");return new URL(e.pathToFileURL(t))}(t.url),yt("file:"===this.url.protocol,"PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t,e;return null!==(t=null===(e=this._fullRequestReader)||void 0===e?void 0:e._loaded)&&void 0!==t?t:0}getFullReader(){return yt(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new mu(this),this._fullRequestReader}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const n=new vu(this,t,e);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);for(const n of this._rangeRequestReaders.slice(0))n.cancel(t)}}class mu{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const e=t.source;this._contentLength=e.length,this._loaded=0,this._filename=null,this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const n=process.getBuiltinModule("fs");n.promises.lstat(this._url).then(t=>{this._contentLength=t.size,this._setReadableStream(n.createReadStream(this._url)),this._headersCapability.resolve()},t=>{"ENOENT"===t.code&&(t=iu(0,this._url.href)),this._storedError=t,this._headersCapability.reject(t)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var t;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();if(null===e)return this._readCapability=Promise.withResolvers(),this.read();this._loaded+=e.length,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded,total:this._contentLength});return{value:new Uint8Array(e).buffer,done:!1}}cancel(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",t=>{this._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new kt("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class vu{constructor(t,e,n){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const i=t.source;this._isStreamingSupported=!i.disableStream;const r=process.getBuiltinModule("fs");this._setReadableStream(r.createReadStream(this._url,{start:e,end:n-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){var t;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();if(null===e)return this._readCapability=Promise.withResolvers(),this.read();this._loaded+=e.length,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded});return{value:new Uint8Array(e).buffer,done:!1}}cancel(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",t=>{this._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const yu=Symbol("INITIAL_DATA");var bu=new WeakMap,wu=new WeakSet;class Du{constructor(){s(this,wu),a(this,bu,Object.create(null))}get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){const n=l(wu,this,Au).call(this,t);return n.promise.then(()=>e(n.data)),null}const n=c(bu,this)[t];if(!n||n.data===yu)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return n.data}has(t){const e=c(bu,this)[t];return!!e&&e.data!==yu}delete(t){const e=c(bu,this)[t];return!(!e||e.data===yu)&&(delete c(bu,this)[t],!0)}resolve(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=l(wu,this,Au).call(this,t);n.data=e,n.resolve()}clear(){for(const e in c(bu,this)){var t;const{data:n}=c(bu,this)[e];null===n||void 0===n||null===(t=n.bitmap)||void 0===t||t.close()}h(bu,this,Object.create(null))}*[Symbol.iterator](){for(const t in c(bu,this)){const{data:e}=c(bu,this)[t];e!==yu&&(yield[t,e])}}}function Au(t){var e;return(e=c(bu,this))[t]||(e[t]=(0,r.A)((0,r.A)({},Promise.withResolvers()),{},{data:yu}))}var xu=new WeakMap,Cu=new WeakMap,Su=new WeakMap,Fu=new WeakMap,Eu=new WeakMap,ku=new WeakMap,Mu=new WeakMap,Tu=new WeakMap,Pu=new WeakMap,_u=new WeakMap,Ru=new WeakMap,Bu=new WeakMap,Iu=new WeakMap,Nu=new WeakMap,Lu=new WeakMap,Ou=new WeakMap,Wu=new WeakMap,zu=new WeakMap,ju=new WeakSet;class Uu{constructor(t){var e;let{textContentSource:n,container:i,viewport:r}=t;if(s(this,ju),a(this,xu,Promise.withResolvers()),a(this,Cu,null),a(this,Su,!1),a(this,Fu,!(null===(e=globalThis.FontInspector)||void 0===e||!e.enabled)),a(this,Eu,null),a(this,ku,null),a(this,Mu,0),a(this,Tu,0),a(this,Pu,null),a(this,_u,null),a(this,Ru,0),a(this,Bu,0),a(this,Iu,Object.create(null)),a(this,Nu,[]),a(this,Lu,null),a(this,Ou,[]),a(this,Wu,new WeakMap),a(this,zu,null),n instanceof ReadableStream)h(Lu,this,n);else{if("object"!==typeof n)throw new Error('No "textContentSource" parameter specified.');h(Lu,this,new ReadableStream({start(t){t.enqueue(n),t.close()}}))}h(Cu,this,h(_u,this,i)),h(Bu,this,r.scale*ae.pixelRatio),h(Ru,this,r.rotation),h(ku,this,{div:null,properties:null,ctx:null});const{pageWidth:o,pageHeight:l,pageX:u,pageY:d}=r.rawDims;h(zu,this,[1,0,0,-1,-u,d+l]),h(Tu,this,o),h(Mu,this,l),Ku.call(Uu),se(i,r),c(xu,this).promise.finally(()=>{tc._.delete(this),h(ku,this,null),h(Iu,this,null)}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:t,isFirefox:e}=Pt.platform;return Dt(this,"fontFamilyMap",new Map([["sans-serif","".concat(t&&e?"Calibri, ":"","sans-serif")],["monospace","".concat(t&&e?"Lucida Console, ":"","monospace")]]))}render(){const t=()=>{c(Pu,this).read().then(e=>{var n;let{value:i,done:r}=e;r?c(xu,this).resolve():(null!==(n=c(Eu,this))&&void 0!==n||h(Eu,this,i.lang),Object.assign(c(Iu,this),i.styles),l(ju,this,Gu).call(this,i.items),t())},c(xu,this).reject)};return h(Pu,this,c(Lu,this).getReader()),tc._.add(this),t(),c(xu,this).promise}update(t){let{viewport:e,onBefore:n=null}=t;const i=e.scale*ae.pixelRatio,r=e.rotation;if(r!==c(Ru,this)&&(null===n||void 0===n||n(),h(Ru,this,r),se(c(_u,this),{rotation:r})),i!==c(Bu,this)){null===n||void 0===n||n(),h(Bu,this,i);const t={div:null,properties:null,ctx:qu.call(Uu,c(Eu,this))};for(const e of c(Ou,this))t.properties=c(Wu,this).get(e),t.div=e,l(ju,this,Hu).call(this,t)}}cancel(){var t;const e=new kt("TextLayer task cancelled.");null===(t=c(Pu,this))||void 0===t||t.cancel(e).catch(()=>{}),h(Pu,this,null),c(xu,this).reject(e)}get textDivs(){return c(Ou,this)}get textContentItemsStr(){return c(Nu,this)}static cleanup(){if(!(l(Uu,this,tc)._.size>0)){l(Uu,this,Zu)._.clear();for(const{canvas:t}of l(Uu,this,Qu)._.values())t.remove();l(Uu,this,Qu)._.clear()}}}function Gu(t){var e,n;if(c(Su,this))return;null!==(n=(e=c(ku,this)).ctx)&&void 0!==n||(e.ctx=qu.call(w,c(Eu,this)));const i=c(Ou,this),r=c(Nu,this);for(const o of t){if(i.length>1e5)return mt("Ignoring additional textDivs for performance reasons."),void h(Su,this,!0);if(void 0!==o.str)r.push(o.str),l(ju,this,Vu).call(this,o);else if("beginMarkedContentProps"===o.type||"beginMarkedContent"===o.type){const t=c(Cu,this);h(Cu,this,document.createElement("span")),c(Cu,this).classList.add("markedContent"),o.id&&c(Cu,this).setAttribute("id","".concat(o.id)),t.append(c(Cu,this))}else"endMarkedContent"===o.type&&h(Cu,this,c(Cu,this).parentNode)}}function Vu(t){const e=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};c(Ou,this).push(e);const i=Rt.transform(c(zu,this),t.transform);let r=Math.atan2(i[1],i[0]);const o=c(Iu,this)[t.fontName];o.vertical&&(r+=Math.PI/2);let s=c(Fu,this)&&o.fontSubstitution||o.fontFamily;s=w.fontFamilyMap.get(s)||s;const a=Math.hypot(i[2],i[3]),u=a*Yu.call(w,s,o,c(Eu,this));let h,d;0===r?(h=i[4],d=i[5]-u):(h=i[4]+u*Math.sin(r),d=i[5]-u*Math.cos(r));const f="calc(var(--total-scale-factor) *",p=e.style;c(Cu,this)===c(_u,this)?(p.left="".concat((100*h/c(Tu,this)).toFixed(2),"%"),p.top="".concat((100*d/c(Mu,this)).toFixed(2),"%")):(p.left="".concat(f).concat(h.toFixed(2),"px)"),p.top="".concat(f).concat(d.toFixed(2),"px)")),p.fontSize="".concat(f).concat(($u._*a).toFixed(2),"px)"),p.fontFamily=s,n.fontSize=a,e.setAttribute("role","presentation"),e.textContent=t.str,e.dir=t.dir,c(Fu,this)&&(e.dataset.fontName=o.fontSubstitutionLoadedName||t.fontName),0!==r&&(n.angle=r*(180/Math.PI));let g=!1;if(t.str.length>1)g=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(g=!0)}if(g&&(n.canvasWidth=o.vertical?t.height:t.width),c(Wu,this).set(e,n),c(ku,this).div=e,c(ku,this).properties=n,l(ju,this,Hu).call(this,c(ku,this)),n.hasText&&c(Cu,this).append(e),n.hasEOL){const t=document.createElement("br");t.setAttribute("role","presentation"),c(Cu,this).append(t)}}function Hu(t){const{div:e,properties:n,ctx:i}=t,{style:r}=e;let o="";if($u._>1&&(o="scale(".concat(1/$u._,")")),0!==n.canvasWidth&&n.hasText){const{fontFamily:t}=r,{canvasWidth:s,fontSize:a}=n;Xu.call(w,i,a*c(Bu,this),t);const{width:l}=i.measureText(e.textContent);l>0&&(o="scaleX(".concat(s*c(Bu,this)/l,") ").concat(o))}0!==n.angle&&(o="rotate(".concat(n.angle,"deg) ").concat(o)),o.length>0&&(r.transform=o)}function qu(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=l(w,this,Qu)._.get(t||(t=""));if(!e){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=t,document.body.append(n),e=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),l(w,this,Qu)._.set(t,e),l(w,this,Ju)._.set(e,{size:0,family:""})}return e}function Xu(t,e,n){const i=l(w,this,Ju)._.get(t);e===i.size&&n===i.family||(t.font="".concat(e,"px ").concat(n),i.size=e,i.family=n)}function Ku(){if(null!==l(w,this,$u)._)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.style.position="absolute",t.textContent="X",document.body.append(t),$u._=l(w,this,t.getBoundingClientRect().height),t.remove()}function Yu(t,e,n){const i=l(w,this,Zu)._.get(t);if(i)return i;const r=l(w,this,qu).call(this,n);r.canvas.width=r.canvas.height=30,l(w,this,Xu).call(this,r,30,t);const o=r.measureText(""),s=o.fontBoundingBoxAscent,a=Math.abs(o.fontBoundingBoxDescent);r.canvas.width=r.canvas.height=0;let u=.8;return s?u=s/(s+a):(Pt.platform.isFirefox&&mt("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),e.ascent?u=e.ascent:e.descent&&(u=1+e.descent)),l(w,this,Zu)._.set(t,u),u}w=Uu;var Zu={_:new Map},Qu={_:new Map},Ju={_:new WeakMap},$u={_:null},tc={_:new Set};function ec(){var t,e;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"===typeof n||n instanceof URL?n={url:n}:(n instanceof ArrayBuffer||ArrayBuffer.isView(n))&&(n={data:n});const i=new nc,{docId:r}=i,o=n.url?function(t){if(t instanceof URL)return t.href;if("string"===typeof t){if(_)return t;const e=URL.parse(t,window.location);if(e)return e.href}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(n.url):null,s=n.data?function(t){if(_&&"undefined"!==typeof Buffer&&t instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if("string"===typeof t)return Tt(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||"object"===typeof t&&!isNaN(null===t||void 0===t?void 0:t.length))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(n.data):null,a=n.httpHeaders||null,l=!0===n.withCredentials,u=null!==(t=n.password)&&void 0!==t?t:null,c=n.range instanceof uc?n.range:null,h=Number.isInteger(n.rangeChunkSize)&&n.rangeChunkSize>0?n.rangeChunkSize:65536;let d=n.worker instanceof wc?n.worker:null;const f=n.verbosity,p="string"!==typeof n.docBaseUrl||Yt(n.docBaseUrl)?null:n.docBaseUrl,g=Mo(n.cMapUrl),m=!1!==n.cMapPacked,v=n.CMapReaderFactory||(_?Bs:rs),y=Mo(n.iccUrl),b=Mo(n.standardFontDataUrl),w=n.StandardFontDataFactory||(_?Is:ks),D=Mo(n.wasmUrl),A=n.WasmFactory||(_?Ns:Ts),x=!0!==n.stopAtErrors,C=Number.isInteger(n.maxImageSize)&&n.maxImageSize>-1?n.maxImageSize:-1,S=!1!==n.isEvalSupported,F="boolean"===typeof n.isOffscreenCanvasSupported?n.isOffscreenCanvasSupported:!_,E="boolean"===typeof n.isImageDecoderSupported?n.isImageDecoderSupported:!_&&(Pt.platform.isFirefox||!globalThis.chrome),k=Number.isInteger(n.canvasMaxAreaInBytes)?n.canvasMaxAreaInBytes:-1,M="boolean"===typeof n.disableFontFace?n.disableFontFace:_,T=!0===n.fontExtraProperties,P=!0===n.enableXfa,R=n.ownerDocument||globalThis.document,B=!0===n.disableRange,I=!0===n.disableStream,N=!0===n.disableAutoFetch,L=!0===n.pdfBug,O=n.CanvasFactory||(_?Rs:ns),W=n.FilterFactory||(_?_s:ps),z=!0===n.enableHWA,j=!1!==n.useWasm,U=c?c.length:null!==(e=n.length)&&void 0!==e?e:NaN,G="boolean"===typeof n.useSystemFonts?n.useSystemFonts:!_&&!M,V="boolean"===typeof n.useWorkerFetch?n.useWorkerFetch:!!(v===rs&&w===ks&&A===Ts&&g&&b&&D&&Jt(g,document.baseURI)&&Jt(b,document.baseURI)&&Jt(D,document.baseURI));ft(f);const H={canvasFactory:new O({ownerDocument:R,enableHWA:z}),filterFactory:new W({docId:r,ownerDocument:R}),cMapReaderFactory:V?null:new v({baseUrl:g,isCompressed:m}),standardFontDataFactory:V?null:new w({baseUrl:b}),wasmFactory:V?null:new A({baseUrl:D})};d||(d=wc.create({verbosity:f,port:Pl.workerPort}),i._worker=d);const q={docId:r,apiVersion:"5.4.296",data:s,password:u,disableAutoFetch:N,rangeChunkSize:h,length:U,docBaseUrl:p,enableXfa:P,evaluatorOptions:{maxImageSize:C,disableFontFace:M,ignoreErrors:x,isEvalSupported:S,isOffscreenCanvasSupported:F,isImageDecoderSupported:E,canvasMaxAreaInBytes:k,fontExtraProperties:T,useSystemFonts:G,useWasm:j,useWorkerFetch:V,cMapUrl:g,iccUrl:y,standardFontDataUrl:b,wasmUrl:D}},X={ownerDocument:R,pdfBug:L,styleElement:null,loadingParams:{disableAutoFetch:N,enableXfa:P}};return d.promise.then(function(){if(i.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const t=d.messageHandler.sendWithPromise("GetDocRequest",q,s?[s.buffer]:null);let e;if(c)e=new Zl(c,{disableRange:B,disableStream:I});else if(!s){if(!o)throw new Error("getDocument - no `url` parameter provided.");const t=Jt(o)?au:_?gu:hu;e=new t({url:o,length:U,httpHeaders:a,withCredentials:l,rangeChunkSize:h,disableRange:B,disableStream:I})}return t.then(t=>{if(i.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const n=new Yo(r,t,d.port),o=new Ic(n,i,e,X,H,z);i._transport=o,n.send("Ready",null)})}).catch(i._capability.reject),i}class nc{constructor(){(0,T.A)(this,"_capability",Promise.withResolvers()),(0,T.A)(this,"_transport",null),(0,T.A)(this,"_worker",null),(0,T.A)(this,"docId","d".concat((ic._=(D=ic._,A=D++,D),A))),(0,T.A)(this,"destroyed",!1),(0,T.A)(this,"onPassword",null),(0,T.A)(this,"onProgress",null)}get promise(){return this._capability.promise}async destroy(){var t;this.destroyed=!0;try{var e,n;null!==(e=this._worker)&&void 0!==e&&e.port&&(this._worker._pendingDestroy=!0),await(null===(n=this._transport)||void 0===n?void 0:n.destroy())}catch(r){var i;throw null!==(i=this._worker)&&void 0!==i&&i.port&&delete this._worker._pendingDestroy,r}this._transport=null,null===(t=this._worker)||void 0===t||t.destroy(),this._worker=null}async getData(){return this._transport.getData()}}var ic={_:0},rc=new WeakMap,oc=new WeakMap,sc=new WeakMap,ac=new WeakMap,lc=new WeakMap;class uc{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;a(this,rc,Promise.withResolvers()),a(this,oc,[]),a(this,sc,[]),a(this,ac,[]),a(this,lc,[]),this.length=t,this.initialData=e,this.progressiveDone=n,this.contentDispositionFilename=i}addRangeListener(t){c(lc,this).push(t)}addProgressListener(t){c(ac,this).push(t)}addProgressiveReadListener(t){c(sc,this).push(t)}addProgressiveDoneListener(t){c(oc,this).push(t)}onDataRange(t,e){for(const n of c(lc,this))n(t,e)}onDataProgress(t,e){c(rc,this).promise.then(()=>{for(const n of c(ac,this))n(t,e)})}onDataProgressiveRead(t){c(rc,this).promise.then(()=>{for(const e of c(sc,this))e(t)})}onDataProgressiveDone(){c(rc,this).promise.then(()=>{for(const t of c(oc,this))t()})}transportReady(){c(rc,this).resolve()}requestDataRange(t,e){vt("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class cc{constructor(t,e){this._pdfInfo=t,this._transport=e}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Dt(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getAnnotationsByType(t,e){return this._transport.getAnnotationsByType(t,e)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){let{intent:t="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(e)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}var hc=new WeakMap,dc=new WeakSet;class fc{constructor(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s(this,dc),a(this,hc,!1),this._pageIndex=t,this._pageInfo=e,this._transport=n,this._stats=i?new Qt:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new Du,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:t,rotation:e=this.rotate,offsetX:n=0,offsetY:i=0,dontFlip:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Xt({viewBox:this.view,userUnit:this.userUnit,scale:t,rotation:e,offsetX:n,offsetY:i,dontFlip:r})}getAnnotations(){let{intent:t="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,e)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Dt(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var t;return(null===(t=this._transport._htmlForXfa)||void 0===t?void 0:t.children[this._pageIndex])||null}render(t){var e,n,i;let{canvasContext:r,canvas:o=r.canvas,viewport:s,intent:a="display",annotationMode:u=G.ENABLE,transform:c=null,background:d=null,optionalContentConfigPromise:f=null,annotationCanvasMap:p=null,pageColors:g=null,printAnnotationStorage:m=null,isEditing:v=!1,recordOperations:y=!1,operationsFilter:b=null}=t;null===(e=this._stats)||void 0===e||e.time("Overall");const w=this._transport.getRenderingIntent(a,u,m,v),{renderingIntent:D,cacheKey:A}=w;h(hc,this,!1),f||(f=this._transport.getOptionalContentConfig(D));let x=this._intentStates.get(A);x||(x=Object.create(null),this._intentStates.set(A,x)),x.streamReaderCancelTimeout&&(clearTimeout(x.streamReaderCancelTimeout),x.streamReaderCancelTimeout=null);const C=!!(D&L);var S;x.displayReadyCapability||(x.displayReadyCapability=Promise.withResolvers(),x.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(S=this._stats)||void 0===S||S.time("Page Request"),this._pumpOperatorList(w));const F=Boolean(this._pdfBug&&(null===(n=globalThis.StepperManager)||void 0===n?void 0:n.enabled)),E=!this.recordedBBoxes&&(y||F),k=t=>{if(x.renderTasks.delete(M),E){var e;const t=null===(e=M.gfx)||void 0===e?void 0:e.dependencyTracker.take();t&&(M.stepper&&M.stepper.setOperatorBBoxes(t,M.gfx.dependencyTracker.takeDebugMetadata()),y&&(this.recordedBBoxes=t))}var n;(C&&h(hc,this,!0),l(dc,this,pc).call(this),t?(M.capability.reject(t),this._abortOperatorList({intentState:x,reason:t instanceof Error?t:new Error(t)})):M.capability.resolve(),this._stats)&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),null!==(n=globalThis.Stats)&&void 0!==n&&n.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},M=new zc({callback:k,params:{canvas:o,canvasContext:r,dependencyTracker:E?new ca(o,x.operatorList.length,F):null,viewport:s,transform:c,background:d},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:p,operatorList:x.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!C,pdfBug:this._pdfBug,pageColors:g,enableHWA:this._transport.enableHWA,operationsFilter:b});((i=x).renderTasks||(i.renderTasks=new Set)).add(M);const T=M.task;return Promise.all([x.displayReadyCapability.promise,f]).then(t=>{var e;let[n,i]=t;if(this.destroyed)k();else{if(null===(e=this._stats)||void 0===e||e.time("Rendering"),!(i.renderingIntent&D))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");M.initializeGraphics({transparency:n,optionalContentConfig:i}),M.operatorListChanged()}}).catch(k),T}getOperatorList(){let{intent:t="display",annotationMode:e=G.ENABLE,printAnnotationStorage:n=null,isEditing:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this._transport.getRenderingIntent(t,e,n,i,!0);let o,s=this._intentStates.get(r.cacheKey);var a,l;(s||(s=Object.create(null),this._intentStates.set(r.cacheKey,s)),s.opListReadCapability)||(o=Object.create(null),o.operatorListChanged=function(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(o))},s.opListReadCapability=Promise.withResolvers(),((a=s).renderTasks||(a.renderTasks=new Set)).add(o),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(l=this._stats)||void 0===l||l.time("Page Request"),this._pumpOperatorList(r));return s.opListReadCapability.promise}streamTextContent(){let{includeMarkedContent:t=!1,disableNormalization:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===t,disableNormalization:!0===e},{highWaterMark:100,size:t=>t.items.length})}getTextContent(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then(t=>Ut.textContent(t));const e=this.streamTextContent(t);return new Promise(function(t,n){const i=e.getReader(),r={items:[],styles:Object.create(null),lang:null};!function e(){i.read().then(function(n){var i;let{value:o,done:s}=n;s?t(r):(null!==(i=r.lang)&&void 0!==i||(r.lang=o.lang),Object.assign(r.styles,o.styles),r.items.push(...o.items),e())},n)}()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const e of this._intentStates.values())if(this._abortOperatorList({intentState:e,reason:new Error("Page was destroyed."),force:!0}),!e.opListReadCapability)for(const n of e.renderTasks)t.push(n.completed),n.cancel();return this.objs.clear(),h(hc,this,!1),Promise.all(t)}cleanup(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];h(hc,this,!0);const e=l(dc,this,pc).call(this);return t&&e&&this._stats&&(this._stats=new Qt),e}_startRenderPage(t,e){var n,i;const r=this._intentStates.get(e);r&&(null===(n=this._stats)||void 0===n||n.timeEnd("Page Request"),null===(i=r.displayReadyCapability)||void 0===i||i.resolve(t))}_renderPageChunk(t,e){for(let n=0,i=t.length;n<i;n++)e.operatorList.fnArray.push(t.fnArray[n]),e.operatorList.argsArray.push(t.argsArray[n]);e.operatorList.lastChunk=t.lastChunk,e.operatorList.separateAnnots=t.separateAnnots;for(const n of e.renderTasks)n.operatorListChanged();t.lastChunk&&l(dc,this,pc).call(this)}_pumpOperatorList(t){let{renderingIntent:e,cacheKey:n,annotationStorageSerializable:i,modifiedIds:r}=t;const{map:o,transfer:s}=i,a=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:n,annotationStorage:o,modifiedIds:r},s).getReader(),u=this._intentStates.get(n);u.streamReader=a;const c=()=>{a.read().then(t=>{let{value:e,done:n}=t;n?u.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,u),c())},t=>{if(u.streamReader=null,!this._transport.destroyed){if(u.operatorList){u.operatorList.lastChunk=!0;for(const t of u.renderTasks)t.operatorListChanged();l(dc,this,pc).call(this)}if(u.displayReadyCapability)u.displayReadyCapability.reject(t);else{if(!u.opListReadCapability)throw t;u.opListReadCapability.reject(t)}}})};c()}_abortOperatorList(t){let{intentState:e,reason:n,force:i=!1}=t;if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!i){if(e.renderTasks.size>0)return;if(n instanceof Kt){let t=100;return n.extraDelay>0&&n.extraDelay<1e3&&(t+=n.extraDelay),void(e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:n,force:!0})},t))}}if(e.streamReader.cancel(new kt(n.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[t,n]of this._intentStates)if(n===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}function pc(){if(!c(hc,this)||this.destroyed)return!1;for(const{renderTasks:t,operatorList:e}of this._intentStates.values())if(t.size>0||!e.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),h(hc,this,!1),!0}var gc=new WeakMap,mc=new WeakMap,vc=new WeakMap,yc=new WeakMap,bc=new WeakSet;class wc{constructor(){let{name:t=null,port:e=null,verbosity:n=pt()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,bc),a(this,gc,Promise.withResolvers()),a(this,mc,null),a(this,vc,null),a(this,yc,null),this.name=t,this.destroyed=!1,this.verbosity=n,e){if(kc._.has(e))throw new Error("Cannot use more than one PDFWorker per port.");kc._.set(e,this),l(bc,this,Ac).call(this,e)}else l(bc,this,xc).call(this)}get promise(){return c(gc,this).promise}get port(){return c(vc,this)}get messageHandler(){return c(mc,this)}destroy(){var t,e;this.destroyed=!0,null===(t=c(yc,this))||void 0===t||t.terminate(),h(yc,this,null),kc._.delete(c(vc,this)),h(vc,this,null),null===(e=c(mc,this))||void 0===e||e.destroy(),h(mc,this,null)}static create(t){const e=l(wc,this,kc)._.get(null===t||void 0===t?void 0:t.port);if(e){if(e._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return e}return new wc(t)}static get workerSrc(){if(Pl.workerSrc)return Pl.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return Dt(this,"_setupFakeWorkerGlobal",(async()=>{if(u(wc,this,Sc))return u(wc,this,Sc);return(await n(59169)(this.workerSrc)).WorkerMessageHandler})())}}function Dc(){c(gc,this).resolve(),c(mc,this).send("configure",{verbosity:this.verbosity})}function Ac(t){h(vc,this,t),h(mc,this,new Yo("main","worker",t)),c(mc,this).on("ready",()=>{}),l(bc,this,Dc).call(this)}function xc(){if(Ec._||Sc(x))return void l(bc,this,Cc).call(this);let{workerSrc:t}=x;try{x._isSameOrigin(window.location,t)||(t=x._createCDNWrapper(new URL(t,window.location).href));const e=new Worker(t,{type:"module"}),n=new Yo("main","worker",e),i=()=>{r.abort(),n.destroy(),e.terminate(),this.destroyed?c(gc,this).reject(new Error("Worker was destroyed")):l(bc,this,Cc).call(this)},r=new AbortController;e.addEventListener("error",()=>{c(yc,this)||i()},{signal:r.signal}),n.on("test",t=>{r.abort(),!this.destroyed&&t?(h(mc,this,n),h(vc,this,e),h(yc,this,e),l(bc,this,Dc).call(this)):i()}),n.on("ready",t=>{if(r.abort(),this.destroyed)i();else try{o()}catch(e){l(bc,this,Cc).call(this)}});const o=()=>{const t=new Uint8Array;n.send("test",t,[t.buffer])};return void o()}catch(e){gt("The worker has been disabled.")}l(bc,this,Cc).call(this)}function Cc(){Ec._||(mt("Setting up fake worker."),Ec._=!0),x._setupFakeWorkerGlobal.then(t=>{var e,n;if(this.destroyed)return void c(gc,this).reject(new Error("Worker was destroyed"));const i=new Bo;h(vc,this,i);const r="fake".concat((Fc._=(e=Fc._,n=e++,e),n)),o=new Yo(r+"_worker",r,i);t.setup(o,i),h(mc,this,new Yo(r,r+"_worker",i)),l(bc,this,Dc).call(this)}).catch(t=>{c(gc,this).reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))})}function Sc(t){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(n){return null}}x=wc;var Fc={_:0},Ec={_:!1},kc={_:new WeakMap};_&&(Ec._=l(x,x,!0),Pl.workerSrc||(Pl.workerSrc="./pdf.worker.mjs")),x._isSameOrigin=(t,e)=>{const n=URL.parse(t);if(null===n||void 0===n||!n.origin||"null"===n.origin)return!1;const i=new URL(e,n);return n.origin===i.origin},x._createCDNWrapper=t=>{const e='await import("'.concat(t,'");');return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))},x.fromPort=t=>{var e;if(e="`PDFWorker.fromPort` - please use `PDFWorker.create` instead.",console.log("Deprecated API usage: "+e),null===t||void 0===t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return x.create(t)};var Mc=new WeakMap,Tc=new WeakMap,Pc=new WeakMap,_c=new WeakMap,Rc=new WeakMap,Bc=new WeakSet;class Ic{constructor(t,e,n,i,r,o){s(this,Bc),a(this,Mc,new Map),a(this,Tc,new Map),a(this,Pc,new Map),a(this,_c,new Map),a(this,Rc,null),this.messageHandler=t,this.loadingTask=e,this.commonObjs=new Du,this.fontLoader=new Fo({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=r.canvasFactory,this.filterFactory=r.filterFactory,this.cMapReaderFactory=r.cMapReaderFactory,this.standardFontDataFactory=r.standardFontDataFactory,this.wasmFactory=r.wasmFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.enableHWA=o,this.setupMessageHandler()}get annotationStorage(){return Dt(this,"annotationStorage",new Do)}getRenderingIntent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=N,s=go;switch(t){case"any":o=I;break;case"display":break;case"print":o=L;break;default:mt("getRenderingIntent - invalid intent: ".concat(t))}const a=o&L&&n instanceof Co?n:this.annotationStorage;switch(e){case G.DISABLE:o+=z;break;case G.ENABLE:break;case G.ENABLE_FORMS:o+=O;break;case G.ENABLE_STORAGE:o+=W,s=a.serializable;break;default:mt("getRenderingIntent - invalid annotationMode: ".concat(e))}i&&(o+=j),r&&(o+=U);const{ids:l,hash:u}=a.modifiedIds;return{renderingIntent:o,cacheKey:[o,s.hash,u].join("_"),annotationStorageSerializable:s,modifiedIds:l}}destroy(){var t;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),null===(t=c(Rc,this))||void 0===t||t.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const i of c(Tc,this).values())e.push(i._destroy());c(Tc,this).clear(),c(Pc,this).clear(),c(_c,this).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return e.push(n),Promise.all(e).then(()=>{var t,e;this.commonObjs.clear(),this.fontLoader.clear(),c(Mc,this).clear(),this.filterFactory.destroy(),Uu.cleanup(),null===(t=this._networkStream)||void 0===t||t.cancelAllRequests(new kt("Worker was terminated.")),null===(e=this.messageHandler)||void 0===e||e.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:e}=this;t.on("GetReader",(t,e)=>{yt(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=t=>{this._lastProgress={loaded:t.loaded,total:t.total}},e.onPull=()=>{this._fullReader.read().then(function(t){let{value:n,done:i}=t;i?e.close():(yt(n instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),e.enqueue(new Uint8Array(n),1,[n]))}).catch(t=>{e.error(t)})},e.onCancel=t=>{this._fullReader.cancel(t),e.ready.catch(t=>{if(!this.destroyed)throw t})}}),t.on("ReaderHeadersReady",async t=>{await this._fullReader.headersReady;const{isStreamingSupported:n,isRangeSupported:i,contentLength:r}=this._fullReader;if(!n||!i){var o;if(this._lastProgress)null===(o=e.onProgress)||void 0===o||o.call(e,this._lastProgress);this._fullReader.onProgress=t=>{var n;null===(n=e.onProgress)||void 0===n||n.call(e,{loaded:t.loaded,total:t.total})}}return{isStreamingSupported:n,isRangeSupported:i,contentLength:r}}),t.on("GetRangeReader",(t,e)=>{yt(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(t.begin,t.end);n?(e.onPull=()=>{n.read().then(function(t){let{value:n,done:i}=t;i?e.close():(yt(n instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),e.enqueue(new Uint8Array(n),1,[n]))}).catch(t=>{e.error(t)})},e.onCancel=t=>{n.cancel(t),e.ready.catch(t=>{if(!this.destroyed)throw t})}):e.close()}),t.on("GetDoc",t=>{let{pdfInfo:n}=t;this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,e._capability.resolve(new cc(n,this))}),t.on("DocException",t=>{e._capability.reject(qo(t))}),t.on("PasswordRequest",t=>{h(Rc,this,Promise.withResolvers());try{if(!e.onPassword)throw qo(t);const n=t=>{t instanceof Error?c(Rc,this).reject(t):c(Rc,this).resolve({password:t})};e.onPassword(n,t.code)}catch(n){c(Rc,this).reject(n)}return c(Rc,this).promise}),t.on("DataLoaded",t=>{var n;null===(n=e.onProgress)||void 0===n||n.call(e,{loaded:t.length,total:t.length}),this.downloadInfoCapability.resolve(t)}),t.on("StartRenderPage",t=>{if(this.destroyed)return;c(Tc,this).get(t.pageIndex)._startRenderPage(t.transparency,t.cacheKey)}),t.on("commonobj",e=>{var n;let[i,r,o]=e;if(this.destroyed)return null;if(this.commonObjs.has(i))return null;switch(r){case"Font":if("error"in o){const t=o.error;mt("Error during font loading: ".concat(t)),this.commonObjs.resolve(i,t);break}const e=new Al(o),s=this._params.pdfBug&&null!==(n=globalThis.FontInspector)&&void 0!==n&&n.enabled?(t,e)=>globalThis.FontInspector.fontAdded(t,e):null,a=new ko(e,s,o.extra,o.charProcOperatorList);this.fontLoader.bind(a).catch(()=>t.sendWithPromise("FontFallback",{id:i})).finally(()=>{!a.fontExtraProperties&&a.data&&a.clearData(),this.commonObjs.resolve(i,a)});break;case"CopyLocalImage":const{imageRef:l}=o;yt(l,"The imageRef must be defined.");for(const t of c(Tc,this).values())for(const[,e]of t.objs)if((null===e||void 0===e?void 0:e.ref)===l)return e.dataLen?(this.commonObjs.resolve(i,structuredClone(e)),e.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(i,o);break;default:throw new Error("Got unknown common object type ".concat(r))}return null}),t.on("obj",t=>{let[e,n,i,r]=t;if(this.destroyed)return;const o=c(Tc,this).get(n);var s;if(!o.objs.has(e))if(0!==o._intentStates.size)switch(i){case"Image":case"Pattern":o.objs.resolve(e,r);break;default:throw new Error("Got unknown object type ".concat(i))}else null===r||void 0===r||null===(s=r.bitmap)||void 0===s||s.close()}),t.on("DocProgress",t=>{var n;this.destroyed||null===(n=e.onProgress)||void 0===n||n.call(e,{loaded:t.loaded,total:t.total})}),t.on("FetchBinaryData",async t=>{if(this.destroyed)throw new Error("Worker was destroyed.");const e=this[t.type];if(!e)throw new Error("".concat(t.type," not initialized, see the `useWorkerFetch` parameter."));return e.fetch(t)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var t,e;this.annotationStorage.size<=0&&mt("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:n,transfer:i}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:n,filename:null!==(t=null===(e=this._fullReader)||void 0===e?void 0:e.filename)&&void 0!==t?t:null},i).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const e=t-1,n=c(Pc,this).get(e);if(n)return n;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:e}).then(n=>{if(this.destroyed)throw new Error("Transport destroyed");n.refStr&&c(_c,this).set(n.refStr,t);const i=new fc(e,n,this,this._params.pdfBug);return c(Tc,this).set(e,i),i});return c(Pc,this).set(e,i),i}getPageIndex(t){return To(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}getFieldObjects(){return l(Bc,this,Nc).call(this,"GetFieldObjects")}hasJSActions(){return l(Bc,this,Nc).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return"string"!==typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getAnnotationsByType(t,e){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:t,pageIndexesToSkip:e})}getDocJSActions(){return l(Bc,this,Nc).call(this,"GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return l(Bc,this,Nc).call(this,"GetOptionalContentConfig").then(e=>new Kl(e,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",e=c(Mc,this).get(t);if(e)return e;const n=this.messageHandler.sendWithPromise(t,null).then(t=>{var e,n,i,r;return{info:t[0],metadata:t[1]?new Nl(t[1]):null,contentDispositionFilename:null!==(e=null===(n=this._fullReader)||void 0===n?void 0:n.filename)&&void 0!==e?e:null,contentLength:null!==(i=null===(r=this._fullReader)||void 0===r?void 0:r.contentLength)&&void 0!==i?i:null}});return c(Mc,this).set(t,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const t of c(Tc,this).values()){if(!t.cleanup())throw new Error("startCleanup: Page ".concat(t.pageNumber," is currently rendering."))}this.commonObjs.clear(),t||this.fontLoader.clear(),c(Mc,this).clear(),this.filterFactory.destroy(!0),Uu.cleanup()}}cachedPageNumber(t){var e;if(!To(t))return null;const n=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);return null!==(e=c(_c,this).get(n))&&void 0!==e?e:null}}function Nc(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=c(Mc,this).get(t);if(n)return n;const i=this.messageHandler.sendWithPromise(t,e);return c(Mc,this).set(t,i),i}var Lc=new WeakMap;class Oc{constructor(t){a(this,Lc,null),(0,T.A)(this,"onContinue",null),(0,T.A)(this,"onError",null),h(Lc,this,t)}get promise(){return c(Lc,this).capability.promise}cancel(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;c(Lc,this).cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=c(Lc,this).operatorList;if(!t)return!1;const{annotationCanvasMap:e}=c(Lc,this);return t.form||t.canvas&&(null===e||void 0===e?void 0:e.size)>0}}var Wc=new WeakMap;class zc{constructor(t){let{callback:e,params:n,objs:i,commonObjs:r,annotationCanvasMap:o,operatorList:s,pageIndex:l,canvasFactory:u,filterFactory:c,useRequestAnimationFrame:h=!1,pdfBug:d=!1,pageColors:f=null,enableHWA:p=!1,operationsFilter:g=null}=t;a(this,Wc,null),this.callback=e,this.params=n,this.objs=i,this.commonObjs=r,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=l,this.canvasFactory=u,this.filterFactory=c,this._pdfBug=d,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!==typeof window,this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Oc(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvas,this._canvasContext=n.canvas?null:n.canvasContext,this._enableHWA=p,this._dependencyTracker=n.dependencyTracker,this._operationsFilter=g}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics(t){var e,n;let{transparency:i=!1,optionalContentConfig:r}=t;if(this.cancelled)return;if(this._canvas){if(jc._.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");jc._.add(this._canvas)}this._pdfBug&&null!==(e=globalThis.StepperManager)&&void 0!==e&&e.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{viewport:o,transform:s,background:a,dependencyTracker:l}=this.params,u=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new nl(u,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:r},this.annotationCanvasMap,this.pageColors,l),this.gfx.beginDrawing({transform:s,viewport:o,transparency:i,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,null===(n=this.graphicsReadyCallback)||void 0===n||n.call(this)}cancel(){var t,e,n;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(t=this.gfx)||void 0===t||t.endDrawing(),c(Wc,this)&&(window.cancelAnimationFrame(c(Wc,this)),h(Wc,this,null)),jc._.delete(this._canvas),i||(i=new Kt("Rendering cancelled, page ".concat(this._pageIndex+1),r)),this.callback(i),null===(e=(n=this.task).onError)||void 0===e||e.call(n,i)}operatorListChanged(){var t,e;this.graphicsReady?(null===(t=this.gfx.dependencyTracker)||void 0===t||t.growOperationsCount(this.operatorList.fnArray.length),null===(e=this.stepper)||void 0===e||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?h(Wc,this,window.requestAnimationFrame(()=>{h(Wc,this,null),this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper,this._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),jc._.delete(this._canvas),this.callback())))}}var jc={_:new WeakSet};var Uc=new WeakMap,Gc=new WeakMap,Vc=new WeakMap,Hc=new WeakMap,qc=new WeakMap,Xc=new WeakMap,Kc=new WeakMap,Yc=new WeakMap,Zc=new WeakMap,Qc=new WeakMap,Jc=new WeakSet;class $c{static get _keyboardManager(){return Dt(this,"_keyboardManager",new en([[["Escape","mac+Escape"],$c.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],$c.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],$c.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],$c.prototype._moveToPrevious],[["Home","mac+Home"],$c.prototype._moveToBeginning],[["End","mac+End"],$c.prototype._moveToEnd]]))}constructor(t){var e,n;let{editor:i=null,uiManager:r=null}=t;s(this,Jc),a(this,Uc,null),a(this,Gc,null),a(this,Vc,void 0),a(this,Hc,null),a(this,qc,!1),a(this,Xc,!1),a(this,Kc,null),a(this,Yc,void 0),a(this,Zc,null),a(this,Qc,null),i?(h(Xc,this,!1),h(Kc,this,i)):h(Xc,this,!0),h(Qc,this,(null===i||void 0===i?void 0:i._uiManager)||r),h(Yc,this,c(Qc,this)._eventBus),h(Vc,this,(null===i||void 0===i||null===(e=i.color)||void 0===e?void 0:e.toUpperCase())||(null===(n=c(Qc,this))||void 0===n?void 0:n.highlightColors.values().next().value)||"#FFFF98"),sh._||(sh._=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}renderButton(){const t=h(Uc,this,document.createElement("button"));t.className="colorPicker",t.tabIndex="0",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),t.ariaHasPopup="true",c(Kc,this)&&(t.ariaControls="".concat(c(Kc,this).id,"_colorpicker_dropdown"));const e=c(Qc,this)._signal;t.addEventListener("click",l(Jc,this,ih).bind(this),{signal:e}),t.addEventListener("keydown",l(Jc,this,nh).bind(this),{signal:e});const n=h(Gc,this,document.createElement("span"));return n.className="swatch",n.ariaHidden="true",n.style.backgroundColor=c(Vc,this),t.append(n),t}renderMainDropdown(){const t=h(Hc,this,l(Jc,this,th).call(this));return t.ariaOrientation="horizontal",t.ariaLabelledBy="highlightColorPickerLabel",t}_colorSelectFromKeyboard(t){if(t.target===c(Uc,this))return void l(Jc,this,ih).call(this,t);const e=t.target.getAttribute("data-color");e&&l(Jc,this,eh).call(this,e,t)}_moveToNext(t){var e,n;u(Jc,this,oh)?t.target!==c(Uc,this)?null===(e=t.target.nextSibling)||void 0===e||e.focus():null===(n=c(Hc,this).firstChild)||void 0===n||n.focus():l(Jc,this,ih).call(this,t)}_moveToPrevious(t){var e,n;t.target!==(null===(e=c(Hc,this))||void 0===e?void 0:e.firstChild)&&t.target!==c(Uc,this)?(u(Jc,this,oh)||l(Jc,this,ih).call(this,t),null===(n=t.target.previousSibling)||void 0===n||n.focus()):u(Jc,this,oh)&&this._hideDropdownFromKeyboard()}_moveToBeginning(t){var e;u(Jc,this,oh)?null===(e=c(Hc,this).firstChild)||void 0===e||e.focus():l(Jc,this,ih).call(this,t)}_moveToEnd(t){var e;u(Jc,this,oh)?null===(e=c(Hc,this).lastChild)||void 0===e||e.focus():l(Jc,this,ih).call(this,t)}hideDropdown(){var t,e;null===(t=c(Hc,this))||void 0===t||t.classList.add("hidden"),c(Uc,this).ariaExpanded="false",null===(e=c(Zc,this))||void 0===e||e.abort(),h(Zc,this,null)}_hideDropdownFromKeyboard(){var t;c(Xc,this)||(u(Jc,this,oh)?(this.hideDropdown(),c(Uc,this).focus({preventScroll:!0,focusVisible:c(qc,this)})):null===(t=c(Kc,this))||void 0===t||t.unselect())}updateColor(t){if(c(Gc,this)&&(c(Gc,this).style.backgroundColor=t),!c(Hc,this))return;const e=c(Qc,this).highlightColors.values();for(const n of c(Hc,this).children)n.ariaSelected=e.next().value===t.toUpperCase()}destroy(){var t,e;null===(t=c(Uc,this))||void 0===t||t.remove(),h(Uc,this,null),h(Gc,this,null),null===(e=c(Hc,this))||void 0===e||e.remove(),h(Hc,this,null)}}function th(){const t=document.createElement("div"),e=c(Qc,this)._signal;t.addEventListener("contextmenu",$t,{signal:e}),t.className="dropdown",t.role="listbox",t.ariaMultiSelectable="false",t.ariaOrientation="vertical",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),c(Kc,this)&&(t.id="".concat(c(Kc,this).id,"_colorpicker_dropdown"));for(const[n,i]of c(Qc,this).highlightColors){const r=document.createElement("button");r.tabIndex="0",r.role="option",r.setAttribute("data-color",i),r.title=n,r.setAttribute("data-l10n-id",sh._[n]);const o=document.createElement("span");r.append(o),o.className="swatch",o.style.backgroundColor=i,r.ariaSelected=i===c(Vc,this),r.addEventListener("click",l(Jc,this,eh).bind(this,i),{signal:e}),t.append(r)}return t.addEventListener("keydown",l(Jc,this,nh).bind(this),{signal:e}),t}function eh(t,e){e.stopPropagation(),c(Yc,this).dispatch("switchannotationeditorparams",{source:this,type:q.HIGHLIGHT_COLOR,value:t}),this.updateColor(t)}function nh(t){C._keyboardManager.exec(this,t)}function ih(t){if(u(Jc,this,oh))return void this.hideDropdown();if(h(qc,this,0===t.detail),c(Zc,this)||(h(Zc,this,new AbortController),window.addEventListener("pointerdown",l(Jc,this,rh).bind(this),{signal:c(Qc,this).combinedSignal(c(Zc,this))})),c(Uc,this).ariaExpanded="true",c(Hc,this))return void c(Hc,this).classList.remove("hidden");const e=h(Hc,this,l(Jc,this,th).call(this));c(Uc,this).append(e)}function rh(t){var e;null!==(e=c(Hc,this))&&void 0!==e&&e.contains(t.target)||this.hideDropdown()}function oh(t){return c(Hc,t)&&!c(Hc,t).classList.contains("hidden")}C=$c;var sh={_:null},ah=new WeakMap,lh=new WeakMap,uh=new WeakMap;class ch{constructor(t){a(this,ah,null),a(this,lh,null),a(this,uh,null),h(lh,this,t),h(uh,this,t._uiManager),hh._||(hh._=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"}))}renderButton(){if(c(ah,this))return c(ah,this);const{editorType:t,colorType:e,colorValue:n}=c(lh,this),i=h(ah,this,document.createElement("input"));return i.type="color",i.value=n||"#000000",i.className="basicColorPicker",i.tabIndex=0,i.setAttribute("data-l10n-id",hh._[t]),i.addEventListener("input",()=>{c(uh,this).updateParams(e,i.value)},{signal:c(uh,this)._signal}),i}update(t){c(ah,this)&&(c(ah,this).value=t)}destroy(){var t;null===(t=c(ah,this))||void 0===t||t.remove(),h(ah,this,null)}hideDropdown(){}}var hh={_:null};function dh(t){return Math.floor(255*Math.max(0,Math.min(1,t))).toString(16).padStart(2,"0")}function fh(t){return Math.max(0,Math.min(255,255*t))}class ph{static CMYK_G(t){let[e,n,i,r]=t;return["G",1-Math.min(1,.3*e+.59*i+.11*n+r)]}static G_CMYK(t){let[e]=t;return["CMYK",0,0,0,1-e]}static G_RGB(t){let[e]=t;return["RGB",e,e,e]}static G_rgb(t){let[e]=t;return e=fh(e),[e,e,e]}static G_HTML(t){let[e]=t;const n=dh(e);return"#".concat(n).concat(n).concat(n)}static RGB_G(t){let[e,n,i]=t;return["G",.3*e+.59*n+.11*i]}static RGB_rgb(t){return t.map(fh)}static RGB_HTML(t){return"#".concat(t.map(dh).join(""))}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(t){let[e,n,i,r]=t;return["RGB",1-Math.min(1,e+r),1-Math.min(1,i+r),1-Math.min(1,n+r)]}static CMYK_rgb(t){let[e,n,i,r]=t;return[fh(1-Math.min(1,e+r)),fh(1-Math.min(1,i+r)),fh(1-Math.min(1,n+r))]}static CMYK_HTML(t){const e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}static RGB_CMYK(t){let[e,n,i]=t;const r=1-e,o=1-n,s=1-i;return["CMYK",r,o,s,Math.min(r,o,s)]}}class gh{create(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t<=0||e<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),n||(i.setAttribute("width","".concat(t,"px")),i.setAttribute("height","".concat(e,"px"))),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox","0 0 ".concat(t," ").concat(e)),i}createElement(t){if("string"!==typeof t)throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){vt("Abstract method `_createSVG` called.")}}class mh extends gh{_createSVG(t){return document.createElementNS(Vt,t)}}const vh=new WeakSet,yh=60*(new Date).getTimezoneOffset()*1e3;class bh{static create(t){switch(t.data.annotationType){case tt.LINK:return new kh(t);case tt.TEXT:return new _h(t);case tt.WIDGET:switch(t.data.fieldType){case"Tx":return new Bh(t);case"Btn":return t.data.radioButton?new Lh(t):t.data.checkBox?new Nh(t):new Oh(t);case"Ch":return new Wh(t);case"Sig":return new Ih(t)}return new Rh(t);case tt.POPUP:return new jh(t);case tt.FREETEXT:return new Td(t);case tt.LINE:return new _d(t);case tt.SQUARE:return new Bd(t);case tt.CIRCLE:return new Nd(t);case tt.POLYLINE:return new Od(t);case tt.CARET:return new zd(t);case tt.INK:return new Vd(t);case tt.POLYGON:return new Wd(t);case tt.HIGHLIGHT:return new qd(t);case tt.UNDERLINE:return new Xd(t);case tt.SQUIGGLY:return new Kd(t);case tt.STRIKEOUT:return new Yd(t);case tt.STAMP:return new Zd(t);case tt.FILEATTACHMENT:return new $d(t);default:return new Ch(t)}}}var wh=new WeakMap,Dh=new WeakMap,Ah=new WeakMap,xh=new WeakSet;class Ch{constructor(t){let{isRenderable:e=!1,ignoreBorder:n=!1,createQuadrilaterals:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,xh),a(this,wh,null),a(this,Dh,!1),a(this,Ah,null),this.isRenderable=e,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableComment=t.enableComment,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,e&&(this.container=this._createContainer(n)),i&&this._createQuadrilaterals()}static _hasPopupData(t){let{contentsObj:e,richText:n}=t;return!!(null!==e&&void 0!==e&&e.str||null!==n&&void 0!==n&&n.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Ch._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){var t;const{data:e}=this,n=null===(t=this.annotationStorage)||void 0===t?void 0:t.getEditor(e.id);return n?n.getData():e}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}get commentButtonPosition(){var t;const e=null===(t=this.annotationStorage)||void 0===t?void 0:t.getEditor(this.data.id);if(e)return e.commentButtonPositionInPage;const{quadPoints:n,inkLists:i,rect:r}=this.data;let o=-1/0,s=-1/0;if((null===n||void 0===n?void 0:n.length)>=8){for(let t=0;t<n.length;t+=8)n[t+1]>s?(s=n[t+1],o=n[t+2]):n[t+1]===s&&(o=Math.max(o,n[t+2]));return[o,s]}if((null===i||void 0===i?void 0:i.length)>=1){for(const t of i)for(let e=0,n=t.length;e<n;e+=2)t[e+1]>s?(s=t[e+1],o=t[e]):t[e+1]===s&&(o=Math.max(o,t[e]));if(o!==1/0)return[o,s]}return r?[r[2],r[3]]:null}_normalizePoint(t){const{page:{view:e},viewport:{rawDims:{pageWidth:n,pageHeight:i,pageX:r,pageY:o}}}=this.parent;return t[1]=e[3]-t[1]+e[1],t[0]=100*(t[0]-r)/n,t[1]=100*(t[1]-o)/i,t}get commentText(){var t,e;const{data:n}=this;return(null===(t=this.annotationStorage.getRawValue("".concat(V).concat(n.id)))||void 0===t||null===(t=t.popup)||void 0===t?void 0:t.contents)||(null===(e=n.contentsObj)||void 0===e?void 0:e.str)||""}set commentText(t){const{data:e}=this,n={deleted:!t,contents:t||""};this.annotationStorage.updateEditor(e.id,{popup:n})||this.annotationStorage.setValue("".concat(V).concat(e.id),{id:e.id,annotationType:e.annotationType,pageIndex:this.parent.page._pageIndex,popup:n,popupRef:e.popupRef,modificationDate:new Date}),t||this.removePopup()}removePopup(){var t,e;null===(t=(null===(e=c(Ah,this))||void 0===e?void 0:e.popup)||this.popup)||void 0===t||t.remove(),h(Ah,this,this.popup=null)}updateEdited(t){var e;if(!this.container)return;t.rect&&(c(wh,this)||h(wh,this,{rect:this.data.rect.slice(0)}));const{rect:n,popup:i}=t;n&&l(xh,this,Sh).call(this,n);let r=(null===(e=c(Ah,this))||void 0===e?void 0:e.popup)||this.popup;!r&&null!==i&&void 0!==i&&i.text&&(this._createPopup(i),r=c(Ah,this).popup),r&&(r.updateEdited(t),null!==i&&void 0!==i&&i.deleted&&(r.remove(),h(Ah,this,null),this.popup=null))}resetEdited(){var t;c(wh,this)&&(l(xh,this,Sh).call(this,c(wh,this).rect),null===(t=c(Ah,this))||void 0===t||t.popup.resetEdited(),h(wh,this,null))}_createContainer(t){const{data:e,parent:{page:n,viewport:i}}=this,r=document.createElement("section");r.setAttribute("data-annotation-id",e.id),this instanceof Rh||this instanceof kh||(r.tabIndex=0);const{style:o}=r;if(o.zIndex=this.parent.zIndex,this.parent.zIndex+=2,e.alternativeText&&(r.title=e.alternativeText),e.noRotate&&r.classList.add("norotate"),!e.rect||this instanceof jh){const{rotation:t}=e;return e.hasOwnCanvas||0===t||this.setRotation(t,r),r}const{width:s,height:a}=this;if(!t&&e.borderStyle.width>0){o.borderWidth="".concat(e.borderStyle.width,"px");const t=e.borderStyle.horizontalCornerRadius,n=e.borderStyle.verticalCornerRadius;if(t>0||n>0){const e="calc(".concat(t,"px * var(--total-scale-factor)) / calc(").concat(n,"px * var(--total-scale-factor))");o.borderRadius=e}else if(this instanceof Lh){const t="calc(".concat(s,"px * var(--total-scale-factor)) / calc(").concat(a,"px * var(--total-scale-factor))");o.borderRadius=t}switch(e.borderStyle.style){case et:o.borderStyle="solid";break;case nt:o.borderStyle="dashed";break;case it:mt("Unimplemented border style: beveled");break;case rt:mt("Unimplemented border style: inset");break;case ot:o.borderBottomStyle="solid"}const i=e.borderColor||null;i?(h(Dh,this,!0),o.borderColor=Rt.makeHexColor(0|i[0],0|i[1],0|i[2])):o.borderWidth=0}const l=Rt.normalizeRect([e.rect[0],n.view[3]-e.rect[1]+n.view[1],e.rect[2],n.view[3]-e.rect[3]+n.view[1]]),{pageWidth:u,pageHeight:c,pageX:d,pageY:f}=i.rawDims;o.left="".concat(100*(l[0]-d)/u,"%"),o.top="".concat(100*(l[1]-f)/c,"%");const{rotation:p}=e;return e.hasOwnCanvas||0===p?(o.width="".concat(100*s/u,"%"),o.height="".concat(100*a/c,"%")):this.setRotation(p,r),r}setRotation(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(!this.data.rect)return;const{pageWidth:n,pageHeight:i}=this.parent.viewport.rawDims;let{width:r,height:o}=this;t%180!==0&&([r,o]=[o,r]),e.style.width="".concat(100*r/n,"%"),e.style.height="".concat(100*o/i,"%"),e.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(t,e,n)=>{const i=n.detail[t],r=i[0],o=i.slice(1);n.target.style[e]=ph["".concat(r,"_HTML")](o),this.annotationStorage.setValue(this.data.id,{[e]:ph["".concat(r,"_rgb")](o)})};return Dt(this,"_commonActions",{display:t=>{const{display:e}=t.detail,n=e%2===1;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:1===e||2===e})},print:t=>{this.annotationStorage.setValue(this.data.id,{noPrint:!t.detail.print})},hidden:t=>{const{hidden:e}=t.detail;this.container.style.visibility=e?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:e,noView:e})},focus:t=>{setTimeout(()=>t.target.focus({preventScroll:!1}),0)},userName:t=>{t.target.title=t.detail.userName},readonly:t=>{t.target.disabled=t.detail.readonly},required:t=>{this._setRequired(t.target,t.detail.required)},bgColor:e=>{t("bgColor","backgroundColor",e)},fillColor:e=>{t("fillColor","backgroundColor",e)},fgColor:e=>{t("fgColor","color",e)},textColor:e=>{t("textColor","color",e)},borderColor:e=>{t("borderColor","borderColor",e)},strokeColor:e=>{t("strokeColor","borderColor",e)},rotation:t=>{const e=t.detail.rotation;this.setRotation(e),this.annotationStorage.setValue(this.data.id,{rotation:e})}})}_dispatchEventFromSandbox(t,e){const n=this._commonActions;for(const i of Object.keys(e.detail)){const r=t[i]||n[i];null===r||void 0===r||r(e)}}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const e=this.annotationStorage.getRawValue(this.data.id);if(!e)return;const n=this._commonActions;for(const[i,r]of Object.entries(e)){const o=n[i];if(o){o({detail:{[i]:r},target:t}),delete e[i]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[e,n,i,r]=this.data.rect.map(t=>Math.fround(t));if(8===t.length){const[o,s,a,l]=t.subarray(2,6);if(i===o&&r===s&&e===a&&n===l)return}const{style:o}=this.container;let s;if(c(Dh,this)){const{borderColor:t,borderWidth:e}=o;o.borderWidth=0,s=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">','<g fill="transparent" stroke="'.concat(t,'" stroke-width="').concat(e,'">')],this.container.classList.add("hasBorder")}const a=i-e,l=r-n,{svgFactory:u}=this,h=u.createElement("svg");h.classList.add("quadrilateralsContainer"),h.setAttribute("width",0),h.setAttribute("height",0),h.role="none";const d=u.createElement("defs");h.append(d);const f=u.createElement("clipPath"),p="clippath_".concat(this.data.id);f.setAttribute("id",p),f.setAttribute("clipPathUnits","objectBoundingBox"),d.append(f);for(let c=2,m=t.length;c<m;c+=8){var g;const n=t[c],i=t[c+1],o=t[c+2],h=t[c+3],d=u.createElement("rect"),p=(o-e)/a,m=(r-i)/l,v=(n-o)/a,y=(i-h)/l;d.setAttribute("x",p),d.setAttribute("y",m),d.setAttribute("width",v),d.setAttribute("height",y),f.append(d),null===(g=s)||void 0===g||g.push('<rect vector-effect="non-scaling-stroke" x="'.concat(p,'" y="').concat(m,'" width="').concat(v,'" height="').concat(y,'"/>'))}c(Dh,this)&&(s.push("</g></svg>')"),o.backgroundImage=s.join("")),this.container.append(h),this.container.style.clipPath="url(#".concat(p,")")}_createPopup(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const{data:e}=this;let n,i;t?(n={str:t.text},i=t.date):(n=e.contentsObj,i=e.modificationDate);const r=h(Ah,this,new jh({data:{color:e.color,titleObj:e.titleObj,modificationDate:i,contentsObj:n,richText:e.richText,parentRect:e.rect,borderStyle:0,id:"popup_".concat(e.id),rotation:e.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]}));this.parent._commentManager||this.parent.div.append(r.render())}get hasPopupElement(){return!!(c(Ah,this)||this.popup||this.data.popupRef)}get extraPopupElement(){return c(Ah,this)}render(){vt("Abstract method `AnnotationElement.render` called")}_getElementsByName(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[];if(this._fieldObjects){const i=this._fieldObjects[t];if(i)for(const{page:t,id:r,exportValues:o}of i){if(-1===t)continue;if(r===e)continue;const i="string"===typeof o?o:null,s=document.querySelector('[data-element-id="'.concat(r,'"]'));!s||vh.has(s)?n.push({id:r,exportValue:i,domElement:s}):mt("_getElementsByName - element not allowed: ".concat(r))}return n}for(const i of document.getElementsByName(t)){const{exportValue:t}=i,r=i.getAttribute("data-element-id");r!==e&&(vh.has(i)&&n.push({id:r,exportValue:t,domElement:i}))}return n}show(){var t;this.container&&(this.container.hidden=!1),null===(t=this.popup)||void 0===t||t.maybeShow()}hide(){var t;this.container&&(this.container.hidden=!0),null===(t=this.popup)||void 0===t||t.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const e of t)e.classList.add("highlightArea");else t.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:e}}=this;this.container.addEventListener("dblclick",()=>{var n;null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("switchannotationeditormode",{source:this,mode:t,editId:e,mustEnterInEditMode:!0})})}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}function Sh(t){const{container:{style:e},data:{rect:n,rotation:i},parent:{viewport:{rawDims:{pageWidth:r,pageHeight:o,pageX:s,pageY:a}}}}=this;null===n||void 0===n||n.splice(0,4,...t),e.left="".concat(100*(t[0]-s)/r,"%"),e.top="".concat(100*(o-t[3]+a)/o,"%"),0===i?(e.width="".concat(100*(t[2]-t[0])/r,"%"),e.height="".concat(100*(t[3]-t[1])/o,"%")):this.setRotation(i)}class Fh extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.editor=t.editor}render(){return this.container.className="editorAnnotation",this.container}createOrUpdatePopup(){const{editor:t}=this;t.hasComment&&(this._createPopup(t.comment),this.extraPopupElement.popup.renderCommentButton())}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(t){this.editor.comment=t,t||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.container.remove(),this.container=null,this.removePopup()}}var Eh=new WeakSet;class kh extends Ch{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(t,{isRenderable:!0,ignoreBorder:!(null===e||void 0===e||!e.ignoreBorder),createQuadrilaterals:!0}),s(this,Eh),this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:e}=this,n=document.createElement("a");n.setAttribute("data-element-id",t.id);let i=!1;return t.url?(e.addLinkAttributes(n,t.url,t.newWindow),i=!0):t.action?(this._bindNamedAction(n,t.action,t.overlaidText),i=!0):t.attachment?(l(Eh,this,Th).call(this,n,t.attachment,t.overlaidText,t.attachmentDest),i=!0):t.setOCGState?(l(Eh,this,Ph).call(this,n,t.setOCGState,t.overlaidText),i=!0):t.dest?(this._bindLink(n,t.dest,t.overlaidText),i=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,t),i=!0),t.resetForm?(this._bindResetFormAction(n,t.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(n,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(n),this.container}_bindLink(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.href=this.linkService.getDestinationHash(e),t.onclick=()=>(e&&this.linkService.goToDestination(e),!1),(e||""===e)&&l(Eh,this,Mh).call(this),n&&(t.title=n)}_bindNamedAction(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(e),!1),n&&(t.title=n),l(Eh,this,Mh).call(this)}_bindJSAction(t,e){t.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(e.actions)){const r=n.get(i);r&&(t[r]=()=>{var t;return null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e.id,name:i}}),!1})}e.overlaidText&&(t.title=e.overlaidText),t.onclick||(t.onclick=()=>!1),l(Eh,this,Mh).call(this)}_bindResetFormAction(t,e){const n=t.onclick;if(n||(t.href=this.linkService.getAnchorUrl("")),l(Eh,this,Mh).call(this),!this._fieldObjects)return mt('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(t.onclick=()=>!1));t.onclick=()=>{null===n||void 0===n||n();const{fields:t,refs:i,include:r}=e,o=[];if(0!==t.length||0!==i.length){const e=new Set(i);for(const n of t){const t=this._fieldObjects[n]||[];for(const{id:n}of t)e.add(n)}for(const t of Object.values(this._fieldObjects))for(const n of t)e.has(n.id)===r&&o.push(n)}else for(const e of Object.values(this._fieldObjects))o.push(...e);const s=this.annotationStorage,a=[];for(const e of o){const{id:t}=e;switch(a.push(t),e.type){case"text":{const n=e.defaultValue||"";s.setValue(t,{value:n});break}case"checkbox":case"radiobutton":{const n=e.defaultValue===e.exportValues;s.setValue(t,{value:n});break}case"combobox":case"listbox":{const n=e.defaultValue||"";s.setValue(t,{value:n});break}default:continue}const n=document.querySelector('[data-element-id="'.concat(t,'"]'));n&&(vh.has(n)?n.dispatchEvent(new Event("resetform")):mt("_bindResetFormAction - element not allowed: ".concat(t)))}var l;this.enableScripting&&(null===(l=this.linkService.eventBus)||void 0===l||l.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:a,name:"ResetForm"}}));return!1}}}function Mh(){this.container.setAttribute("data-internal-link","")}function Th(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t.href=this.linkService.getAnchorUrl(""),e.description?t.title=e.description:n&&(t.title=n),t.onclick=()=>{var t;return null===(t=this.downloadManager)||void 0===t||t.openOrDownloadData(e.content,e.filename,i),!1},l(Eh,this,Mh).call(this)}function Ph(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(e),!1),n&&(t.title=n),l(Eh,this,Mh).call(this)}class _h extends Ch{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class Rh extends Ch{render(){return this.container}showElementAndHideCanvas(t){var e;this.data.hasOwnCanvas&&("CANVAS"===(null===(e=t.previousSibling)||void 0===e?void 0:e.nodeName)&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return Pt.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,e,n,i,r){n.includes("mouse")?t.addEventListener(n,t=>{var e;null===(e=this.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:r(t),shift:t.shiftKey,modifier:this._getKeyModifier(t)}})}):t.addEventListener(n,t=>{var o;if("blur"===n){if(!e.focused||!t.relatedTarget)return;e.focused=!1}else if("focus"===n){if(e.focused)return;e.focused=!0}r&&(null===(o=this.linkService.eventBus)||void 0===o||o.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:r(t)}}))})}_setEventListeners(t,e,n,i){for(const[a,l]of n){var r,o,s;if("Action"===l||null!==(r=this.data.actions)&&void 0!==r&&r[l])"Focus"!==l&&"Blur"!==l||e||(e={focused:!1}),this._setEventListener(t,e,a,l,i),"Focus"!==l||null!==(o=this.data.actions)&&void 0!==o&&o.Blur?"Blur"!==l||null!==(s=this.data.actions)&&void 0!==s&&s.Focus||this._setEventListener(t,e,"focus","Focus",null):this._setEventListener(t,e,"blur","Blur",null)}}_setBackgroundColor(t){const e=this.data.backgroundColor||null;t.style.backgroundColor=null===e?"transparent":Rt.makeHexColor(e[0],e[1],e[2])}_setTextStyle(t){const e=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,r=t.style;let o;const s=t=>Math.round(10*t)/10;if(this.data.multiLine){const t=Math.abs(this.data.rect[3]-this.data.rect[1]-2),e=t/(Math.round(t/(B*i))||1);o=Math.min(i,s(e/B))}else{const t=Math.abs(this.data.rect[3]-this.data.rect[1]-2);o=Math.min(i,s(t/B))}r.fontSize="calc(".concat(o,"px * var(--total-scale-factor))"),r.color=Rt.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(r.textAlign=e[this.data.textAlignment])}_setRequired(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",e)}}class Bh extends Rh{constructor(t){super(t,{isRenderable:t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue})}setPropertyOnSiblings(t,e,n,i){const r=this.annotationStorage;for(const o of this._getElementsByName(t.name,t.id))o.domElement&&(o.domElement[e]=n),r.setValue(o.id,{[i]:n})}render(){const t=this.annotationStorage,e=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){var i;const o=t.getValue(e,{value:this.data.fieldValue});let s=o.value||"";const a=t.getValue(e,{charLimit:this.data.maxLen}).charLimit;a&&s.length>a&&(s=s.slice(0,a));let l=o.formattedValue||(null===(i=this.data.textContent)||void 0===i?void 0:i.join("\n"))||null;l&&this.data.comb&&(l=l.replaceAll(/\s+/g,""));const u={userValue:s,formattedValue:l,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=null!==l&&void 0!==l?l:s,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type=this.data.password?"password":"text",n.setAttribute("value",null!==l&&void 0!==l?l:s),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),vh.add(n),n.setAttribute("data-element-id",e),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=0;const{datetimeFormat:c,datetimeType:h,timeStep:d}=this.data,f=!!h&&this.enableScripting;c&&(n.title=c),this._setRequired(n,this.data.required),a&&(n.maxLength=a),n.addEventListener("input",i=>{t.setValue(e,{value:i.target.value}),this.setPropertyOnSiblings(n,"value",i.target.value,"value"),u.formattedValue=null}),n.addEventListener("resetform",t=>{var e;const i=null!==(e=this.data.defaultFieldValue)&&void 0!==e?e:"";n.value=u.userValue=i,u.formattedValue=null});let p=t=>{const{formattedValue:e}=u;null!==e&&void 0!==e&&(t.target.value=e),t.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var r;n.addEventListener("focus",t=>{var e;if(u.focused)return;const{target:n}=t;if(f&&(n.type=h,d&&(n.step=d)),u.userValue){const t=u.userValue;if(f)if("time"===h){const e=new Date(t),i=[e.getHours(),e.getMinutes(),e.getSeconds()];n.value=i.map(t=>t.toString().padStart(2,"0")).join(":")}else n.value=new Date(t-yh).toISOString().split("date"===h?"T":".",1)[0];else n.value=t}u.lastCommittedValue=n.value,u.commitKey=1,null!==(e=this.data.actions)&&void 0!==e&&e.Focus||(u.focused=!0)}),n.addEventListener("updatefromsandbox",n=>{this.showElementAndHideCanvas(n.target);const i={value(n){var i;u.userValue=null!==(i=n.detail.value)&&void 0!==i?i:"",f||t.setValue(e,{value:u.userValue.toString()}),n.target.value=u.userValue},formattedValue(n){const{formattedValue:i}=n.detail;u.formattedValue=i,null!==i&&void 0!==i&&n.target!==document.activeElement&&(n.target.value=i);const r={formattedValue:i};f&&(r.value=i),t.setValue(e,r)},selRange(t){t.target.setSelectionRange(...t.detail.selRange)},charLimit:n=>{var i;const{charLimit:r}=n.detail,{target:o}=n;if(0===r)return void o.removeAttribute("maxLength");o.setAttribute("maxLength",r);let s=u.userValue;!s||s.length<=r||(s=s.slice(0,r),o.value=u.userValue=s,t.setValue(e,{value:s}),null===(i=this.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:s,willCommit:!0,commitKey:1,selStart:o.selectionStart,selEnd:o.selectionEnd}}))}};this._dispatchEventFromSandbox(i,n)}),n.addEventListener("keydown",t=>{var n;u.commitKey=1;let i=-1;if("Escape"===t.key?i=0:"Enter"!==t.key||this.data.multiLine?"Tab"===t.key&&(u.commitKey=3):i=2,-1===i)return;const{value:r}=t.target;u.lastCommittedValue!==r&&(u.lastCommittedValue=r,u.userValue=r,null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:r,willCommit:!0,commitKey:i,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}))});const i=p;p=null,n.addEventListener("blur",t=>{var n;if(!u.focused||!t.relatedTarget)return;null!==(n=this.data.actions)&&void 0!==n&&n.Blur||(u.focused=!1);const{target:r}=t;let{value:o}=r;if(f){if(o&&"time"===h){const t=o.split(":").map(t=>parseInt(t,10));o=new Date(2e3,0,1,t[0],t[1],t[2]||0).valueOf(),r.step=""}else o.includes("T")||(o="".concat(o,"T00:00")),o=new Date(o).valueOf();r.type="text"}var s;(u.userValue=o,u.lastCommittedValue!==o)&&(null===(s=this.linkService.eventBus)||void 0===s||s.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:o,willCommit:!0,commitKey:u.commitKey,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}));i(t)}),null!==(r=this.data.actions)&&void 0!==r&&r.Keystroke&&n.addEventListener("beforeinput",t=>{var n;u.lastCommittedValue=null;const{data:i,target:r}=t,{value:o,selectionStart:s,selectionEnd:a}=r;let l=s,c=a;switch(t.inputType){case"deleteWordBackward":{const t=o.substring(0,s).match(/\w*[^\w]*$/);t&&(l-=t[0].length);break}case"deleteWordForward":{const t=o.substring(s).match(/^[^\w]*\w*/);t&&(c+=t[0].length);break}case"deleteContentBackward":s===a&&(l-=1);break;case"deleteContentForward":s===a&&(c+=1)}t.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:o,change:i||"",willCommit:!1,selStart:l,selEnd:c}})}),this._setEventListeners(n,u,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],t=>t.target.value)}if(p&&n.addEventListener("blur",p),this.data.comb){const t=(this.data.rect[2]-this.data.rect[0])/a;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(t,"px * var(--total-scale-factor) - 1ch)")}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class Ih extends Rh{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class Nh extends Rh{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,e=this.data,n=e.id;let i=t.getValue(n,{value:e.exportValue===e.fieldValue}).value;"string"===typeof i&&(i="Off"!==i,t.setValue(n,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const r=document.createElement("input");return vh.add(r),r.setAttribute("data-element-id",n),r.disabled=e.readOnly,this._setRequired(r,this.data.required),r.type="checkbox",r.name=e.fieldName,i&&r.setAttribute("checked",!0),r.setAttribute("exportValue",e.exportValue),r.tabIndex=0,r.addEventListener("change",i=>{const{name:r,checked:o}=i.target;for(const s of this._getElementsByName(r,n)){const n=o&&s.exportValue===e.exportValue;s.domElement&&(s.domElement.checked=n),t.setValue(s.id,{value:n})}t.setValue(n,{value:o})}),r.addEventListener("resetform",t=>{const n=e.defaultFieldValue||"Off";t.target.checked=n===e.exportValue}),this.enableScripting&&this.hasJSActions&&(r.addEventListener("updatefromsandbox",e=>{const i={value(e){e.target.checked="Off"!==e.detail.value,t.setValue(n,{value:e.target.checked})}};this._dispatchEventFromSandbox(i,e)}),this._setEventListeners(r,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],t=>t.target.checked)),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class Lh extends Rh{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,e=this.data,n=e.id;let i=t.getValue(n,{value:e.fieldValue===e.buttonValue}).value;if("string"===typeof i&&(i=i!==e.buttonValue,t.setValue(n,{value:i})),i)for(const o of this._getElementsByName(e.fieldName,n))t.setValue(o.id,{value:!1});const r=document.createElement("input");if(vh.add(r),r.setAttribute("data-element-id",n),r.disabled=e.readOnly,this._setRequired(r,this.data.required),r.type="radio",r.name=e.fieldName,i&&r.setAttribute("checked",!0),r.tabIndex=0,r.addEventListener("change",e=>{const{name:i,checked:r}=e.target;for(const o of this._getElementsByName(i,n))t.setValue(o.id,{value:!1});t.setValue(n,{value:r})}),r.addEventListener("resetform",t=>{const n=e.defaultFieldValue;t.target.checked=null!==n&&void 0!==n&&n===e.buttonValue}),this.enableScripting&&this.hasJSActions){const i=e.buttonValue;r.addEventListener("updatefromsandbox",e=>{const r={value:e=>{const r=i===e.detail.value;for(const i of this._getElementsByName(e.target.name)){const e=r&&i.id===n;i.domElement&&(i.domElement.checked=e),t.setValue(i.id,{value:e})}}};this._dispatchEventFromSandbox(r,e)}),this._setEventListeners(r,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],t=>t.target.checked)}return this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class Oh extends kh{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const e=t.lastChild;return this.enableScripting&&this.hasJSActions&&e&&(this._setDefaultPropertiesFromJS(e),e.addEventListener("updatefromsandbox",t=>{this._dispatchEventFromSandbox({},t)})),t}}class Wh extends Rh{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,e=this.data.id,n=t.getValue(e,{value:this.data.fieldValue}),i=document.createElement("select");vh.add(i),i.setAttribute("data-element-id",e),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=0;let r=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",t=>{const e=this.data.defaultFieldValue;for(const n of i.options)n.selected=n.value===e});for(const u of this.data.options){const t=document.createElement("option");t.textContent=u.displayValue,t.value=u.exportValue,n.value.includes(u.exportValue)&&(t.setAttribute("selected",!0),r=!1),i.append(t)}let o=null;if(r){const t=document.createElement("option");t.value=" ",t.setAttribute("hidden",!0),t.setAttribute("selected",!0),i.prepend(t),o=()=>{t.remove(),i.removeEventListener("input",o),o=null},i.addEventListener("input",o)}const s=t=>{const e=t?"value":"textContent",{options:n,multiple:r}=i;return r?Array.prototype.filter.call(n,t=>t.selected).map(t=>t[e]):-1===n.selectedIndex?null:n[n.selectedIndex][e]};let a=s(!1);const l=t=>{const e=t.target.options;return Array.prototype.map.call(e,t=>({displayValue:t.textContent,exportValue:t.value}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",n=>{const r={value(n){var r;null===(r=o)||void 0===r||r();const l=n.detail.value,u=new Set(Array.isArray(l)?l:[l]);for(const t of i.options)t.selected=u.has(t.value);t.setValue(e,{value:s(!0)}),a=s(!1)},multipleSelection(t){i.multiple=!0},remove(n){const r=i.options,o=n.detail.remove;if(r[o].selected=!1,i.remove(o),r.length>0){-1===Array.prototype.findIndex.call(r,t=>t.selected)&&(r[0].selected=!0)}t.setValue(e,{value:s(!0),items:l(n)}),a=s(!1)},clear(n){for(;0!==i.length;)i.remove(0);t.setValue(e,{value:null,items:[]}),a=s(!1)},insert(n){const{index:r,displayValue:o,exportValue:u}=n.detail.insert,c=i.children[r],h=document.createElement("option");h.textContent=o,h.value=u,c?c.before(h):i.append(h),t.setValue(e,{value:s(!0),items:l(n)}),a=s(!1)},items(n){const{items:r}=n.detail;for(;0!==i.length;)i.remove(0);for(const t of r){const{displayValue:e,exportValue:n}=t,r=document.createElement("option");r.textContent=e,r.value=n,i.append(r)}i.options.length>0&&(i.options[0].selected=!0),t.setValue(e,{value:s(!0),items:l(n)}),a=s(!1)},indices(n){const i=new Set(n.detail.indices);for(const t of n.target.options)t.selected=i.has(t.index);t.setValue(e,{value:s(!0)}),a=s(!1)},editable(t){t.target.disabled=!t.detail.editable}};this._dispatchEventFromSandbox(r,n)}),i.addEventListener("input",n=>{var i;const r=s(!0),o=s(!1);t.setValue(e,{value:r}),n.preventDefault(),null===(i=this.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:a,change:o,changeEx:r,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],t=>t.target.value)):i.addEventListener("input",function(n){t.setValue(e,{value:s(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}var zh=new WeakSet;class jh extends Ch{constructor(t){const{data:e,elements:n,parent:i}=t,r=!!i._commentManager;if(super(t,{isRenderable:!r&&Ch._hasPopupData(e)}),s(this,zh),this.elements=n,r&&Ch._hasPopupData(e)){const t=this.popup=l(zh,this,Uh).call(this);for(const e of n)e.popup=t}else this.popup=null}render(){const{container:t}=this;t.classList.add("popupAnnotation"),t.role="comment";const e=this.popup=l(zh,this,Uh).call(this),n=[];for(const i of this.elements)i.popup=e,i.container.ariaHasPopup="dialog",n.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(t=>"".concat(Wt).concat(t)).join(",")),this.container}}function Uh(){return new md({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})}var Gh=new WeakMap,Vh=new WeakMap,Hh=new WeakMap,qh=new WeakMap,Xh=new WeakMap,Kh=new WeakMap,Yh=new WeakMap,Zh=new WeakMap,Qh=new WeakMap,Jh=new WeakMap,$h=new WeakMap,td=new WeakMap,ed=new WeakMap,nd=new WeakMap,id=new WeakMap,rd=new WeakMap,od=new WeakMap,sd=new WeakMap,ad=new WeakMap,ld=new WeakMap,ud=new WeakMap,cd=new WeakMap,hd=new WeakMap,dd=new WeakMap,fd=new WeakMap,pd=new WeakMap,gd=new WeakSet;class md{constructor(t){let{container:e,color:n,elements:i,titleObj:r,modificationDate:o,contentsObj:u,richText:d,parent:f,rect:p,parentRect:g,open:m,commentManager:v=null}=t;s(this,gd),a(this,Gh,null),a(this,Vh,l(gd,this,Sd).bind(this)),a(this,Hh,l(gd,this,Md).bind(this)),a(this,qh,l(gd,this,kd).bind(this)),a(this,Xh,l(gd,this,Ed).bind(this)),a(this,Kh,null),a(this,Yh,null),a(this,Zh,null),a(this,Qh,null),a(this,Jh,null),a(this,$h,null),a(this,td,null),a(this,ed,!1),a(this,nd,null),a(this,id,null),a(this,rd,null),a(this,od,null),a(this,sd,null),a(this,ad,null),a(this,ld,null),a(this,ud,null),a(this,cd,null),a(this,hd,null),a(this,dd,!1),a(this,fd,null),a(this,pd,null),h(Yh,this,e),h(cd,this,r),h(Zh,this,u),h(ud,this,d),h($h,this,f),h(Kh,this,n),h(ld,this,p),h(td,this,g),h(Jh,this,i),h(Gh,this,v),h(fd,this,i[0]),h(Qh,this,ee.toDateObject(o)),this.trigger=i.flatMap(t=>t.getElementsToTriggerPopup()),v?this.renderCommentButton():(l(gd,this,vd).call(this),c(Yh,this).hidden=!0,m&&l(gd,this,Ed).call(this))}renderCommentButton(){if(c(od,this))return;if(c(sd,this)||l(gd,this,yd).call(this),!c(sd,this))return;const{signal:t}=h(id,this,new AbortController),e=!!c(fd,this).extraPopupElement,n=()=>{c(Gh,this).toggleCommentPopup(this,!0,void 0,!e)},i=()=>{c(Gh,this).toggleCommentPopup(this,!1,!0,!e)},r=()=>{c(Gh,this).toggleCommentPopup(this,!1,!1)};if(e){h(od,this,c(fd,this).container);for(const e of this.trigger)e.ariaHasPopup="dialog",e.ariaControls="commentPopup",e.addEventListener("keydown",c(Vh,this),{signal:t}),e.addEventListener("click",n,{signal:t}),e.addEventListener("pointerenter",i,{signal:t}),e.addEventListener("pointerleave",r,{signal:t}),e.classList.add("popupTriggerArea")}else{const e=h(od,this,document.createElement("button"));e.className="annotationCommentButton";const o=c(fd,this).container;e.style.zIndex=o.style.zIndex+1,e.tabIndex=0,e.ariaHasPopup="dialog",e.ariaControls="commentPopup",e.setAttribute("data-l10n-id","pdfjs-show-comment-button"),l(gd,this,wd).call(this),l(gd,this,bd).call(this),e.addEventListener("keydown",c(Vh,this),{signal:t}),e.addEventListener("click",n,{signal:t}),e.addEventListener("pointerenter",i,{signal:t}),e.addEventListener("pointerleave",r,{signal:t}),o.after(e)}}get commentButtonColor(){const{color:t,opacity:e}=c(fd,this).commentData;return t?c($h,this)._commentManager.makeCommentColor(t,e):null}focusCommentButton(){setTimeout(()=>{var t;null===(t=c(od,this))||void 0===t||t.focus()},0)}getData(){const{richText:t,color:e,opacity:n,creationDate:i,modificationDate:r}=c(fd,this).commentData;return{contentsObj:{str:this.comment},richText:t,color:e,opacity:n,creationDate:i,modificationDate:r}}get elementBeforePopup(){return c(od,this)}get comment(){return c(pd,this)||h(pd,this,c(fd,this).commentText),c(pd,this)}set comment(t){t!==this.comment&&(c(fd,this).commentText=h(pd,this,t))}get parentBoundingClientRect(){return c(fd,this).layer.getBoundingClientRect()}setCommentButtonStates(t){let{selected:e,hasPopup:n}=t;c(od,this)&&(c(od,this).classList.toggle("selected",e),c(od,this).ariaExpanded=n)}setSelectedCommentButton(t){c(od,this).classList.toggle("selected",t)}get commentPopupPosition(){if(c(ad,this))return c(ad,this);const{x:t,y:e,height:n}=c(od,this).getBoundingClientRect(),{x:i,y:r,width:o,height:s}=c(fd,this).layer.getBoundingClientRect();return[(t-i)/o,(e+n-r)/s]}set commentPopupPosition(t){h(ad,this,t)}hasDefaultPopupPosition(){return null===c(ad,this)}get commentButtonPosition(){return c(sd,this)}get commentButtonWidth(){return c(od,this).getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(t){const[e,n]=c(ad,this)||this.commentButtonPosition.map(t=>t/100),i=this.parentBoundingClientRect,{x:o,y:s,width:a,height:l}=i;c(Gh,this).showDialog(null,this,o+e*a,s+n*l,(0,r.A)((0,r.A)({},t),{},{parentDimensions:i}))}render(){var t,e;if(c(nd,this))return;const n=h(nd,this,document.createElement("div"));if(n.className="popup",c(Kh,this)){const t=n.style.outlineColor=Rt.makeHexColor(...c(Kh,this));n.style.backgroundColor="color-mix(in srgb, ".concat(t," 30%, white)")}const i=document.createElement("span");if(i.className="header",null!==(t=c(cd,this))&&void 0!==t&&t.str){const t=document.createElement("span");t.className="title",i.append(t),({dir:t.dir,str:t.textContent}=c(cd,this))}if(n.append(i),c(Qh,this)){const t=document.createElement("time");t.className="popupDate",t.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),t.setAttribute("data-l10n-args",JSON.stringify({dateObj:c(Qh,this).valueOf()})),t.dateTime=c(Qh,this).toISOString(),i.append(t)}ge({html:u(gd,this,Dd)||c(Zh,this).str,dir:null===(e=c(Zh,this))||void 0===e?void 0:e.dir,className:"popupContent"},n),c(Yh,this).append(n)}updateEdited(t){var e;let{rect:n,popup:i,deleted:r}=t;if(c(Gh,this))return r?(this.remove(),h(pd,this,null)):i&&(i.deleted?this.remove():(l(gd,this,wd).call(this),h(pd,this,i.text))),void(n&&(h(sd,this,null),l(gd,this,yd).call(this),l(gd,this,bd).call(this)));r||null!==i&&void 0!==i&&i.deleted?this.remove():(l(gd,this,vd).call(this),c(hd,this)||h(hd,this,{contentsObj:c(Zh,this),richText:c(ud,this)}),n&&h(rd,this,null),i&&i.text&&(h(ud,this,l(gd,this,Cd).call(this,i.text)),h(Qh,this,ee.toDateObject(i.date)),h(Zh,this,null)),null===(e=c(nd,this))||void 0===e||e.remove(),h(nd,this,null))}resetEdited(){var t;c(hd,this)&&(({contentsObj:i(h,[Zh,this])._,richText:i(h,[ud,this])._}=c(hd,this)),h(hd,this,null),null===(t=c(nd,this))||void 0===t||t.remove(),h(nd,this,null),h(rd,this,null))}remove(){var t,e,n;if(null===(t=c(id,this))||void 0===t||t.abort(),h(id,this,null),null===(e=c(nd,this))||void 0===e||e.remove(),h(nd,this,null),h(dd,this,!1),h(ed,this,!1),null===(n=c(od,this))||void 0===n||n.remove(),h(od,this,null),this.trigger)for(const i of this.trigger)i.classList.remove("popupTriggerArea")}forceHide(){h(dd,this,this.isVisible),c(dd,this)&&(c(Yh,this).hidden=!0)}maybeShow(){c(Gh,this)||(l(gd,this,vd).call(this),c(dd,this)&&(c(nd,this)||l(gd,this,kd).call(this),h(dd,this,!1),c(Yh,this).hidden=!1))}get isVisible(){return!c(Gh,this)&&!1===c(Yh,this).hidden}}function vd(){if(c(id,this))return;h(id,this,new AbortController);const{signal:t}=c(id,this);for(const n of this.trigger)n.addEventListener("click",c(Xh,this),{signal:t}),n.addEventListener("pointerenter",c(qh,this),{signal:t}),n.addEventListener("pointerleave",c(Hh,this),{signal:t}),n.classList.add("popupTriggerArea");for(const n of c(Jh,this)){var e;null===(e=n.container)||void 0===e||e.addEventListener("keydown",c(Vh,this),{signal:t})}}function yd(){const t=c(Jh,this).find(t=>t.hasCommentButton);t&&h(sd,this,t._normalizePoint(t.commentButtonPosition))}function bd(){if(c(fd,this).extraPopupElement&&!c(fd,this).editor)return;this.renderCommentButton();const[t,e]=c(sd,this),{style:n}=c(od,this);n.left="calc(".concat(t,"%)"),n.top="calc(".concat(e,"% - var(--comment-button-dim))")}function wd(){c(fd,this).extraPopupElement||(this.renderCommentButton(),c(od,this).style.backgroundColor=this.commentButtonColor||"")}function Dd(t){const e=c(ud,t),n=c(Zh,t);return null===e||void 0===e||!e.str||null!==n&&void 0!==n&&n.str&&n.str!==e.str?null:c(ud,t).html||null}function Ad(t){var e;return(null===(e=u(gd,t,Dd))||void 0===e||null===(e=e.attributes)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.fontSize)||0}function xd(t){var e;return(null===(e=u(gd,t,Dd))||void 0===e||null===(e=e.attributes)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.color)||null}function Cd(t){const e=[],n={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:e}]}},i={style:{color:u(gd,this,xd),fontSize:u(gd,this,Ad)?"calc(".concat(u(gd,this,Ad),"px * var(--total-scale-factor))"):""}};for(const r of t.split("\n"))e.push({name:"span",value:r,attributes:i});return n}function Sd(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||("Enter"===t.key||"Escape"===t.key&&c(ed,this))&&l(gd,this,Ed).call(this)}function Fd(){if(null!==c(rd,this))return;const{page:{view:t},viewport:{rawDims:{pageWidth:e,pageHeight:n,pageX:i,pageY:r}}}=c($h,this);let o=!!c(td,this),s=c(o?td:ld,this);for(const h of c(Jh,this))if(!s||null!==Rt.intersect(h.data.rect,s)){s=h.data.rect,o=!0;break}const a=Rt.normalizeRect([s[0],t[3]-s[1]+t[1],s[2],t[3]-s[3]+t[1]]),l=o?s[2]-s[0]+5:0,u=a[0]+l,d=a[1];h(rd,this,[100*(u-i)/e,100*(d-r)/n]);const{style:f}=c(Yh,this);f.left="".concat(c(rd,this)[0],"%"),f.top="".concat(c(rd,this)[1],"%")}function Ed(){c(Gh,this)?c(Gh,this).toggleCommentPopup(this,!1):(h(ed,this,!c(ed,this)),c(ed,this)?(l(gd,this,kd).call(this),c(Yh,this).addEventListener("click",c(Xh,this)),c(Yh,this).addEventListener("keydown",c(Vh,this))):(l(gd,this,Md).call(this),c(Yh,this).removeEventListener("click",c(Xh,this)),c(Yh,this).removeEventListener("keydown",c(Vh,this))))}function kd(){c(nd,this)||this.render(),this.isVisible?c(ed,this)&&c(Yh,this).classList.add("focused"):(l(gd,this,Fd).call(this),c(Yh,this).hidden=!1,c(Yh,this).style.zIndex=parseInt(c(Yh,this).style.zIndex)+1e3)}function Md(){c(Yh,this).classList.remove("focused"),!c(ed,this)&&this.isVisible&&(c(Yh,this).hidden=!0,c(Yh,this).style.zIndex=parseInt(c(Yh,this).style.zIndex)-1e3)}class Td extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=H.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const e of this.textContent){const n=document.createElement("span");n.textContent=e,t.append(n)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var Pd=new WeakMap;class _d extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),a(this,Pd,null)}render(){this.container.classList.add("lineAnnotation");const{data:t,width:e,height:n}=this,i=this.svgFactory.create(e,n,!0),r=h(Pd,this,this.svgFactory.createElement("svg:line"));return r.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),r.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),r.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),r.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),r.setAttribute("stroke-width",t.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","transparent"),i.append(r),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return c(Pd,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var Rd=new WeakMap;class Bd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),a(this,Rd,null)}render(){this.container.classList.add("squareAnnotation");const{data:t,width:e,height:n}=this,i=this.svgFactory.create(e,n,!0),r=t.borderStyle.width,o=h(Rd,this,this.svgFactory.createElement("svg:rect"));return o.setAttribute("x",r/2),o.setAttribute("y",r/2),o.setAttribute("width",e-r),o.setAttribute("height",n-r),o.setAttribute("stroke-width",r||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return c(Rd,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var Id=new WeakMap;class Nd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),a(this,Id,null)}render(){this.container.classList.add("circleAnnotation");const{data:t,width:e,height:n}=this,i=this.svgFactory.create(e,n,!0),r=t.borderStyle.width,o=h(Id,this,this.svgFactory.createElement("svg:ellipse"));return o.setAttribute("cx",e/2),o.setAttribute("cy",n/2),o.setAttribute("rx",e/2-r/2),o.setAttribute("ry",n/2-r/2),o.setAttribute("stroke-width",r||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return c(Id,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var Ld=new WeakMap;class Od extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),a(this,Ld,null),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,vertices:e,borderStyle:n,popupRef:i},width:r,height:o}=this;if(!e)return this.container;const s=this.svgFactory.create(r,o,!0);let a=[];for(let u=0,c=e.length;u<c;u+=2){const n=e[u]-t[0],i=t[3]-e[u+1];a.push("".concat(n,",").concat(i))}a=a.join(" ");const l=h(Ld,this,this.svgFactory.createElement(this.svgElementName));return l.setAttribute("points",a),l.setAttribute("stroke-width",n.width||1),l.setAttribute("stroke","transparent"),l.setAttribute("fill","transparent"),s.append(l),this.container.append(s),!i&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return c(Ld,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}class Wd extends Od{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class zd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}var jd=new WeakMap,Ud=new WeakMap,Gd=new WeakSet;class Vd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),s(this,Gd),a(this,jd,null),a(this,Ud,[]),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType="InkHighlight"===this.data.it?H.HIGHLIGHT:H.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,rotation:e,inkLists:n,borderStyle:i,popupRef:r}}=this,{transform:o,width:s,height:a}=l(Gd,this,Hd).call(this,e,t),u=this.svgFactory.create(s,a,!0),d=h(jd,this,this.svgFactory.createElement("svg:g"));u.append(d),d.setAttribute("stroke-width",i.width||1),d.setAttribute("stroke-linecap","round"),d.setAttribute("stroke-linejoin","round"),d.setAttribute("stroke-miterlimit",10),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),d.setAttribute("transform",o);for(let l=0,h=n.length;l<h;l++){const t=this.svgFactory.createElement(this.svgElementName);c(Ud,this).push(t),t.setAttribute("points",n[l].join(",")),d.append(t)}return!r&&this.hasPopupData&&this._createPopup(),this.container.append(u),this._editOnDoubleClick(),this.container}updateEdited(t){super.updateEdited(t);const{thickness:e,points:n,rect:i}=t,r=c(jd,this);if(e>=0&&r.setAttribute("stroke-width",e||1),n)for(let o=0,s=c(Ud,this).length;o<s;o++)c(Ud,this)[o].setAttribute("points",n[o].join(","));if(i){const{transform:t,width:e,height:n}=l(Gd,this,Hd).call(this,this.data.rotation,i);r.parentElement.setAttribute("viewBox","0 0 ".concat(e," ").concat(n)),r.setAttribute("transform",t)}}getElementsToTriggerPopup(){return c(Ud,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}function Hd(t,e){switch(t){case 90:return{transform:"rotate(90) translate(".concat(-e[0],",").concat(e[1],") scale(1,-1)"),width:e[3]-e[1],height:e[2]-e[0]};case 180:return{transform:"rotate(180) translate(".concat(-e[2],",").concat(e[1],") scale(1,-1)"),width:e[2]-e[0],height:e[3]-e[1]};case 270:return{transform:"rotate(270) translate(".concat(-e[2],",").concat(e[3],") scale(1,-1)"),width:e[3]-e[1],height:e[2]-e[0]};default:return{transform:"translate(".concat(-e[0],",").concat(e[3],") scale(1,-1)"),width:e[2]-e[0],height:e[3]-e[1]}}}class qd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=H.HIGHLIGHT}render(){const{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),t){const e=document.createElement("mark");e.classList.add("overlaidText"),e.textContent=t,this.container.append(e)}return this.container}}class Xd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),t){const e=document.createElement("u");e.classList.add("overlaidText"),e.textContent=t,this.container.append(e)}return this.container}}class Kd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),t){const e=document.createElement("u");e.classList.add("overlaidText"),e.textContent=t,this.container.append(e)}return this.container}}class Yd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),t){const e=document.createElement("s");e.classList.add("overlaidText"),e.textContent=t,this.container.append(e)}return this.container}}class Zd extends Ch{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=H.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var Qd=new WeakMap,Jd=new WeakSet;class $d extends Ch{constructor(t){var e;super(t,{isRenderable:!0}),s(this,Jd),a(this,Qd,null);const{file:n}=this.data;this.filename=n.filename,this.content=n.content,null===(e=this.linkService.eventBus)||void 0===e||e.dispatch("fileattachmentannotation",(0,r.A)({source:this},n))}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:t,data:e}=this;let n;e.hasAppearance||0===e.fillAlpha?n=document.createElement("div"):(n=document.createElement("img"),n.src="".concat(this.imageResourcesPath,"annotation-").concat(/paperclip/i.test(e.name)?"paperclip":"pushpin",".svg"),e.fillAlpha&&e.fillAlpha<1&&(n.style="filter: opacity(".concat(Math.round(100*e.fillAlpha),"%);"))),n.addEventListener("dblclick",l(Jd,this,tf).bind(this)),h(Qd,this,n);const{isMac:i}=Pt.platform;return t.addEventListener("keydown",t=>{"Enter"===t.key&&(i?t.metaKey:t.ctrlKey)&&l(Jd,this,tf).call(this)}),!e.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),t.append(n),t}getElementsToTriggerPopup(){return c(Qd,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}function tf(){var t;null===(t=this.downloadManager)||void 0===t||t.openOrDownloadData(this.content,this.filename)}var ef=new WeakMap,nf=new WeakMap,rf=new WeakMap,of=new WeakMap,sf=new WeakMap,af=new WeakMap,lf=new WeakSet;class uf{constructor(t){let{div:e,accessibilityManager:n,annotationCanvasMap:i,annotationEditorUIManager:r,page:o,viewport:l,structTreeLayer:u,commentManager:c,linkService:d,annotationStorage:f}=t;s(this,lf),a(this,ef,null),a(this,nf,null),a(this,rf,null),a(this,of,new Map),a(this,sf,null),a(this,af,null),this.div=e,h(ef,this,n),h(nf,this,i),h(sf,this,u||null),h(af,this,d||null),h(rf,this,f||new Do),this.page=o,this.viewport=l,this.zIndex=0,this._annotationEditorUIManager=r,this._commentManager=c||null}hasEditableAnnotations(){return c(of,this).size>0}async render(t){const{annotations:e}=t,n=this.div;se(n,this.viewport);const i=new Map,r={data:null,layer:n,linkService:c(af,this),downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:!1!==t.renderForms,svgFactory:new mh,annotationStorage:c(rf,this),enableComment:!0===t.enableComment,enableScripting:!0===t.enableScripting,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const a of e){var o;if(a.noHTML)continue;const t=a.annotationType===tt.POPUP;if(t){const t=i.get(a.id);if(!t)continue;r.elements=t}else if(a.rect[2]===a.rect[0]||a.rect[3]===a.rect[1])continue;r.data=a;const e=bh.create(r);if(!e.isRenderable)continue;if(!t&&a.popupRef){const t=i.get(a.popupRef);t?t.push(e):i.set(a.popupRef,[e])}const n=e.render();var s;if(a.hidden&&(n.style.visibility="hidden"),await l(lf,this,cf).call(this,n,a.id,r.elements),null===(o=e.extraPopupElement)||void 0===o||null===(o=o.popup)||void 0===o||o.renderCommentButton(),e._isEditable)c(of,this).set(e.data.id,e),null===(s=this._annotationEditorUIManager)||void 0===s||s.renderAnnotationElement(e)}l(lf,this,hf).call(this)}async addLinkAnnotations(t){const e={data:null,layer:this.div,linkService:c(af,this),svgFactory:new mh,parent:this};for(const n of t){n.borderStyle||(n.borderStyle=uf._defaultBorderStyle),e.data=n;const t=bh.create(e);if(!t.isRenderable)continue;const i=t.render();await l(lf,this,cf).call(this,i,n.id,null)}}update(t){let{viewport:e}=t;const n=this.div;this.viewport=e,se(n,{rotation:e.rotation}),l(lf,this,hf).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(c(of,this).values())}getEditableAnnotation(t){return c(of,this).get(t)}addFakeAnnotation(t){var e;const{div:n}=this,{id:i,rotation:r}=t,o=new Fh({data:{id:i,rect:t.getPDFRect(),rotation:r},editor:t,layer:n,parent:this,enableComment:!!this._commentManager,linkService:c(af,this),annotationStorage:c(rf,this)}),s=o.render();return n.append(s),null===(e=c(ef,this))||void 0===e||e.moveElementInDOM(n,s,s,!1),o.createOrUpdatePopup(),o}static get _defaultBorderStyle(){return Dt(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:et,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}}async function cf(t,e,n){var i;const r=t.firstChild||t,o=r.id="".concat(Wt).concat(e),s=await(null===(i=c(sf,this))||void 0===i?void 0:i.getAriaAttributes(o));if(s)for(const[l,u]of s)r.setAttribute(l,u);var a;n?n.at(-1).container.after(t):(this.div.append(t),null===(a=c(ef,this))||void 0===a||a.moveElementInDOM(this.div,t,r,!1))}function hf(){if(!c(nf,this))return;const t=this.div;for(const[n,i]of c(nf,this)){const r=t.querySelector('[data-annotation-id="'.concat(n,'"]'));if(!r)continue;i.className="annotationContent";const{firstChild:o}=r;o?"CANVAS"===o.nodeName?o.replaceWith(i):o.classList.contains("annotationContent")?o.after(i):o.before(i):r.append(i);const s=c(of,this).get(n);var e;if(s)if(s._hasNoCanvas)null===(e=this._annotationEditorUIManager)||void 0===e||e.setMissingCanvas(n,r.id,i),s._hasNoCanvas=!1;else s.canvas=i}c(nf,this).clear()}const df=/\r\n?|\n/g;var ff=new WeakMap,pf=new WeakMap,gf=new WeakMap,mf=new WeakMap,vf=new WeakSet;class yf extends Gr{static get _keyboardManager(){const t=yf.prototype,e=t=>t.isEmpty(),n=ei.TRANSLATE_SMALL,i=ei.TRANSLATE_BIG;return Dt(this,"_keyboardManager",new en([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-n,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-i,0],checker:e}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[n,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[i,0],checker:e}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-n],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-i],checker:e}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,n],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,i],checker:e}]]))}constructor(t){super((0,r.A)((0,r.A)({},t),{},{name:"freeTextEditor"})),s(this,vf),a(this,ff,""),a(this,pf,"".concat(this.id,"-editor")),a(this,gf,null),a(this,mf,void 0),(0,T.A)(this,"_colorPicker",null),this.color=t.color||yf._defaultColor||Gr._defaultLineColor,h(mf,this,t.fontSize||yf._defaultFontSize),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert")}static initialize(t,e){Gr.initialize(t,e);const n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(t,e){switch(t){case q.FREETEXT_SIZE:yf._defaultFontSize=e;break;case q.FREETEXT_COLOR:yf._defaultColor=e}}updateParams(t,e){switch(t){case q.FREETEXT_SIZE:l(vf,this,bf).call(this,e);break;case q.FREETEXT_COLOR:l(vf,this,wf).call(this,e)}}static get defaultPropertiesToUpdate(){return[[q.FREETEXT_SIZE,yf._defaultFontSize],[q.FREETEXT_COLOR,yf._defaultColor||Gr._defaultLineColor]]}get propertiesToUpdate(){return[[q.FREETEXT_SIZE,c(mf,this)],[q.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new ch(this)),[["colorPicker",this._colorPicker]]}get colorType(){return q.FREETEXT_COLOR}onUpdatedColor(){var t;this.editorDiv.style.color=this.color,null===(t=this._colorPicker)||void 0===t||t.update(this.color),super.onUpdatedColor()}_translateEmpty(t,e){this._uiManager.translateSelectedEditors(t,e,!0)}getInitialTranslation(){const t=this.parentScale;return[-yf._internalPadding*t,-(yf._internalPadding+c(mf,this))*t]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),h(gf,this,new AbortController);const t=this._uiManager.combinedSignal(c(gf,this));return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:t}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:t}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:t}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:t}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:t}),!0}disableEditMode(){var t;return!!super.disableEditMode()&&(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",c(pf,this)),this._isDraggable=!0,null===(t=c(gf,this))||void 0===t||t.abort(),h(gf,this,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0)}focusin(t){this._focusEventsAllowed&&(super.focusin(t),t.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(t){var e;this.width||(this.enableEditMode(),t&&this.editorDiv.focus(),null!==(e=this._initialOptions)&&void 0!==e&&e.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const t=c(ff,this),e=h(ff,this,l(vf,this,Df).call(this).trimEnd());if(t===e)return;const n=t=>{h(ff,this,t),t?(l(vf,this,Cf).call(this),this._uiManager.rebuild(this),l(vf,this,Af).call(this)):this.remove()};this.addCommands({cmd:()=>{n(e)},undo:()=>{n(t)},mustExec:!1}),l(vf,this,Af).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(t){t.target===this.div&&"Enter"===t.key&&(this.enterInEditMode(),t.preventDefault())}editorDivKeydown(t){yf._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}get canChangeContent(){return!0}render(){if(this.div)return this.div;let t,e;(this._isCopy||this.annotationElementId)&&(t=this.x,e=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",c(pf,this)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize="calc(".concat(c(mf,this),"px * var(--total-scale-factor))"),n.color=this.color,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){const[n,i]=this.parentDimensions;if(this.annotationElementId){const{position:r}=this._initialData;let[o,s]=this.getInitialTranslation();[o,s]=this.pageTranslationToScreen(o,s);const[a,l]=this.pageDimensions,[u,c]=this.pageTranslation;let h,d;switch(this.rotation){case 0:h=t+(r[0]-u)/a,d=e+this.height-(r[1]-c)/l;break;case 90:h=t+(r[0]-u)/a,d=e-(r[1]-c)/l,[o,s]=[s,-o];break;case 180:h=t-this.width+(r[0]-u)/a,d=e-(r[1]-c)/l,[o,s]=[-o,-s];break;case 270:h=t+(r[0]-u-this.height*l)/a,d=e+(r[1]-c-this.width*a)/l,[o,s]=[-s,o]}this.setAt(h*n,d*i,o,s)}else this._moveAfterPaste(t,e);l(vf,this,Cf).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(t){const e=t.clipboardData||window.clipboardData,{types:n}=e;if(1===n.length&&"text/plain"===n[0])return;t.preventDefault();const i=Ff.call(yf,e.getData("text")||"").replaceAll(df,"\n");if(!i)return;const r=window.getSelection();if(!r.rangeCount)return;this.editorDiv.normalize(),r.deleteFromDocument();const o=r.getRangeAt(0);if(!i.includes("\n"))return o.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),void r.collapseToStart();const{startContainer:s,startOffset:a}=o,u=[],c=[];if(s.nodeType===Node.TEXT_NODE){const t=s.parentElement;if(c.push(s.nodeValue.slice(a).replaceAll(df,"")),t!==this.editorDiv){let e=u;for(const n of this.editorDiv.childNodes)n!==t?e.push(xf.call(yf,n)):e=c}u.push(s.nodeValue.slice(0,a).replaceAll(df,""))}else if(s===this.editorDiv){let t=u,e=0;for(const n of this.editorDiv.childNodes)e++===a&&(t=c),t.push(xf.call(yf,n))}h(ff,this,"".concat(u.join("\n")).concat(i).concat(c.join("\n"))),l(vf,this,Cf).call(this);const d=new Range;let f=Math.sumPrecise(u.map(t=>t.length));for(const{firstChild:l}of this.editorDiv.childNodes)if(l.nodeType===Node.TEXT_NODE){const t=l.nodeValue.length;if(f<=t){d.setStart(l,f),d.setEnd(l,f);break}f-=t}r.removeAllRanges(),r.addRange(d)}get contentDiv(){return this.editorDiv}getPDFRect(){const t=yf._internalPadding*this.parentScale;return this.getRect(t,t)}static async deserialize(t,e,n){let i=null;if(t instanceof Td){const{data:{defaultAppearanceData:{fontSize:e,fontColor:n},rect:r,rotation:o,id:s,popupRef:a,richText:l,contentsObj:u,creationDate:c,modificationDate:h},textContent:d,textPosition:f,parent:{page:{pageNumber:p}}}=t;if(!d||0===d.length)return null;i=t={annotationType:H.FREETEXT,color:Array.from(n),fontSize:e,value:d.join("\n"),position:f,pageIndex:p-1,rect:r.slice(0),rotation:o,annotationElementId:s,id:s,deleted:!1,popupRef:a,comment:(null===u||void 0===u?void 0:u.str)||null,richText:l,creationDate:c,modificationDate:h}}const r=await super.deserialize(t,e,n);return h(mf,r,t.fontSize),r.color=Rt.makeHexColor(...t.color),h(ff,r,Ff.call(yf,t.value)),r._initialData=i,t.comment&&r.setCommentData(t),r}serialize(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const e=Gr._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),n=Object.assign(super.serialize(t),{color:e,fontSize:c(mf,this),value:l(vf,this,Sf).call(this)});return this.addComment(n),t?(n.isCopy=!0,n):this.annotationElementId&&!l(vf,this,Ef).call(this,n)?null:(n.id=this.annotationElementId,n)}renderAnnotationElement(t){const e=super.renderAnnotationElement(t);if(!e)return null;const{style:n}=e;n.fontSize="calc(".concat(c(mf,this),"px * var(--total-scale-factor))"),n.color=this.color,e.replaceChildren();for(const i of c(ff,this).split("\n")){const t=document.createElement("div");t.append(i?document.createTextNode(i):document.createElement("br")),e.append(t)}return t.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:c(ff,this)}}),e}resetAnnotationElement(t){super.resetAnnotationElement(t),t.resetEdited()}}function bf(t){const e=t=>{this.editorDiv.style.fontSize="calc(".concat(t,"px * var(--total-scale-factor))"),this.translate(0,-(t-c(mf,this))*this.parentScale),h(mf,this,t),l(vf,this,Af).call(this)},n=c(mf,this);this.addCommands({cmd:e.bind(this,t),undo:e.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:q.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function wf(t){const e=t=>{this.color=t,this.onUpdatedColor()},n=this.color;this.addCommands({cmd:e.bind(this,t),undo:e.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:q.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function Df(){const t=[];this.editorDiv.normalize();let e=null;for(const i of this.editorDiv.childNodes){var n;(null===(n=e)||void 0===n?void 0:n.nodeType)===Node.TEXT_NODE&&"BR"===i.nodeName||(t.push(xf.call(S,i)),e=i)}return t.join("\n")}function Af(){const[t,e]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:t,div:e}=this,i=e.style.display,r=e.classList.contains("hidden");e.classList.remove("hidden"),e.style.display="hidden",t.div.append(this.div),n=e.getBoundingClientRect(),e.remove(),e.style.display=i,e.classList.toggle("hidden",r)}this.rotation%180===this.parentRotation%180?(this.width=n.width/t,this.height=n.height/e):(this.width=n.height/t,this.height=n.width/e),this.fixAndSetPosition()}function xf(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(df,"")}function Cf(){if(this.editorDiv.replaceChildren(),c(ff,this))for(const t of c(ff,this).split("\n")){const e=document.createElement("div");e.append(t?document.createTextNode(t):document.createElement("br")),this.editorDiv.append(e)}}function Sf(){return c(ff,this).replaceAll("\xa0"," ")}function Ff(t){return t.replaceAll(" ","\xa0")}function Ef(t){const{value:e,fontSize:n,color:i,pageIndex:r}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||t.value!==e||t.fontSize!==n||t.color.some((t,e)=>t!==i[e])||t.pageIndex!==r}S=yf,(0,T.A)(yf,"_freeTextDefaultContent",""),(0,T.A)(yf,"_internalPadding",0),(0,T.A)(yf,"_defaultColor",null),(0,T.A)(yf,"_defaultFontSize",10),(0,T.A)(yf,"_type","freetext"),(0,T.A)(yf,"_editorType",H.FREETEXT);class kf{toSVGPath(){vt("Abstract method `toSVGPath` must be implemented.")}get box(){vt("Abstract getter `box` must be implemented.")}serialize(t,e){vt("Abstract method `serialize` must be implemented.")}static _rescale(t,e,n,i,r,o){o||(o=new Float32Array(t.length));for(let s=0,a=t.length;s<a;s+=2)o[s]=e+t[s]*i,o[s+1]=n+t[s+1]*r;return o}static _rescaleAndSwap(t,e,n,i,r,o){o||(o=new Float32Array(t.length));for(let s=0,a=t.length;s<a;s+=2)o[s]=e+t[s+1]*i,o[s+1]=n+t[s]*r;return o}static _translate(t,e,n,i){i||(i=new Float32Array(t.length));for(let r=0,o=t.length;r<o;r+=2)i[r]=e+t[r],i[r+1]=n+t[r+1];return i}static svgRound(t){return Math.round(1e4*t)}static _normalizePoint(t,e,n,i,r){switch(r){case 90:return[1-e/n,t/i];case 180:return[1-t/n,1-e/i];case 270:return[e/n,1-t/i];default:return[t/n,e/i]}}static _normalizePagePoint(t,e,n){switch(n){case 90:return[1-e,t];case 180:return[1-t,1-e];case 270:return[e,1-t];default:return[t,e]}}static createBezierPoints(t,e,n,i,r,o){return[(t+5*n)/6,(e+5*i)/6,(5*n+r)/6,(5*i+o)/6,(n+r)/2,(i+o)/2]}}(0,T.A)(kf,"PRECISION",1e-4);var Mf=new WeakMap,Tf=new WeakMap,Pf=new WeakMap,_f=new WeakMap,Rf=new WeakMap,Bf=new WeakMap,If=new WeakMap,Nf=new WeakMap,Lf=new WeakMap,Of=new WeakMap,Wf=new WeakMap,zf=new WeakMap,jf=new WeakMap,Uf=new WeakSet;class Gf{constructor(t,e,n,i,r){let{x:o,y:l}=t,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;s(this,Uf),a(this,Mf,void 0),a(this,Tf,[]),a(this,Pf,void 0),a(this,_f,void 0),a(this,Rf,[]),a(this,Bf,new Float32Array(18)),a(this,If,void 0),a(this,Nf,void 0),a(this,Lf,void 0),a(this,Of,void 0),a(this,Wf,void 0),a(this,zf,void 0),a(this,jf,[]),h(Mf,this,e),h(zf,this,i*n),h(_f,this,r),c(Bf,this).set([NaN,NaN,NaN,NaN,o,l],6),h(Pf,this,u),h(Of,this,Qf._*n),h(Lf,this,Jf._*n),h(Wf,this,n),c(jf,this).push(o,l)}isEmpty(){return isNaN(c(Bf,this)[8])}add(t){var e;let{x:n,y:i}=t;h(If,this,n),h(Nf,this,i);const[r,o,s,a]=c(Mf,this);let[l,u,d,f]=c(Bf,this).subarray(8,12);const p=n-d,g=i-f,m=Math.hypot(p,g);if(m<c(Lf,this))return!1;const v=m-c(Of,this),y=v/m,b=y*p,w=y*g;let D=l,A=u;l=d,u=f,d+=b,f+=w,null===(e=c(jf,this))||void 0===e||e.push(n,i);const x=b/v,C=-w/v*c(zf,this),S=x*c(zf,this);if(c(Bf,this).set(c(Bf,this).subarray(2,8),0),c(Bf,this).set([d+C,f+S],4),c(Bf,this).set(c(Bf,this).subarray(14,18),12),c(Bf,this).set([d-C,f-S],16),isNaN(c(Bf,this)[6]))return 0===c(Rf,this).length&&(c(Bf,this).set([l+C,u+S],2),c(Rf,this).push(NaN,NaN,NaN,NaN,(l+C-r)/s,(u+S-o)/a),c(Bf,this).set([l-C,u-S],14),c(Tf,this).push(NaN,NaN,NaN,NaN,(l-C-r)/s,(u-S-o)/a)),c(Bf,this).set([D,A,l,u,d,f],6),!this.isEmpty();c(Bf,this).set([D,A,l,u,d,f],6);return Math.abs(Math.atan2(A-u,D-l)-Math.atan2(w,b))<Math.PI/2?([l,u,d,f]=c(Bf,this).subarray(2,6),c(Rf,this).push(NaN,NaN,NaN,NaN,((l+d)/2-r)/s,((u+f)/2-o)/a),[l,u,D,A]=c(Bf,this).subarray(14,18),c(Tf,this).push(NaN,NaN,NaN,NaN,((D+l)/2-r)/s,((A+u)/2-o)/a),!0):([D,A,l,u,d,f]=c(Bf,this).subarray(0,6),c(Rf,this).push(((D+5*l)/6-r)/s,((A+5*u)/6-o)/a,((5*l+d)/6-r)/s,((5*u+f)/6-o)/a,((l+d)/2-r)/s,((u+f)/2-o)/a),[d,f,l,u,D,A]=c(Bf,this).subarray(12,18),c(Tf,this).push(((D+5*l)/6-r)/s,((A+5*u)/6-o)/a,((5*l+d)/6-r)/s,((5*u+f)/6-o)/a,((l+d)/2-r)/s,((u+f)/2-o)/a),!0)}toSVGPath(){if(this.isEmpty())return"";const t=c(Rf,this),e=c(Tf,this);if(isNaN(c(Bf,this)[6])&&!this.isEmpty())return l(Uf,this,Hf).call(this);const n=[];n.push("M".concat(t[4]," ").concat(t[5]));for(let i=6;i<t.length;i+=6)isNaN(t[i])?n.push("L".concat(t[i+4]," ").concat(t[i+5])):n.push("C".concat(t[i]," ").concat(t[i+1]," ").concat(t[i+2]," ").concat(t[i+3]," ").concat(t[i+4]," ").concat(t[i+5]));l(Uf,this,Xf).call(this,n);for(let i=e.length-6;i>=6;i-=6)isNaN(e[i])?n.push("L".concat(e[i+4]," ").concat(e[i+5])):n.push("C".concat(e[i]," ").concat(e[i+1]," ").concat(e[i+2]," ").concat(e[i+3]," ").concat(e[i+4]," ").concat(e[i+5]));return l(Uf,this,qf).call(this,n),n.join(" ")}newFreeDrawOutline(t,e,n,i,r,o){return new ap(t,e,n,i,r,o)}getOutlines(){var t,e;const n=c(Rf,this),i=c(Tf,this),r=c(Bf,this),[o,s,a,u]=c(Mf,this),h=new Float32Array((null!==(t=null===(e=c(jf,this))||void 0===e?void 0:e.length)&&void 0!==t?t:0)+2);for(let l=0,p=h.length-2;l<p;l+=2)h[l]=(c(jf,this)[l]-o)/a,h[l+1]=(c(jf,this)[l+1]-s)/u;if(h[h.length-2]=(c(If,this)-o)/a,h[h.length-1]=(c(Nf,this)-s)/u,isNaN(r[6])&&!this.isEmpty())return l(Uf,this,Kf).call(this,h);const d=new Float32Array(c(Rf,this).length+24+c(Tf,this).length);let f=n.length;for(let l=0;l<f;l+=2)isNaN(n[l])?d[l]=d[l+1]=NaN:(d[l]=n[l],d[l+1]=n[l+1]);f=l(Uf,this,Zf).call(this,d,f);for(let l=i.length-6;l>=6;l-=6)for(let t=0;t<6;t+=2)isNaN(i[l+t])?(d[f]=d[f+1]=NaN,f+=2):(d[f]=i[l+t],d[f+1]=i[l+t+1],f+=2);return l(Uf,this,Yf).call(this,d,f),this.newFreeDrawOutline(d,h,c(Mf,this),c(Wf,this),c(Pf,this),c(_f,this))}}function Vf(){const t=c(Bf,this).subarray(4,6),e=c(Bf,this).subarray(16,18),[n,i,r,o]=c(Mf,this);return[(c(If,this)+(t[0]-e[0])/2-n)/r,(c(Nf,this)+(t[1]-e[1])/2-i)/o,(c(If,this)+(e[0]-t[0])/2-n)/r,(c(Nf,this)+(e[1]-t[1])/2-i)/o]}function Hf(){const[t,e,n,i]=c(Mf,this),[r,o,s,a]=l(Uf,this,Vf).call(this);return"M".concat((c(Bf,this)[2]-t)/n," ").concat((c(Bf,this)[3]-e)/i," L").concat((c(Bf,this)[4]-t)/n," ").concat((c(Bf,this)[5]-e)/i," L").concat(r," ").concat(o," L").concat(s," ").concat(a," L").concat((c(Bf,this)[16]-t)/n," ").concat((c(Bf,this)[17]-e)/i," L").concat((c(Bf,this)[14]-t)/n," ").concat((c(Bf,this)[15]-e)/i," Z")}function qf(t){const e=c(Tf,this);t.push("L".concat(e[4]," ").concat(e[5]," Z"))}function Xf(t){const[e,n,i,r]=c(Mf,this),o=c(Bf,this).subarray(4,6),s=c(Bf,this).subarray(16,18),[a,u,h,d]=l(Uf,this,Vf).call(this);t.push("L".concat((o[0]-e)/i," ").concat((o[1]-n)/r," L").concat(a," ").concat(u," L").concat(h," ").concat(d," L").concat((s[0]-e)/i," ").concat((s[1]-n)/r))}function Kf(t){const e=c(Bf,this),[n,i,r,o]=c(Mf,this),[s,a,u,h]=l(Uf,this,Vf).call(this),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(e[2]-n)/r,(e[3]-i)/o,NaN,NaN,NaN,NaN,(e[4]-n)/r,(e[5]-i)/o,NaN,NaN,NaN,NaN,s,a,NaN,NaN,NaN,NaN,u,h,NaN,NaN,NaN,NaN,(e[16]-n)/r,(e[17]-i)/o,NaN,NaN,NaN,NaN,(e[14]-n)/r,(e[15]-i)/o],0),this.newFreeDrawOutline(d,t,c(Mf,this),c(Wf,this),c(Pf,this),c(_f,this))}function Yf(t,e){const n=c(Tf,this);return t.set([NaN,NaN,NaN,NaN,n[4],n[5]],e),e+6}function Zf(t,e){const n=c(Bf,this).subarray(4,6),i=c(Bf,this).subarray(16,18),[r,o,s,a]=c(Mf,this),[u,h,d,f]=l(Uf,this,Vf).call(this);return t.set([NaN,NaN,NaN,NaN,(n[0]-r)/s,(n[1]-o)/a,NaN,NaN,NaN,NaN,u,h,NaN,NaN,NaN,NaN,d,f,NaN,NaN,NaN,NaN,(i[0]-r)/s,(i[1]-o)/a],e),e+24}var Qf={_:8},Jf={_:Qf._+2},$f=new WeakMap,tp=new WeakMap,ep=new WeakMap,np=new WeakMap,ip=new WeakMap,rp=new WeakMap,op=new WeakMap,sp=new WeakSet;class ap extends kf{constructor(t,e,n,i,r,o){super(),s(this,sp),a(this,$f,void 0),a(this,tp,new Float32Array(4)),a(this,ep,void 0),a(this,np,void 0),a(this,ip,void 0),a(this,rp,void 0),a(this,op,void 0),h(op,this,t),h(ip,this,e),h($f,this,n),h(rp,this,i),h(ep,this,r),h(np,this,o),this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],l(sp,this,lp).call(this,o);const[u,d,f,p]=c(tp,this);for(let s=0,a=t.length;s<a;s+=2)t[s]=(t[s]-u)/f,t[s+1]=(t[s+1]-d)/p;for(let s=0,a=e.length;s<a;s+=2)e[s]=(e[s]-u)/f,e[s+1]=(e[s+1]-d)/p}toSVGPath(){const t=["M".concat(c(op,this)[4]," ").concat(c(op,this)[5])];for(let e=6,n=c(op,this).length;e<n;e+=6)isNaN(c(op,this)[e])?t.push("L".concat(c(op,this)[e+4]," ").concat(c(op,this)[e+5])):t.push("C".concat(c(op,this)[e]," ").concat(c(op,this)[e+1]," ").concat(c(op,this)[e+2]," ").concat(c(op,this)[e+3]," ").concat(c(op,this)[e+4]," ").concat(c(op,this)[e+5]));return t.push("Z"),t.join(" ")}serialize(t,e){let[n,i,r,o]=t;const s=r-n,a=o-i;let l,u;switch(e){case 0:l=kf._rescale(c(op,this),n,o,s,-a),u=kf._rescale(c(ip,this),n,o,s,-a);break;case 90:l=kf._rescaleAndSwap(c(op,this),n,i,s,a),u=kf._rescaleAndSwap(c(ip,this),n,i,s,a);break;case 180:l=kf._rescale(c(op,this),r,i,-s,a),u=kf._rescale(c(ip,this),r,i,-s,a);break;case 270:l=kf._rescaleAndSwap(c(op,this),r,o,-s,-a),u=kf._rescaleAndSwap(c(ip,this),r,o,-s,-a)}return{outline:Array.from(l),points:[Array.from(u)]}}get box(){return c(tp,this)}newOutliner(t,e,n,i,r){return new Gf(t,e,n,i,r,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0)}getNewOutline(t,e){const[n,i,r,o]=c(tp,this),[s,a,l,u]=c($f,this),h=r*l,d=o*u,f=n*l+s,p=i*u+a,g=this.newOutliner({x:c(ip,this)[0]*h+f,y:c(ip,this)[1]*d+p},c($f,this),c(rp,this),t,c(np,this),null!==e&&void 0!==e?e:c(ep,this));for(let m=2;m<c(ip,this).length;m+=2)g.add({x:c(ip,this)[m]*h+f,y:c(ip,this)[m+1]*d+p});return g.getOutlines()}}function lp(t){const e=c(op,this);let n=e[4],i=e[5];const r=[n,i,n,i];let o=n,s=i,a=n,l=i;const u=t?Math.max:Math.min,h=new Float32Array(4);for(let c=6,f=e.length;c<f;c+=6){const t=e[c+4],d=e[c+5];isNaN(e[c])?(Rt.pointBoundingBox(t,d,r),s>d?(o=t,s=d):s===d&&(o=u(o,t)),l<d?(a=t,l=d):l===d&&(a=u(a,t))):(h[0]=h[1]=1/0,h[2]=h[3]=-1/0,Rt.bezierBoundingBox(n,i,...e.slice(c,c+6),h),Rt.rectBoundingBox(h[0],h[1],h[2],h[3],r),s>h[1]?(o=h[0],s=h[1]):s===h[1]&&(o=u(o,h[0])),l<h[3]?(a=h[2],l=h[3]):l===h[3]&&(a=u(a,h[2]))),n=t,i=d}const d=c(tp,this);d[0]=r[0]-c(ep,this),d[1]=r[1]-c(ep,this),d[2]=r[2]-r[0]+2*c(ep,this),d[3]=r[3]-r[1]+2*c(ep,this),this.firstPoint=[o,s],this.lastPoint=[a,l]}var up=new WeakMap,cp=new WeakMap,hp=new WeakMap,dp=new WeakMap,fp=new WeakMap,pp=new WeakSet;class gp{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];s(this,pp),a(this,up,void 0),a(this,cp,void 0),a(this,hp,void 0),a(this,dp,[]),a(this,fp,[]);const r=[1/0,1/0,-1/0,-1/0],o=10**-4;for(const{x:s,y:a,width:h,height:y}of t){const t=Math.floor((s-e)/o)*o,n=Math.ceil((s+h+e)/o)*o,i=Math.floor((a-e)/o)*o,l=Math.ceil((a+y+e)/o)*o,u=[t,i,l,!0],d=[n,i,l,!1];c(dp,this).push(u,d),Rt.rectBoundingBox(t,i,n,l,r)}const l=r[2]-r[0]+2*n,u=r[3]-r[1]+2*n,d=r[0]-n,f=r[1]-n;let p=i?-1/0:1/0,g=1/0;const m=c(dp,this).at(i?-1:-2),v=[m[0],m[2]];for(const s of c(dp,this)){const[t,e,n,r]=s;!r&&i?e<g?(g=e,p=t):e===g&&(p=Math.max(p,t)):r&&!i&&(e<g?(g=e,p=t):e===g&&(p=Math.min(p,t))),s[0]=(t-d)/l,s[1]=(e-f)/u,s[2]=(n-f)/u}h(up,this,new Float32Array([d,f,l,u])),h(cp,this,[p,g]),h(hp,this,v)}getOutlines(){c(dp,this).sort((t,e)=>t[0]-e[0]||t[1]-e[1]||t[2]-e[2]);const t=[];for(const e of c(dp,this))e[3]?(t.push(...l(pp,this,wp).call(this,e)),l(pp,this,yp).call(this,e)):(l(pp,this,bp).call(this,e),t.push(...l(pp,this,wp).call(this,e)));return l(pp,this,mp).call(this,t)}}function mp(t){const e=[],n=new Set;for(const o of t){const[t,n,i]=o;e.push([t,n,o],[t,i,o])}e.sort((t,e)=>t[1]-e[1]||t[0]-e[0]);for(let o=0,s=e.length;o<s;o+=2){const t=e[o][2],i=e[o+1][2];t.push(i),i.push(t),n.add(t),n.add(i)}const i=[];let r;for(;n.size>0;){const t=n.values().next().value;let[e,o,s,a,l]=t;n.delete(t);let u=e,c=o;for(r=[e,s],i.push(r);;){let t;if(n.has(a))t=a;else{if(!n.has(l))break;t=l}n.delete(t),[e,o,s,a,l]=t,u!==e&&(r.push(u,c,e,c===o?o:s),u=e),c=c===o?s:o}r.push(u,c)}return new xp(i,c(up,this),c(cp,this),c(hp,this))}function vp(t){const e=c(fp,this);let n=0,i=e.length-1;for(;n<=i;){const r=n+i>>1,o=e[r][0];if(o===t)return r;o<t?n=r+1:i=r-1}return i+1}function yp(t){let[,e,n]=t;const i=l(pp,this,vp).call(this,e);c(fp,this).splice(i,0,[e,n])}function bp(t){let[,e,n]=t;const i=l(pp,this,vp).call(this,e);for(let r=i;r<c(fp,this).length;r++){const[t,i]=c(fp,this)[r];if(t!==e)break;if(t===e&&i===n)return void c(fp,this).splice(r,1)}for(let r=i-1;r>=0;r--){const[t,i]=c(fp,this)[r];if(t!==e)break;if(t===e&&i===n)return void c(fp,this).splice(r,1)}}function wp(t){const[e,n,i]=t,r=[[e,n,i]],o=l(pp,this,vp).call(this,i);for(let s=0;s<o;s++){const[t,n]=c(fp,this)[s];for(let i=0,o=r.length;i<o;i++){const[,s,a]=r[i];if(!(n<=s||a<=t))if(s>=t)if(a>n)r[i][1]=n;else{if(1===o)return[];r.splice(i,1),i--,o--}else r[i][2]=t,a>n&&r.push([e,n,a])}}return r}var Dp=new WeakMap,Ap=new WeakMap;class xp extends kf{constructor(t,e,n,i){super(),a(this,Dp,void 0),a(this,Ap,void 0),h(Ap,this,t),h(Dp,this,e),this.firstPoint=n,this.lastPoint=i}toSVGPath(){const t=[];for(const e of c(Ap,this)){let[n,i]=e;t.push("M".concat(n," ").concat(i));for(let r=2;r<e.length;r+=2){const o=e[r],s=e[r+1];o===n?(t.push("V".concat(s)),i=s):s===i&&(t.push("H".concat(o)),n=o)}t.push("Z")}return t.join(" ")}serialize(t,e){let[n,i,r,o]=t;const s=[],a=r-n,l=o-i;for(const u of c(Ap,this)){const t=new Array(u.length);for(let e=0;e<u.length;e+=2)t[e]=n+u[e]*a,t[e+1]=o-u[e+1]*l;s.push(t)}return s}get box(){return c(Dp,this)}get classNamesForOutlining(){return["highlightOutline"]}}class Cp extends Gf{newFreeDrawOutline(t,e,n,i,r,o){return new Sp(t,e,n,i,r,o)}}class Sp extends ap{newOutliner(t,e,n,i,r){return new Cp(t,e,n,i,r,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0)}}var Fp=new WeakMap,Ep=new WeakMap,kp=new WeakMap,Mp=new WeakMap,Tp=new WeakMap,Pp=new WeakMap,_p=new WeakMap,Rp=new WeakMap,Bp=new WeakMap,Ip=new WeakMap,Np=new WeakMap,Lp=new WeakMap,Op=new WeakMap,Wp=new WeakMap,zp=new WeakMap,jp=new WeakMap,Up=new WeakMap,Gp=new WeakMap,Vp=new WeakSet;class Hp extends Gr{static get _keyboardManager(){const t=Hp.prototype;return Dt(this,"_keyboardManager",new en([[["ArrowLeft","mac+ArrowLeft"],t._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],t._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],t._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],t._moveCaret,{args:[3]}]]))}constructor(t){super((0,r.A)((0,r.A)({},t),{},{name:"highlightEditor"})),s(this,Vp),a(this,Fp,null),a(this,Ep,0),a(this,kp,void 0),a(this,Mp,null),a(this,Tp,null),a(this,Pp,null),a(this,_p,null),a(this,Rp,0),a(this,Bp,null),a(this,Ip,null),a(this,Np,null),a(this,Lp,!1),a(this,Op,null),a(this,Wp,null),a(this,zp,null),a(this,jp,""),a(this,Up,void 0),a(this,Gp,""),this.color=t.color||Hp._defaultColor,h(Up,this,t.thickness||Hp._defaultThickness),this.opacity=t.opacity||Hp._defaultOpacity,h(kp,this,t.boxes||null),h(Gp,this,t.methodOfCreation||""),h(jp,this,t.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",t.highlightId>-1?(h(Lp,this,!0),l(Vp,this,Xp).call(this,t),l(Vp,this,Jp).call(this)):c(kp,this)&&(h(Fp,this,t.anchorNode),h(Ep,this,t.anchorOffset),h(_p,this,t.focusNode),h(Rp,this,t.focusOffset),l(Vp,this,qp).call(this),l(Vp,this,Jp).call(this),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}get telemetryInitialData(){return{action:"added",type:c(Lp,this)?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:c(Up,this),methodOfCreation:c(Gp,this)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(t){return{numberOfColors:t.get("color").size}}static initialize(t,e){var n;Gr.initialize(t,e),Hp._defaultColor||(Hp._defaultColor=(null===(n=e.highlightColors)||void 0===n?void 0:n.values().next().value)||"#fff066")}static updateDefaultParams(t,e){switch(t){case q.HIGHLIGHT_COLOR:Hp._defaultColor=e;break;case q.HIGHLIGHT_THICKNESS:Hp._defaultThickness=e}}translateInPage(t,e){}get toolbarPosition(){return c(Wp,this)}get commentButtonPosition(){return c(Op,this)}updateParams(t,e){switch(t){case q.HIGHLIGHT_COLOR:l(Vp,this,Kp).call(this,e);break;case q.HIGHLIGHT_THICKNESS:l(Vp,this,Yp).call(this,e)}}static get defaultPropertiesToUpdate(){return[[q.HIGHLIGHT_COLOR,Hp._defaultColor],[q.HIGHLIGHT_THICKNESS,Hp._defaultThickness]]}get propertiesToUpdate(){return[[q.HIGHLIGHT_COLOR,this.color||Hp._defaultColor],[q.HIGHLIGHT_THICKNESS,c(Up,this)||Hp._defaultThickness],[q.HIGHLIGHT_FREE,c(Lp,this)]]}onUpdatedColor(){var t,e;null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(c(Np,this),{root:{fill:this.color,"fill-opacity":this.opacity}}),null===(e=c(Tp,this))||void 0===e||e.updateColor(this.color),super.onUpdatedColor()}get toolbarButtons(){if(this._uiManager.highlightColors){return[["colorPicker",h(Tp,this,new $c({editor:this}))]]}return super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(l(Vp,this,ng).call(this))}getBaseTranslation(){return[0,0]}getRect(t,e){return super.getRect(t,e,l(Vp,this,ng).call(this))}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),t&&this.div.focus()}remove(){l(Vp,this,Qp).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(l(Vp,this,Jp).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){let e=!1;if(this.parent&&!t)l(Vp,this,Qp).call(this);else if(t){var n;l(Vp,this,Jp).call(this,t),e=!this.parent&&(null===(n=this.div)||void 0===n?void 0:n.classList.contains("selectedEditor"))}super.setParent(t),this.show(this._isVisible),e&&this.select()}rotate(t){const{drawLayer:e}=this.parent;let n;c(Lp,this)?(t=(t-this.rotation+360)%360,n=$p.call(Hp,c(Ip,this).box,t)):n=$p.call(Hp,[this.x,this.y,this.width,this.height],t),e.updateProperties(c(Np,this),{bbox:n,root:{"data-main-rotation":t}}),e.updateProperties(c(zp,this),{bbox:$p.call(Hp,c(Pp,this).box,t),root:{"data-main-rotation":t}})}render(){if(this.div)return this.div;const t=super.render();c(jp,this)&&(t.setAttribute("aria-label",c(jp,this)),t.setAttribute("role","mark")),c(Lp,this)?t.classList.add("free"):this.div.addEventListener("keydown",l(Vp,this,tg).bind(this),{signal:this._uiManager._signal});const e=h(Bp,this,document.createElement("div"));return t.append(e),e.setAttribute("aria-hidden","true"),e.className="internal",e.style.clipPath=c(Mp,this),this.setDims(this.width,this.height),ze(this,c(Bp,this),["pointerover","pointerleave"]),this.enableEditing(),t}pointerover(){var t;this.isSelected||(null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(c(zp,this),{rootClass:{hovered:!0}}))}pointerleave(){var t;this.isSelected||(null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(c(zp,this),{rootClass:{hovered:!1}}))}_moveCaret(t){switch(this.parent.unselect(this),t){case 0:case 2:l(Vp,this,eg).call(this,!0);break;case 1:case 3:l(Vp,this,eg).call(this,!1)}}select(){var t;super.select(),c(zp,this)&&(null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(c(zp,this),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var t;super.unselect(),c(zp,this)&&(null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(c(zp,this),{rootClass:{selected:!1}}),c(Lp,this)||l(Vp,this,eg).call(this,!1))}get _mustFixPosition(){return!c(Lp,this)}show(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible;super.show(t),this.parent&&(this.parent.drawLayer.updateProperties(c(Np,this),{rootClass:{hidden:!t}}),this.parent.drawLayer.updateProperties(c(zp,this),{rootClass:{hidden:!t}}))}static startHighlighting(t,e,n){let{target:i,x:r,y:o}=n;const{x:s,y:a,width:u,height:c}=i.getBoundingClientRect(),h=new AbortController,d=t.combinedSignal(h),f=e=>{h.abort(),l(Hp,this,sg).call(this,t,e)};window.addEventListener("blur",f,{signal:d}),window.addEventListener("pointerup",f,{signal:d}),window.addEventListener("pointerdown",te,{capture:!0,passive:!1,signal:d}),window.addEventListener("contextmenu",$t,{signal:d}),i.addEventListener("pointermove",l(Hp,this,og).bind(this,t),{signal:d}),this._freeHighlight=new Cp({x:r,y:o},[s,a,u,c],t.scale,this._defaultThickness/2,e,.001),({id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=t.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0))}static async deserialize(t,e,n){let i=null;if(t instanceof qd){const{data:{quadPoints:e,rect:n,rotation:r,id:o,color:s,opacity:a,popupRef:l,richText:u,contentsObj:c,creationDate:h,modificationDate:d},parent:{page:{pageNumber:f}}}=t;i=t={annotationType:H.HIGHLIGHT,color:Array.from(s),opacity:a,quadPoints:e,boxes:null,pageIndex:f-1,rect:n.slice(0),rotation:r,annotationElementId:o,id:o,deleted:!1,popupRef:l,richText:u,comment:(null===c||void 0===c?void 0:c.str)||null,creationDate:h,modificationDate:d}}else if(t instanceof Vd){const{data:{inkLists:e,rect:n,rotation:r,id:o,color:s,borderStyle:{rawWidth:a},popupRef:l,richText:u,contentsObj:c,creationDate:h,modificationDate:d},parent:{page:{pageNumber:f}}}=t;i=t={annotationType:H.HIGHLIGHT,color:Array.from(s),thickness:a,inkLists:e,boxes:null,pageIndex:f-1,rect:n.slice(0),rotation:r,annotationElementId:o,id:o,deleted:!1,popupRef:l,richText:u,comment:(null===c||void 0===c?void 0:c.str)||null,creationDate:h,modificationDate:d}}const{color:r,quadPoints:o,inkLists:s,opacity:a}=t,u=await super.deserialize(t,e,n);u.color=Rt.makeHexColor(...r),u.opacity=a||1,s&&h(Up,u,t.thickness),u._initialData=i,t.comment&&u.setCommentData(t);const[d,f]=u.pageDimensions,[p,g]=u.pageTranslation;if(o){const t=h(kp,u,[]);for(let e=0;e<o.length;e+=8)t.push({x:(o[e]-p)/d,y:1-(o[e+1]-g)/f,width:(o[e+2]-o[e])/d,height:(o[e+1]-o[e+5])/f});l(Vp,u,qp).call(u),l(Vp,u,Jp).call(u),u.rotate(u.rotation)}else if(s){h(Lp,u,!0);const t=s[0],n={x:t[0]-p,y:f-(t[1]-g)},i=new Cp(n,[0,0,d,f],1,c(Up,u)/2,!0,.001);for(let e=0,s=t.length;e<s;e+=2)n.x=t[e]-p,n.y=f-(t[e+1]-g),i.add(n);const{id:r,clipPathId:o}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:u.color,"fill-opacity":u._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:i.toSVGPath()}},!0,!0);l(Vp,u,Xp).call(u,{highlightOutlines:i.getOutlines(),highlightId:r,clipPathId:o}),l(Vp,u,Jp).call(u),u.rotate(u.parentRotation)}return u}serialize(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty()||t)return null;if(this.deleted)return this.serializeDeleted();const e=Gr._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),n=super.serialize(t);return Object.assign(n,{color:e,opacity:this.opacity,thickness:c(Up,this),quadPoints:l(Vp,this,ig).call(this),outlines:l(Vp,this,rg).call(this,n.rect)}),this.addComment(n),this.annotationElementId&&!l(Vp,this,ag).call(this,n)?null:(n.id=this.annotationElementId,n)}renderAnnotationElement(t){return this.deleted?(t.hide(),null):(t.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}}function qp(){const t=new gp(c(kp,this),.001);h(Ip,this,t.getOutlines()),[this.x,this.y,this.width,this.height]=c(Ip,this).box;const e=new gp(c(kp,this),.0025,.001,"ltr"===this._uiManager.direction);h(Pp,this,e.getOutlines());const{firstPoint:n}=c(Ip,this);h(Op,this,[(n[0]-this.x)/this.width,(n[1]-this.y)/this.height]);const{lastPoint:i}=c(Pp,this);h(Wp,this,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height])}function Xp(t){let{highlightOutlines:e,highlightId:n,clipPathId:i}=t;h(Ip,this,e);if(h(Pp,this,e.getNewOutline(c(Up,this)/2+1.5,.0025)),n>=0)h(Np,this,n),h(Mp,this,i),this.parent.drawLayer.finalizeDraw(n,{bbox:e.box,path:{d:e.toSVGPath()}}),h(zp,this,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:c(Pp,this).box,path:{d:c(Pp,this).toSVGPath()}},!0));else if(this.parent){const t=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(c(Np,this),{bbox:$p.call(F,c(Ip,this).box,(t-this.rotation+360)%360),path:{d:e.toSVGPath()}}),this.parent.drawLayer.updateProperties(c(zp,this),{bbox:$p.call(F,c(Pp,this).box,t),path:{d:c(Pp,this).toSVGPath()}})}const[r,o,s,a]=e.box;switch(this.rotation){case 0:this.x=r,this.y=o,this.width=s,this.height=a;break;case 90:{const[t,e]=this.parentDimensions;this.x=o,this.y=1-r,this.width=s*e/t,this.height=a*t/e;break}case 180:this.x=1-r,this.y=1-o,this.width=s,this.height=a;break;case 270:{const[t,e]=this.parentDimensions;this.x=1-o,this.y=r,this.width=s*e/t,this.height=a*t/e;break}}const{firstPoint:l}=e;h(Op,this,[(l[0]-r)/s,(l[1]-o)/a]);const{lastPoint:u}=c(Pp,this);h(Wp,this,[(u[0]-r)/s,(u[1]-o)/a])}function Kp(t){const e=(t,e)=>{this.color=t,this.opacity=e,this.onUpdatedColor()},n=this.color,i=this.opacity;this.addCommands({cmd:e.bind(this,t,F._defaultOpacity),undo:e.bind(this,n,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:q.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(t)},!0)}function Yp(t){const e=c(Up,this),n=t=>{h(Up,this,t),l(Vp,this,Zp).call(this,t)};this.addCommands({cmd:n.bind(this,t),undo:n.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:q.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:t},!0)}function Zp(t){c(Lp,this)&&(l(Vp,this,Xp).call(this,{highlightOutlines:c(Ip,this).getNewOutline(t/2)}),this.fixAndSetPosition(),this.setDims(this.width,this.height))}function Qp(){null!==c(Np,this)&&this.parent&&(this.parent.drawLayer.remove(c(Np,this)),h(Np,this,null),this.parent.drawLayer.remove(c(zp,this)),h(zp,this,null))}function Jp(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parent;null===c(Np,this)&&(({id:i(h,[Np,this])._,clipPathId:i(h,[Mp,this])._}=t.drawLayer.draw({bbox:c(Ip,this).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:c(Lp,this)},path:{d:c(Ip,this).toSVGPath()}},!1,!0)),h(zp,this,t.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:c(Lp,this)},bbox:c(Pp,this).box,path:{d:c(Pp,this).toSVGPath()}},c(Lp,this))),c(Bp,this)&&(c(Bp,this).style.clipPath=c(Mp,this)))}function $p(t,e){let[n,i,r,o]=t;switch(e){case 90:return[1-i-o,n,o,r];case 180:return[1-n-r,1-i-o,r,o];case 270:return[i,1-n-r,o,r]}return[n,i,r,o]}function tg(t){F._keyboardManager.exec(this,t)}function eg(t){if(!c(Fp,this))return;const e=window.getSelection();t?e.setPosition(c(Fp,this),c(Ep,this)):e.setPosition(c(_p,this),c(Rp,this))}function ng(){return c(Lp,this)?this.rotation:0}function ig(){if(c(Lp,this))return null;const[t,e]=this.pageDimensions,[n,i]=this.pageTranslation,r=c(kp,this),o=new Float32Array(8*r.length);let s=0;for(const{x:a,y:l,width:u,height:c}of r){const r=a*t+n,h=(1-l)*e+i;o[s]=o[s+4]=r,o[s+1]=o[s+3]=h,o[s+2]=o[s+6]=r+u*t,o[s+5]=o[s+7]=h-c*e,s+=8}return o}function rg(t){return c(Ip,this).serialize(t,l(Vp,this,ng).call(this))}function og(t,e){this._freeHighlight.add(e)&&t.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}function sg(t,e){this._freeHighlight.isEmpty()?t.drawLayer.remove(this._freeHighlightId):t.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}function ag(t){const{color:e}=this._initialData;return this.hasEditedComment||t.color.some((t,n)=>t!==e[n])}F=Hp,(0,T.A)(Hp,"_defaultColor",null),(0,T.A)(Hp,"_defaultOpacity",1),(0,T.A)(Hp,"_defaultThickness",12),(0,T.A)(Hp,"_type","highlight"),(0,T.A)(Hp,"_editorType",H.HIGHLIGHT),(0,T.A)(Hp,"_freeHighlightId",-1),(0,T.A)(Hp,"_freeHighlight",null),(0,T.A)(Hp,"_freeHighlightClipId","");var lg=new WeakMap;class ug{constructor(){a(this,lg,Object.create(null))}updateProperty(t,e){this[t]=e,this.updateSVGProperty(t,e)}updateProperties(t){if(t)for(const[e,n]of Object.entries(t))e.startsWith("_")||this.updateProperty(e,n)}updateSVGProperty(t,e){c(lg,this)[t]=e}toSVGProperties(){const t=c(lg,this);return h(lg,this,Object.create(null)),{root:t}}reset(){h(lg,this,Object.create(null))}updateAll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;this.updateProperties(t)}clone(){vt("Not implemented")}}var cg=new WeakMap,hg=new WeakMap,dg=new WeakSet;class fg extends Gr{constructor(t){super(t),s(this,dg),a(this,cg,null),a(this,hg,void 0),(0,T.A)(this,"_colorPicker",null),(0,T.A)(this,"_drawId",null),h(hg,this,t.mustBeCommitted||!1),this._addOutlines(t)}onUpdatedColor(){var t;null===(t=this._colorPicker)||void 0===t||t.update(this.color),super.onUpdatedColor()}_addOutlines(t){t.drawOutlines&&(l(dg,this,pg).call(this,t),l(dg,this,vg).call(this))}static _mergeSVGProperties(t,e){const n=new Set(Object.keys(t));for(const[i,r]of Object.entries(e))n.has(i)?Object.assign(t[i],r):t[i]=r;return t}static getDefaultDrawingOptions(t){vt("Not implemented")}static get typesMap(){vt("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(t,e){const n=this.typesMap.get(t);n&&this._defaultDrawingOptions.updateProperty(n,e),this._currentParent&&(Ag._.updateProperty(n,e),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(t,e){const n=this.constructor.typesMap.get(t);n&&this._updateProperty(t,n,e)}static get defaultPropertiesToUpdate(){const t=[],e=this._defaultDrawingOptions;for(const[n,i]of this.typesMap)t.push([n,e[i]]);return t}get propertiesToUpdate(){const t=[],{_drawingOptions:e}=this;for(const[n,i]of this.constructor.typesMap)t.push([n,e[i]]);return t}_updateProperty(t,e,n){const i=this._drawingOptions,r=i[e],o=n=>{var r;i.updateProperty(e,n);const o=c(cg,this).updateProperty(e,n);o&&l(dg,this,wg).call(this,o),null===(r=this.parent)||void 0===r||r.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),t===this.colorType&&this.onUpdatedColor()};this.addCommands({cmd:o.bind(this,n),undo:o.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:t,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var t;null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(this._drawId,fg._mergeSVGProperties(c(cg,this).getPathResizingSVGProperties(l(dg,this,bg).call(this)),{bbox:l(dg,this,Dg).call(this)}))}_onResized(){var t;null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(this._drawId,fg._mergeSVGProperties(c(cg,this).getPathResizedSVGProperties(l(dg,this,bg).call(this)),{bbox:l(dg,this,Dg).call(this)}))}_onTranslating(t,e){var n;null===(n=this.parent)||void 0===n||n.drawLayer.updateProperties(this._drawId,{bbox:l(dg,this,Dg).call(this)})}_onTranslated(){var t;null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(this._drawId,fg._mergeSVGProperties(c(cg,this).getPathTranslatedSVGProperties(l(dg,this,bg).call(this),this.parentDimensions),{bbox:l(dg,this,Dg).call(this)}))}_onStartDragging(){var t;null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var t;null===(t=this.parent)||void 0===t||t.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,c(hg,this)&&(h(hg,this,!1),this.commit(),this.parent.setSelected(this),t&&this.isOnScreen&&this.div.focus())}remove(){l(dg,this,mg).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(l(dg,this,vg).call(this),l(dg,this,wg).call(this,c(cg,this).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){let e=!1;if(this.parent&&!t)this._uiManager.removeShouldRescale(this),l(dg,this,mg).call(this);else if(t){var n;this._uiManager.addShouldRescale(this),l(dg,this,vg).call(this,t),e=!this.parent&&(null===(n=this.div)||void 0===n?void 0:n.classList.contains("selectedEditor"))}super.setParent(t),e&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,fg._mergeSVGProperties({bbox:l(dg,this,Dg).call(this)},c(cg,this).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&l(dg,this,wg).call(this,c(cg,this).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let t,e;this._isCopy&&(t=this.x,e=this.y);const n=super.render();n.classList.add("draw");const i=document.createElement("div");return n.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(t,e),n}static createDrawerInstance(t,e,n,i,r){vt("Not implemented")}static startDrawing(t,e,n,i){var r,o;const{target:s,offsetX:a,offsetY:l,pointerId:u,pointerType:c}=i;if(Fg._&&Fg._!==c)return;const{viewport:{rotation:h}}=t,{width:d,height:f}=s.getBoundingClientRect(),p=xg._=new AbortController,g=t.combinedSignal(p);Sg._||(Sg._=u),null!==(r=Fg._)&&void 0!==r||(Fg._=c),window.addEventListener("pointerup",t=>{var e;Sg._===t.pointerId?this._endDraw(t):null===(e=Eg._)||void 0===e||e.delete(t.pointerId)},{signal:g}),window.addEventListener("pointercancel",t=>{var e;Sg._===t.pointerId?this._currentParent.endDrawingSession():null===(e=Eg._)||void 0===e||e.delete(t.pointerId)},{signal:g}),window.addEventListener("pointerdown",t=>{Fg._===t.pointerType&&((Eg._||(Eg._=new Set)).add(t.pointerId),Ag._.isCancellable()&&(Ag._.removeLastElement(),Ag._.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:g}),window.addEventListener("contextmenu",$t,{signal:g}),s.addEventListener("pointermove",this._drawMove.bind(this),{signal:g}),s.addEventListener("touchmove",t=>{t.timeStamp===kg._&&te(t)},{signal:g}),t.toggleDrawing(),null===(o=e._editorUndoBar)||void 0===o||o.hide(),Ag._?t.drawLayer.updateProperties(this._currentDrawId,Ag._.startNew(a,l,d,f,h)):(e.updateUIForDefaultProperties(this),Ag._=this.createDrawerInstance(a,l,d,f,h),Cg._=this.getDefaultDrawingOptions(),this._currentParent=t,({id:this._currentDrawId}=t.drawLayer.draw(this._mergeSVGProperties(Cg._.toSVGProperties(),Ag._.defaultSVGProperties),!0,!1)))}static _drawMove(t){var e;if(kg._=-1,!Ag._)return;const{offsetX:n,offsetY:i,pointerId:r}=t;Sg._===r&&((null===(e=Eg._)||void 0===e?void 0:e.size)>=1?this._endDraw(t):(this._currentParent.drawLayer.updateProperties(this._currentDrawId,Ag._.add(n,i)),kg._=t.timeStamp,te(t)))}static _cleanup(t){t&&(this._currentDrawId=-1,this._currentParent=null,Ag._=null,Cg._=null,Fg._=null,kg._=NaN),xg._&&(xg._.abort(),xg._=null,Sg._=NaN,Eg._=null)}static _endDraw(t){const e=this._currentParent;if(e){if(e.toggleDrawing(!0),this._cleanup(!1),(null===t||void 0===t?void 0:t.target)===e.div&&e.drawLayer.updateProperties(this._currentDrawId,Ag._.end(t.offsetX,t.offsetY)),this.supportMultipleDrawings){const t=Ag._,n=this._currentDrawId,i=t.getLastElement();return void e.addCommands({cmd:()=>{e.drawLayer.updateProperties(n,t.setLastElement(i))},undo:()=>{e.drawLayer.updateProperties(n,t.removeLastElement())},mustExec:!1,type:q.DRAW_STEP})}this.endDrawing(!1)}}static endDrawing(t){const e=this._currentParent;if(!e)return null;if(e.toggleDrawing(!0),e.cleanUndoStack(q.DRAW_STEP),!Ag._.isEmpty()){const{pageDimensions:[n,i],scale:r}=e,o=e.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:Ag._.getOutlines(n*r,i*r,r,this._INNER_MARGIN),drawingOptions:Cg._,mustBeCommitted:!t});return this._cleanup(!0),o}return e.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(t){}static deserializeDraw(t,e,n,i,r,o){vt("Not implemented")}static async deserialize(t,e,n){const{rawDims:{pageWidth:i,pageHeight:r,pageX:o,pageY:s}}=e.viewport,a=this.deserializeDraw(o,s,i,r,this._INNER_MARGIN,t),u=await super.deserialize(t,e,n);return u.createDrawingOptions(t),l(dg,u,pg).call(u,{drawOutlines:a}),l(dg,u,vg).call(u),u.onScaleChanging(),u.rotate(),u}serializeDraw(t){const[e,n]=this.pageTranslation,[i,r]=this.pageDimensions;return c(cg,this).serialize([e,n,i,r],t)}renderAnnotationElement(t){return t.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}}function pg(t){let{drawOutlines:e,drawId:n,drawingOptions:i}=t;h(cg,this,e),this._drawingOptions||(this._drawingOptions=i),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-".concat(this.editorType,"-added-alert")),n>=0?(this._drawId=n,this.parent.drawLayer.finalizeDraw(n,e.defaultProperties)):this._drawId=l(dg,this,gg).call(this,e,this.parent),l(dg,this,wg).call(this,e.box)}function gg(t,e){const{id:n}=e.drawLayer.draw(E._mergeSVGProperties(this._drawingOptions.toSVGProperties(),t.defaultSVGProperties),!1,!1);return n}function mg(){null!==this._drawId&&this.parent&&(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}function vg(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parent;null!==this._drawId&&this.parent===t||(null===this._drawId?(this._drawingOptions.updateAll(),this._drawId=l(dg,this,gg).call(this,c(cg,this),t)):this.parent.drawLayer.updateParent(this._drawId,t.drawLayer))}function yg(t){let[e,n,i,r]=t;const{parentDimensions:[o,s],rotation:a}=this;switch(a){case 90:return[n,1-e,i*(s/o),r*(o/s)];case 180:return[1-e,1-n,i,r];case 270:return[1-n,e,i*(s/o),r*(o/s)];default:return[e,n,i,r]}}function bg(){const{x:t,y:e,width:n,height:i,parentDimensions:[r,o],rotation:s}=this;switch(s){case 90:return[1-e,t,n*(r/o),i*(o/r)];case 180:return[1-t,1-e,n,i];case 270:return[e,1-t,n*(r/o),i*(o/r)];default:return[t,e,n,i]}}function wg(t){[this.x,this.y,this.width,this.height]=l(dg,this,yg).call(this,t),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()}function Dg(){const{x:t,y:e,width:n,height:i,rotation:r,parentRotation:o,parentDimensions:[s,a]}=this;switch((4*r+o)/90){case 1:return[1-e-i,t,i,n];case 2:return[1-t-n,1-e-i,n,i];case 3:return[e,1-t-n,i,n];case 4:return[t,e-n*(s/a),i*(a/s),n*(s/a)];case 5:return[1-e,t,n*(s/a),i*(a/s)];case 6:return[1-t-i*(a/s),1-e,i*(a/s),n*(s/a)];case 7:return[e-n*(s/a),1-t-i*(a/s),n*(s/a),i*(a/s)];case 8:return[t-n,e-i,n,i];case 9:return[1-e,t-n,i,n];case 10:return[1-t,1-e,n,i];case 11:return[e-i,1-t,i,n];case 12:return[t-i*(a/s),e,i*(a/s),n*(s/a)];case 13:return[1-e-n*(s/a),t-i*(a/s),n*(s/a),i*(a/s)];case 14:return[1-t,1-e-n*(s/a),i*(a/s),n*(s/a)];case 15:return[e,1-t,n*(s/a),i*(a/s)];default:return[t,e,n,i]}}E=fg,(0,T.A)(fg,"_currentDrawId",-1),(0,T.A)(fg,"_currentParent",null);var Ag={_:null},xg={_:null},Cg={_:null},Sg={_:NaN},Fg={_:null},Eg={_:null},kg={_:NaN};(0,T.A)(fg,"_INNER_MARGIN",3);var Mg=new WeakMap,Tg=new WeakMap,Pg=new WeakMap,_g=new WeakMap,Rg=new WeakMap,Bg=new WeakMap,Ig=new WeakMap,Ng=new WeakMap,Lg=new WeakMap,Og=new WeakMap,Wg=new WeakMap,zg=new WeakSet;class jg{constructor(t,e,n,i,r,o){s(this,zg),a(this,Mg,new Float64Array(6)),a(this,Tg,void 0),a(this,Pg,void 0),a(this,_g,void 0),a(this,Rg,void 0),a(this,Bg,void 0),a(this,Ig,""),a(this,Ng,0),a(this,Lg,new $g),a(this,Og,void 0),a(this,Wg,void 0),h(Og,this,n),h(Wg,this,i),h(_g,this,r),h(Rg,this,o),[t,e]=l(zg,this,Ug).call(this,t,e);const u=h(Tg,this,[NaN,NaN,NaN,NaN,t,e]);h(Bg,this,[t,e]),h(Pg,this,[{line:u,points:c(Bg,this)}]),c(Mg,this).set(u,0)}updateProperty(t,e){"stroke-width"===t&&h(Rg,this,e)}isEmpty(){return!c(Pg,this)||0===c(Pg,this).length}isCancellable(){return c(Bg,this).length<=10}add(t,e){[t,e]=l(zg,this,Ug).call(this,t,e);const[n,i,r,o]=c(Mg,this).subarray(2,6),s=t-r,a=e-o;return Math.hypot(c(Og,this)*s,c(Wg,this)*a)<=2?null:(c(Bg,this).push(t,e),isNaN(n)?(c(Mg,this).set([r,o,t,e],2),c(Tg,this).push(NaN,NaN,NaN,NaN,t,e),{path:{d:this.toSVGPath()}}):(isNaN(c(Mg,this)[0])&&c(Tg,this).splice(6,6),c(Mg,this).set([n,i,r,o,t,e],0),c(Tg,this).push(...kf.createBezierPoints(n,i,r,o,t,e)),{path:{d:this.toSVGPath()}}))}end(t,e){const n=this.add(t,e);return n||(2===c(Bg,this).length?{path:{d:this.toSVGPath()}}:null)}startNew(t,e,n,i,r){h(Og,this,n),h(Wg,this,i),h(_g,this,r),[t,e]=l(zg,this,Ug).call(this,t,e);const o=h(Tg,this,[NaN,NaN,NaN,NaN,t,e]);h(Bg,this,[t,e]);const s=c(Pg,this).at(-1);return s&&(s.line=new Float32Array(s.line),s.points=new Float32Array(s.points)),c(Pg,this).push({line:o,points:c(Bg,this)}),c(Mg,this).set(o,0),h(Ng,this,0),this.toSVGPath(),null}getLastElement(){return c(Pg,this).at(-1)}setLastElement(t){return c(Pg,this)?(c(Pg,this).push(t),h(Tg,this,t.line),h(Bg,this,t.points),h(Ng,this,0),{path:{d:this.toSVGPath()}}):c(Lg,this).setLastElement(t)}removeLastElement(){if(!c(Pg,this))return c(Lg,this).removeLastElement();c(Pg,this).pop(),h(Ig,this,"");for(let t=0,e=c(Pg,this).length;t<e;t++){const{line:e,points:n}=c(Pg,this)[t];h(Tg,this,e),h(Bg,this,n),h(Ng,this,0),this.toSVGPath()}return{path:{d:c(Ig,this)}}}toSVGPath(){const t=kf.svgRound(c(Tg,this)[4]),e=kf.svgRound(c(Tg,this)[5]);if(2===c(Bg,this).length)return h(Ig,this,"".concat(c(Ig,this)," M ").concat(t," ").concat(e," Z")),c(Ig,this);if(c(Bg,this).length<=6){const n=c(Ig,this).lastIndexOf("M");h(Ig,this,"".concat(c(Ig,this).slice(0,n)," M ").concat(t," ").concat(e)),h(Ng,this,6)}if(4===c(Bg,this).length){const t=kf.svgRound(c(Tg,this)[10]),e=kf.svgRound(c(Tg,this)[11]);return h(Ig,this,"".concat(c(Ig,this)," L ").concat(t," ").concat(e)),h(Ng,this,12),c(Ig,this)}const n=[];0===c(Ng,this)&&(n.push("M ".concat(t," ").concat(e)),h(Ng,this,6));for(let i=c(Ng,this),r=c(Tg,this).length;i<r;i+=6){const[t,e,r,o,s,a]=c(Tg,this).slice(i,i+6).map(kf.svgRound);n.push("C".concat(t," ").concat(e," ").concat(r," ").concat(o," ").concat(s," ").concat(a))}return h(Ig,this,c(Ig,this)+n.join(" ")),h(Ng,this,c(Tg,this).length),c(Ig,this)}getOutlines(t,e,n,i){const r=c(Pg,this).at(-1);return r.line=new Float32Array(r.line),r.points=new Float32Array(r.points),c(Lg,this).build(c(Pg,this),t,e,n,c(_g,this),c(Rg,this),i),h(Mg,this,null),h(Tg,this,null),h(Pg,this,null),h(Ig,this,null),c(Lg,this)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}function Ug(t,e){return kf._normalizePoint(t,e,c(Og,this),c(Wg,this),c(_g,this))}var Gg=new WeakMap,Vg=new WeakMap,Hg=new WeakMap,qg=new WeakMap,Xg=new WeakMap,Kg=new WeakMap,Yg=new WeakMap,Zg=new WeakMap,Qg=new WeakMap,Jg=new WeakSet;class $g extends kf{constructor(){super(...arguments),s(this,Jg),a(this,Gg,void 0),a(this,Vg,0),a(this,Hg,void 0),a(this,qg,void 0),a(this,Xg,void 0),a(this,Kg,void 0),a(this,Yg,void 0),a(this,Zg,void 0),a(this,Qg,void 0)}build(t,e,n,i,r,o,s){h(Xg,this,e),h(Kg,this,n),h(Yg,this,i),h(Zg,this,r),h(Qg,this,o),h(Hg,this,null!==s&&void 0!==s?s:0),h(qg,this,t),l(Jg,this,nm).call(this)}get thickness(){return c(Qg,this)}setLastElement(t){return c(qg,this).push(t),{path:{d:this.toSVGPath()}}}removeLastElement(){return c(qg,this).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const t=[];for(const{line:e}of c(qg,this))if(t.push("M".concat(kf.svgRound(e[4])," ").concat(kf.svgRound(e[5]))),6!==e.length)if(12===e.length&&isNaN(e[6]))t.push("L".concat(kf.svgRound(e[10])," ").concat(kf.svgRound(e[11])));else for(let n=6,i=e.length;n<i;n+=6){const[i,r,o,s,a,l]=e.subarray(n,n+6).map(kf.svgRound);t.push("C".concat(i," ").concat(r," ").concat(o," ").concat(s," ").concat(a," ").concat(l))}else t.push("Z");return t.join("")}serialize(t,e){let[n,i,r,o]=t;const s=[],a=[],[u,h,d,f]=l(Jg,this,em).call(this);let p,g,m,v,y,b,w,D,A;switch(c(Zg,this)){case 0:A=kf._rescale,p=n,g=i+o,m=r,v=-o,y=n+u*r,b=i+(1-h-f)*o,w=n+(u+d)*r,D=i+(1-h)*o;break;case 90:A=kf._rescaleAndSwap,p=n,g=i,m=r,v=o,y=n+h*r,b=i+u*o,w=n+(h+f)*r,D=i+(u+d)*o;break;case 180:A=kf._rescale,p=n+r,g=i,m=-r,v=o,y=n+(1-u-d)*r,b=i+h*o,w=n+(1-u)*r,D=i+(h+f)*o;break;case 270:A=kf._rescaleAndSwap,p=n+r,g=i+o,m=-r,v=-o,y=n+(1-h-f)*r,b=i+(1-u-d)*o,w=n+(1-h)*r,D=i+(1-u)*o}for(const{line:l,points:x}of c(qg,this))s.push(A(l,p,g,m,v,e?new Array(l.length):null)),a.push(A(x,p,g,m,v,e?new Array(x.length):null));return{lines:s,points:a,rect:[y,b,w,D]}}static deserialize(t,e,n,i,r,o){let{paths:{lines:s,points:a},rotation:l,thickness:u}=o;const c=[];let h,d,f,p,g;switch(l){case 0:g=kf._rescale,h=-t/n,d=e/i+1,f=1/n,p=-1/i;break;case 90:g=kf._rescaleAndSwap,h=-e/i,d=-t/n,f=1/i,p=1/n;break;case 180:g=kf._rescale,h=t/n+1,d=-e/i,f=-1/n,p=1/i;break;case 270:g=kf._rescaleAndSwap,h=e/i+1,d=t/n+1,f=-1/i,p=-1/n}if(!s){s=[];for(const t of a){const e=t.length;if(2===e){s.push(new Float32Array([NaN,NaN,NaN,NaN,t[0],t[1]]));continue}if(4===e){s.push(new Float32Array([NaN,NaN,NaN,NaN,t[0],t[1],NaN,NaN,NaN,NaN,t[2],t[3]]));continue}const n=new Float32Array(3*(e-2));s.push(n);let[i,r,o,a]=t.subarray(0,4);n.set([NaN,NaN,NaN,NaN,i,r],0);for(let s=4;s<e;s+=2){const e=t[s],l=t[s+1];n.set(kf.createBezierPoints(i,r,o,a,e,l),3*(s-2)),[i,r,o,a]=[o,a,e,l]}}}for(let v=0,y=s.length;v<y;v++)c.push({line:g(s[v].map(t=>null!==t&&void 0!==t?t:NaN),h,d,f,p),points:g(a[v].map(t=>null!==t&&void 0!==t?t:NaN),h,d,f,p)});const m=new this.prototype.constructor;return m.build(c,n,i,1,l,u,r),m}get box(){return c(Gg,this)}updateProperty(t,e){return"stroke-width"===t?l(Jg,this,im).call(this,e):null}updateParentDimensions(t,e){let[n,i]=t;const[r,o]=l(Jg,this,tm).call(this);h(Xg,this,n),h(Kg,this,i),h(Yg,this,e);const[s,a]=l(Jg,this,tm).call(this),u=s-r,d=a-o,f=c(Gg,this);return f[0]-=u,f[1]-=d,f[2]+=2*u,f[3]+=2*d,f}updateRotation(t){return h(Vg,this,t),{path:{transform:this.rotationTransform}}}get viewBox(){return c(Gg,this).map(kf.svgRound).join(" ")}get defaultProperties(){const[t,e]=c(Gg,this);return{root:{viewBox:this.viewBox},path:{"transform-origin":"".concat(kf.svgRound(t)," ").concat(kf.svgRound(e))}}}get rotationTransform(){const[,,t,e]=c(Gg,this);let n=0,i=0,r=0,o=0,s=0,a=0;switch(c(Vg,this)){case 90:i=e/t,r=-t/e,s=t;break;case 180:n=-1,o=-1,s=t,a=e;break;case 270:i=-e/t,r=t/e,a=e;break;default:return""}return"matrix(".concat(n," ").concat(i," ").concat(r," ").concat(o," ").concat(kf.svgRound(s)," ").concat(kf.svgRound(a),")")}getPathResizingSVGProperties(t){let[e,n,i,r]=t;const[o,s]=l(Jg,this,tm).call(this),[a,u,h,d]=c(Gg,this);if(Math.abs(h-o)<=kf.PRECISION||Math.abs(d-s)<=kf.PRECISION){const t=e+i/2-(a+h/2),o=n+r/2-(u+d/2);return{path:{"transform-origin":"".concat(kf.svgRound(e)," ").concat(kf.svgRound(n)),transform:"".concat(this.rotationTransform," translate(").concat(t," ").concat(o,")")}}}const f=(i-2*o)/(h-2*o),p=(r-2*s)/(d-2*s),g=h/i,m=d/r;return{path:{"transform-origin":"".concat(kf.svgRound(a)," ").concat(kf.svgRound(u)),transform:"".concat(this.rotationTransform," scale(").concat(g," ").concat(m,") ")+"translate(".concat(kf.svgRound(o)," ").concat(kf.svgRound(s),") scale(").concat(f," ").concat(p,") ")+"translate(".concat(kf.svgRound(-o)," ").concat(kf.svgRound(-s),")")}}}getPathResizedSVGProperties(t){let[e,n,i,r]=t;const[o,s]=l(Jg,this,tm).call(this),a=c(Gg,this),[u,h,d,f]=a;if(a[0]=e,a[1]=n,a[2]=i,a[3]=r,Math.abs(d-o)<=kf.PRECISION||Math.abs(f-s)<=kf.PRECISION){const t=e+i/2-(u+d/2),o=n+r/2-(h+f/2);for(const{line:e,points:n}of c(qg,this))kf._translate(e,t,o,e),kf._translate(n,t,o,n);return{root:{viewBox:this.viewBox},path:{"transform-origin":"".concat(kf.svgRound(e)," ").concat(kf.svgRound(n)),transform:this.rotationTransform||null,d:this.toSVGPath()}}}const p=(i-2*o)/(d-2*o),g=(r-2*s)/(f-2*s),m=-p*(u+o)+e+o,v=-g*(h+s)+n+s;if(1!==p||1!==g||0!==m||0!==v)for(const{line:l,points:y}of c(qg,this))kf._rescale(l,m,v,p,g,l),kf._rescale(y,m,v,p,g,y);return{root:{viewBox:this.viewBox},path:{"transform-origin":"".concat(kf.svgRound(e)," ").concat(kf.svgRound(n)),transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties(t,e){let[n,i]=t;const[r,o]=e,s=c(Gg,this),a=n-s[0],l=i-s[1];if(c(Xg,this)===r&&c(Kg,this)===o)for(const{line:u,points:h}of c(qg,this))kf._translate(u,a,l,u),kf._translate(h,a,l,h);else{const t=c(Xg,this)/r,e=c(Kg,this)/o;h(Xg,this,r),h(Kg,this,o);for(const{line:n,points:i}of c(qg,this))kf._rescale(n,a,l,t,e,n),kf._rescale(i,a,l,t,e,i);s[2]*=t,s[3]*=e}return s[0]=n,s[1]=i,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":"".concat(kf.svgRound(n)," ").concat(kf.svgRound(i))}}}get defaultSVGProperties(){const t=c(Gg,this);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":"".concat(kf.svgRound(t[0])," ").concat(kf.svgRound(t[1])),transform:this.rotationTransform||null},bbox:t}}}function tm(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c(Qg,this);const e=c(Hg,this)+t/2*c(Yg,this);return c(Zg,this)%180===0?[e/c(Xg,this),e/c(Kg,this)]:[e/c(Kg,this),e/c(Xg,this)]}function em(){const[t,e,n,i]=c(Gg,this),[r,o]=l(Jg,this,tm).call(this,0);return[t+r,e+o,n-2*r,i-2*o]}function nm(){const t=h(Gg,this,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:i}of c(qg,this)){if(i.length<=12){for(let e=4,n=i.length;e<n;e+=6)Rt.pointBoundingBox(i[e],i[e+1],t);continue}let e=i[4],n=i[5];for(let r=6,o=i.length;r<o;r+=6){const[o,s,a,l,u,c]=i.subarray(r,r+6);Rt.bezierBoundingBox(e,n,o,s,a,l,u,c,t),e=u,n=c}}const[e,n]=l(Jg,this,tm).call(this);t[0]=zt(t[0]-e,0,1),t[1]=zt(t[1]-n,0,1),t[2]=zt(t[2]+e,0,1),t[3]=zt(t[3]+n,0,1),t[2]-=t[0],t[3]-=t[1]}function im(t){const[e,n]=l(Jg,this,tm).call(this);h(Qg,this,t);const[i,r]=l(Jg,this,tm).call(this),[o,s]=[i-e,r-n],a=c(Gg,this);return a[0]-=o,a[1]-=s,a[2]+=2*o,a[3]+=2*s,a}class rm extends ug{constructor(t){super(),this._viewParameters=t,super.updateProperties({fill:"none",stroke:Gr._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(t,e){"stroke-width"===t&&(null!==e&&void 0!==e||(e=this["stroke-width"]),e*=this._viewParameters.realScale),super.updateSVGProperty(t,e)}clone(){const t=new rm(this._viewParameters);return t.updateAll(this),t}}var om=new WeakSet;class sm extends fg{constructor(t){super((0,r.A)((0,r.A)({},t),{},{name:"inkEditor"})),s(this,om),this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(t,e){Gr.initialize(t,e),this._defaultDrawingOptions=new rm(e.viewParameters)}static getDefaultDrawingOptions(t){const e=this._defaultDrawingOptions.clone();return e.updateProperties(t),e}static get supportMultipleDrawings(){return!0}static get typesMap(){return Dt(this,"typesMap",new Map([[q.INK_THICKNESS,"stroke-width"],[q.INK_COLOR,"stroke"],[q.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(t,e,n,i,r){return new jg(t,e,n,i,r,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(t,e,n,i,r,o){return $g.deserialize(t,e,n,i,r,o)}static async deserialize(t,e,n){let i=null;if(t instanceof Vd){const{data:{inkLists:e,rect:n,rotation:r,id:o,color:s,opacity:a,borderStyle:{rawWidth:l},popupRef:u,richText:c,contentsObj:h,creationDate:d,modificationDate:f},parent:{page:{pageNumber:p}}}=t;i=t={annotationType:H.INK,color:Array.from(s),thickness:l,opacity:a,paths:{points:e},boxes:null,pageIndex:p-1,rect:n.slice(0),rotation:r,annotationElementId:o,id:o,deleted:!1,popupRef:u,richText:c,comment:(null===h||void 0===h?void 0:h.str)||null,creationDate:d,modificationDate:f}}const r=await super.deserialize(t,e,n);return r._initialData=i,t.comment&&r.setCommentData(t),r}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new ch(this)),[["colorPicker",this._colorPicker]]}get colorType(){return q.INK_COLOR}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:t,_drawingOptions:e,parent:n}=this;e.updateSVGProperty("stroke-width"),n.drawLayer.updateProperties(t,e.toSVGProperties())}static onScaleChangingWhenDrawing(){const t=this._currentParent;t&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),t.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions(t){let{color:e,thickness:n,opacity:i}=t;this._drawingOptions=sm.getDefaultDrawingOptions({stroke:Rt.makeHexColor(...e),"stroke-width":n,"stroke-opacity":i})}serialize(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:e,points:n}=this.serializeDraw(t),{_drawingOptions:{stroke:i,"stroke-opacity":r,"stroke-width":o}}=this,s=Object.assign(super.serialize(t),{color:Gr._colorManager.convert(i),opacity:r,thickness:o,paths:{lines:e,points:n}});return this.addComment(s),t?(s.isCopy=!0,s):this.annotationElementId&&!l(om,this,am).call(this,s)?null:(s.id=this.annotationElementId,s)}renderAnnotationElement(t){if(this.deleted)return t.hide(),null;const{points:e,rect:n}=this.serializeDraw(!1);return t.updateEdited({rect:n,thickness:this._drawingOptions["stroke-width"],points:e,popup:this.comment}),null}}function am(t){const{color:e,thickness:n,opacity:i,pageIndex:r}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||t.color.some((t,n)=>t!==e[n])||t.thickness!==n||t.opacity!==i||t.pageIndex!==r}(0,T.A)(sm,"_type","ink"),(0,T.A)(sm,"_editorType",H.INK),(0,T.A)(sm,"_defaultDrawingOptions",null);class lm extends $g{toSVGPath(){let t=super.toSVGPath();return t.endsWith("Z")||(t+="Z"),t}}class um{static extractContoursFromText(t,e,n,i,r,o){let{fontFamily:s,fontStyle:a,fontWeight:u}=e,c=new OffscreenCanvas(1,1),h=c.getContext("2d",{alpha:!1});const d=h.font="".concat(a," ").concat(u," ").concat(200,"px ").concat(s),{actualBoundingBoxLeft:f,actualBoundingBoxRight:p,actualBoundingBoxAscent:g,actualBoundingBoxDescent:m,fontBoundingBoxAscent:v,fontBoundingBoxDescent:y,width:b}=h.measureText(t),w=1.5,D=Math.ceil(Math.max(Math.abs(f)+Math.abs(p)||0,b)*w),A=Math.ceil(Math.max(Math.abs(g)+Math.abs(m)||200,Math.abs(v)+Math.abs(y)||200)*w);c=new OffscreenCanvas(D,A),h=c.getContext("2d",{alpha:!0,willReadFrequently:!0}),h.font=d,h.filter="grayscale(1)",h.fillStyle="white",h.fillRect(0,0,D,A),h.fillStyle="black",h.fillText(t,.5*D/2,1.5*A/2);const x=l(um,this,ym).call(this,h.getImageData(0,0,D,A).data),C=l(um,this,vm).call(this,x),S=l(um,this,bm).call(this,C),F=l(um,this,fm).call(this,x,D,A,S);return this.processDrawnLines({lines:{curves:F,width:D,height:A},pageWidth:n,pageHeight:i,rotation:r,innerMargin:o,mustSmooth:!0,areContours:!0})}static process(t,e,n,i,r){const[o,s,a]=l(um,this,wm).call(this,t),[u,c]=l(um,this,mm).call(this,o,s,a,Math.hypot(s,a)*l(um,this,Dm)._.sigmaSFactor,l(um,this,Dm)._.sigmaR,l(um,this,Dm)._.kernelSize),h=l(um,this,bm).call(this,c),d=l(um,this,fm).call(this,u,s,a,h);return this.processDrawnLines({lines:{curves:d,width:s,height:a},pageWidth:e,pageHeight:n,rotation:i,innerMargin:r,mustSmooth:!0,areContours:!0})}static processDrawnLines(t){var e;let{lines:n,pageWidth:i,pageHeight:r,rotation:o,innerMargin:s,mustSmooth:a,areContours:u}=t;o%180!==0&&([i,r]=[r,i]);const{curves:c,width:h,height:d}=n,f=null!==(e=n.thickness)&&void 0!==e?e:0,p=[],g=Math.min(i/h,r/d),m=g/i,v=g/r,y=[];for(const{points:w}of c){const t=a?l(um,this,gm).call(this,w):w;if(!t)continue;y.push(t);const e=t.length,n=new Float32Array(e),i=new Float32Array(3*(2===e?2:e-2));if(p.push({line:i,points:n}),2===e){n[0]=t[0]*m,n[1]=t[1]*v,i.set([NaN,NaN,NaN,NaN,n[0],n[1]],0);continue}let[r,o,s,u]=t;r*=m,o*=v,s*=m,u*=v,n.set([r,o,s,u],0),i.set([NaN,NaN,NaN,NaN,r,o],0);for(let a=4;a<e;a+=2){const e=n[a]=t[a]*m,l=n[a+1]=t[a+1]*v;i.set(kf.createBezierPoints(r,o,s,u,e,l),3*(a-2)),[r,o,s,u]=[s,u,e,l]}}if(0===p.length)return null;const b=u?new lm:new $g;return b.build(p,i,r,1,o,u?0:f,s),{outline:b,newCurves:y,areContours:u,thickness:f,width:h,height:d}}static async compressSignature(t){let e,{outlines:n,areContours:i,thickness:r,width:o,height:s}=t,a=1/0,l=-1/0,u=0;for(const y of n){u+=y.length;for(let t=2,e=y.length;t<e;t++){const e=y[t]-y[t-2];a=Math.min(a,e),l=Math.max(l,e)}}e=a>=-128&&l<=127?Int8Array:a>=-32768&&l<=32767?Int16Array:Int32Array;const c=n.length,h=8+3*c,d=new Uint32Array(h);let f=0;d[f++]=h*Uint32Array.BYTES_PER_ELEMENT+(u-2*c)*e.BYTES_PER_ELEMENT,d[f++]=0,d[f++]=o,d[f++]=s,d[f++]=i?0:1,d[f++]=Math.max(0,Math.floor(null!==r&&void 0!==r?r:0)),d[f++]=c,d[f++]=e.BYTES_PER_ELEMENT;for(const y of n)d[f++]=y.length-2,d[f++]=y[0],d[f++]=y[1];const p=new CompressionStream("deflate-raw"),g=p.writable.getWriter();await g.ready,g.write(d);const m=e.prototype.constructor;for(const y of n){const t=new m(y.length-2);for(let e=2,n=y.length;e<n;e++)t[e-2]=y[e]-y[e-2];g.write(t)}g.close();const v=await new Response(p.readable).arrayBuffer();return jt(new Uint8Array(v))}static async decompressSignature(t){try{const l=(s=t,Uint8Array.fromBase64?Uint8Array.fromBase64(s):Tt(atob(s))),{readable:u,writable:c}=new DecompressionStream("deflate-raw"),h=c.getWriter();await h.ready,h.write(l).then(async()=>{await h.ready,await h.close()}).catch(()=>{});let d=null,f=0;var e,n=!1,i=!1;try{for(var r,o=(0,P.A)(u);n=!(r=await o.next()).done;n=!1){const t=r.value;d||(d=new Uint8Array(new Uint32Array(t.buffer,0,4)[0])),d.set(t,f),f+=t.length}}catch(a){i=!0,e=a}finally{try{n&&null!=o.return&&await o.return()}finally{if(i)throw e}}const p=new Uint32Array(d.buffer,0,d.length>>2),g=p[1];if(0!==g)throw new Error("Invalid version: ".concat(g));const m=p[2],v=p[3],y=0===p[4],b=p[5],w=p[6],D=p[7],A=[],x=(8+3*w)*Uint32Array.BYTES_PER_ELEMENT;let C;switch(D){case Int8Array.BYTES_PER_ELEMENT:C=new Int8Array(d.buffer,x);break;case Int16Array.BYTES_PER_ELEMENT:C=new Int16Array(d.buffer,x);break;case Int32Array.BYTES_PER_ELEMENT:C=new Int32Array(d.buffer,x)}f=0;for(let t=0;t<w;t++){const e=p[3*t+8],n=new Float32Array(e+2);A.push(n);for(let i=0;i<2;i++)n[i]=p[3*t+8+i+1];for(let t=0;t<e;t++)n[t+2]=n[t]+C[f++]}return{areContours:y,thickness:b,outlines:A,width:m,height:v}}catch(l){return mt("decompressSignature: ".concat(l)),null}var s}}function cm(t,e,n,i){return i-=e,0===(n-=t)?i>0?0:4:1===n?i+6:2-i}function hm(t,e,n,i,r,o,s){const a=l(k,this,cm).call(this,n,i,r,o);for(let u=0;u<8;u++){const r=(-u+a-s+16)%8;if(0!==t[(n+l(k,this,Am)._[2*r])*e+(i+l(k,this,Am)._[2*r+1])])return r}return-1}function dm(t,e,n,i,r,o,s){const a=l(k,this,cm).call(this,n,i,r,o);for(let u=0;u<8;u++){const r=(u+a+s+16)%8;if(0!==t[(n+l(k,this,Am)._[2*r])*e+(i+l(k,this,Am)._[2*r+1])])return r}return-1}function fm(t,e,n,i){const r=t.length,o=new Int32Array(r);for(let l=0;l<r;l++)o[l]=t[l]<=i?1:0;for(let l=1;l<n-1;l++)o[l*e]=o[l*e+e-1]=0;for(let l=0;l<e;l++)o[l]=o[e*n-1-l]=0;let s,a=1;const u=[];for(let c=1;c<n-1;c++){s=1;for(let t=1;t<e-1;t++){const n=c*e+t,i=o[n];if(0===i)continue;let r=c,h=t;if(1===i&&0===o[n-1])a+=1,h-=1;else{if(!(i>=1&&0===o[n+1])){1!==i&&(s=Math.abs(i));continue}a+=1,h+=1,i>1&&(s=i)}const d=[t,c],f=h===t+1,p={isHole:f,points:d,id:a,parent:0};let g;u.push(p);for(const t of u)if(t.id===s){g=t;break}g?g.isHole?p.parent=f?g.parent:s:p.parent=f?s:g.parent:p.parent=f?s:0;const m=l(k,this,hm).call(this,o,e,c,t,r,h,0);if(-1===m){o[n]=-a,1!==o[n]&&(s=Math.abs(o[n]));continue}let v=l(k,this,Am)._[2*m],y=l(k,this,Am)._[2*m+1];const b=c+v,w=t+y;r=b,h=w;let D=c,A=t;for(;;){const i=l(k,this,dm).call(this,o,e,D,A,r,h,1);v=l(k,this,Am)._[2*i],y=l(k,this,Am)._[2*i+1];const u=D+v,f=A+y;d.push(f,u);const p=D*e+A;if(0===o[p+1]?o[p]=-a:1===o[p]&&(o[p]=a),u===c&&f===t&&D===b&&A===w){1!==o[n]&&(s=Math.abs(o[n]));break}r=D,h=A,D=u,A=f}}}return u}function pm(t,e,n,i){if(n-e<=4){for(let r=e;r<n-2;r+=2)i.push(t[r],t[r+1]);return}const r=t[e],o=t[e+1],s=t[n-4]-r,a=t[n-3]-o,u=Math.hypot(s,a),c=s/u,h=a/u,d=c*o-h*r,f=a/s,p=1/u,g=Math.atan(f),m=Math.cos(g),v=Math.sin(g),y=p*(Math.abs(m)+Math.abs(v)),b=p*(1-y+y**2),w=Math.max(Math.atan(Math.abs(v+m)*b),Math.atan(Math.abs(v-m)*b));let D=0,A=e;for(let l=e+2;l<n-2;l+=2){const e=Math.abs(d-c*t[l+1]+h*t[l]);e>D&&(A=l,D=e)}D>(u*w)**2?(l(k,this,pm).call(this,t,e,A+2,i),l(k,this,pm).call(this,t,A,n,i)):i.push(r,o)}function gm(t){const e=[],n=t.length;return l(k,this,pm).call(this,t,0,n,e),e.push(t[n-2],t[n-1]),e.length<=4?null:e}function mm(t,e,n,i,r,o){const s=new Float32Array(o**2),a=-2*i**2,l=o>>1;for(let p=0;p<o;p++){const t=(p-l)**2;for(let e=0;e<o;e++)s[p*o+e]=Math.exp((t+(e-l)**2)/a)}const u=new Float32Array(256),c=-2*r**2;for(let p=0;p<256;p++)u[p]=Math.exp(p**2/c);const h=t.length,d=new Uint8Array(h),f=new Uint32Array(256);for(let p=0;p<n;p++)for(let i=0;i<e;i++){const r=p*e+i,a=t[r];let c=0,h=0;for(let d=0;d<o;d++){const r=p+d-l;if(!(r<0||r>=n))for(let n=0;n<o;n++){const f=i+n-l;if(f<0||f>=e)continue;const p=t[r*e+f],g=s[d*o+n]*u[Math.abs(p-a)];c+=p*g,h+=g}}f[d[r]=Math.round(c/h)]++}return[d,f]}function vm(t){const e=new Uint32Array(256);for(const n of t)e[n]++;return e}function ym(t){const e=t.length,n=new Uint8ClampedArray(e>>2);let i=-1/0,r=1/0;for(let s=0,a=n.length;s<a;s++){const e=n[s]=t[s<<2];i=Math.max(i,e),r=Math.min(r,e)}const o=255/(i-r);for(let s=0,a=n.length;s<a;s++)n[s]=(n[s]-r)*o;return n}function bm(t){let e,n=-1/0,i=-1/0;const r=t.findIndex(t=>0!==t);let o=r,s=r;for(e=r;e<256;e++){const r=t[e];r>n&&(e-o>i&&(i=e-o,s=e-1),n=r,o=e)}for(e=s-1;e>=0&&!(t[e]>t[e+1]);e--);return e}function wm(t){const e=t,{width:n,height:i}=t,{maxDim:r}=l(k,this,Dm)._;let o=n,s=i;if(n>r||i>r){let a=n,l=i,u=Math.log2(Math.max(n,i)/r);const c=Math.floor(u);u=u===c?c-1:c;for(let n=0;n<u;n++){o=Math.ceil(a/2),s=Math.ceil(l/2);const n=new OffscreenCanvas(o,s);n.getContext("2d").drawImage(t,0,0,a,l,0,0,o,s),a=o,l=s,t!==e&&t.close(),t=n.transferToImageBitmap()}const h=Math.min(r/o,r/s);o=Math.round(o*h),s=Math.round(s*h)}const a=new OffscreenCanvas(o,s).getContext("2d",{willReadFrequently:!0});a.fillStyle="white",a.fillRect(0,0,o,s),a.filter="grayscale(1)",a.drawImage(t,0,0,t.width,t.height,0,0,o,s);const u=a.getImageData(0,0,o,s).data;return[l(k,this,ym).call(this,u),o,s]}k=um;var Dm={_:{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}},Am={_:new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1])};class xm extends ug{constructor(){super(),super.updateProperties({fill:Gr._defaultLineColor,"stroke-width":0})}clone(){const t=new xm;return t.updateAll(this),t}}class Cm extends rm{constructor(t){super(t),super.updateProperties({stroke:Gr._defaultLineColor,"stroke-width":1})}clone(){const t=new Cm(this._viewParameters);return t.updateAll(this),t}}var Sm=new WeakMap,Fm=new WeakMap,Em=new WeakMap,km=new WeakMap;class Mm extends fg{constructor(t){super((0,r.A)((0,r.A)({},t),{},{mustBeCommitted:!0,name:"signatureEditor"})),a(this,Sm,!1),a(this,Fm,null),a(this,Em,null),a(this,km,null),this._willKeepAspectRatio=!0,h(Em,this,t.signatureData||null),h(Fm,this,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(t,e){Gr.initialize(t,e),this._defaultDrawingOptions=new xm,this._defaultDrawnSignatureOptions=new Cm(e.viewParameters)}static getDefaultDrawingOptions(t){const e=this._defaultDrawingOptions.clone();return e.updateProperties(t),e}static get supportMultipleDrawings(){return!1}static get typesMap(){return Dt(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!c(Fm,this)}}static computeTelemetryFinalData(t){var e,n;const i=t.get("hasDescription");return{hasAltText:null!==(e=i.get(!0))&&void 0!==e?e:0,hasNoAltText:null!==(n=i.get(!1))&&void 0!==n?n:0}}get isResizable(){return!0}onScaleChanging(){null!==this._drawId&&super.onScaleChanging()}render(){if(this.div)return this.div;let t,e;const{_isCopy:n}=this;if(n&&(this._isCopy=!1,t=this.x,e=this.y),super.render(),null===this._drawId)if(c(Em,this)){const{lines:t,mustSmooth:e,areContours:n,description:i,uuid:r,heightInPage:o}=c(Em,this),{rawDims:{pageWidth:s,pageHeight:a},rotation:l}=this.parent.viewport,u=um.processDrawnLines({lines:t,pageWidth:s,pageHeight:a,rotation:l,innerMargin:Mm._INNER_MARGIN,mustSmooth:e,areContours:n});this.addSignature(u,o,i,r)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:c(Fm,this)||""}));return n&&(this._isCopy=!0,this._moveAfterPaste(t,e)),this.div}setUuid(t){h(km,this,t),this.addEditToolbar()}getUuid(){return c(km,this)}get description(){return c(Fm,this)}set description(t){h(Fm,this,t),this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:t})),super.addEditToolbar().then(e=>{null===e||void 0===e||e.updateEditSignatureButton(t)}))}getSignaturePreview(){const{newCurves:t,areContours:e,thickness:n,width:i,height:r}=c(Em,this),o=Math.max(i,r);return{areContours:e,outline:um.processDrawnLines({lines:{curves:t.map(t=>({points:t})),thickness:n,width:i,height:r},pageWidth:o,pageHeight:o,rotation:0,innerMargin:0,mustSmooth:!1,areContours:e}).outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(t,e,n,i){const{x:r,y:o}=this,{outline:s}=h(Em,this,t);let a;h(Sm,this,s instanceof lm),this.description=n,c(Sm,this)?a=Mm.getDefaultDrawingOptions():(a=Mm._defaultDrawnSignatureOptions.clone(),a.updateProperties({"stroke-width":s.thickness})),this._addOutlines({drawOutlines:s,drawingOptions:a});const[,l]=this.pageDimensions;let u=e/l;u=u>=1?.5:u,this.width*=u/this.height,this.width>=1&&(u*=.9/this.width,this.width=.9),this.height=u,this.setDims(),this.x=r,this.y=o,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!n}}),this.div.hidden=!1}getFromImage(t){const{rawDims:{pageWidth:e,pageHeight:n},rotation:i}=this.parent.viewport;return um.process(t,e,n,i,Mm._INNER_MARGIN)}getFromText(t,e){const{rawDims:{pageWidth:n,pageHeight:i},rotation:r}=this.parent.viewport;return um.extractContoursFromText(t,e,n,i,r,Mm._INNER_MARGIN)}getDrawnSignature(t){const{rawDims:{pageWidth:e,pageHeight:n},rotation:i}=this.parent.viewport;return um.processDrawnLines({lines:t,pageWidth:e,pageHeight:n,rotation:i,innerMargin:Mm._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions(t){let{areContours:e,thickness:n}=t;e?this._drawingOptions=Mm.getDefaultDrawingOptions():(this._drawingOptions=Mm._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":n}))}serialize(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;const{lines:e,points:n}=this.serializeDraw(t),{_drawingOptions:{"stroke-width":i}}=this,r=Object.assign(super.serialize(t),{isSignature:!0,areContours:c(Sm,this),color:[0,0,0],thickness:c(Sm,this)?0:i});return this.addComment(r),t?(r.paths={lines:e,points:n},r.uuid=c(km,this),r.isCopy=!0):r.lines=e,c(Fm,this)&&(r.accessibilityData={type:"Figure",alt:c(Fm,this)}),r}static deserializeDraw(t,e,n,i,r,o){return o.areContours?lm.deserialize(t,e,n,i,r,o):$g.deserialize(t,e,n,i,r,o)}static async deserialize(t,e,n){var i;const r=await super.deserialize(t,e,n);return h(Sm,r,t.areContours),r.description=(null===(i=t.accessibilityData)||void 0===i?void 0:i.alt)||"",h(km,r,t.uuid),r}}(0,T.A)(Mm,"_type","signature"),(0,T.A)(Mm,"_editorType",H.SIGNATURE),(0,T.A)(Mm,"_defaultDrawingOptions",null);var Tm=new WeakMap,Pm=new WeakMap,_m=new WeakMap,Rm=new WeakMap,Bm=new WeakMap,Im=new WeakMap,Nm=new WeakMap,Lm=new WeakMap,Om=new WeakMap,Wm=new WeakMap,zm=new WeakMap,jm=new WeakSet;class Um extends Gr{constructor(t){super((0,r.A)((0,r.A)({},t),{},{name:"stampEditor"})),s(this,jm),a(this,Tm,null),a(this,Pm,null),a(this,_m,null),a(this,Rm,null),a(this,Bm,null),a(this,Im,""),a(this,Nm,null),a(this,Lm,!1),a(this,Om,null),a(this,Wm,!1),a(this,zm,!1),h(Rm,this,t.bitmapUrl),h(Bm,this,t.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(t,e){Gr.initialize(t,e)}static isHandlingMimeForPasting(t){return le.includes(t)}static paste(t,e){e.pasteEditor({mode:H.STAMP},{bitmapFile:t.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var t;return{type:"stamp",hasAltText:!(null===(t=this.altTextData)||void 0===t||!t.altText)}}static computeTelemetryFinalData(t){var e,n;const i=t.get("hasAltText");return{hasAltText:null!==(e=i.get(!0))&&void 0!==e?e:0,hasNoAltText:null!==(n=i.get(!1))&&void 0!==n?n:0}}async mlGuessAltText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.hasAltTextData())return null;const{mlManager:n}=this._uiManager;if(!n)throw new Error("No ML.");if(!await n.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:r,height:o}=t||this.copyCanvas(null,null,!0).imageData,s=await n.guess({name:"altText",request:{data:i,width:r,height:o,channels:i.length/(r*o)}});if(!s)throw new Error("No response from the AI service.");if(s.error)throw new Error("Error from the AI service.");if(s.cancel)return null;if(!s.output)throw new Error("No valid response from the AI service.");const a=s.output;return await this.setGuessedAltText(a),e&&!this.hasAltTextData()&&(this.altTextData={alt:a,decorative:!1}),a}remove(){var t;c(Pm,this)&&(h(Tm,this,null),this._uiManager.imageManager.deleteId(c(Pm,this)),null===(t=c(Nm,this))||void 0===t||t.remove(),h(Nm,this,null),c(Om,this)&&(clearTimeout(c(Om,this)),h(Om,this,null)));super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(c(Pm,this)&&null===c(Nm,this)&&l(jm,this,Hm).call(this),this.isAttachedToDOM||this.parent.add(this))):c(Pm,this)&&l(jm,this,Hm).call(this)}onceAdded(t){this._isDraggable=!0,t&&this.div.focus()}isEmpty(){return!(c(_m,this)||c(Tm,this)||c(Rm,this)||c(Bm,this)||c(Pm,this)||c(Lm,this))}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let t,e;return this._isCopy&&(t=this.x,e=this.y),super.render(),this.div.hidden=!0,this.createAltText(),c(Lm,this)||(c(Tm,this)?l(jm,this,qm).call(this):l(jm,this,Hm).call(this)),this._isCopy&&this._moveAfterPaste(t,e),this._uiManager.addShouldRescale(this),this.div}setCanvas(t,e){const{id:n,bitmap:i}=this._uiManager.imageManager.getFromCanvas(t,e);e.remove(),n&&this._uiManager.imageManager.isValidId(n)&&(h(Pm,this,n),i&&h(Tm,this,i),h(Lm,this,!1),l(jm,this,qm).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;null!==c(Om,this)&&clearTimeout(c(Om,this));h(Om,this,setTimeout(()=>{h(Om,this,null),l(jm,this,Km).call(this)},200))}copyCanvas(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t||(t=224);const{width:i,height:r}=c(Tm,this),o=new ae;let s=c(Tm,this),a=i,u=r,h=null;if(e){if(i>e||r>e){const t=Math.min(e/i,e/r);a=Math.floor(i*t),u=Math.floor(r*t)}h=document.createElement("canvas");const t=h.width=Math.ceil(a*o.sx),n=h.height=Math.ceil(u*o.sy);c(Wm,this)||(s=l(jm,this,Xm).call(this,t,n));const d=h.getContext("2d");d.filter=this._uiManager.hcmFilter;let f="white",p="#cfcfd8";"none"!==this._uiManager.hcmFilter?p="black":ue.isDarkMode&&(f="#8f8f9d",p="#42414d");const g=15,m=g*o.sx,v=g*o.sy,y=new OffscreenCanvas(2*m,2*v),b=y.getContext("2d");b.fillStyle=f,b.fillRect(0,0,2*m,2*v),b.fillStyle=p,b.fillRect(0,0,m,v),b.fillRect(m,v,m,v),d.fillStyle=d.createPattern(y,"repeat"),d.fillRect(0,0,t,n),d.drawImage(s,0,0,s.width,s.height,0,0,t,n)}let d=null;if(n){let e,n;if(o.symmetric&&s.width<t&&s.height<t)e=s.width,n=s.height;else if(s=c(Tm,this),i>t||r>t){const o=Math.min(t/i,t/r);e=Math.floor(i*o),n=Math.floor(r*o),c(Wm,this)||(s=l(jm,this,Xm).call(this,e,n))}const a=new OffscreenCanvas(e,n).getContext("2d",{willReadFrequently:!0});a.drawImage(s,0,0,s.width,s.height,0,0,e,n),d={width:e,height:n,data:a.getImageData(0,0,e,n).data}}return{canvas:h,width:a,height:u,imageData:d}}static async deserialize(t,e,n){let i=null,r=!1;if(t instanceof Zd){var o;const{data:{rect:s,rotation:a,id:l,structParent:u,popupRef:c,richText:h,contentsObj:d,creationDate:f,modificationDate:p},container:g,parent:{page:{pageNumber:m}},canvas:v}=t;let y,b;v?(delete t.canvas,({id:y,bitmap:b}=n.imageManager.getFromCanvas(g.id,v)),v.remove()):(r=!0,t._hasNoCanvas=!0);const w=(null===(o=await e._structTree.getAriaAttributes("".concat(Wt).concat(l)))||void 0===o?void 0:o.get("aria-label"))||"";i=t={annotationType:H.STAMP,bitmapId:y,bitmap:b,pageIndex:m-1,rect:s.slice(0),rotation:a,annotationElementId:l,id:l,deleted:!1,accessibilityData:{decorative:!1,altText:w},isSvg:!1,structParent:u,popupRef:c,richText:h,comment:(null===d||void 0===d?void 0:d.str)||null,creationDate:f,modificationDate:p}}const s=await super.deserialize(t,e,n),{rect:a,bitmap:l,bitmapUrl:u,bitmapId:c,isSvg:d,accessibilityData:f}=t;r?(n.addMissingCanvas(t.id,s),h(Lm,s,!0)):c&&n.imageManager.isValidId(c)?(h(Pm,s,c),l&&h(Tm,s,l)):h(Rm,s,u),h(Wm,s,d);const[p,g]=s.pageDimensions;return s.width=(a[2]-a[0])/p,s.height=(a[3]-a[1])/g,f&&(s.altTextData=f),s._initialData=i,t.comment&&s.setCommentData(t),h(zm,s,!!i),s}serialize(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const n=Object.assign(super.serialize(t),{bitmapId:c(Pm,this),isSvg:c(Wm,this)});if(this.addComment(n),t)return n.bitmapUrl=l(jm,this,Ym).call(this,!0),n.accessibilityData=this.serializeAltText(!0),n.isCopy=!0,n;const{decorative:i,altText:r}=this.serializeAltText(!1);if(!i&&r&&(n.accessibilityData={type:"Figure",alt:r}),this.annotationElementId){const t=l(jm,this,Zm).call(this,n);if(t.isSame)return null;var o;if(t.isSameAltText)delete n.accessibilityData;else n.accessibilityData.structParent=null!==(o=this._initialData.structParent)&&void 0!==o?o:-1;return n.id=this.annotationElementId,delete n.bitmapId,n}if(null===e)return n;e.stamps||(e.stamps=new Map);const s=c(Wm,this)?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(e.stamps.has(c(Pm,this))){if(c(Wm,this)){const t=e.stamps.get(c(Pm,this));s>t.area&&(t.area=s,t.serialized.bitmap.close(),t.serialized.bitmap=l(jm,this,Ym).call(this,!1))}}else e.stamps.set(c(Pm,this),{area:s,serialized:n}),n.bitmap=l(jm,this,Ym).call(this,!1);return n}renderAnnotationElement(t){return this.deleted?(t.hide(),null):(t.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}}function Gm(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?(h(Tm,this,t.bitmap),e||(h(Pm,this,t.id),h(Wm,this,t.isSvg)),t.file&&h(Im,this,t.file.name),l(jm,this,qm).call(this)):this.remove()}function Vm(){if(h(_m,this,null),this._uiManager.enableWaiting(!1),c(Nm,this))if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(Tm,this))this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});else{if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(Tm,this)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch(t){}}this.div.focus()}}function Hm(){if(c(Pm,this))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(c(Pm,this)).then(t=>l(jm,this,Gm).call(this,t,!0)).finally(()=>l(jm,this,Vm).call(this));if(c(Rm,this)){const t=c(Rm,this);return h(Rm,this,null),this._uiManager.enableWaiting(!0),void h(_m,this,this._uiManager.imageManager.getFromUrl(t).then(t=>l(jm,this,Gm).call(this,t)).finally(()=>l(jm,this,Vm).call(this)))}if(c(Bm,this)){const t=c(Bm,this);return h(Bm,this,null),this._uiManager.enableWaiting(!0),void h(_m,this,this._uiManager.imageManager.getFromFile(t).then(t=>l(jm,this,Gm).call(this,t)).finally(()=>l(jm,this,Vm).call(this)))}const t=document.createElement("input");t.type="file",t.accept=le.join(",");const e=this._uiManager._signal;h(_m,this,new Promise(n=>{t.addEventListener("change",async()=>{if(t.files&&0!==t.files.length){this._uiManager.enableWaiting(!0);const e=await this._uiManager.imageManager.getFromFile(t.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),l(jm,this,Gm).call(this,e)}else this.remove();n()},{signal:e}),t.addEventListener("cancel",()=>{this.remove(),n()},{signal:e})}).finally(()=>l(jm,this,Vm).call(this))),t.click()}function qm(){var t;const{div:e}=this;let{width:n,height:i}=c(Tm,this);const[r,o]=this.pageDimensions,s=.75;if(this.width)n=this.width*r,i=this.height*o;else if(n>s*r||i>s*o){const t=Math.min(s*r/n,s*o/i);n*=t,i*=t}this._uiManager.enableWaiting(!1);const a=h(Nm,this,document.createElement("canvas"));a.setAttribute("role","img"),this.addContainer(a),this.width=n/r,this.height=i/o,this.setDims(),null!==(t=this._initialOptions)&&void 0!==t&&t.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&!this.annotationElementId||(e.hidden=!1),l(jm,this,Km).call(this),c(zm,this)||(this.parent.addUndoableEditor(this),h(zm,this,!0)),this._reportTelemetry({action:"inserted_image"}),c(Im,this)&&this.div.setAttribute("aria-description",c(Im,this)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")}function Xm(t,e){const{width:n,height:i}=c(Tm,this);let r=n,o=i,s=c(Tm,this);for(;r>2*t||o>2*e;){const n=r,i=o;r>2*t&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2)),o>2*e&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2));const a=new OffscreenCanvas(r,o);a.getContext("2d").drawImage(s,0,0,n,i,0,0,r,o),s=a.transferToImageBitmap()}return s}function Km(){const[t,e]=this.parentDimensions,{width:n,height:i}=this,r=new ae,o=Math.ceil(n*t*r.sx),s=Math.ceil(i*e*r.sy),a=c(Nm,this);if(!a||a.width===o&&a.height===s)return;a.width=o,a.height=s;const u=c(Wm,this)?c(Tm,this):l(jm,this,Xm).call(this,o,s),h=a.getContext("2d");h.filter=this._uiManager.hcmFilter,h.drawImage(u,0,0,u.width,u.height,0,0,o,s)}function Ym(t){if(t){if(c(Wm,this)){const t=this._uiManager.imageManager.getSvgUrl(c(Pm,this));if(t)return t}const t=document.createElement("canvas");({width:t.width,height:t.height}=c(Tm,this));return t.getContext("2d").drawImage(c(Tm,this),0,0),t.toDataURL()}if(c(Wm,this)){const[t,e]=this.pageDimensions,n=Math.round(this.width*t*Ht.PDF_TO_CSS_UNITS),i=Math.round(this.height*e*Ht.PDF_TO_CSS_UNITS),r=new OffscreenCanvas(n,i);return r.getContext("2d").drawImage(c(Tm,this),0,0,c(Tm,this).width,c(Tm,this).height,0,0,n,i),r.transferToImageBitmap()}return structuredClone(c(Tm,this))}function Zm(t){var e;const{pageIndex:n,accessibilityData:{altText:i}}=this._initialData,r=t.pageIndex===n,o=((null===(e=t.accessibilityData)||void 0===e?void 0:e.alt)||"")===i;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&r&&o,isSameAltText:o}}(0,T.A)(Um,"_type","stamp"),(0,T.A)(Um,"_editorType",H.STAMP);var Qm=new WeakMap,Jm=new WeakMap,$m=new WeakMap,tv=new WeakMap,ev=new WeakMap,nv=new WeakMap,iv=new WeakMap,rv=new WeakMap,ov=new WeakMap,sv=new WeakMap,av=new WeakMap,lv=new WeakMap,uv=new WeakMap,cv=new WeakMap,hv=new WeakMap,dv=new WeakMap,fv=new WeakSet;class pv{constructor(t){let{uiManager:e,pageIndex:n,div:i,structTreeLayer:r,accessibilityManager:o,annotationLayer:l,drawLayer:u,textLayer:d,viewport:f,l10n:p}=t;s(this,fv),a(this,Qm,void 0),a(this,Jm,!1),a(this,$m,null),a(this,tv,null),a(this,ev,null),a(this,nv,new Map),a(this,iv,!1),a(this,rv,!1),a(this,ov,!1),a(this,sv,null),a(this,av,null),a(this,lv,null),a(this,uv,null),a(this,cv,null),a(this,hv,-1),a(this,dv,void 0);const g=[...Dv._.values()];if(!pv._initialized){pv._initialized=!0;for(const t of g)t.initialize(p,e)}e.registerEditorTypes(g),h(dv,this,e),this.pageIndex=n,this.div=i,h(Qm,this,o),h($m,this,l),this.viewport=f,h(lv,this,d),this.drawLayer=u,this._structTree=r,c(dv,this).addLayer(this)}get isEmpty(){return 0===c(nv,this).size}get isInvisible(){return this.isEmpty&&c(dv,this).getMode()===H.NONE}updateToolbar(t){c(dv,this).updateToolbar(t)}updateMode(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c(dv,this).getMode();switch(l(fv,this,wv).call(this),t){case H.NONE:return this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),void this.disableClick();case H.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case H.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:e}=this.div;if(e.toggle("nonEditing",!1),t===H.POPUP)e.toggle("commentEditing",!0);else{e.toggle("commentEditing",!1);for(const n of Dv._.values())e.toggle("".concat(n._type,"Editing"),t===n._editorType)}this.div.hidden=!1}hasTextLayer(t){var e;return t===(null===(e=c(lv,this))||void 0===e?void 0:e.div)}setEditingState(t){c(dv,this).setEditingState(t)}addCommands(t){c(dv,this).addCommands(t)}cleanUndoStack(t){c(dv,this).cleanUndoStack(t)}toggleDrawing(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("drawing",!t)}togglePointerEvents(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("disabled",!t)}toggleAnnotationLayerPointerEvents(){var t;let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===(t=c($m,this))||void 0===t||t.div.classList.toggle("disabled",!e)}async enable(){var t;h(ov,this,!0),this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),null===(t=c(cv,this))||void 0===t||t.abort(),h(cv,this,null);const e=new Set;for(const i of u(fv,this,gv))i.enableEditing(),i.show(!0),i.annotationElementId&&(c(dv,this).removeChangedExistingAnnotation(i),e.add(i.annotationElementId));const n=c($m,this);if(n)for(const i of n.getEditableAnnotations()){if(i.hide(),c(dv,this).isDeletedAnnotationElement(i.data.id))continue;if(e.has(i.data.id))continue;const t=await this.deserialize(i);t&&(this.addOrRebuild(t),t.enableEditing())}h(ov,this,!1),c(dv,this)._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){if(h(rv,this,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),c(lv,this)&&!c(cv,this)){h(cv,this,new AbortController);const t=c(dv,this).combinedSignal(c(cv,this));c(lv,this).div.addEventListener("pointerdown",t=>{const{clientX:e,clientY:n,timeStamp:i}=t;if(i-c(hv,this)>500)return void h(hv,this,i);h(hv,this,-1);const{classList:r}=this.div;r.toggle("getElements",!0);const o=document.elementsFromPoint(e,n);if(r.toggle("getElements",!1),!this.div.contains(o[0]))return;let s;const a=new RegExp("^".concat(V,"[0-9]+$"));for(const u of o)if(a.test(u.id)){s=u.id;break}if(!s)return;const l=c(nv,this).get(s);null===(null===l||void 0===l?void 0:l.annotationElementId)&&(t.stopPropagation(),t.preventDefault(),l.dblclick(t))},{signal:t,capture:!0})}const t=c($m,this);if(t){const n=new Map,i=new Map;for(const o of u(fv,this,gv)){var e;o.disableEditing(),o.annotationElementId?null===o.serialize()?(i.set(o.annotationElementId,o),null===(e=this.getEditableAnnotation(o.annotationElementId))||void 0===e||e.show(),o.remove()):n.set(o.annotationElementId,o):o.updateFakeAnnotationElement(t)}const r=t.getEditableAnnotations();for(const t of r){const{id:e}=t.data;if(c(dv,this).isDeletedAnnotationElement(e)){t.updateEdited({deleted:!0});continue}let r=i.get(e);r?(r.resetAnnotationElement(t),r.show(!1),t.show()):(r=n.get(e),r&&(c(dv,this).addChangedExistingAnnotation(r),r.renderAnnotationElement(t)&&r.show(!1)),t.show())}}l(fv,this,wv).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:n}=this.div;for(const i of Dv._.values())n.remove("".concat(i._type,"Editing"));this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),h(rv,this,!1)}getEditableAnnotation(t){var e;return(null===(e=c($m,this))||void 0===e?void 0:e.getEditableAnnotation(t))||null}setActiveEditor(t){c(dv,this).getActive()!==t&&c(dv,this).setActiveEditor(t)}enableTextSelection(){var t;if(this.div.tabIndex=-1,null!==(t=c(lv,this))&&void 0!==t&&t.div&&!c(uv,this)){h(uv,this,new AbortController);const t=c(dv,this).combinedSignal(c(uv,this));c(lv,this).div.addEventListener("pointerdown",l(fv,this,mv).bind(this),{signal:t}),c(lv,this).div.classList.add("highlighting")}}disableTextSelection(){var t;this.div.tabIndex=0,null!==(t=c(lv,this))&&void 0!==t&&t.div&&c(uv,this)&&(c(uv,this).abort(),h(uv,this,null),c(lv,this).div.classList.remove("highlighting"))}enableClick(){if(c(tv,this))return;h(tv,this,new AbortController);const t=c(dv,this).combinedSignal(c(tv,this));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:t});const e=this.pointerup.bind(this);this.div.addEventListener("pointerup",e,{signal:t}),this.div.addEventListener("pointercancel",e,{signal:t})}disableClick(){var t;null===(t=c(tv,this))||void 0===t||t.abort(),h(tv,this,null)}attach(t){c(nv,this).set(t.id,t);const{annotationElementId:e}=t;e&&c(dv,this).isDeletedAnnotationElement(e)&&c(dv,this).removeDeletedAnnotationElement(t)}detach(t){var e;c(nv,this).delete(t.id),null===(e=c(Qm,this))||void 0===e||e.removePointerInTextLayer(t.contentDiv),!c(rv,this)&&t.annotationElementId&&c(dv,this).addDeletedAnnotationElement(t)}remove(t){this.detach(t),c(dv,this).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1}changeParent(t){var e;t.parent!==this&&(t.parent&&t.annotationElementId&&(c(dv,this).addDeletedAnnotationElement(t.annotationElementId),Gr.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),null===(e=t.parent)||void 0===e||e.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}add(t){if(t.parent!==this||!t.isAttachedToDOM){if(this.changeParent(t),c(dv,this).addEditor(t),this.attach(t),!t.isAttachedToDOM){const e=t.render();this.div.append(e),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(!c(ov,this)),c(dv,this).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){var e;if(!t.isAttachedToDOM)return;const{activeElement:n}=document;t.div.contains(n)&&!c(ev,this)&&(t._focusEventsAllowed=!1,h(ev,this,setTimeout(()=>{h(ev,this,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:c(dv,this)._signal}),n.focus())},0))),t._structTreeParentId=null===(e=c(Qm,this))||void 0===e?void 0:e.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?(t.parent||(t.parent=this),t.rebuild(),t.show()):this.add(t)}addUndoableEditor(t){this.addCommands({cmd:()=>t._uiManager.rebuild(t),undo:()=>{t.remove()},mustExec:!1})}getEditorByUID(t){for(const e of c(nv,this).values())if(e.uid===t)return e;return null}getNextId(){return c(dv,this).getId()}combinedSignal(t){return c(dv,this).combinedSignal(t)}canCreateNewEmptyEditor(){var t;return null===(t=u(fv,this,vv))||void 0===t?void 0:t.canCreateNewEmptyEditor()}async pasteEditor(t,e){this.updateToolbar(t),await c(dv,this).updateMode(t.mode);const{offsetX:n,offsetY:i}=l(fv,this,bv).call(this),o=this.getNextId(),s=l(fv,this,yv).call(this,(0,r.A)({parent:this,id:o,x:n,y:i,uiManager:c(dv,this),isCentered:!0},e));s&&this.add(s)}async deserialize(t){var e,n;return await(null===(e=Dv._.get(null!==(n=t.annotationType)&&void 0!==n?n:t.annotationEditorType))||void 0===e?void 0:e.deserialize(t,this,c(dv,this)))||null}createAndAddNewEditor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getNextId(),o=l(fv,this,yv).call(this,(0,r.A)({parent:this,id:i,x:t.offsetX,y:t.offsetY,uiManager:c(dv,this),isCentered:e},n));return o&&this.add(o),o}get boundingClientRect(){return this.div.getBoundingClientRect()}addNewEditor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.createAndAddNewEditor(l(fv,this,bv).call(this),!0,t)}setSelected(t){c(dv,this).setSelected(t)}toggleSelected(t){c(dv,this).toggleSelected(t)}unselect(t){c(dv,this).unselect(t)}pointerup(t){var e;const{isMac:n}=Pt.platform;if(0!==t.button||t.ctrlKey&&n)return;if(t.target!==this.div)return;if(!c(iv,this))return;if(h(iv,this,!1),null!==(e=u(fv,this,vv))&&void 0!==e&&e.isDrawer&&u(fv,this,vv).supportMultipleDrawings)return;if(!c(Jm,this))return void h(Jm,this,!0);const i=c(dv,this).getMode();i!==H.STAMP&&i!==H.SIGNATURE?this.createAndAddNewEditor(t,!1):c(dv,this).unselectAll()}pointerdown(t){var e;if(c(dv,this).getMode()===H.HIGHLIGHT&&this.enableTextSelection(),c(iv,this))return void h(iv,this,!1);const{isMac:n}=Pt.platform;if(0!==t.button||t.ctrlKey&&n)return;if(t.target!==this.div)return;if(h(iv,this,!0),null!==(e=u(fv,this,vv))&&void 0!==e&&e.isDrawer)return void this.startDrawingSession(t);const i=c(dv,this).getActive();h(Jm,this,!i||i.isEmpty())}startDrawingSession(t){if(this.div.focus({preventScroll:!0}),c(sv,this))return void u(fv,this,vv).startDrawing(this,c(dv,this),!1,t);c(dv,this).setCurrentDrawingSession(this),h(sv,this,new AbortController);const e=c(dv,this).combinedSignal(c(sv,this));this.div.addEventListener("blur",t=>{let{relatedTarget:e}=t;e&&!this.div.contains(e)&&(h(av,this,null),this.commitOrRemove())},{signal:e}),u(fv,this,vv).startDrawing(this,c(dv,this),!1,t)}pause(t){if(t){const{activeElement:t}=document;return void(this.div.contains(t)&&h(av,this,t))}c(av,this)&&setTimeout(()=>{var t;null===(t=c(av,this))||void 0===t||t.focus(),h(av,this,null)},0)}endDrawingSession(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c(sv,this)?(c(dv,this).setCurrentDrawingSession(null),c(sv,this).abort(),h(sv,this,null),h(av,this,null),u(fv,this,vv).endDrawing(t)):null}findNewParent(t,e,n){const i=c(dv,this).findParent(e,n);return null!==i&&i!==this&&(i.changeParent(t),!0)}commitOrRemove(){return!!c(sv,this)&&(this.endDrawingSession(),!0)}onScaleChanging(){c(sv,this)&&u(fv,this,vv).onScaleChangingWhenDrawing(this)}destroy(){var t;this.commitOrRemove(),(null===(t=c(dv,this).getActive())||void 0===t?void 0:t.parent)===this&&(c(dv,this).commitOrRemove(),c(dv,this).setActiveEditor(null)),c(ev,this)&&(clearTimeout(c(ev,this)),h(ev,this,null));for(const n of c(nv,this).values()){var e;null===(e=c(Qm,this))||void 0===e||e.removePointerInTextLayer(n.contentDiv),n.setParent(null),n.isAttachedToDOM=!1,n.div.remove()}this.div=null,c(nv,this).clear(),c(dv,this).removeLayer(this)}render(t){let{viewport:e}=t;this.viewport=e,se(this.div,e);for(const n of c(dv,this).getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update(t){let{viewport:e}=t;c(dv,this).commitOrRemove(),l(fv,this,wv).call(this);const n=this.viewport.rotation,i=e.rotation;if(this.viewport=e,se(this.div,{rotation:i}),n!==i)for(const r of c(nv,this).values())r.rotate(i)}get pageDimensions(){const{pageWidth:t,pageHeight:e}=this.viewport.rawDims;return[t,e]}get scale(){return c(dv,this).viewParameters.realScale}}function gv(t){return 0!==c(nv,t).size?c(nv,t).values():c(dv,t).getEditors(t.pageIndex)}function mv(t){c(dv,this).unselectAll();const{target:e}=t;if(e===c(lv,this).div||("img"===e.getAttribute("role")||e.classList.contains("endOfContent"))&&c(lv,this).div.contains(e)){const{isMac:e}=Pt.platform;if(0!==t.button||t.ctrlKey&&e)return;c(dv,this).showAllEditors("highlight",!0,!0),c(lv,this).div.classList.add("free"),this.toggleDrawing(),Hp.startHighlighting(this,"ltr"===c(dv,this).direction,{target:c(lv,this).div,x:t.x,y:t.y}),c(lv,this).div.addEventListener("pointerup",()=>{c(lv,this).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:c(dv,this)._signal}),t.preventDefault()}}function vv(t){return Dv._.get(c(dv,t).getMode())}function yv(t){const e=u(fv,this,vv);return e?new e.prototype.constructor(t):null}function bv(){const{x:t,y:e,width:n,height:i}=this.boundingClientRect,r=Math.max(0,t),o=Math.max(0,e),s=(r+Math.min(window.innerWidth,t+n))/2-t,a=(o+Math.min(window.innerHeight,e+i))/2-e,[l,u]=this.viewport.rotation%180===0?[s,a]:[a,s];return{offsetX:l,offsetY:u}}function wv(){for(const t of c(nv,this).values())t.isEmpty()&&t.remove()}(0,T.A)(pv,"_initialized",!1);var Dv={_:new Map([yf,sm,Um,Hp,Mm].map(t=>[t._editorType,t]))},Av=new WeakMap,xv=new WeakMap,Cv=new WeakMap,Sv=new WeakSet;class Fv{constructor(t){let{pageIndex:e}=t;s(this,Sv),a(this,Av,null),a(this,xv,new Map),a(this,Cv,new Map),this.pageIndex=e}setParent(t){if(c(Av,this)){if(c(Av,this)!==t){if(c(xv,this).size>0)for(const e of c(xv,this).values())e.remove(),t.append(e);h(Av,this,t)}}else h(Av,this,t)}static get _svgFactory(){return Dt(this,"_svgFactory",new mh)}draw(t){var e,n;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=(Pv._=(e=Pv._,n=e++,e),n),s=l(Sv,this,kv).call(this),a=Fv._svgFactory.createElement("defs");s.append(a);const u=Fv._svgFactory.createElement("path");a.append(u);const h="path_p".concat(this.pageIndex,"_").concat(o);u.setAttribute("id",h),u.setAttribute("vector-effect","non-scaling-stroke"),i&&c(Cv,this).set(o,u);const d=r?l(Sv,this,Mv).call(this,a,h):null,f=Fv._svgFactory.createElement("use");return s.append(f),f.setAttribute("href","#".concat(h)),this.updateProperties(s,t),c(xv,this).set(o,s),{id:o,clipPathId:"url(#".concat(d,")")}}drawOutline(t,e){var n,i;const r=(Pv._=(n=Pv._,i=n++,n),i),o=l(Sv,this,kv).call(this),s=Fv._svgFactory.createElement("defs");o.append(s);const a=Fv._svgFactory.createElement("path");s.append(a);const u="path_p".concat(this.pageIndex,"_").concat(r);let h;if(a.setAttribute("id",u),a.setAttribute("vector-effect","non-scaling-stroke"),e){const t=Fv._svgFactory.createElement("mask");s.append(t),h="mask_p".concat(this.pageIndex,"_").concat(r),t.setAttribute("id",h),t.setAttribute("maskUnits","objectBoundingBox");const e=Fv._svgFactory.createElement("rect");t.append(e),e.setAttribute("width","1"),e.setAttribute("height","1"),e.setAttribute("fill","white");const n=Fv._svgFactory.createElement("use");t.append(n),n.setAttribute("href","#".concat(u)),n.setAttribute("stroke","none"),n.setAttribute("fill","black"),n.setAttribute("fill-rule","nonzero"),n.classList.add("mask")}const d=Fv._svgFactory.createElement("use");o.append(d),d.setAttribute("href","#".concat(u)),h&&d.setAttribute("mask","url(#".concat(h,")"));const f=d.cloneNode();return o.append(f),d.classList.add("mainOutline"),f.classList.add("secondaryOutline"),this.updateProperties(o,t),c(xv,this).set(r,o),r}finalizeDraw(t,e){c(Cv,this).delete(t),this.updateProperties(t,e)}updateProperties(t,e){if(!e)return;const{root:n,bbox:i,rootClass:r,path:o}=e,s="number"===typeof t?c(xv,this).get(t):t;if(s){if(n&&l(Sv,this,Tv).call(this,s,n),i&&Ev.call(Fv,s,i),r){const{classList:t}=s;for(const[e,n]of Object.entries(r))t.toggle(e,n)}if(o){const t=s.firstChild.firstChild;l(Sv,this,Tv).call(this,t,o)}}}updateParent(t,e){if(e===this)return;const n=c(xv,this).get(t);n&&(c(Av,e).append(n),c(xv,this).delete(t),c(xv,e).set(t,n))}remove(t){c(Cv,this).delete(t),null!==c(Av,this)&&(c(xv,this).get(t).remove(),c(xv,this).delete(t))}destroy(){h(Av,this,null);for(const t of c(xv,this).values())t.remove();c(xv,this).clear(),c(Cv,this).clear()}}function Ev(t,e){let[n,i,r,o]=e;const{style:s}=t;s.top="".concat(100*i,"%"),s.left="".concat(100*n,"%"),s.width="".concat(100*r,"%"),s.height="".concat(100*o,"%")}function kv(){const t=M._svgFactory.create(1,1,!0);return c(Av,this).append(t),t.setAttribute("aria-hidden",!0),t}function Mv(t,e){const n=M._svgFactory.createElement("clipPath");t.append(n);const i="clip_".concat(e);n.setAttribute("id",i),n.setAttribute("clipPathUnits","objectBoundingBox");const r=M._svgFactory.createElement("use");return n.append(r),r.setAttribute("href","#".concat(e)),r.classList.add("clip"),i}function Tv(t,e){for(const[n,i]of Object.entries(e))null===i?t.removeAttribute(n):t.setAttribute(n,i)}M=Fv;var Pv={_:0};globalThis._pdfjsTestingUtils={HighlightOutliner:gp},globalThis.pdfjsLib={AbortException:kt,AnnotationEditorLayer:pv,AnnotationEditorParamsType:q,AnnotationEditorType:H,AnnotationEditorUIManager:ei,AnnotationLayer:uf,AnnotationMode:G,AnnotationType:tt,applyOpacity:function(t,e,n,i){const r=255*(1-(i=Math.min(Math.max(null!==i&&void 0!==i?i:1,0),1)));return[t=Math.round(t*i+r),e=Math.round(e*i+r),n=Math.round(n*i+r)]},build:"f56dc8601",ColorPicker:$c,createValidAbsoluteUrl:bt,CSSConstants:class{static get commentForegroundColor(){const t=document.createElement("span");t.classList.add("comment","sidebar");const{style:e}=t;e.width=e.height="0",e.display="none",e.color="var(--comment-fg-color)",document.body.append(t);const{color:n}=window.getComputedStyle(t);return t.remove(),Dt(this,"commentForegroundColor",ie(n))}},DOMSVGFactory:mh,DrawLayer:Fv,FeatureTest:Pt,fetchData:qt,findContrastColor:function(t,e){const n=t[0]+256*t[1]+65536*t[2]+16777216*e[0]+4294967296*e[1]+1099511627776*e[2];let i=pe.get(n);if(i)return i;const r=new Float32Array(9),o=r.subarray(0,3),s=r.subarray(3,6);ce(t,s);const a=r.subarray(6,9);ce(e,a);const l=a[2]<.5,u=l?12:4.5;if(s[2]=l?Math.sqrt(s[2]):1-Math.sqrt(1-s[2]),fe(s,a,o)<u){let t,e;l?(t=s[2],e=1):(t=0,e=s[2]);const n=.005;for(;e-t>n;){const n=s[2]=(t+e)/2;l===fe(s,a,o)<u?t=n:e=n}s[2]=l?e:t}return he(s,o),i=Rt.makeHexColor(Math.round(255*o[0]),Math.round(255*o[1]),Math.round(255*o[2])),pe.set(n,i),i},getDocument:ec,getFilenameFromUrl:function(t){return[t]=t.split(/[#?]/,1),t.substring(t.lastIndexOf("/")+1)},getPdfFilenameFromUrl:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof t)return e;if(Yt(t))return mt('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;const n=(t=>{try{return new URL(t)}catch(e){try{return new URL(decodeURIComponent(t))}catch(n){try{return new URL(t,"https://foo.bar")}catch(i){try{return new URL(decodeURIComponent(t),"https://foo.bar")}catch(r){return null}}}}})(t);if(!n)return e;const i=t=>{try{let e=decodeURIComponent(t);return e.includes("/")?(e=e.split("/").at(-1),e.test(/^\.pdf$/i)?e:t):e}catch(e){return t}},r=/\.pdf$/i,o=n.pathname.split("/").at(-1);if(r.test(o))return i(o);if(n.searchParams.size>0){const t=Array.from(n.searchParams.values()).reverse();for(const n of t)if(r.test(n))return i(n);const e=Array.from(n.searchParams.keys()).reverse();for(const n of e)if(r.test(n))return i(n)}if(n.hash){const t=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(n.hash);if(t)return i(t[0])}return e},getRGB:ie,getUuid:Ot,getXfaPageViewport:function(t,e){let{scale:n=1,rotation:i=0}=e;const{width:r,height:o}=t.attributes.style,s=[0,0,parseInt(r),parseInt(o)];return new Xt({viewBox:s,userUnit:1,scale:n,rotation:i})},GlobalWorkerOptions:Pl,ImageKind:$,InvalidPDFException:St,isDataScheme:Yt,isPdfFile:Zt,isValidExplicitDest:Po,MathClamp:zt,noContextMenu:$t,normalizeUnicode:function(t){return Nt||(Nt=/([\xA0\xB5\u037E\u0EB3\u2000-\u200A\u202F\u2126\uFB00-\uFB04\uFB06\uFB20-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBA1\uFBA4-\uFBA9\uFBAE-\uFBB1\uFBD3-\uFBDC\uFBDE-\uFBE7\uFBEA-\uFBF8\uFBFC\uFBFD\uFC00-\uFC5D\uFC64-\uFCF1\uFCF5-\uFD3D\uFD88\uFDF4\uFDFA\uFDFB\uFE71\uFE77\uFE79\uFE7B\uFE7D]+)|(\uFB05+)/g,Lt=new Map([["\ufb05","\u017ft"]])),t.replaceAll(Nt,(t,e,n)=>e?e.normalize("NFKC"):Lt.get(n))},OPS:at,OutputScale:ae,PasswordResponses:{NEED_PASSWORD:1,INCORRECT_PASSWORD:2},PDFDataRangeTransport:uc,PDFDateString:ee,PDFWorker:wc,PermissionFlag:{PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},PixelsPerInch:Ht,RenderingCancelledException:Kt,renderRichText:ge,ResponseException:Ft,setLayerDimensions:se,shadow:Dt,SignatureExtractor:um,stopEvent:te,SupportedImageMimeTypes:le,TextLayer:Uu,TouchManager:dr,updateUrlHash:wt,Util:Rt,VerbosityLevel:st,version:"5.4.296",XfaLayer:Gt}},52272:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},52654:(t,e,n)=>{"use strict";var i=n(68208),r=n(30408),o=n(47018),s=n(56080),a=n(59849),l=-2,u=12,c=30;function h(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 f(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):l}function p(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):l}function g(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,p(t))):l}function m(t,e){var n,i;return t?(i=new d,t.state=i,i.window=null,0!==(n=g(t,e))&&(t.state=null),n):l}var v,y,b=!0;function w(t){if(b){var e;for(v=new i.Buf32(512),y=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(a(1,t.lens,0,288,v,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,y,0,t.work,{bits:5}),b=!1}t.lencode=v,t.lenbits=9,t.distcode=y,t.distbits=5}function D(t,e,n,r){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new i.Buf8(s.wsize)),r>=s.wsize?(i.arraySet(s.window,e,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>r&&(o=r),i.arraySet(s.window,e,n-r,o,s.wnext),(r-=o)?(i.arraySet(s.window,e,n-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}e.inflateReset=p,e.inflateReset2=g,e.inflateResetKeep=f,e.inflateInit=function(t){return m(t,15)},e.inflateInit2=m,e.inflate=function(t,e){var n,d,f,p,g,m,v,y,b,A,x,C,S,F,E,k,M,T,P,_,R,B,I,N,L=0,O=new i.Buf8(4),W=[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 l;(n=t.state).mode===u&&(n.mode=13),g=t.next_out,f=t.output,v=t.avail_out,p=t.next_in,d=t.input,m=t.avail_in,y=n.hold,b=n.bits,A=m,x=v,B=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(2&n.wrap&&35615===y){n.check=0,O[0]=255&y,O[1]=y>>>8&255,n.check=o(n.check,O,2,0),y=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",n.mode=c;break}if(8!==(15&y)){t.msg="unknown compression method",n.mode=c;break}if(b-=4,R=8+(15&(y>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){t.msg="invalid window size",n.mode=c;break}n.dmax=1<<R,t.adler=n.check=1,n.mode=512&y?10:u,y=0,b=0;break;case 2:for(;b<16;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(n.flags=y,8!==(255&n.flags)){t.msg="unknown compression method",n.mode=c;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=c;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(O[0]=255&y,O[1]=y>>>8&255,n.check=o(n.check,O,2,0)),y=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}n.head&&(n.head.time=y),512&n.flags&&(O[0]=255&y,O[1]=y>>>8&255,O[2]=y>>>16&255,O[3]=y>>>24&255,n.check=o(n.check,O,4,0)),y=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(O[0]=255&y,O[1]=y>>>8&255,n.check=o(n.check,O,2,0)),y=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(O[0]=255&y,O[1]=y>>>8&255,n.check=o(n.check,O,2,0)),y=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((C=n.length)>m&&(C=m),C&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,d,p,C,R)),512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,n.length-=C),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break t;C=0;do{R=d[p+C++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R))}while(R&&C<m);if(512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,R)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===m)break t;C=0;do{R=d[p+C++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R))}while(R&&C<m);if(512&n.flags&&(n.check=o(n.check,d,C,p)),m-=C,p+=C,R)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(y!==(65535&n.check)){t.msg="header crc mismatch",n.mode=c;break}y=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=u;break;case 10:for(;b<32;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}t.adler=n.check=h(y),y=0,b=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=g,t.avail_out=v,t.next_in=p,t.avail_in=m,n.hold=y,n.bits=b,2;t.adler=n.check=1,n.mode=u;case u:if(5===e||6===e)break t;case 13:if(n.last){y>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}switch(n.last=1&y,b-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===e){y>>>=2,b-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=c}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if((65535&y)!==(y>>>16^65535)){t.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&y,y=0,b=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(C=n.length){if(C>m&&(C=m),C>v&&(C=v),0===C)break t;i.arraySet(f,d,p,C,g),m-=C,p+=C,v-=C,g+=C,n.length-=C;break}n.mode=u;break;case 17:for(;b<14;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(n.nlen=257+(31&y),y>>>=5,b-=5,n.ndist=1+(31&y),y>>>=5,b-=5,n.ncode=4+(15&y),y>>>=4,b-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}n.lens[W[n.have++]]=7&y,y>>>=3,b-=3}for(;n.have<19;)n.lens[W[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},B=a(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,B){t.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;k=(L=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,M=65535&L,!((E=L>>>24)<=b);){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(M<16)y>>>=E,b-=E,n.lens[n.have++]=M;else{if(16===M){for(N=E+2;b<N;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(y>>>=E,b-=E,0===n.have){t.msg="invalid bit length repeat",n.mode=c;break}R=n.lens[n.have-1],C=3+(3&y),y>>>=2,b-=2}else if(17===M){for(N=E+3;b<N;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}b-=E,R=0,C=3+(7&(y>>>=E)),y>>>=3,b-=3}else{for(N=E+7;b<N;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}b-=E,R=0,C=11+(127&(y>>>=E)),y>>>=7,b-=7}if(n.have+C>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=c;break}for(;C--;)n.lens[n.have++]=R}}if(n.mode===c)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,I={bits:n.lenbits},B=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,B){t.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},B=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,B){t.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(m>=6&&v>=258){t.next_out=g,t.avail_out=v,t.next_in=p,t.avail_in=m,n.hold=y,n.bits=b,s(t,x),g=t.next_out,f=t.output,v=t.avail_out,p=t.next_in,d=t.input,m=t.avail_in,y=n.hold,b=n.bits,n.mode===u&&(n.back=-1);break}for(n.back=0;k=(L=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,M=65535&L,!((E=L>>>24)<=b);){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(k&&0===(240&k)){for(T=E,P=k,_=M;k=(L=n.lencode[_+((y&(1<<T+P)-1)>>T)])>>>16&255,M=65535&L,!(T+(E=L>>>24)<=b);){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}y>>>=T,b-=T,n.back+=T}if(y>>>=E,b-=E,n.back+=E,n.length=M,0===k){n.mode=26;break}if(32&k){n.back=-1,n.mode=u;break}if(64&k){t.msg="invalid literal/length code",n.mode=c;break}n.extra=15&k,n.mode=22;case 22:if(n.extra){for(N=n.extra;b<N;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;k=(L=n.distcode[y&(1<<n.distbits)-1])>>>16&255,M=65535&L,!((E=L>>>24)<=b);){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(0===(240&k)){for(T=E,P=k,_=M;k=(L=n.distcode[_+((y&(1<<T+P)-1)>>T)])>>>16&255,M=65535&L,!(T+(E=L>>>24)<=b);){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}y>>>=T,b-=T,n.back+=T}if(y>>>=E,b-=E,n.back+=E,64&k){t.msg="invalid distance code",n.mode=c;break}n.offset=M,n.extra=15&k,n.mode=24;case 24:if(n.extra){for(N=n.extra;b<N;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===v)break t;if(C=x-v,n.offset>C){if((C=n.offset-C)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=c;break}C>n.wnext?(C-=n.wnext,S=n.wsize-C):S=n.wnext-C,C>n.length&&(C=n.length),F=n.window}else F=f,S=g-n.offset,C=n.length;C>v&&(C=v),v-=C,n.length-=C;do{f[g++]=F[S++]}while(--C);0===n.length&&(n.mode=21);break;case 26:if(0===v)break t;f[g++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===m)break t;m--,y|=d[p++]<<b,b+=8}if(x-=v,t.total_out+=x,n.total+=x,x&&(t.adler=n.check=n.flags?o(n.check,f,x,g-x):r(n.check,f,x,g-x)),x=v,(n.flags?y:h(y))!==n.check){t.msg="incorrect data check",n.mode=c;break}y=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===m)break t;m--,y+=d[p++]<<b,b+=8}if(y!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=c;break}y=0,b=0}n.mode=29;case 29:B=1;break t;case c:B=-3;break t;case 31:return-4;default:return l}return t.next_out=g,t.avail_out=v,t.next_in=p,t.avail_in=m,n.hold=y,n.bits=b,(n.wsize||x!==t.avail_out&&n.mode<c&&(n.mode<27||4!==e))&&D(t,t.output,t.next_out,x-t.avail_out)?(n.mode=31,-4):(A-=t.avail_in,x-=t.avail_out,t.total_in+=A,t.total_out+=x,n.total+=x,n.wrap&&x&&(t.adler=n.check=n.flags?o(n.check,f,x,t.next_out-x):r(n.check,f,x,t.next_out-x)),t.data_type=n.bits+(n.last?64:0)+(n.mode===u?128:0)+(20===n.mode||15===n.mode?256:0),(0===A&&0===x||4===e)&&0===B&&(B=-5),B)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0===(2&(n=t.state).wrap)?l:(n.head=e,e.done=!1,0):l},e.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?l:11===n.mode&&r(1,e,i,0)!==n.check?-3:D(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,0):l},e.inflateInfo="pako inflate (from Nodeca project)"},53986:(t,e,n)=>{"use strict";function i(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}n.d(e,{A:()=>i})},54159:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=s(t,o(n)))}return t}function o(t){if("string"===typeof t||"number"===typeof t)return t;if("object"!==typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)i.call(t,n)&&t[n]&&(e=s(e,n));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},55407:(t,e,n)=>{"use strict";var i={};(0,n(68208).assign)(i,n(47356),n(58864),n(36928)),t.exports=i},56075:(t,e,n)=>{"use strict";n.d(e,{YJ:()=>Hi,_V:()=>Xi,Wd:()=>Vi,rw:()=>qi,BI:()=>Qi,EY:()=>Ki,Ge:()=>Yi});var i={};n.r(i),n.d(i,{appendChild:()=>ci,appendChildToContainer:()=>hi,appendInitialChild:()=>Vn,cancelTimeout:()=>ri,clearContainer:()=>xi,commitMount:()=>vi,commitTextUpdate:()=>mi,commitUpdate:()=>yi,createInstance:()=>Hn,createTextInstance:()=>qn,detachDeletedInstance:()=>Ci,finalizeInitialChildren:()=>Xn,getChildHostContext:()=>ni,getCurrentEventPriority:()=>Si,getPublicInstance:()=>Kn,getRootHostContext:()=>ei,hideInstance:()=>bi,hideTextInstance:()=>wi,idlePriority:()=>jn.unstable_IdlePriority,insertBefore:()=>di,insertInContainerBefore:()=>fi,isPrimaryRenderer:()=>ai,noTimeout:()=>oi,now:()=>jn.unstable_now,prepareForCommit:()=>Yn,preparePortalMount:()=>Zn,prepareUpdate:()=>Qn,removeChild:()=>pi,removeChildFromContainer:()=>gi,resetAfterCommit:()=>Jn,resetTextContent:()=>$n,run:()=>jn.unstable_runWithPriority,scheduleTimeout:()=>ii,shouldDeprioritizeSubtree:()=>ti,shouldSetTextContent:()=>si,supportsMutation:()=>ui,unhideInstance:()=>Di,unhideTextInstance:()=>Ai,warnsIfNotActing:()=>li});const r=Math.PI/180;const o="undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope?self:{},s={_global:o,version:"10.0.12",isBrowser:"undefined"!==typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/param/.test(function(t){}.toString()),dblClickWindow:400,getAngle:t=>s.angleDeg?t*r:t,enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_renderBackend:"web",legacyTextRendering:!1,pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:()=>s.DD.isDragging,isTransforming(){var t,e;return null!==(e=null===(t=s.Transformer)||void 0===t?void 0:t.isTransforming())&&void 0!==e&&e},isDragReady:()=>!!s.DD.node,releaseCanvasOnDestroy:!0,document:o.document,_injectGlobal(t){"undefined"!==typeof o.Konva&&console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."),o.Konva=t}},a=t=>{s[t.prototype.getClassName()]=t};s._injectGlobal(s);const l=()=>{if("undefined"===typeof document)throw new Error('Konva.js unsupported environment.\n\nLooks like you are trying to use Konva.js in Node.js environment. because "document" object is undefined.\n\nTo use Konva.js in Node.js environment, you need to use the "canvas-backend" or "skia-backend" module.\n\nbash: npm install canvas\njs: import "konva/canvas-backend";\n\nor\n\nbash: npm install skia-canvas\njs: import "konva/skia-backend";\n')};class u{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,0,0,1,0,0];this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new u(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){const e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}}translate(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this}scale(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this}rotate(t){const e=Math.cos(t),n=Math.sin(t),i=this.m[0]*e+this.m[2]*n,r=this.m[1]*e+this.m[3]*n,o=this.m[0]*-n+this.m[2]*e,s=this.m[1]*-n+this.m[3]*e;return this.m[0]=i,this.m[1]=r,this.m[2]=o,this.m[3]=s,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,e){const n=this.m[0]+this.m[2]*e,i=this.m[1]+this.m[3]*e,r=this.m[2]+this.m[0]*t,o=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=i,this.m[2]=r,this.m[3]=o,this}multiply(t){const e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],i=this.m[0]*t.m[2]+this.m[2]*t.m[3],r=this.m[1]*t.m[2]+this.m[3]*t.m[3],o=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],s=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=o,this.m[5]=s,this}invert(){const t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,i=-this.m[2]*t,r=this.m[0]*t,o=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),s=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=o,this.m[5]=s,this}getMatrix(){return this.m}decompose(){const t=this.m[0],e=this.m[1],n=this.m[2],i=this.m[3],r=t*i-e*n,o={x:this.m[4],y:this.m[5],rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=t||0!=e){const s=Math.sqrt(t*t+e*e);o.rotation=e>0?Math.acos(t/s):-Math.acos(t/s),o.scaleX=s,o.scaleY=r/s,o.skewX=(t*n+e*i)/r,o.skewY=0}else if(0!=n||0!=i){const s=Math.sqrt(n*n+i*i);o.rotation=Math.PI/2-(i>0?Math.acos(-n/s):-Math.acos(n/s)),o.scaleX=r/s,o.scaleY=s,o.skewX=0,o.skewY=(t*n+e*i)/r}return o.rotation=b._getRotation(o.rotation),o}}const c=Math.PI/180,h=180/Math.PI,d="#",f="Konva error: ",p={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},g=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let m=[],v=null;const y="undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||function(t){setTimeout(t,60)},b={_isElement:t=>!(!t||1!=t.nodeType),_isFunction:t=>!!(t&&t.constructor&&t.call&&t.apply),_isPlainObject:t=>!!t&&t.constructor===Object,_isArray:t=>"[object Array]"===Object.prototype.toString.call(t),_isNumber:t=>"[object Number]"===Object.prototype.toString.call(t)&&!isNaN(t)&&isFinite(t),_isString:t=>"[object String]"===Object.prototype.toString.call(t),_isBoolean:t=>"[object Boolean]"===Object.prototype.toString.call(t),isObject:t=>t instanceof Object,isValidSelector(t){if("string"!==typeof t)return!1;const e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign:t=>0===t||t>0?1:-1,requestAnimFrame(t){m.push(t),1===m.length&&y(function(){const t=m;m=[],t.forEach(function(t){t()})})},createCanvasElement(){l();const t=document.createElement("canvas");try{t.style=t.style||{}}catch(e){}return t},createImageElement:()=>(l(),document.createElement("img")),_isInDocument(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_urlToImage(t,e){const n=b.createImageElement();n.onload=function(){e(n)},n.src=t},_rgbToHex:(t,e,n)=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),_hexToRgb(t){t=t.replace(d,"");const e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor(){let t=(16777215*Math.random()|0).toString(16);for(;t.length<6;)t="0"+t;return d+t},isCanvasFarblingActive(){if(null!==v)return v;if("undefined"===typeof document)return v=!1,!1;const t=this.createCanvasElement();t.width=10,t.height=10;const e=t.getContext("2d",{willReadFrequently:!0});e.clearRect(0,0,10,10),e.fillStyle="#282828",e.fillRect(0,0,10,10);const n=e.getImageData(0,0,10,10).data;let i=!1;for(let r=0;r<100;r++)if(40!==n[4*r]||40!==n[4*r+1]||40!==n[4*r+2]||255!==n[4*r+3]){i=!0;break}return v=i,this.releaseCanvas(t),v},getHitColor(){const t=this.getRandomColor();return this.isCanvasFarblingActive()?this.getSnappedHexColor(t):t},getHitColorKey(t,e,n){return this.isCanvasFarblingActive()&&(t=5*Math.round(t/5),e=5*Math.round(e/5),n=5*Math.round(n/5)),d+this._rgbToHex(t,e,n)},getSnappedHexColor(t){const e=this._hexToRgb(t);return d+this._rgbToHex(5*Math.round(e.r/5),5*Math.round(e.g/5),5*Math.round(e.b/5))},getRGB(t){let e;return t in p?(e=p[t],{r:e[0],g:e[1],b:e[2]}):t[0]===d?this._hexToRgb(t.substring(1)):"rgb("===t.substr(0,4)?(e=g.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA:t=>(t=t||"black",b._namedColorToRBA(t)||b._hex3ColorToRGBA(t)||b._hex4ColorToRGBA(t)||b._hex6ColorToRGBA(t)||b._hex8ColorToRGBA(t)||b._rgbColorToRGBA(t)||b._rgbaColorToRGBA(t)||b._hslColorToRGBA(t)),_namedColorToRBA(t){const e=p[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(0===t.indexOf("rgb(")){const e=(t=t.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(0===t.indexOf("rgba(")){const e=(t=t.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map((t,e)=>"%"===t.slice(-1)?3===e?parseInt(t)/100:parseInt(t)/100*255:Number(t));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex8ColorToRGBA(t){if("#"===t[0]&&9===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:parseInt(t.slice(7,9),16)/255}},_hex6ColorToRGBA(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex4ColorToRGBA(t){if("#"===t[0]&&5===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:parseInt(t[4]+t[4],16)/255}},_hex3ColorToRGBA(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){const[e,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),i=Number(n[0])/360,r=Number(n[1])/100,o=Number(n[2])/100;let s,a,l;if(0===r)return l=255*o,{r:Math.round(l),g:Math.round(l),b:Math.round(l),a:1};s=o<.5?o*(1+r):o+r-o*r;const u=2*o-s,c=[0,0,0];for(let t=0;t<3;t++)a=i+1/3*-(t-1),a<0&&a++,a>1&&a--,l=6*a<1?u+6*(s-u)*a:2*a<1?s:3*a<2?u+(s-u)*(2/3-a)*6:u,c[t]=255*l;return{r:Math.round(c[0]),g:Math.round(c[1]),b:Math.round(c[2]),a:1}}},haveIntersection:(t,e)=>!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y),cloneObject(t){const e={};for(const n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray:t=>t.slice(0),degToRad:t=>t*c,radToDeg:t=>t*h,_degToRad:t=>(b.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),b.degToRad(t)),_radToDeg:t=>(b.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),b.radToDeg(t)),_getRotation:t=>s.angleDeg?b.radToDeg(t):t,_capitalize:t=>t.charAt(0).toUpperCase()+t.slice(1),throw(t){throw new Error(f+t)},error(t){console.error(f+t)},warn(t){s.showWarnings&&console.warn("Konva warning: "+t)},each(t,e){for(const n in t)e(n,t[n])},_inRange:(t,e,n)=>e<=t&&t<n,_getProjectionToSegment(t,e,n,i,r,o){let s,a,l;const u=(t-n)*(t-n)+(e-i)*(e-i);if(0==u)s=t,a=e,l=(r-n)*(r-n)+(o-i)*(o-i);else{const c=((r-t)*(n-t)+(o-e)*(i-e))/u;c<0?(s=t,a=e,l=(t-r)*(t-r)+(e-o)*(e-o)):c>1?(s=n,a=i,l=(n-r)*(n-r)+(i-o)*(i-o)):(s=t+c*(n-t),a=e+c*(i-e),l=(s-r)*(s-r)+(a-o)*(a-o))}return[s,a,l]},_getProjectionToLine(t,e,n){const i=b.cloneObject(t);let r=Number.MAX_VALUE;return e.forEach(function(o,s){if(!n&&s===e.length-1)return;const a=e[(s+1)%e.length],l=b._getProjectionToSegment(o.x,o.y,a.x,a.y,t.x,t.y),u=l[0],c=l[1],h=l[2];h<r&&(i.x=u,i.y=c,r=h)}),i},_prepareArrayForTween(t,e,n){const i=[],r=[];if(t.length>e.length){const n=e;e=t,t=n}for(let s=0;s<t.length;s+=2)i.push({x:t[s],y:t[s+1]});for(let s=0;s<e.length;s+=2)r.push({x:e[s],y:e[s+1]});const o=[];return r.forEach(function(t){const e=b._getProjectionToLine(t,i,n);o.push(e.x),o.push(e.y)}),o},_prepareToStringify(t){let e;t.visitedByCircularReferenceRemoval=!0;for(const n in t)if(t.hasOwnProperty(n)&&t[n]&&"object"==typeof t[n])if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||b._isElement(t[n])){if(!e.configurable)return null;delete t[n]}else if(null===b._prepareToStringify(t[n])){if(!e.configurable)return null;delete t[n]}return delete t.visitedByCircularReferenceRemoval,t},_assign(t,e){for(const n in e)t[n]=e[n];return t},_getFirstPointerId:t=>t.touches?t.changedTouches[0].identifier:t.pointerId||999,releaseCanvas(){if(s.releaseCanvasOnDestroy){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(t=>{t.width=0,t.height=0})}},drawRoundedRectPath(t,e,n,i){let r=e<0?e:0,o=n<0?n:0;e=Math.abs(e),n=Math.abs(n);let s=0,a=0,l=0,u=0;"number"===typeof i?s=a=l=u=Math.min(i,e/2,n/2):(s=Math.min(i[0]||0,e/2,n/2),a=Math.min(i[1]||0,e/2,n/2),u=Math.min(i[2]||0,e/2,n/2),l=Math.min(i[3]||0,e/2,n/2)),t.moveTo(r+s,o),t.lineTo(r+e-a,o),t.arc(r+e-a,o+a,a,3*Math.PI/2,0,!1),t.lineTo(r+e,o+n-u),t.arc(r+e-u,o+n-u,u,0,Math.PI/2,!1),t.lineTo(r+l,o+n),t.arc(r+l,o+n-l,l,Math.PI/2,Math.PI,!1),t.lineTo(r,o+s),t.arc(r+s,o+s,s,Math.PI,3*Math.PI/2,!1)},drawRoundedPolygonPath(t,e,n,i,r){i=Math.abs(i);for(let o=0;o<n;o++){const s=e[(o-1+n)%n],a=e[o],l=e[(o+1)%n],u={x:a.x-s.x,y:a.y-s.y},c={x:l.x-a.x,y:l.y-a.y},h=Math.hypot(u.x,u.y),d=Math.hypot(c.x,c.y);let f;f="number"===typeof r?r:o<r.length?r[o]:0;f=i*Math.cos(Math.PI/n)*Math.min(1,f/i*2);const p={x:u.x/h,y:u.y/h},g={x:c.x/d,y:c.y/d},m={x:a.x-p.x*f,y:a.y-p.y*f},v={x:a.x+g.x*f,y:a.y+g.y*f};0===o?t.moveTo(m.x,m.y):t.lineTo(m.x,m.y),t.arcTo(a.x,a.y,v.x,v.y,f)}}};var w=n(53986);const D=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"];let A,x=null;function C(){if(null!==x)return x;try{const t=b.createCanvasElement().getContext("2d");return t?!!t&&"filter"in t:(x=!1,!1)}catch(t){return x=!1,!1}}class S{constructor(t){this.canvas=t,s.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,e){let n,i,r,o,s=this.traceArr,a=s.length,l="";for(n=0;n<a;n++)i=s[n],r=i.method,r?(o=i.args,l+=r,t?l+="()":b._isArray(o[0])?l+="(["+o.join(",")+"])":(e&&(o=o.map(t=>"number"===typeof t?Math.floor(t):t)),l+="("+o.join(",")+")")):(l+=i.property,t||(l+="="+i.val)),l+=";";return l}clearTrace(){this.traceArr=[]}_trace(t){let e,n=this.traceArr;n.push(t),e=n.length,e>=100&&n.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)}_applyLineCap(t){const e=t.attrs.lineCap;e&&this.setAttr("lineCap",e)}_applyOpacity(t){const e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)}_applyLineJoin(t){const e=t.attrs.lineJoin;e&&this.setAttr("lineJoin",e)}_applyMiterLimit(t){const e=t.attrs.miterLimit;null!=e&&this.setAttr("miterLimit",e)}setAttr(t,e){this._context[t]=e}arc(t,e,n,i,r,o){this._context.arc(t,e,n,i,r,o)}arcTo(t,e,n,i,r){this._context.arcTo(t,e,n,i,r)}beginPath(){this._context.beginPath()}bezierCurveTo(t,e,n,i,r,o){this._context.bezierCurveTo(t,e,n,i,r,o)}clearRect(t,e,n,i){this._context.clearRect(t,e,n,i)}clip(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(t,e){const n=arguments;return 2===n.length?this._context.createImageData(t,e):1===n.length?this._context.createImageData(t):void 0}createLinearGradient(t,e,n,i){return this._context.createLinearGradient(t,e,n,i)}createPattern(t,e){return this._context.createPattern(t,e)}createRadialGradient(t,e,n,i,r,o){return this._context.createRadialGradient(t,e,n,i,r,o)}drawImage(t,e,n,i,r,o,s,a,l){const u=arguments,c=this._context;3===u.length?c.drawImage(t,e,n):5===u.length?c.drawImage(t,e,n,i,r):9===u.length&&c.drawImage(t,e,n,i,r,o,s,a,l)}ellipse(t,e,n,i,r,o,s,a){this._context.ellipse(t,e,n,i,r,o,s,a)}isPointInPath(t,e,n,i){return n?this._context.isPointInPath(n,t,e,i):this._context.isPointInPath(t,e,i)}fill(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._context.fill.apply(this._context,e)}fillRect(t,e,n,i){this._context.fillRect(t,e,n,i)}strokeRect(t,e,n,i){this._context.strokeRect(t,e,n,i)}fillText(t,e,n,i){i?this._context.fillText(t,e,n,i):this._context.fillText(t,e,n)}measureText(t){return this._context.measureText(t)}getImageData(t,e,n,i){return this._context.getImageData(t,e,n,i)}lineTo(t,e){this._context.lineTo(t,e)}moveTo(t,e){this._context.moveTo(t,e)}rect(t,e,n,i){this._context.rect(t,e,n,i)}roundRect(t,e,n,i,r){this._context.roundRect(t,e,n,i,r)}putImageData(t,e,n){this._context.putImageData(t,e,n)}quadraticCurveTo(t,e,n,i){this._context.quadraticCurveTo(t,e,n,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,e){this._context.scale(t,e)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,e,n,i,r,o){this._context.setTransform(t,e,n,i,r,o)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,e,n,i){this._context.strokeText(t,e,n,i)}transform(t,e,n,i,r,o){this._context.transform(t,e,n,i,r,o)}translate(t,e){this._context.translate(t,e)}_enableTrace(){let t,e,n=this,i=D.length,r=this.setAttr;const o=function(t){let i,r=n[t];n[t]=function(){return e=function(t){const e=[],n=t.length,i=b;for(let r=0;r<n;r++){let n=t[r];i._isNumber(n)?n=Math.round(1e3*n)/1e3:i._isString(n)||(n+=""),e.push(n)}return e}(Array.prototype.slice.call(arguments,0)),i=r.apply(n,arguments),n._trace({method:t,args:e}),i}};for(t=0;t<i;t++)o(D[t]);n.setAttr=function(){r.apply(n,arguments);const t=arguments[0];let e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),n._trace({property:t,val:e})}}_applyGlobalCompositeOperation(t){const e=t.attrs.globalCompositeOperation;!e||"source-over"===e||this.setAttr("globalCompositeOperation",e)}}["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled","filter"].forEach(function(t){Object.defineProperty(S.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})});class F extends S{constructor(t){let{willReadFrequently:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:e})}_fillColor(t){const e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){const e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fillRadialGradient(t){const e=t._getRadialGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fill(t){const e=t.fill(),n=t.getFillPriority();if(e&&"color"===n)return void this._fillColor(t);const i=t.getFillPatternImage();if(i&&"pattern"===n)return void this._fillPattern(t);const r=t.getFillLinearGradientColorStops();if(r&&"linear-gradient"===n)return void this._fillLinearGradient(t);const o=t.getFillRadialGradientColorStops();o&&"radial-gradient"===n?this._fillRadialGradient(t):e?this._fillColor(t):i?this._fillPattern(t):r?this._fillLinearGradient(t):o&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const e=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),r=this.createLinearGradient(e.x,e.y,n.x,n.y);if(i){for(let t=0;t<i.length;t+=2)r.addColorStop(i[t],i[t+1]);this.setAttr("strokeStyle",r)}}_stroke(t){const e=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();const t=this.getCanvas().getPixelRatio();this.setTransform(t,0,0,t,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");t.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}}_applyShadow(t){var e,n,i;const r=null!==(e=t.getShadowRGBA())&&void 0!==e?e:"black",o=null!==(n=t.getShadowBlur())&&void 0!==n?n:5,s=null!==(i=t.getShadowOffset())&&void 0!==i?i:{x:0,y:0},a=t.getAbsoluteScale(),l=this.canvas.getPixelRatio(),u=a.x*l,c=a.y*l;this.setAttr("shadowColor",r),this.setAttr("shadowBlur",o*Math.min(Math.abs(u),Math.abs(c))),this.setAttr("shadowOffsetX",s.x*u),this.setAttr("shadowOffsetY",s.y*c)}}class E extends S{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){const e=t.getStrokeScaleEnabled();if(!e){this.save();const t=this.getCanvas().getPixelRatio();this.setTransform(t,0,0,t,0,0)}this._applyLineCap(t);const n=t.hitStrokeWidth(),i="auto"===n?t.strokeWidth():n;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}}}class k{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const e=(t||{}).pixelRatio||s.pixelRatio||function(){if(A)return A;const t=b.createCanvasElement(),e=t.getContext("2d");return A=(s._global.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),b.releaseCanvas(t),A}();this.pixelRatio=e,this._canvas=b.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){const e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";const e=this.pixelRatio;this.getContext()._context.scale(e,e)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";const e=this.pixelRatio;this.getContext()._context.scale(e,e)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,e){this.setWidth(t||0),this.setHeight(e||0)}toDataURL(t,e){try{return this._canvas.toDataURL(t,e)}catch(n){try{return this._canvas.toDataURL()}catch(i){return b.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}class M extends k{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:0,height:0,willReadFrequently:!1};super(t),this.context=new F(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}class T extends k{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:0,height:0};super(t),this.hitCanvas=!0,this.context=new E(this),this.setSize(t.width,t.height)}}const P={get isDragging(){let t=!1;return P._dragElements.forEach(e=>{"dragging"===e.dragStatus&&(t=!0)}),t},justDragged:!1,get node(){let t;return P._dragElements.forEach(e=>{t=e.node}),t},_dragElements:new Map,_drag(t){const e=[];P._dragElements.forEach((n,i)=>{const{node:r}=n,o=r.getStage();o.setPointersPositions(t),void 0===n.pointerId&&(n.pointerId=b._getFirstPointerId(t));const s=o._changedPointerPositions.find(t=>t.id===n.pointerId);if(s){if("dragging"!==n.dragStatus){const e=r.dragDistance();if(Math.max(Math.abs(s.x-n.startPointerPos.x),Math.abs(s.y-n.startPointerPos.y))<e)return;if(r.startDrag({evt:t}),!r.isDragging())return}r._setDragPosition(t,n),e.push(r)}}),e.forEach(e=>{e.fire("dragmove",{type:"dragmove",target:e,evt:t},!0)})},_endDragBefore(t){const e=[];P._dragElements.forEach(n=>{const{node:i}=n,r=i.getStage();t&&r.setPointersPositions(t);if(!r._changedPointerPositions.find(t=>t.id===n.pointerId))return;"dragging"!==n.dragStatus&&"stopped"!==n.dragStatus||(P.justDragged=!0,s._mouseListenClick=!1,s._touchListenClick=!1,s._pointerListenClick=!1,n.dragStatus="stopped");const o=n.node.getLayer()||n.node instanceof s.Stage&&n.node;o&&-1===e.indexOf(o)&&e.push(o)}),e.forEach(t=>{t.draw()})},_endDragAfter(t){P._dragElements.forEach((e,n)=>{"stopped"===e.dragStatus&&e.node.fire("dragend",{type:"dragend",target:e.node,evt:t},!0),"dragging"!==e.dragStatus&&P._dragElements.delete(n)})}};function _(t){return b._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||b._isBoolean(t)?t:Object.prototype.toString.call(t)}function R(t){return t>255?255:t<0?0:Math.round(t)}function B(){if(s.isUnminified)return function(t,e){return b._isNumber(t)||b.warn(_(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function I(t){if(s.isUnminified)return function(e,n){let i=b._isNumber(e),r=b._isArray(e)&&e.length==t;return i||r||b.warn(_(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function N(){if(s.isUnminified)return function(t,e){return b._isNumber(t)||"auto"===t||b.warn(_(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function L(){if(s.isUnminified)return function(t,e){return b._isString(t)||b.warn(_(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function O(){if(s.isUnminified)return function(t,e){const n=b._isString(t),i="[object CanvasGradient]"===Object.prototype.toString.call(t)||t&&t.addColorStop;return n||i||b.warn(_(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function W(){if(s.isUnminified)return function(t,e){return!0===t||!1===t||b.warn(_(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}s.isBrowser&&(window.addEventListener("mouseup",P._endDragBefore,!0),window.addEventListener("touchend",P._endDragBefore,!0),window.addEventListener("touchcancel",P._endDragBefore,!0),window.addEventListener("mousemove",P._drag),window.addEventListener("touchmove",P._drag),window.addEventListener("mouseup",P._endDragAfter,!1),window.addEventListener("touchend",P._endDragAfter,!1),window.addEventListener("touchcancel",P._endDragAfter,!1));const z="get",j="set",U={addGetterSetter(t,e,n,i,r){U.addGetter(t,e,n),U.addSetter(t,e,i,r),U.addOverloadedGetterSetter(t,e)},addGetter(t,e,n){const i=z+b._capitalize(e);t.prototype[i]=t.prototype[i]||function(){const t=this.attrs[e];return void 0===t?n:t}},addSetter(t,e,n,i){const r=j+b._capitalize(e);t.prototype[r]||U.overWriteSetter(t,e,n,i)},overWriteSetter(t,e,n,i){const r=j+b._capitalize(e);t.prototype[r]=function(t){return n&&void 0!==t&&null!==t&&(t=n.call(this,t,e)),this._setAttr(e,t),i&&i.call(this),this}},addComponentsGetterSetter(t,e,n,i,r){const o=n.length,a=b._capitalize,l=z+a(e),u=j+a(e);t.prototype[l]=function(){const t={};for(let i=0;i<o;i++){const r=n[i];t[r]=this.getAttr(e+a(r))}return t};const c=function(t){if(s.isUnminified)return function(e,n){return void 0===e||null===e||b.isObject(e)||b.warn(_(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}(n);t.prototype[u]=function(t){const o=this.attrs[e];i&&(t=i.call(this,t,e)),c&&c.call(this,t,e);for(const n in t)t.hasOwnProperty(n)&&this._setAttr(e+a(n),t[n]);return t||n.forEach(t=>{this._setAttr(e+a(t),void 0)}),this._fireChangeEvent(e,o,t),r&&r.call(this),this},U.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter(t,e){const n=b._capitalize(e),i=j+n,r=z+n;t.prototype[e]=function(){return arguments.length?(this[i](arguments[0]),this):this[r]()}},addDeprecatedGetterSetter(t,e,n,i){b.error("Adding deprecated "+e);const r=z+b._capitalize(e),o=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[r]=function(){b.error(o);const t=this.attrs[e];return void 0===t?n:t},U.addSetter(t,e,i,function(){b.error(o)}),U.addOverloadedGetterSetter(t,e)},backCompat(t,e){b.each(e,function(e,n){const i=t.prototype[n],r=z+b._capitalize(e),o=j+b._capitalize(e);function s(){i.apply(this,arguments),b.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}t.prototype[e]=s,t.prototype[r]=s,t.prototype[o]=s})},afterSetFilter(){this._filterUpToDate=!1}},G=["x","y"];function V(t){const e=/(\w+)\(([^)]+)\)/g;let n;for(;null!==(n=e.exec(t));){const[,t,e]=n;switch(t){case"blur":{const t=parseFloat(e.replace("px",""));return function(e){this.blurRadius(.5*t);const n=s.Filters;n&&n.Blur&&n.Blur.call(this,e)}}case"brightness":{const t=e.includes("%")?parseFloat(e)/100:parseFloat(e);return function(e){this.brightness(t);const n=s.Filters;n&&n.Brightness&&n.Brightness.call(this,e)}}case"contrast":{const t=parseFloat(e);return function(e){const n=100*(Math.sqrt(t)-1);this.contrast(n);const i=s.Filters;i&&i.Contrast&&i.Contrast.call(this,e)}}case"grayscale":return function(t){const e=s.Filters;e&&e.Grayscale&&e.Grayscale.call(this,t)};case"sepia":return function(t){const e=s.Filters;e&&e.Sepia&&e.Sepia.call(this,t)};case"invert":return function(t){const e=s.Filters;e&&e.Invert&&e.Invert.call(this,t)};default:b.warn('CSS filter "'.concat(t,'" is not supported in fallback mode. Consider using function filters for better compatibility.'))}}return()=>{}}const H="absoluteOpacity",q="allEventListeners",X="absoluteTransform",K="absoluteScale",Y="canvas",Z="listening",Q="Shape",J=" ",$="stage",tt="transform",et="visible",nt=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(J);let it=1;class rt{constructor(t){this._id=it++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){t!==tt&&t!==X||!this._cache.get(t)?t?this._cache.delete(t):this._cache.clear():this._cache.get(t).dirty=!0}_getCache(t,e){let n=this._cache.get(t);return(void 0===n||(t===tt||t===X)&&!0===n.dirty)&&(n=e.call(this),this._cache.set(t,n)),n}_calculate(t,e,n){if(!this._attachedDepsListeners.get(t)){const n=e.map(t=>t+"Change.konva").join(J);this.on(n,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Y)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===X&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Y)){const{scene:t,filter:e,hit:n,buffer:i}=this._cache.get(Y);b.releaseCanvas(t,e,n,i),this._cache.delete(Y)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const e=t||{};let n={};void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height||(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let i=Math.ceil(e.width||n.width),r=Math.ceil(e.height||n.height),o=e.pixelRatio,s=void 0===e.x?Math.floor(n.x):e.x,a=void 0===e.y?Math.floor(n.y):e.y,l=e.offset||0,u=e.drawBorder||!1,c=e.hitCanvasPixelRatio||1;if(!i||!r)return void b.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");i+=2*l+(Math.abs(Math.round(n.x)-s)>.5?1:0),r+=2*l+(Math.abs(Math.round(n.y)-a)>.5?1:0),s-=l,a-=l;const h=new M({pixelRatio:o,width:i,height:r}),d=new M({pixelRatio:o,width:0,height:0,willReadFrequently:!0}),f=new T({pixelRatio:c,width:i,height:r}),p=h.getContext(),g=f.getContext(),m=new M({width:h.width/h.pixelRatio+Math.abs(s),height:h.height/h.pixelRatio+Math.abs(a),pixelRatio:h.pixelRatio}),v=m.getContext();return f.isCache=!0,h.isCache=!0,this._cache.delete(Y),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(h.getContext()._context.imageSmoothingEnabled=!1,d.getContext()._context.imageSmoothingEnabled=!1),p.save(),g.save(),v.save(),p.translate(-s,-a),g.translate(-s,-a),v.translate(-s,-a),m.x=s,m.y=a,this._isUnderCache=!0,this._clearSelfAndDescendantCache(H),this._clearSelfAndDescendantCache(K),this.drawScene(h,this,m),this.drawHit(f,this),this._isUnderCache=!1,p.restore(),g.restore(),u&&(p.save(),p.beginPath(),p.rect(0,0,i,r),p.closePath(),p.setAttr("strokeStyle","red"),p.setAttr("lineWidth",5),p.stroke(),p.restore()),this._cache.set(Y,{scene:h,filter:d,hit:f,buffer:m,x:s,y:a}),this._requestDraw(),this}isCached(){return this._cache.has(Y)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,e){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let i=1/0,r=1/0,o=-1/0,s=-1/0;const a=this.getAbsoluteTransform(e);return n.forEach(function(t){const e=a.point(t);void 0===i&&(i=o=e.x,r=s=e.y),i=Math.min(i,e.x),r=Math.min(r,e.y),o=Math.max(o,e.x),s=Math.max(s,e.y)}),{x:i,y:r,width:o-i,height:s-r}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const e=this._getCanvasCache();t.translate(e.x,e.y);const n=this._getCachedSceneCanvas(),i=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/i,n.height/i),t.restore()}_drawCachedHitCanvas(t){const e=this._getCanvasCache(),n=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t,e,n,i,r=this.filters(),o=this._getCanvasCache(),s=o.scene,a=o.filter,l=a.getContext();if(!r||0===r.length)return s;if(this._filterUpToDate)return a;let u=!0;for(let d=0;d<r.length;d++){"string"===typeof r[d]&&C();if("string"!==typeof r[d]||!C()){u=!1;break}}const c=s.pixelRatio;if(a.setSize(s.width/s.pixelRatio,s.height/s.pixelRatio),u){const t=r.join(" ");return l.save(),l.setAttr("filter",t),l.drawImage(s._canvas,0,0,s.getWidth()/c,s.getHeight()/c),l.restore(),this._filterUpToDate=!0,a}try{for(t=r.length,l.clear(),l.drawImage(s._canvas,0,0,s.getWidth()/c,s.getHeight()/c),e=l.getImageData(0,0,a.getWidth(),a.getHeight()),n=0;n<t;n++)i=r[n],"string"===typeof i&&(i=V(i)),i.call(this,e),l.putImageData(e,0,0)}catch(h){b.error("Unable to apply filter. "+h.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}return this._filterUpToDate=!0,a}on(t,e){if(this._cache&&this._cache.delete(q),3===arguments.length)return this._delegate.apply(this,arguments);const n=t.split(J);for(let i=0;i<n.length;i++){const t=n[i].split("."),r=t[0],o=t[1]||"";this.eventListeners[r]||(this.eventListeners[r]=[]),this.eventListeners[r].push({name:o,handler:e})}return this}off(t,e){let n,i,r,o,s,a,l=(t||"").split(J),u=l.length;if(this._cache&&this._cache.delete(q),!t)for(i in this.eventListeners)this._off(i);for(n=0;n<u;n++)if(r=l[n],o=r.split("."),s=o[0],a=o[1],s)this.eventListeners[s]&&this._off(s,a,e);else for(i in this.eventListeners)this._off(i,a,e);return this}dispatchEvent(t){const e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this}addEventListener(t,e){return this.on(t,function(t){e.call(this,t.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,e,n){const i=this;this.on(t,function(t){const r=t.target.findAncestors(e,!0,i);for(let e=0;e<r.length;e++)(t=b.cloneObject(t)).currentTarget=r[e],n.call(r[e],t)})}remove(){return this.isDragging()&&this.stopDrag(),P._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(X),this._clearSelfAndDescendantCache(H),this._clearSelfAndDescendantCache(K),this._clearSelfAndDescendantCache($),this._clearSelfAndDescendantCache(et),this._clearSelfAndDescendantCache(Z)}_remove(){this._clearCaches();const t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){const e="get"+b._capitalize(t);return b._isFunction(this[e])?this[e]():this.attrs[t]}getAncestors(){let t=this.getParent(),e=[];for(;t;)e.push(t),t=t.getParent();return e}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{let e,n;if(!t)return this;for(e in t)"children"!==e&&(n="set"+b._capitalize(e),b._isFunction(this[n])?this[n](t[e]):this._setAttr(e,t[e]))}),this}isListening(){return this._getCache(Z,this._isListening)}_isListening(t){if(!this.listening())return!1;const e=this.getParent();return!e||e===t||this===t||e._isListening(t)}isVisible(){return this._getCache(et,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const e=this.getParent();return!e||e===t||this===t||e._isVisible(t)}shouldDrawHit(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let i=!1;P._dragElements.forEach(t=>{"dragging"===t.dragStatus&&("Stage"===t.node.nodeType||t.node.getLayer()===n)&&(i=!0)});const r=!e&&!s.hitOnDragEnabled&&(i||s.isTransforming());return this.isListening()&&this.isVisible()&&!r}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t,e,n,i,r=this.getDepth(),o=this,s=0;const a=this.getStage();return"Stage"!==o.nodeType&&a&&function a(l){for(t=[],e=l.length,n=0;n<e;n++)i=l[n],s++,i.nodeType!==Q&&(t=t.concat(i.getChildren().slice())),i._id===o._id&&(n=e);t.length>0&&t[0].getDepth()<=r&&a(t)}(a.getChildren()),s}getDepth(){let t=0,e=this.parent;for(;e;)t++,e=e.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(tt),this._clearSelfAndDescendantCache(X)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const e=t.getPointerPosition();if(!e)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(e)}getAbsolutePosition(t){let e=!1,n=this.parent;for(;n;){if(n.isCached()){e=!0;break}n=n.parent}e&&!t&&(t=!0);const i=this.getAbsoluteTransform(t).getMatrix(),r=new u,o=this.offset();return r.m=i.slice(),r.translate(o.x,o.y),r.getTranslation()}setAbsolutePosition(t){const e=this._clearTransform(),{x:n,y:i}=e,r=(0,w.A)(e,G);this.attrs.x=n,this.attrs.y=i,this._clearCache(tt);const o=this._getAbsoluteTransform().copy();return o.invert(),o.translate(t.x,t.y),t={x:this.attrs.x+o.getTranslation().x,y:this.attrs.y+o.getTranslation().y},this._setTransform(r),this.setPosition({x:t.x,y:t.y}),this._clearCache(tt),this._clearSelfAndDescendantCache(X),this}_setTransform(t){let e;for(e in t)this.attrs[e]=t[e]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let e=t.x,n=t.y,i=this.x(),r=this.y();return void 0!==e&&(i+=e),void 0!==n&&(r+=n),this.setPosition({x:i,y:r}),this}_eachAncestorReverse(t,e){let n,i,r=[],o=this.getParent();if(!e||e._id!==this._id){for(r.unshift(this);o&&(!e||o._id!==e._id);)r.unshift(o),o=o.parent;for(n=r.length,i=0;i<n;i++)t(r[i])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return b.warn("Node has no parent. moveToTop function is ignored."),!1;const t=this.index;return t<this.parent.getChildren().length-1&&(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0)}moveUp(){if(!this.parent)return b.warn("Node has no parent. moveUp function is ignored."),!1;const t=this.index;return t<this.parent.getChildren().length-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)}moveDown(){if(!this.parent)return b.warn("Node has no parent. moveDown function is ignored."),!1;const t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)}moveToBottom(){if(!this.parent)return b.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)}setZIndex(t){if(!this.parent)return b.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&b.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(H,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t,e,n,i,r,o=this.getAttrs();const s={attrs:{},className:this.getClassName()};for(t in o)e=o[t],r=b.isObject(e)&&!b._isPlainObject(e)&&!b._isArray(e),r||(n="function"===typeof this[t]&&this[t],delete o[t],i=n?n.call(this):null,o[t]=e,i!==e&&(s.attrs[t]=e));return b._prepareToStringify(s)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,e,n){const i=[];e&&this._isMatch(t)&&i.push(this);let r=this.parent;for(;r;){if(r===n)return i;r._isMatch(t)&&i.push(r),r=r.parent}return i}isAncestorOf(t){return!1}findAncestor(t,e,n){return this.findAncestors(t,e,n)[0]}_isMatch(t){if(!t)return!1;if("function"===typeof t)return t(this);let e,n,i=t.replace(/ /g,"").split(","),r=i.length;for(e=0;e<r;e++)if(n=i[e],b.isValidSelector(n)||(b.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),b.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),b.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===n||this.nodeType===n)return!0;return!1}getLayer(){const t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache($,this._getStage)}_getStage(){const t=this.getParent();return t?t.getStage():null}fire(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(X,this._getAbsoluteTransform)}_getAbsoluteTransform(t){let e;if(t)return e=new u,this._eachAncestorReverse(function(t){const n=t.transformsEnabled();"all"===n?e.multiply(t.getTransform()):"position"===n&&e.translate(t.x()-t.offsetX(),t.y()-t.offsetY())},t),e;{e=this._cache.get(X)||new u,this.parent?this.parent.getAbsoluteTransform().copyInto(e):e.reset();const t=this.transformsEnabled();if("all"===t)e.multiply(this.getTransform());else if("position"===t){const t=this.attrs.x||0,n=this.attrs.y||0,i=this.attrs.offsetX||0,r=this.attrs.offsetY||0;e.translate(t-i,n-r)}return e.dirty=!1,e}}getAbsoluteScale(t){let e=this;for(;e;)e._isUnderCache&&(t=e),e=e.getParent();const n=this.getAbsoluteTransform(t).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(tt,this._getTransform)}_getTransform(){var t,e;const n=this._cache.get(tt)||new u;n.reset();const i=this.x(),r=this.y(),o=s.getAngle(this.rotation()),a=null!==(t=this.attrs.scaleX)&&void 0!==t?t:1,l=null!==(e=this.attrs.scaleY)&&void 0!==e?e:1,c=this.attrs.skewX||0,h=this.attrs.skewY||0,d=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return 0===i&&0===r||n.translate(i,r),0!==o&&n.rotate(o),0===c&&0===h||n.skew(c,h),1===a&&1===l||n.scale(a,l),0===d&&0===f||n.translate(-1*d,-1*f),n.dirty=!1,n}clone(t){let e,n,i,r,o,s=b.cloneObject(this.attrs);for(e in t)s[e]=t[e];const a=new this.constructor(s);for(e in this.eventListeners)for(n=this.eventListeners[e],i=n.length,r=0;r<i;r++)o=n[r],o.name.indexOf("konva")<0&&(a.eventListeners[e]||(a.eventListeners[e]=[]),a.eventListeners[e].push(o));return a}_toKonvaCanvas(t){t=t||{};const e=this.getClientRect(),n=this.getStage(),i=void 0!==t.x?t.x:Math.floor(e.x),r=void 0!==t.y?t.y:Math.floor(e.y),o=t.pixelRatio||1,s=new M({width:t.width||Math.ceil(e.width)||(n?n.width():0),height:t.height||Math.ceil(e.height)||(n?n.height():0),pixelRatio:o}),a=s.getContext(),l=new M({width:s.width/s.pixelRatio+Math.abs(i),height:s.height/s.pixelRatio+Math.abs(r),pixelRatio:s.pixelRatio});return!1===t.imageSmoothingEnabled&&(a._context.imageSmoothingEnabled=!1),a.save(),(i||r)&&a.translate(-1*i,-1*r),this.drawScene(s,void 0,l),a.restore(),s}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){const e=(t=t||{}).mimeType||null,n=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(e,n);return t.callback&&t.callback(i),i}toImage(t){return new Promise((e,n)=>{try{const n=null===t||void 0===t?void 0:t.callback;n&&delete t.callback,b._urlToImage(this.toDataURL(t),function(t){e(t),null===n||void 0===n||n(t)})}catch(i){n(i)}})}toBlob(t){return new Promise((e,n)=>{try{const n=null===t||void 0===t?void 0:t.callback;n&&delete t.callback,this.toCanvas(t).toBlob(t=>{e(t),null===n||void 0===n||n(t)},null===t||void 0===t?void 0:t.mimeType,null===t||void 0===t?void 0:t.quality)}catch(i){n(i)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():s.dragDistance}_off(t,e,n){let i,r,o,s=this.eventListeners[t];for(i=0;i<s.length;i++)if(r=s[i].name,o=s[i].handler,("konva"!==r||"konva"===e)&&(!e||r===e)&&(!n||n===o)){if(s.splice(i,1),0===s.length){delete this.eventListeners[t];break}i--}}_fireChangeEvent(t,e,n){this._fire(t+"Change",{oldVal:e,newVal:n})}addName(t){if(!this.hasName(t)){const e=this.name(),n=e?e+" "+t:t;this.name(n)}return this}hasName(t){if(!t)return!1;const e=this.name();if(!e)return!1;return-1!==(e||"").split(/\s/g).indexOf(t)}removeName(t){const e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return-1!==n&&(e.splice(n,1),this.name(e.join(" "))),this}setAttr(t,e){const n=this["set"+b._capitalize(t)];return b._isFunction(n)?n.call(this,e):this._setAttr(t,e),this}_requestDraw(){if(s.autoDrawEnabled){const t=this.getLayer()||this.getStage();null===t||void 0===t||t.batchDraw()}}_setAttr(t,e){const n=this.attrs[t];(n!==e||b.isObject(e))&&(void 0===e||null===e?delete this.attrs[t]:this.attrs[t]=e,this._shouldFireChangeEvents&&this._fireChangeEvent(t,n,e),this._requestDraw())}_setComponentAttr(t,e,n){let i;void 0!==n&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=n,this._fireChangeEvent(t,i,n))}_fireAndBubble(t,e,n){e&&this.nodeType===Q&&(e.target=this);const i=["mouseenter","mouseleave","pointerenter","pointerleave","touchenter","touchleave"];if(!(-1!==i.indexOf(t)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n))){this._fire(t,e);const r=-1!==i.indexOf(t)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,e,n):this._fireAndBubble.call(this.parent,t,e))}}_getProtoListeners(t){var e,n,i;const r=null!==(e=this._cache.get(q))&&void 0!==e?e:{};let o=null===r||void 0===r?void 0:r[t];if(void 0===o){o=[];let e=Object.getPrototypeOf(this);for(;e;){const r=null!==(i=null===(n=e.eventListeners)||void 0===n?void 0:n[t])&&void 0!==i?i:[];o.push(...r),e=Object.getPrototypeOf(e)}r[t]=o,this._cache.set(q,r)}return o}_fire(t,e){(e=e||{}).currentTarget=this,e.type=t;const n=this._getProtoListeners(t);if(n)for(let r=0;r<n.length;r++)n[r].handler.call(this,e);const i=this.eventListeners[t];if(i)for(let r=0;r<i.length;r++)i[r].handler.call(this,e)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){const e=t?t.pointerId:void 0,n=this.getStage(),i=this.getAbsolutePosition();if(!n)return;const r=n._getPointerById(e)||n._changedPointerPositions[0]||i;P._dragElements.set(this._id,{node:this,startPointerPos:r,offset:{x:r.x-i.x,y:r.y-i.y},dragStatus:"ready",pointerId:e})}startDrag(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];P._dragElements.has(this._id)||this._createDragElement(t);P._dragElements.get(this._id).dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},e)}_setDragPosition(t,e){const n=this.getStage()._getPointerById(e.pointerId);if(!n)return;let i={x:n.x-e.offset.x,y:n.y-e.offset.y};const r=this.dragBoundFunc();if(void 0!==r){const e=r.call(this,i,t);e?i=e:b.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}stopDrag(t){const e=P._dragElements.get(this._id);e&&(e.dragStatus="stopped"),P._endDragBefore(t),P._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=P._dragElements.get(this._id);return!!t&&"dragging"===t.dragStatus}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){if(!(!(void 0!==t.evt.button)||s.dragButtons.indexOf(t.evt.button)>=0))return;if(this.isDragging())return;let e=!1;P._dragElements.forEach(t=>{this.isAncestorOf(t.node)&&(e=!0)}),e||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();if(!this.getStage())return;const t=P._dragElements.get(this._id),e=t&&"dragging"===t.dragStatus,n=t&&"ready"===t.dragStatus;e?this.stopDrag():n&&P._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0};const e=this.getStage();if(!e)return!1;const n={x:-t.x,y:-t.y,width:e.width()+2*t.x,height:e.height()+2*t.y};return b.haveIntersection(n,this.getClientRect())}static create(t,e){return b._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)}static _createNode(t,e){let n,i,r,o=rt.prototype.getClassName.call(t),a=t.children;e&&(t.attrs.container=e),s[o]||(b.warn('Can not find a node with class name "'+o+'". Fallback to "Shape".'),o="Shape");if(n=new(0,s[o])(t.attrs),a)for(i=a.length,r=0;r<i;r++)n.add(rt._createNode(a[r]));return n}}rt.prototype.nodeType="Node",rt.prototype._attrsAffectingSize=[],rt.prototype.eventListeners={},rt.prototype.on.call(rt.prototype,nt,function(){this._batchingTransformChange?this._needClearTransformCache=!0:(this._clearCache(tt),this._clearSelfAndDescendantCache(X))}),rt.prototype.on.call(rt.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(et)}),rt.prototype.on.call(rt.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(Z)}),rt.prototype.on.call(rt.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(H)});const ot=U.addGetterSetter;ot(rt,"zIndex"),ot(rt,"absolutePosition"),ot(rt,"position"),ot(rt,"x",0,B()),ot(rt,"y",0,B()),ot(rt,"globalCompositeOperation","source-over",L()),ot(rt,"opacity",1,B()),ot(rt,"name","",L()),ot(rt,"id","",L()),ot(rt,"rotation",0,B()),U.addComponentsGetterSetter(rt,"scale",["x","y"]),ot(rt,"scaleX",1,B()),ot(rt,"scaleY",1,B()),U.addComponentsGetterSetter(rt,"skew",["x","y"]),ot(rt,"skewX",0,B()),ot(rt,"skewY",0,B()),U.addComponentsGetterSetter(rt,"offset",["x","y"]),ot(rt,"offsetX",0,B()),ot(rt,"offsetY",0,B()),ot(rt,"dragDistance",void 0,B()),ot(rt,"width",0,B()),ot(rt,"height",0,B()),ot(rt,"listening",!0,W()),ot(rt,"preventDefault",!0,W()),ot(rt,"filters",void 0,function(t){return this._filterUpToDate=!1,t}),ot(rt,"visible",!0,W()),ot(rt,"transformsEnabled","all",L()),ot(rt,"size"),ot(rt,"dragBoundFunc"),ot(rt,"draggable",!1,W()),U.backCompat(rt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class st extends rt{constructor(){super(...arguments),this.children=[]}getChildren(t){const e=this.children||[];return t?e.filter(t):e}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(){if(0===arguments.length)return this;if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(t<0||arguments.length<=t?void 0:arguments[t]);return this}const t=arguments.length<=0?void 0:arguments[0];return t.getParent()?(t.moveTo(this),this):(this._validateAdd(t),t.index=this.getChildren().length,t.parent=this,t._clearCaches(),this.getChildren().push(t),this._fire("add",{child:t}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){const e=this._generalFind(t,!0);return e.length>0?e[0]:void 0}_generalFind(t,e){const n=[];return this._descendants(i=>{const r=i._isMatch(t);return r&&n.push(i),!(!r||!e)}),n}_descendants(t){let e=!1;const n=this.getChildren();for(const i of n){if(e=t(i),e)return!0;if(i.hasChildren()&&(e=i._descendants(t),e))return!0}return!1}toObject(){const t=rt.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(e=>{t.children.push(e.toObject())}),t}isAncestorOf(t){let e=t.getParent();for(;e;){if(e._id===this._id)return!0;e=e.getParent()}return!1}clone(t){const e=rt.prototype.clone.call(this,t);return this.getChildren().forEach(function(t){e.add(t.clone())}),e}getAllIntersections(t){const e=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&e.push(n)}),e}_clearSelfAndDescendantCache(t){var e;super._clearSelfAndDescendantCache(t),this.isCached()||null===(e=this.children)||void 0===e||e.forEach(function(e){e._clearSelfAndDescendantCache(t)})}_setChildrenIndices(){var t;null===(t=this.children)||void 0===t||t.forEach(function(t,e){t.index=e}),this._requestDraw()}drawScene(t,e,n){const i=this.getLayer(),r=t||i&&i.getCanvas(),o=r&&r.getContext(),s=this._getCanvasCache(),a=s&&s.scene,l=r&&r.isCache;if(!this.isVisible()&&!l)return this;if(a){o.save();const t=this.getAbsoluteTransform(e).getMatrix();o.transform(t[0],t[1],t[2],t[3],t[4],t[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",r,e,n);return this}drawHit(t,e){if(!this.shouldDrawHit(e))return this;const n=this.getLayer(),i=t||n&&n.hitCanvas,r=i&&i.getContext(),o=this._getCanvasCache();if(o&&o.hit){r.save();const t=this.getAbsoluteTransform(e).getMatrix();r.transform(t[0],t[1],t[2],t[3],t[4],t[5]),this._drawCachedHitCanvas(r),r.restore()}else this._drawChildren("drawHit",i,e);return this}_drawChildren(t,e,n,i){var r;const o=e&&e.getContext(),s=this.clipWidth(),a=this.clipHeight(),l=this.clipFunc(),u="number"===typeof s&&"number"===typeof a||l,c=n===this;if(u){o.save();const t=this.getAbsoluteTransform(n);let e,i=t.getMatrix();if(o.transform(i[0],i[1],i[2],i[3],i[4],i[5]),o.beginPath(),l)e=l.call(this,o,this);else{const t=this.clipX(),e=this.clipY();o.rect(t||0,e||0,s,a)}o.clip.apply(o,e),i=t.copy().invert().getMatrix(),o.transform(i[0],i[1],i[2],i[3],i[4],i[5])}const h=!c&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===t;h&&(o.save(),o._applyGlobalCompositeOperation(this)),null===(r=this.children)||void 0===r||r.forEach(function(r){r[t](e,n,i)}),h&&o.restore(),u&&o.restore()}getClientRect(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var e;const n=t.skipTransform,i=t.relativeTo;let r,o,s,a,l={x:1/0,y:1/0,width:0,height:0};const u=this;null===(e=this.children)||void 0===e||e.forEach(function(e){if(!e.visible())return;const n=e.getClientRect({relativeTo:u,skipShadow:t.skipShadow,skipStroke:t.skipStroke});0===n.width&&0===n.height||(void 0===r?(r=n.x,o=n.y,s=n.x+n.width,a=n.y+n.height):(r=Math.min(r,n.x),o=Math.min(o,n.y),s=Math.max(s,n.x+n.width),a=Math.max(a,n.y+n.height)))});const c=this.find("Shape");let h=!1;for(let d=0;d<c.length;d++){if(c[d]._isVisible(this)){h=!0;break}}return l=h&&void 0!==r?{x:r,y:o,width:s-r,height:a-o}:{x:0,y:0,width:0,height:0},n?l:this._transformedRect(l,i)}}U.addComponentsGetterSetter(st,"clip",["x","y","width","height"]),U.addGetterSetter(st,"clipX",void 0,B()),U.addGetterSetter(st,"clipY",void 0,B()),U.addGetterSetter(st,"clipWidth",void 0,B()),U.addGetterSetter(st,"clipHeight",void 0,B()),U.addGetterSetter(st,"clipFunc");var at=n(89379);const lt=new Map,ut=void 0!==s._global.PointerEvent;function ct(t){return lt.get(t)}function ht(t){return{evt:t,pointerId:t.pointerId}}function dt(t,e){return lt.get(t)===e}function ft(t,e){pt(t);e.getStage()&&(lt.set(t,e),ut&&e._fire("gotpointercapture",ht(new PointerEvent("gotpointercapture"))))}function pt(t,e){const n=lt.get(t);if(!n)return;const i=n.getStage();i&&i.content,lt.delete(t),ut&&n._fire("lostpointercapture",ht(new PointerEvent("lostpointercapture")))}const gt="mouseleave",mt="mouseover",vt="mouseenter",yt="mousemove",bt="mousedown",wt="mouseup",Dt="pointermove",At="pointerdown",xt="pointerup",Ct="pointercancel",St="pointerout",Ft="pointerleave",Et="pointerover",kt="pointerenter",Mt="contextmenu",Tt="touchstart",Pt="touchend",_t="touchmove",Rt="touchcancel",Bt="wheel",It=[[vt,"_pointerenter"],[bt,"_pointerdown"],[yt,"_pointermove"],[wt,"_pointerup"],[gt,"_pointerleave"],[Tt,"_pointerdown"],[_t,"_pointermove"],[Pt,"_pointerup"],[Rt,"_pointercancel"],[mt,"_pointerover"],[Bt,"_wheel"],[Mt,"_contextmenu"],[At,"_pointerdown"],[Dt,"_pointermove"],[xt,"_pointerup"],[Ct,"_pointercancel"],[Ft,"_pointerleave"],["lostpointercapture","_lostpointercapture"]],Nt={mouse:{[St]:"mouseout",[Ft]:gt,[Et]:mt,[kt]:vt,[Dt]:yt,[At]:bt,[xt]:wt,[Ct]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[St]:"touchout",[Ft]:"touchleave",[Et]:"touchover",[kt]:"touchenter",[Dt]:_t,[At]:Tt,[xt]:Pt,[Ct]:Rt,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[St]:St,[Ft]:Ft,[Et]:Et,[kt]:kt,[Dt]:Dt,[At]:At,[xt]:xt,[Ct]:Ct,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},Lt=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",Ot=t=>{const e=Lt(t);return"pointer"===e?s.pointerEventsEnabled&&Nt.pointer:"touch"===e?Nt.touch:"mouse"===e?Nt.mouse:void 0};function Wt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t.clipFunc||t.clipWidth||t.clipHeight)&&b.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}const zt=[];class jt extends st{constructor(t){super(Wt(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),zt.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{Wt(this.attrs)}),this._checkVisibility()}_validateAdd(t){const e="Layer"===t.getType(),n="FastLayer"===t.getType();e||n||b.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if("string"===typeof t){let e;if("."===t.charAt(0)){const e=t.slice(1);t=document.getElementsByClassName(e)[0]}else e="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(e);if(!t)throw"Can not find container in document with id "+e}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const t=this.children,e=t.length;for(let n=0;n<e;n++)t[n].clear();return this}clone(t){return t||(t={}),t.container="undefined"!==typeof document&&document.createElement("div"),st.prototype.clone.call(this,t)}destroy(){super.destroy();const t=this.content;t&&b._isInDocument(t)&&this.container().removeChild(t);const e=zt.indexOf(this);return e>-1&&zt.splice(e,1),b.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(b.warn("Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);"),null)}_getPointerById(t){return this._pointerPositions.find(e=>e.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){(t=(0,at.A)({},t)).x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();const e=new M({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),n=e.getContext()._context,i=this.children;return(t.x||t.y)&&n.translate(-1*t.x,-1*t.y),i.forEach(function(e){if(!e.isVisible())return;const i=e._toKonvaCanvas(t);n.drawImage(i._canvas,t.x,t.y,i.getWidth()/i.getPixelRatio(),i.getHeight()/i.getPixelRatio())}),e}getIntersection(t){if(!t)return null;const e=this.children;for(let n=e.length-1;n>=0;n--){const i=e[n].getIntersection(t);if(i)return i}return null}_resizeDOM(){const t=this.width(),e=this.height();this.content&&(this.content.style.width=t+"px",this.content.style.height=e+"px"),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.forEach(n=>{n.setSize({width:t,height:e}),n.draw()})}add(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}super.add(t);const r=this.children.length;return r>5&&b.warn("The stage has "+r+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),s.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return dt(t,this)}setPointerCapture(t){ft(t,this)}releaseCapture(t){pt(t)}getLayers(){return this.children}_bindContentEvents(){s.isBrowser&&It.forEach(t=>{let[e,n]=t;this.content.addEventListener(e,t=>{this[n](t)},{passive:!1})})}_pointerenter(t){this.setPointersPositions(t);const e=Ot(t.type);e&&this._fire(e.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const e=Ot(t.type);e&&this._fire(e.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let e=this[t+"targetShape"];return e&&!e.getStage()&&(e=null),e}_pointerleave(t){const e=Ot(t.type),n=Lt(t.type);if(!e)return;this.setPointersPositions(t);const i=this._getTargetShape(n),r=!(s.isDragging()||s.isTransforming())||s.hitOnDragEnabled;i&&r?(i._fireAndBubble(e.pointerout,{evt:t}),i._fireAndBubble(e.pointerleave,{evt:t}),this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this[n+"targetShape"]=null):r&&(this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(e.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(t){const e=Ot(t.type),n=Lt(t.type);if(!e)return;this.setPointersPositions(t);let i=!1;this._changedPointerPositions.forEach(r=>{const o=this.getIntersection(r);if(P.justDragged=!1,s["_"+n+"ListenClick"]=!0,!o||!o.isListening())return void(this[n+"ClickStartShape"]=void 0);s.capturePointerEventsEnabled&&o.setPointerCapture(r.id),this[n+"ClickStartShape"]=o,o._fireAndBubble(e.pointerdown,{evt:t,pointerId:r.id}),i=!0;const a=t.type.indexOf("touch")>=0;o.preventDefault()&&t.cancelable&&a&&t.preventDefault()}),i||this._fire(e.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(t){const e=Ot(t.type),n=Lt(t.type);if(!e)return;const i=t.type.indexOf("touch")>=0||"touch"===t.pointerType;s.isDragging()&&P.node.preventDefault()&&t.cancelable&&i&&t.preventDefault(),this.setPointersPositions(t);if(!(!(s.isDragging()||s.isTransforming())||s.hitOnDragEnabled))return;const r={};let o=!1;const a=this._getTargetShape(n);this._changedPointerPositions.forEach(i=>{const s=ct(i.id)||this.getIntersection(i),l=i.id,u={evt:t,pointerId:l},c=a!==s;if(c&&a&&(a._fireAndBubble(e.pointerout,(0,at.A)({},u),s),a._fireAndBubble(e.pointerleave,(0,at.A)({},u),s)),s){if(r[s._id])return;r[s._id]=!0}s&&s.isListening()?(o=!0,c&&(s._fireAndBubble(e.pointerover,(0,at.A)({},u),a),s._fireAndBubble(e.pointerenter,(0,at.A)({},u),a),this[n+"targetShape"]=s),s._fireAndBubble(e.pointermove,(0,at.A)({},u))):a&&(this._fire(e.pointerover,{evt:t,target:this,currentTarget:this,pointerId:l}),this[n+"targetShape"]=null)}),o||this._fire(e.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const e=Ot(t.type),n=Lt(t.type);if(!e)return;this.setPointersPositions(t);const i=this[n+"ClickStartShape"],r=this[n+"ClickEndShape"],o={};let a=!1;this._changedPointerPositions.forEach(l=>{const u=ct(l.id)||this.getIntersection(l);if(u){if(u.releaseCapture(l.id),o[u._id])return;o[u._id]=!0}const c=l.id,h={evt:t,pointerId:c};let d=!1;s["_"+n+"InDblClickWindow"]?(d=!0,clearTimeout(this[n+"DblTimeout"])):P.justDragged||(s["_"+n+"InDblClickWindow"]=!0,clearTimeout(this[n+"DblTimeout"])),this[n+"DblTimeout"]=setTimeout(function(){s["_"+n+"InDblClickWindow"]=!1},s.dblClickWindow),u&&u.isListening()?(a=!0,this[n+"ClickEndShape"]=u,u._fireAndBubble(e.pointerup,(0,at.A)({},h)),s["_"+n+"ListenClick"]&&i&&i===u&&(u._fireAndBubble(e.pointerclick,(0,at.A)({},h)),d&&r&&r===u&&u._fireAndBubble(e.pointerdblclick,(0,at.A)({},h)))):(this[n+"ClickEndShape"]=null,a||(this._fire(e.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),a=!0),s["_"+n+"ListenClick"]&&this._fire(e.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:c}),d&&this._fire(e.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:c}))}),a||this._fire(e.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),s["_"+n+"ListenClick"]=!1,t.cancelable&&"touch"!==n&&"pointer"!==n&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);const e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(Mt,{evt:t}):this._fire(Mt,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);const e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(Bt,{evt:t}):this._fire(Bt,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const e=ct(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(xt,ht(t)),pt(t.pointerId)}_lostpointercapture(t){pt(t.pointerId)}setPointersPositions(t){const e=this._getContentPosition();let n=null,i=null;void 0!==(t=t||window.event).touches?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,t=>{this._pointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,t=>{this._changedPointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})})):(n=(t.clientX-e.left)/e.scaleX,i=(t.clientY-e.top)/e.scaleY,this.pointerPos={x:n,y:i},this._pointerPositions=[{x:n,y:i,id:b._getFirstPointerId(t)}],this._changedPointerPositions=[{x:n,y:i,id:b._getFirstPointerId(t)}])}_setPointerPosition(t){b.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new M({width:this.width(),height:this.height()}),this.bufferHitCanvas=new T({pixelRatio:1,width:this.width(),height:this.height()}),!s.isBrowser)return;const t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}cache(){return b.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}}jt.prototype.nodeType="Stage",a(jt),U.addGetterSetter(jt,"container"),s.isBrowser&&document.addEventListener("visibilitychange",()=>{zt.forEach(t=>{t.batchDraw()})});const Ut="hasShadow",Gt="shadowRGBA",Vt="patternImage",Ht="linearGradient",qt="radialGradient";let Xt;function Kt(){return Xt||(Xt=b.createCanvasElement().getContext("2d"),Xt)}const Yt={};class Zt extends rt{constructor(t){let e;super(t);let n=0;for(;e=b.getHitColor(),!e||e in Yt;)if(n++,n>=1e4){b.warn("Failed to find a unique color key for a shape. Konva may work incorrectly. Most likely your browser is using canvas farbling. Consider disabling it."),e=b.getRandomColor();break}this.colorKey=e,Yt[e]=this}getContext(){return b.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return b.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(Ut,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(Vt,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const t=Kt().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(t&&t.setTransform){const e=new u;e.translate(this.fillPatternX(),this.fillPatternY()),e.rotate(s.getAngle(this.fillPatternRotation())),e.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),e.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const n=e.getMatrix(),i="undefined"===typeof DOMMatrix?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);t.setTransform(i)}return t}}_getLinearGradient(){return this._getCache(Ht,this.__getLinearGradient)}__getLinearGradient(){const t=this.fillLinearGradientColorStops();if(t){const e=Kt(),n=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),r=e.createLinearGradient(n.x,n.y,i.x,i.y);for(let o=0;o<t.length;o+=2)r.addColorStop(t[o],t[o+1]);return r}}_getRadialGradient(){return this._getCache(qt,this.__getRadialGradient)}__getRadialGradient(){const t=this.fillRadialGradientColorStops();if(t){const e=Kt(),n=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),r=e.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius());for(let o=0;o<t.length;o+=2)r.addColorStop(t[o],t[o+1]);return r}}getShadowRGBA(){return this._getCache(Gt,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const t=b.colorToRGBA(this.shadowColor());return t?"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")":void 0}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops()))}hasHitStroke(){const t=this.hitStrokeWidth();return"auto"===t?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){const e=this.getStage();if(!e)return!1;const n=e.bufferHitCanvas;n.getContext().clear(),this.drawHit(n,void 0,!0);return n.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data[3]>0}destroy(){return rt.prototype.destroy.call(this),delete Yt[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var e;if(!(null===(e=this.attrs.perfectDrawEnabled)||void 0===e||e))return!1;const n=t||this.hasFill(),i=this.hasStroke(),r=1!==this.getAbsoluteOpacity();if(n&&i&&r)return!0;const o=this.hasShadow(),s=this.shadowForStrokeEnabled();return!!(n&&i&&o&&s)}setStrokeHitEnabled(t){b.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){const t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!1,n=this.getParent();for(;n;){if(n.isCached()){e=!0;break}n=n.getParent()}const i=t.skipTransform,r=t.relativeTo||e&&this.getStage()||void 0,o=this.getSelfRect(),s=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,a=o.width+s,l=o.height+s,u=!t.skipShadow&&this.hasShadow(),c=u?this.shadowOffsetX():0,h=u?this.shadowOffsetY():0,d=a+Math.abs(c),f=l+Math.abs(h),p=u&&this.shadowBlur()||0,g={width:d+2*p,height:f+2*p,x:-(s/2+p)+Math.min(c,0)+o.x,y:-(s/2+p)+Math.min(h,0)+o.y};return i?g:this._transformedRect(g,r)}drawScene(t,e,n){const i=this.getLayer(),r=(t||i.getCanvas()).getContext(),o=this._getCanvasCache(),s=this.getSceneFunc(),a=this.hasShadow();let l;const u=e===this;if(!this.isVisible()&&!u)return this;if(o){r.save();const t=this.getAbsoluteTransform(e).getMatrix();return r.transform(t[0],t[1],t[2],t[3],t[4],t[5]),this._drawCachedSceneCanvas(r),r.restore(),this}if(!s)return this;if(r.save(),this._useBufferCanvas()){l=this.getStage();const t=n||l.bufferCanvas,i=t.getContext();i.clear(),i.save(),i._applyLineJoin(this),i._applyMiterLimit(this);const o=this.getAbsoluteTransform(e).getMatrix();i.transform(o[0],o[1],o[2],o[3],o[4],o[5]),s.call(this,i,this),i.restore();const c=t.pixelRatio;a&&r._applyShadow(this),u||(r._applyOpacity(this),r._applyGlobalCompositeOperation(this)),r.drawImage(t._canvas,t.x||0,t.y||0,t.width/c,t.height/c)}else{if(r._applyLineJoin(this),r._applyMiterLimit(this),!u){const t=this.getAbsoluteTransform(e).getMatrix();r.transform(t[0],t[1],t[2],t[3],t[4],t[5]),r._applyOpacity(this),r._applyGlobalCompositeOperation(this)}a&&r._applyShadow(this),s.call(this,r,this)}return r.restore(),this}drawHit(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.shouldDrawHit(e,n))return this;const i=this.getLayer(),r=t||i.hitCanvas,o=r&&r.getContext(),s=this.hitFunc()||this.sceneFunc(),a=this._getCanvasCache(),l=a&&a.hit;if(this.colorKey||b.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),l){o.save();const t=this.getAbsoluteTransform(e).getMatrix();return o.transform(t[0],t[1],t[2],t[3],t[4],t[5]),this._drawCachedHitCanvas(o),o.restore(),this}if(!s)return this;o.save(),o._applyLineJoin(this),o._applyMiterLimit(this);if(!(this===e)){const t=this.getAbsoluteTransform(e).getMatrix();o.transform(t[0],t[1],t[2],t[3],t[4],t[5])}return s.call(this,o,this),o.restore(),this}drawHitFromCache(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const e=this._getCanvasCache(),n=this._getCachedSceneCanvas(),i=e.hit,r=i.getContext(),o=i.getWidth(),s=i.getHeight();r.clear(),r.drawImage(n._canvas,0,0,o,s);try{const e=r.getImageData(0,0,o,s),n=e.data,i=n.length,a=b._hexToRgb(this.colorKey);for(let r=0;r<i;r+=4){n[r+3]>t?(n[r]=a.r,n[r+1]=a.g,n[r+2]=a.b,n[r+3]=255):n[r+3]=0}r.putImageData(e,0,0)}catch(a){b.error("Unable to draw hit graph from cached scene canvas. "+a.message)}return this}hasPointerCapture(t){return dt(t,this)}setPointerCapture(t){ft(t,this)}releaseCapture(t){pt(t)}}Zt.prototype._fillFunc=function(t){const e=this.attrs.fillRule;e?t.fill(e):t.fill()},Zt.prototype._strokeFunc=function(t){t.stroke()},Zt.prototype._fillFuncHit=function(t){const e=this.attrs.fillRule;e?t.fill(e):t.fill()},Zt.prototype._strokeFuncHit=function(t){t.stroke()},Zt.prototype._centroid=!1,Zt.prototype.nodeType="Shape",a(Zt),Zt.prototype.eventListeners={},Zt.prototype.on.call(Zt.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",function(){this._clearCache(Ut)}),Zt.prototype.on.call(Zt.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",function(){this._clearCache(Gt)}),Zt.prototype.on.call(Zt.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",function(){this._clearCache(Vt)}),Zt.prototype.on.call(Zt.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",function(){this._clearCache(Ht)}),Zt.prototype.on.call(Zt.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",function(){this._clearCache(qt)}),U.addGetterSetter(Zt,"stroke",void 0,O()),U.addGetterSetter(Zt,"strokeWidth",2,B()),U.addGetterSetter(Zt,"fillAfterStrokeEnabled",!1),U.addGetterSetter(Zt,"hitStrokeWidth","auto",N()),U.addGetterSetter(Zt,"strokeHitEnabled",!0,W()),U.addGetterSetter(Zt,"perfectDrawEnabled",!0,W()),U.addGetterSetter(Zt,"shadowForStrokeEnabled",!0,W()),U.addGetterSetter(Zt,"lineJoin"),U.addGetterSetter(Zt,"lineCap"),U.addGetterSetter(Zt,"miterLimit"),U.addGetterSetter(Zt,"sceneFunc"),U.addGetterSetter(Zt,"hitFunc"),U.addGetterSetter(Zt,"dash"),U.addGetterSetter(Zt,"dashOffset",0,B()),U.addGetterSetter(Zt,"shadowColor",void 0,L()),U.addGetterSetter(Zt,"shadowBlur",0,B()),U.addGetterSetter(Zt,"shadowOpacity",1,B()),U.addComponentsGetterSetter(Zt,"shadowOffset",["x","y"]),U.addGetterSetter(Zt,"shadowOffsetX",0,B()),U.addGetterSetter(Zt,"shadowOffsetY",0,B()),U.addGetterSetter(Zt,"fillPatternImage"),U.addGetterSetter(Zt,"fill",void 0,O()),U.addGetterSetter(Zt,"fillPatternX",0,B()),U.addGetterSetter(Zt,"fillPatternY",0,B()),U.addGetterSetter(Zt,"fillLinearGradientColorStops"),U.addGetterSetter(Zt,"strokeLinearGradientColorStops"),U.addGetterSetter(Zt,"fillRadialGradientStartRadius",0),U.addGetterSetter(Zt,"fillRadialGradientEndRadius",0),U.addGetterSetter(Zt,"fillRadialGradientColorStops"),U.addGetterSetter(Zt,"fillPatternRepeat","repeat"),U.addGetterSetter(Zt,"fillEnabled",!0),U.addGetterSetter(Zt,"strokeEnabled",!0),U.addGetterSetter(Zt,"shadowEnabled",!0),U.addGetterSetter(Zt,"dashEnabled",!0),U.addGetterSetter(Zt,"strokeScaleEnabled",!0),U.addGetterSetter(Zt,"fillPriority","color"),U.addComponentsGetterSetter(Zt,"fillPatternOffset",["x","y"]),U.addGetterSetter(Zt,"fillPatternOffsetX",0,B()),U.addGetterSetter(Zt,"fillPatternOffsetY",0,B()),U.addComponentsGetterSetter(Zt,"fillPatternScale",["x","y"]),U.addGetterSetter(Zt,"fillPatternScaleX",1,B()),U.addGetterSetter(Zt,"fillPatternScaleY",1,B()),U.addComponentsGetterSetter(Zt,"fillLinearGradientStartPoint",["x","y"]),U.addComponentsGetterSetter(Zt,"strokeLinearGradientStartPoint",["x","y"]),U.addGetterSetter(Zt,"fillLinearGradientStartPointX",0),U.addGetterSetter(Zt,"strokeLinearGradientStartPointX",0),U.addGetterSetter(Zt,"fillLinearGradientStartPointY",0),U.addGetterSetter(Zt,"strokeLinearGradientStartPointY",0),U.addComponentsGetterSetter(Zt,"fillLinearGradientEndPoint",["x","y"]),U.addComponentsGetterSetter(Zt,"strokeLinearGradientEndPoint",["x","y"]),U.addGetterSetter(Zt,"fillLinearGradientEndPointX",0),U.addGetterSetter(Zt,"strokeLinearGradientEndPointX",0),U.addGetterSetter(Zt,"fillLinearGradientEndPointY",0),U.addGetterSetter(Zt,"strokeLinearGradientEndPointY",0),U.addComponentsGetterSetter(Zt,"fillRadialGradientStartPoint",["x","y"]),U.addGetterSetter(Zt,"fillRadialGradientStartPointX",0),U.addGetterSetter(Zt,"fillRadialGradientStartPointY",0),U.addComponentsGetterSetter(Zt,"fillRadialGradientEndPoint",["x","y"]),U.addGetterSetter(Zt,"fillRadialGradientEndPointX",0),U.addGetterSetter(Zt,"fillRadialGradientEndPointY",0),U.addGetterSetter(Zt,"fillPatternRotation",0),U.addGetterSetter(Zt,"fillRule",void 0,L()),U.backCompat(Zt,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});const Qt=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Jt=Qt.length;class $t extends st{constructor(t){super(t),this.canvas=new M,this.hitCanvas=new T({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),t<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[t+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){rt.prototype.moveToTop.call(this);const t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!rt.prototype.moveUp.call(this))return!1;const t=this.getStage();return!(!t||!t.content)&&(t.content.removeChild(this.getNativeCanvasElement()),this.index<t.children.length-1?t.content.insertBefore(this.getNativeCanvasElement(),t.children[this.index+1].getCanvas()._canvas):t.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(rt.prototype.moveDown.call(this)){const t=this.getStage();if(t){const e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(rt.prototype.moveToBottom.call(this)){const t=this.getStage();if(t){const e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const t=this.getNativeCanvasElement();return rt.prototype.remove.call(this),t&&t.parentNode&&b._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize(t){let{width:e,height:n}=t;return this.canvas.setSize(e,n),this.hitCanvas.setSize(e,n),this._setSmoothEnabled(),this}_validateAdd(t){const e=t.getType();"Group"!==e&&"Shape"!==e&&b.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return(t=(0,at.A)({},t)).width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.x(),t.y=void 0!==t.y?t.y:this.y(),rt.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){const t=this.visible();this.canvas._canvas.style.display=t?"block":"none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){b.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){b.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,b.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let e=1,n=!1;for(;;){for(let i=0;i<Jt;i++){const r=Qt[i],o=this._getIntersection({x:t.x+r.x*e,y:t.y+r.y*e}),s=o.shape;if(s)return s;if(n=!!o.antialiased,!o.antialiased)break}if(!n)return null;e+=1}}_getIntersection(t){const e=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(t.x*e),Math.round(t.y*e),1,1).data,i=n[3];if(255===i){const t=b.getHitColorKey(n[0],n[1],n[2]),e=Yt[t];return e?{shape:e}:{antialiased:!0}}return i>0?{antialiased:!0}:{}}drawScene(t,e,n){const i=this.getLayer(),r=t||i&&i.getCanvas();return this._fire("beforeDraw",{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),st.prototype.drawScene.call(this,r,e,n),this._fire("draw",{node:this}),this}drawHit(t,e){const n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),st.prototype.drawHit.call(this,i,e),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){b.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return b.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return b.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}$t.prototype.nodeType="Layer",a($t),U.addGetterSetter($t,"imageSmoothingEnabled",!0),U.addGetterSetter($t,"clearBeforeDraw",!0),U.addGetterSetter($t,"hitGraphEnabled",!0,W());class te extends $t{constructor(t){super(t),this.listening(!1),b.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}te.prototype.nodeType="FastLayer",a(te);class ee extends st{_validateAdd(t){const e=t.getType();"Group"!==e&&"Shape"!==e&&b.throw("You may only add groups and shapes to groups.")}}ee.prototype.nodeType="Group",a(ee);const ne=o.performance&&o.performance.now?function(){return o.performance.now()}:function(){return(new Date).getTime()};class ie{constructor(t,e){this.id=ie.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:ne(),frameRate:0},this.func=t,this.setLayers(e)}setLayers(t){let e=[];return t&&(e=Array.isArray(t)?t:[t]),this.layers=e,this}getLayers(){return this.layers}addLayer(t){const e=this.layers,n=e.length;for(let i=0;i<n;i++)if(e[i]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const t=ie.animations,e=t.length;for(let n=0;n<e;n++)if(t[n].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=ne(),ie._addAnimation(this),this}stop(){return ie._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const e=t.id,n=this.animations,i=n.length;for(let r=0;r<i;r++)if(n[r].id===e){this.animations.splice(r,1);break}}static _runFrames(){const t={},e=this.animations;for(let n=0;n<e.length;n++){const i=e[n],r=i.layers,o=i.func;i._updateFrameObject(ne());const s=r.length;let a;if(a=!o||!1!==o.call(i,i.frame),a)for(let e=0;e<s;e++){const n=r[e];void 0!==n._id&&(t[n._id]=n)}}for(const n in t)t.hasOwnProperty(n)&&t[n].batchDraw()}static _animationLoop(){const t=ie;t.animations.length?(t._runFrames(),b.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,b.requestAnimFrame(this._animationLoop))}}ie.animations=[],ie.animIdCounter=0,ie.animRunning=!1;const re={node:1,duration:1,easing:1,onFinish:1,yoyo:1},oe=["fill","stroke","shadowColor"];let se=0;class ae{constructor(t,e,n,i,r,o,s){this.prop=t,this.propFunc=e,this.begin=i,this._pos=i,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=s,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=r-this.begin,this.pause()}fire(t){const e=this[t];e&&e()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const t=this.getTimer()-this._startTime;2===this.state?this.setTime(t):3===this.state&&this.setTime(this.duration-t)}pause(){this.state=1,this.fire("onPause")}getTimer(){return(new Date).getTime()}}class le{constructor(t){const e=this,n=t.node,i=n._id,r=t.easing||ue.Linear,o=!!t.yoyo;let a,l;a="undefined"===typeof t.duration?.3:0===t.duration?.001:t.duration,this.node=n,this._id=se++;const u=n.getLayer()||(n instanceof s.Stage?n.getLayers():null);for(l in u||b.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new ie(function(){e.tween.onEnterFrame()},u),this.tween=new ae(l,function(t){e._tweenFunc(t)},r,0,1,1e3*a,o),this._addListeners(),le.attrs[i]||(le.attrs[i]={}),le.attrs[i][this._id]||(le.attrs[i][this._id]={}),le.tweens[i]||(le.tweens[i]={}),t)void 0===re[l]&&this._addAttr(l,t[l]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,e){const n=this.node,i=n._id;let r,o,s,a,l;const u=le.tweens[i][t];u&&delete le.attrs[i][u][t];let c=n.getAttr(t);if(b._isArray(e))if(r=[],o=Math.max(e.length,c.length),"points"===t&&e.length!==c.length&&(e.length>c.length?(a=c,c=b._prepareArrayForTween(c,e,n.closed())):(s=e,e=b._prepareArrayForTween(e,c,n.closed()))),0===t.indexOf("fill"))for(let h=0;h<o;h++)if(h%2===0)r.push(e[h]-c[h]);else{const t=b.colorToRGBA(c[h]);l=b.colorToRGBA(e[h]),c[h]=t,r.push({r:l.r-t.r,g:l.g-t.g,b:l.b-t.b,a:l.a-t.a})}else for(let h=0;h<o;h++)r.push(e[h]-c[h]);else-1!==oe.indexOf(t)?(c=b.colorToRGBA(c),l=b.colorToRGBA(e),r={r:l.r-c.r,g:l.g-c.g,b:l.b-c.b,a:l.a-c.a}):r=e-c;le.attrs[i][this._id][t]={start:c,diff:r,end:e,trueEnd:s,trueStart:a},le.tweens[i][t]=this._id}_tweenFunc(t){const e=this.node,n=le.attrs[e._id][this._id];let i,r,o,s,a,l,u,c;for(i in n){if(r=n[i],o=r.start,s=r.diff,c=r.end,b._isArray(o))if(a=[],u=Math.max(o.length,c.length),0===i.indexOf("fill"))for(l=0;l<u;l++)l%2===0?a.push((o[l]||0)+s[l]*t):a.push("rgba("+Math.round(o[l].r+s[l].r*t)+","+Math.round(o[l].g+s[l].g*t)+","+Math.round(o[l].b+s[l].b*t)+","+(o[l].a+s[l].a*t)+")");else for(l=0;l<u;l++)a.push((o[l]||0)+s[l]*t);else a=-1!==oe.indexOf(i)?"rgba("+Math.round(o.r+s.r*t)+","+Math.round(o.g+s.g*t)+","+Math.round(o.b+s.b*t)+","+(o.a+s.a*t)+")":o+s*t;e.setAttr(i,a)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const t=this.node,e=le.attrs[t._id][this._id];e.points&&e.points.trueEnd&&t.setAttr("points",e.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const t=this.node,e=le.attrs[t._id][this._id];e.points&&e.points.trueStart&&t.points(e.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(1e3*t),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const t=this.node._id,e=this._id,n=le.tweens[t];this.pause(),this.anim&&this.anim.stop();for(const i in n)delete le.tweens[t][i];delete le.attrs[t][e],le.tweens[t]&&(0===Object.keys(le.tweens[t]).length&&delete le.tweens[t],0===Object.keys(le.attrs[t]).length&&delete le.attrs[t])}}le.attrs={},le.tweens={},rt.prototype.to=function(t){const e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()};new le(t).play()};const ue={BackEaseIn(t,e,n,i){const r=1.70158;return n*(t/=i)*t*((r+1)*t-r)+e},BackEaseOut(t,e,n,i){const r=1.70158;return n*((t=t/i-1)*t*((r+1)*t+r)+1)+e},BackEaseInOut(t,e,n,i){let r=1.70158;return(t/=i/2)<1?n/2*(t*t*((1+(r*=1.525))*t-r))+e:n/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},ElasticEaseIn(t,e,n,i,r,o){let s=0;return 0===t?e:1===(t/=i)?e+n:(o||(o=.3*i),!r||r<Math.abs(n)?(r=n,s=o/4):s=o/(2*Math.PI)*Math.asin(n/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t*i-s)*(2*Math.PI)/o)+e)},ElasticEaseOut(t,e,n,i,r,o){let s=0;return 0===t?e:1===(t/=i)?e+n:(o||(o=.3*i),!r||r<Math.abs(n)?(r=n,s=o/4):s=o/(2*Math.PI)*Math.asin(n/r),r*Math.pow(2,-10*t)*Math.sin((t*i-s)*(2*Math.PI)/o)+n+e)},ElasticEaseInOut(t,e,n,i,r,o){let s=0;return 0===t?e:2===(t/=i/2)?e+n:(o||(o=i*(.3*1.5)),!r||r<Math.abs(n)?(r=n,s=o/4):s=o/(2*Math.PI)*Math.asin(n/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t*i-s)*(2*Math.PI)/o)*-.5+e:r*Math.pow(2,-10*(t-=1))*Math.sin((t*i-s)*(2*Math.PI)/o)*.5+n+e)},BounceEaseOut:(t,e,n,i)=>(t/=i)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e,BounceEaseIn:(t,e,n,i)=>n-ue.BounceEaseOut(i-t,0,n,i)+e,BounceEaseInOut:(t,e,n,i)=>t<i/2?.5*ue.BounceEaseIn(2*t,0,n,i)+e:.5*ue.BounceEaseOut(2*t-i,0,n,i)+.5*n+e,EaseIn:(t,e,n,i)=>n*(t/=i)*t+e,EaseOut:(t,e,n,i)=>-n*(t/=i)*(t-2)+e,EaseInOut:(t,e,n,i)=>(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e,StrongEaseIn:(t,e,n,i)=>n*(t/=i)*t*t*t*t+e,StrongEaseOut:(t,e,n,i)=>n*((t=t/i-1)*t*t*t*t+1)+e,StrongEaseInOut:(t,e,n,i)=>(t/=i/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e,Linear:(t,e,n,i)=>n*t/i+e},ce=b._assign(s,{Util:b,Transform:u,Node:rt,Container:st,Stage:jt,stages:zt,Layer:$t,FastLayer:te,Group:ee,DD:P,Shape:Zt,shapes:Yt,Animation:ie,Tween:le,Easings:ue,Context:S,Canvas:k});class he extends Zt{_sceneFunc(t){const e=s.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,n),t.arc(0,0,this.innerRadius(),e,0,!n),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),e=this.outerRadius(),n=this.clockwise(),i=s.getAngle(n?360-this.angle():this.angle()),r=Math.cos(Math.min(i,Math.PI)),o=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),a=Math.sin(Math.min(i,Math.PI/2)),l=r*(r>0?t:e),u=o*(o>0?t:e),c=a*(a>0?e:t);return{x:l,y:n?-1*c:u,width:1*e-l,height:c-u}}}function de(t,e,n,i,r,o,s){const a=Math.sqrt(Math.pow(n-t,2)+Math.pow(i-e,2)),l=Math.sqrt(Math.pow(r-n,2)+Math.pow(o-i,2)),u=s*a/(a+l),c=s*l/(a+l);return[n-u*(r-t),i-u*(o-e),n+c*(r-t),i+c*(o-e)]}function fe(t,e){const n=t.length,i=[];for(let r=2;r<n-2;r+=2){const n=de(t[r-2],t[r-1],t[r],t[r+1],t[r+2],t[r+3],e);isNaN(n[0])||(i.push(n[0]),i.push(n[1]),i.push(t[r]),i.push(t[r+1]),i.push(n[2]),i.push(n[3]))}return i}he.prototype._centroid=!0,he.prototype.className="Arc",he.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"],a(he),U.addGetterSetter(he,"innerRadius",0,B()),U.addGetterSetter(he,"outerRadius",0,B()),U.addGetterSetter(he,"angle",0,B()),U.addGetterSetter(he,"clockwise",!1,W());class pe extends Zt{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){const e=this.points(),n=e.length,i=this.tension(),r=this.closed(),o=this.bezier();if(!n)return;let s=0;if(t.beginPath(),t.moveTo(e[0],e[1]),0!==i&&n>4){const i=this.getTensionPoints(),o=i.length;for(s=r?0:4,r||t.quadraticCurveTo(i[0],i[1],i[2],i[3]);s<o-2;)t.bezierCurveTo(i[s++],i[s++],i[s++],i[s++],i[s++],i[s++]);r||t.quadraticCurveTo(i[o-2],i[o-1],e[n-2],e[n-1])}else if(o)for(s=2;s<n;)t.bezierCurveTo(e[s++],e[s++],e[s++],e[s++],e[s++],e[s++]);else for(s=2;s<n;s+=2)t.lineTo(e[s],e[s+1]);r?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():fe(this.points(),this.tension())}_getTensionPointsClosed(){const t=this.points(),e=t.length,n=this.tension(),i=de(t[e-2],t[e-1],t[0],t[1],t[2],t[3],n),r=de(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],n),o=fe(t,n);return[i[2],i[3]].concat(o).concat([r[0],r[1],t[e-2],t[e-1],r[2],r[3],i[0],i[1],t[0],t[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};t=0!==this.tension()?[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:this.points();let e,n,i=t[0],r=t[0],o=t[1],s=t[1];for(let a=0;a<t.length/2;a++)e=t[2*a],n=t[2*a+1],i=Math.min(i,e),r=Math.max(r,e),o=Math.min(o,n),s=Math.max(s,n);return{x:i,y:o,width:r-i,height:s-o}}}pe.prototype.className="Line",pe.prototype._attrsAffectingSize=["points","bezier","tension"],a(pe),U.addGetterSetter(pe,"closed",!1),U.addGetterSetter(pe,"bezier",!1),U.addGetterSetter(pe,"tension",0,B()),U.addGetterSetter(pe,"points",[],function(){if(s.isUnminified)return function(t,e){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&t instanceof n||(b._isArray(t)?t.forEach(function(t){b._isNumber(t)||b.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")}):b.warn(_(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}());const ge=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],me=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],ve=[[1],[1,1],[1,2,1],[1,3,3,1]],ye=(t,e,n)=>{let i,r;const o=n/2;i=0;for(let s=0;s<20;s++)r=o*ge[20][s]+o,i+=me[20][s]*we(t,e,r);return o*i},be=(t,e,n)=>{void 0===n&&(n=1);const i=t[0]-2*t[1]+t[2],r=e[0]-2*e[1]+e[2],o=2*t[1]-2*t[0],s=2*e[1]-2*e[0],a=4*(i*i+r*r),l=4*(i*o+r*s),u=o*o+s*s;if(0===a)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));const c=l/(2*a),h=n+c,d=u/a-c*c,f=h*h+d>0?Math.sqrt(h*h+d):0,p=c*c+d>0?Math.sqrt(c*c+d):0,g=c+Math.sqrt(c*c+d)!==0?d*Math.log(Math.abs((h+f)/(c+p))):0;return Math.sqrt(a)/2*(h*f-c*p+g)};function we(t,e,n){const i=De(1,n,t),r=De(1,n,e),o=i*i+r*r;return Math.sqrt(o)}const De=(t,e,n)=>{const i=n.length-1;let r,o;if(0===i)return 0;if(0===t){o=0;for(let t=0;t<=i;t++)o+=ve[i][t]*Math.pow(1-e,i-t)*Math.pow(e,t)*n[t];return o}r=new Array(i);for(let s=0;s<i;s++)r[s]=i*(n[s+1]-n[s]);return De(t-1,e,r)},Ae=(t,e,n)=>{let i=1,r=t/e,o=(t-n(r))/e,s=0;for(;i>.001;){const a=n(r+o),l=Math.abs(t-a)/e;if(l<i)i=l,r+=o;else{const s=n(r-o),a=Math.abs(t-s)/e;a<i?(i=a,r-=o):o/=2}if(s++,s>500)break}return r};class xe extends Zt{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=xe.parsePathData(this.data()),this.pathLength=xe.getPathLength(this.dataArray)}_sceneFunc(t){const e=this.dataArray;t.beginPath();let n=!1;for(let i=0;i<e.length;i++){const r=e[i].command,o=e[i].points;switch(r){case"L":t.lineTo(o[0],o[1]);break;case"M":t.moveTo(o[0],o[1]);break;case"C":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"Q":t.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case"A":const e=o[0],i=o[1],r=o[2],s=o[3],a=o[4],l=o[5],u=o[6],c=o[7],h=r>s?r:s,d=r>s?1:r/s,f=r>s?s/r:1;t.translate(e,i),t.rotate(u),t.scale(d,f),t.arc(0,0,h,a,a+l,1-c),t.scale(1/d,1/f),t.rotate(-u),t.translate(-e,-i);break;case"z":n=!0,t.closePath()}}n||this.hasFill()?t.fillStrokeShape(this):t.strokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(e){if("A"===e.command){const n=e.points[4],i=e.points[5],r=e.points[4]+i;let o=Math.PI/180;if(Math.abs(n-r)<o&&(o=Math.abs(n-r)),i<0)for(let s=n-o;s>r;s-=o){const n=xe.getPointOnEllipticalArc(e.points[0],e.points[1],e.points[2],e.points[3],s,0);t.push(n.x,n.y)}else for(let s=n+o;s<r;s+=o){const n=xe.getPointOnEllipticalArc(e.points[0],e.points[1],e.points[2],e.points[3],s,0);t.push(n.x,n.y)}}else if("C"===e.command)for(let n=0;n<=1;n+=.01){const i=xe.getPointOnCubicBezier(n,e.start.x,e.start.y,e.points[0],e.points[1],e.points[2],e.points[3],e.points[4],e.points[5]);t.push(i.x,i.y)}else t=t.concat(e.points)});let e,n,i=t[0],r=t[0],o=t[1],s=t[1];for(let a=0;a<t.length/2;a++)e=t[2*a],n=t[2*a+1],isNaN(e)||(i=Math.min(i,e),r=Math.max(r,e)),isNaN(n)||(o=Math.min(o,n),s=Math.max(s,n));return{x:i,y:o,width:r-i,height:s-o}}getLength(){return this.pathLength}getPointAtLength(t){return xe.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))}static getPathLength(t){let e=0;for(let n=0;n<t.length;++n)e+=t[n].pathLength;return e}static getPointAtLengthOfDataArray(t,e){let n,i=0,r=e.length;if(!r)return null;for(;i<r&&t>e[i].pathLength;)t-=e[i].pathLength,++i;if(i===r)return n=e[i-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01){return"M"===e[i].command?(n=e[i].points.slice(0,2),{x:n[0],y:n[1]}):{x:e[i].start.x,y:e[i].start.y}}const o=e[i],s=o.points;switch(o.command){case"L":return xe.getPointOnLine(t,o.start.x,o.start.y,s[0],s[1]);case"C":return xe.getPointOnCubicBezier(Ae(t,xe.getPathLength(e),t=>ye([o.start.x,s[0],s[2],s[4]],[o.start.y,s[1],s[3],s[5]],t)),o.start.x,o.start.y,s[0],s[1],s[2],s[3],s[4],s[5]);case"Q":return xe.getPointOnQuadraticBezier(Ae(t,xe.getPathLength(e),t=>be([o.start.x,s[0],s[2]],[o.start.y,s[1],s[3]],t)),o.start.x,o.start.y,s[0],s[1],s[2],s[3]);case"A":const n=s[0],i=s[1],r=s[2],a=s[3],l=s[5],u=s[6];let c=s[4];return c+=l*t/o.pathLength,xe.getPointOnEllipticalArc(n,i,r,a,c,u)}return null}static getPointOnLine(t,e,n,i,r,o,s){o=null!==o&&void 0!==o?o:e,s=null!==s&&void 0!==s?s:n;const a=this.getLineLength(e,n,i,r);if(a<1e-10)return{x:e,y:n};if(i===e)return{x:o,y:s+(r>n?t:-t)};const l=(r-n)/(i-e),u=Math.sqrt(t*t/(1+l*l))*(i<e?-1:1),c=l*u;if(Math.abs(s-n-l*(o-e))<1e-10)return{x:o+u,y:s+c};const h=((o-e)*(i-e)+(s-n)*(r-n))/(a*a),d=e+h*(i-e),f=n+h*(r-n),p=this.getLineLength(o,s,d,f),g=Math.sqrt(t*t-p*p),m=Math.sqrt(g*g/(1+l*l))*(i<e?-1:1);return{x:d+m,y:f+l*m}}static getPointOnCubicBezier(t,e,n,i,r,o,s,a,l){function u(t){return t*t*t}function c(t){return 3*t*t*(1-t)}function h(t){return 3*t*(1-t)*(1-t)}function d(t){return(1-t)*(1-t)*(1-t)}return{x:a*u(t)+o*c(t)+i*h(t)+e*d(t),y:l*u(t)+s*c(t)+r*h(t)+n*d(t)}}static getPointOnQuadraticBezier(t,e,n,i,r,o,s){function a(t){return t*t}function l(t){return 2*t*(1-t)}function u(t){return(1-t)*(1-t)}return{x:o*a(t)+i*l(t)+e*u(t),y:s*a(t)+r*l(t)+n*u(t)}}static getPointOnEllipticalArc(t,e,n,i,r,o){const s=Math.cos(o),a=Math.sin(o),l=n*Math.cos(r),u=i*Math.sin(r);return{x:t+(l*s-u*a),y:e+(l*a+u*s)}}static parsePathData(t){if(!t)return[];let e=t;const n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(let c=0;c<n.length;c++)e=e.replace(new RegExp(n[c],"g"),"|"+n[c]);const i=e.split("|"),r=[],o=[];let s=0,a=0;const l=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let u;for(let c=1;c<i.length;c++){let t=i[c],e=t.charAt(0);for(t=t.slice(1),o.length=0;u=l.exec(t);)o.push(u[0]);let n=[],h="A"===e||"a"===e?0:-1;for(let i=0,r=o.length;i<r;i++){const t=o[i];if("00"!==t)if(h>=0){if(3===h){if(/^[01]{2}\d+(?:\.\d+)?$/.test(t)){n.push(parseInt(t[0],10)),n.push(parseInt(t[1],10)),n.push(parseFloat(t.slice(2))),h+=3,h>=7&&(h-=7);continue}if("11"===t||"10"===t||"01"===t){n.push(parseInt(t[0],10)),n.push(parseInt(t[1],10)),h+=2,h>=7&&(h-=7);continue}if("0"===t||"1"===t){n.push(parseInt(t,10)),h+=1,h>=7&&(h-=7);continue}}else if(4===h){if(/^[01]\d+(?:\.\d+)?$/.test(t)){n.push(parseInt(t[0],10)),n.push(parseFloat(t.slice(1))),h+=2,h>=7&&(h-=7);continue}if("0"===t||"1"===t){n.push(parseInt(t,10)),h+=1,h>=7&&(h-=7);continue}}const e=parseFloat(t);isNaN(e)?n.push(0):n.push(e),h+=1,h>=7&&(h-=7)}else{const e=parseFloat(t);isNaN(e)?n.push(0):n.push(e)}else n.push(0,0),h>=0&&(h+=2,h>=7&&(h-=7))}for(;n.length>0&&!isNaN(n[0]);){let t="",i=[];const o=s,l=a;let u,c,h,d,f,p,g,m,v,y;switch(e){case"l":s+=n.shift(),a+=n.shift(),t="L",i.push(s,a);break;case"L":s=n.shift(),a=n.shift(),i.push(s,a);break;case"m":const o=n.shift(),l=n.shift();if(s+=o,a+=l,t="M",r.length>2&&"z"===r[r.length-1].command)for(let t=r.length-2;t>=0;t--)if("M"===r[t].command){s=r[t].points[0]+o,a=r[t].points[1]+l;break}i.push(s,a),e="l";break;case"M":s=n.shift(),a=n.shift(),t="M",i.push(s,a),e="L";break;case"h":s+=n.shift(),t="L",i.push(s,a);break;case"H":s=n.shift(),t="L",i.push(s,a);break;case"v":a+=n.shift(),t="L",i.push(s,a);break;case"V":a=n.shift(),t="L",i.push(s,a);break;case"C":i.push(n.shift(),n.shift(),n.shift(),n.shift()),s=n.shift(),a=n.shift(),i.push(s,a);break;case"c":i.push(s+n.shift(),a+n.shift(),s+n.shift(),a+n.shift()),s+=n.shift(),a+=n.shift(),t="C",i.push(s,a);break;case"S":c=s,h=a,u=r[r.length-1],"C"===u.command&&(c=s+(s-u.points[2]),h=a+(a-u.points[3])),i.push(c,h,n.shift(),n.shift()),s=n.shift(),a=n.shift(),t="C",i.push(s,a);break;case"s":c=s,h=a,u=r[r.length-1],"C"===u.command&&(c=s+(s-u.points[2]),h=a+(a-u.points[3])),i.push(c,h,s+n.shift(),a+n.shift()),s+=n.shift(),a+=n.shift(),t="C",i.push(s,a);break;case"Q":i.push(n.shift(),n.shift()),s=n.shift(),a=n.shift(),i.push(s,a);break;case"q":i.push(s+n.shift(),a+n.shift()),s+=n.shift(),a+=n.shift(),t="Q",i.push(s,a);break;case"T":c=s,h=a,u=r[r.length-1],"Q"===u.command&&(c=s+(s-u.points[0]),h=a+(a-u.points[1])),s=n.shift(),a=n.shift(),t="Q",i.push(c,h,s,a);break;case"t":c=s,h=a,u=r[r.length-1],"Q"===u.command&&(c=s+(s-u.points[0]),h=a+(a-u.points[1])),s+=n.shift(),a+=n.shift(),t="Q",i.push(c,h,s,a);break;case"A":d=n.shift(),f=n.shift(),p=n.shift(),g=n.shift(),m=n.shift(),v=s,y=a,s=n.shift(),a=n.shift(),t="A",i=this.convertEndpointToCenterParameterization(v,y,s,a,g,m,d,f,p);break;case"a":d=n.shift(),f=n.shift(),p=n.shift(),g=n.shift(),m=n.shift(),v=s,y=a,s+=n.shift(),a+=n.shift(),t="A",i=this.convertEndpointToCenterParameterization(v,y,s,a,g,m,d,f,p)}r.push({command:t||e,points:i,start:{x:o,y:l},pathLength:this.calcLength(o,l,t||e,i)})}"z"!==e&&"Z"!==e||r.push({command:"z",points:[],start:void 0,pathLength:0})}return r}static calcLength(t,e,n,i){let r,o,s,a;const l=xe;switch(n){case"L":return l.getLineLength(t,e,i[0],i[1]);case"C":return ye([t,i[0],i[2],i[4]],[e,i[1],i[3],i[5]],1);case"Q":return be([t,i[0],i[2]],[e,i[1],i[3]],1);case"A":r=0;const n=i[4],u=i[5],c=i[4]+u;let h=Math.PI/180;if(Math.abs(n-c)<h&&(h=Math.abs(n-c)),o=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],n,0),u<0)for(a=n-h;a>c;a-=h)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],a,0),r+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(a=n+h;a<c;a+=h)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],a,0),r+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),r+=l.getLineLength(o.x,o.y,s.x,s.y),r}return 0}static convertEndpointToCenterParameterization(t,e,n,i,r,o,s,a,l){const u=l*(Math.PI/180),c=Math.cos(u)*(t-n)/2+Math.sin(u)*(e-i)/2,h=-1*Math.sin(u)*(t-n)/2+Math.cos(u)*(e-i)/2,d=c*c/(s*s)+h*h/(a*a);d>1&&(s*=Math.sqrt(d),a*=Math.sqrt(d));let f=Math.sqrt((s*s*(a*a)-s*s*(h*h)-a*a*(c*c))/(s*s*(h*h)+a*a*(c*c)));r===o&&(f*=-1),isNaN(f)&&(f=0);const p=f*s*h/a,g=f*-a*c/s,m=(t+n)/2+Math.cos(u)*p-Math.sin(u)*g,v=(e+i)/2+Math.sin(u)*p+Math.cos(u)*g,y=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},b=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(y(t)*y(e))},w=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(b(t,e))},D=w([1,0],[(c-p)/s,(h-g)/a]),A=[(c-p)/s,(h-g)/a],x=[(-1*c-p)/s,(-1*h-g)/a];let C=w(A,x);return b(A,x)<=-1&&(C=Math.PI),b(A,x)>=1&&(C=0),0===o&&C>0&&(C-=2*Math.PI),1===o&&C<0&&(C+=2*Math.PI),[m,v,s,a,D,C,u,o]}}xe.prototype.className="Path",xe.prototype._attrsAffectingSize=["data"],a(xe),U.addGetterSetter(xe,"data");class Ce extends pe{_sceneFunc(t){super._sceneFunc(t);const e=2*Math.PI,n=this.points();let i=n;const r=0!==this.tension()&&n.length>4;r&&(i=this.getTensionPoints());const o=this.pointerLength(),s=n.length;let a,l;if(r){const t=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],n[s-2],n[s-1]],e=xe.calcLength(i[i.length-4],i[i.length-3],"C",t),r=xe.getPointOnQuadraticBezier(Math.min(1,1-o/e),t[0],t[1],t[2],t[3],t[4],t[5]);a=n[s-2]-r.x,l=n[s-1]-r.y}else a=n[s-2]-n[s-4],l=n[s-1]-n[s-3];const u=(Math.atan2(l,a)+e)%e,c=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[s-2],n[s-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-o,c/2),t.lineTo(-o,-c/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),r?(a=(i[0]+i[2])/2-n[0],l=(i[1]+i[3])/2-n[1]):(a=n[2]-n[0],l=n[3]-n[1]),t.rotate((Math.atan2(-l,-a)+e)%e),t.moveTo(0,0),t.lineTo(-o,c/2),t.lineTo(-o,-c/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const e=this.dashEnabled();e&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),e&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),e=this.pointerWidth()/2;return{x:t.x,y:t.y-e,width:t.width,height:t.height+2*e}}}Ce.prototype.className="Arrow",a(Ce),U.addGetterSetter(Ce,"pointerLength",10,B()),U.addGetterSetter(Ce,"pointerWidth",10,B()),U.addGetterSetter(Ce,"pointerAtBeginning",!1),U.addGetterSetter(Ce,"pointerAtEnding",!0);class Se extends Zt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}Se.prototype._centroid=!0,Se.prototype.className="Circle",Se.prototype._attrsAffectingSize=["radius"],a(Se),U.addGetterSetter(Se,"radius",0,B());class Fe extends Zt{_sceneFunc(t){const e=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),e!==n&&t.scale(1,n/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radiusX()}getHeight(){return 2*this.radiusY()}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}Fe.prototype.className="Ellipse",Fe.prototype._centroid=!0,Fe.prototype._attrsAffectingSize=["radiusX","radiusY"],a(Fe),U.addComponentsGetterSetter(Fe,"radius",["x","y"]),U.addGetterSetter(Fe,"radiusX",0,B()),U.addGetterSetter(Fe,"radiusY",0,B());class Ee extends Zt{constructor(t){super(t),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",t=>{this._removeImageLoad(t.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&4===t.readyState||t&&t.addEventListener&&t.addEventListener("load",this._loadListener)}_removeImageLoad(t){t&&t.removeEventListener&&t.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const t=!!this.cornerRadius(),e=this.hasShadow();return!(!t||!e)||super._useBufferCanvas(!0)}_sceneFunc(t){const e=this.getWidth(),n=this.getHeight(),i=this.cornerRadius(),r=this.attrs.image;let o;if(r){const t=this.attrs.cropWidth,i=this.attrs.cropHeight;o=t&&i?[r,this.cropX(),this.cropY(),t,i,0,0,e,n]:[r,0,0,e,n]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?b.drawRoundedRectPath(t,e,n,i):t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)),r&&(i&&t.clip(),t.drawImage.apply(t,o))}_hitFunc(t){const e=this.width(),n=this.height(),i=this.cornerRadius();t.beginPath(),i?b.drawRoundedRectPath(t,e,n,i):t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,e,n;return null!==(n=null!==(t=this.attrs.width)&&void 0!==t?t:null===(e=this.image())||void 0===e?void 0:e.width)&&void 0!==n?n:0}getHeight(){var t,e,n;return null!==(n=null!==(t=this.attrs.height)&&void 0!==t?t:null===(e=this.image())||void 0===e?void 0:e.height)&&void 0!==n?n:0}static fromURL(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const i=b.createImageElement();i.onload=function(){const t=new Ee({image:i});e(t)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}}Ee.prototype.className="Image",Ee.prototype._attrsAffectingSize=["image"],a(Ee),U.addGetterSetter(Ee,"cornerRadius",0,I(4)),U.addGetterSetter(Ee,"image"),U.addComponentsGetterSetter(Ee,"crop",["x","y","width","height"]),U.addGetterSetter(Ee,"cropX",0,B()),U.addGetterSetter(Ee,"cropY",0,B()),U.addGetterSetter(Ee,"cropWidth",0,B()),U.addGetterSetter(Ee,"cropHeight",0,B());const ke=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],Me="up",Te="right",Pe="down",_e="left",Re=ke.length;class Be extends ee{constructor(t){super(t),this.on("add.konva",function(t){this._addListeners(t.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let e,n=this;const i=function(){n._sync()};for(e=0;e<Re;e++)t.on(ke[e]+"Change.konva",i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let t,e,n,i,r,o,s,a=this.getText(),l=this.getTag();if(a&&l){switch(t=a.width(),e=a.height(),n=l.pointerDirection(),i=l.pointerWidth(),s=l.pointerHeight(),r=0,o=0,n){case Me:r=t/2,o=-1*s;break;case Te:r=t+i,o=e/2;break;case Pe:r=t/2,o=e+s;break;case _e:r=-1*i,o=e/2}l.setAttrs({x:-1*r,y:-1*o,width:t,height:e}),a.setAttrs({x:-1*r,y:-1*o})}}}Be.prototype.className="Label",a(Be);class Ie extends Zt{_sceneFunc(t){const e=this.width(),n=this.height(),i=this.pointerDirection(),r=this.pointerWidth(),o=this.pointerHeight(),s=this.cornerRadius();let a=0,l=0,u=0,c=0;"number"===typeof s?a=l=u=c=Math.min(s,e/2,n/2):(a=Math.min(s[0]||0,e/2,n/2),l=Math.min(s[1]||0,e/2,n/2),c=Math.min(s[2]||0,e/2,n/2),u=Math.min(s[3]||0,e/2,n/2)),t.beginPath(),t.moveTo(a,0),i===Me&&(t.lineTo((e-r)/2,0),t.lineTo(e/2,-1*o),t.lineTo((e+r)/2,0)),t.lineTo(e-l,0),t.arc(e-l,l,l,3*Math.PI/2,0,!1),i===Te&&(t.lineTo(e,(n-o)/2),t.lineTo(e+r,n/2),t.lineTo(e,(n+o)/2)),t.lineTo(e,n-c),t.arc(e-c,n-c,c,0,Math.PI/2,!1),i===Pe&&(t.lineTo((e+r)/2,n),t.lineTo(e/2,n+o),t.lineTo((e-r)/2,n)),t.lineTo(u,n),t.arc(u,n-u,u,Math.PI/2,Math.PI,!1),i===_e&&(t.lineTo(0,(n+o)/2),t.lineTo(-1*r,n/2),t.lineTo(0,(n-o)/2)),t.lineTo(0,a),t.arc(a,a,a,Math.PI,3*Math.PI/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){let t=0,e=0,n=this.pointerWidth(),i=this.pointerHeight(),r=this.pointerDirection(),o=this.width(),s=this.height();return r===Me?(e-=i,s+=i):r===Pe?s+=i:r===_e?(t-=1.5*n,o+=n):r===Te&&(o+=1.5*n),{x:t,y:e,width:o,height:s}}}Ie.prototype.className="Tag",a(Ie),U.addGetterSetter(Ie,"pointerDirection","none"),U.addGetterSetter(Ie,"pointerWidth",0,B()),U.addGetterSetter(Ie,"pointerHeight",0,B()),U.addGetterSetter(Ie,"cornerRadius",0,I(4));class Ne extends Zt{_sceneFunc(t){const e=this.cornerRadius(),n=this.width(),i=this.height();t.beginPath(),e?b.drawRoundedRectPath(t,n,i,e):t.rect(0,0,n,i),t.closePath(),t.fillStrokeShape(this)}}Ne.prototype.className="Rect",a(Ne),U.addGetterSetter(Ne,"cornerRadius",0,I(4));class Le extends Zt{_sceneFunc(t){const e=this._getPoints(),n=this.radius(),i=this.sides(),r=this.cornerRadius();if(t.beginPath(),r)b.drawRoundedPolygonPath(t,e,i,n,r);else{t.moveTo(e[0].x,e[0].y);for(let n=1;n<e.length;n++)t.lineTo(e[n].x,e[n].y)}t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,e=this.attrs.radius||0,n=[];for(let i=0;i<t;i++)n.push({x:e*Math.sin(2*i*Math.PI/t),y:-1*e*Math.cos(2*i*Math.PI/t)});return n}getSelfRect(){const t=this._getPoints();let e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return t.forEach(t=>{e=Math.min(e,t.x),n=Math.max(n,t.x),i=Math.min(i,t.y),r=Math.max(r,t.y)}),{x:e,y:i,width:n-e,height:r-i}}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Le.prototype.className="RegularPolygon",Le.prototype._centroid=!0,Le.prototype._attrsAffectingSize=["radius"],a(Le),U.addGetterSetter(Le,"radius",0,B()),U.addGetterSetter(Le,"sides",0,B()),U.addGetterSetter(Le,"cornerRadius",0,I(4));const Oe=2*Math.PI;class We extends Zt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,Oe,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),Oe,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}We.prototype.className="Ring",We.prototype._centroid=!0,We.prototype._attrsAffectingSize=["innerRadius","outerRadius"],a(We),U.addGetterSetter(We,"innerRadius",0,B()),U.addGetterSetter(We,"outerRadius",0,B());class ze extends Zt{constructor(t){super(t),this._updated=!0,this.anim=new ie(()=>{const t=this._updated;return this._updated=!1,t}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const e=this.animation(),n=this.frameIndex(),i=4*n,r=this.animations()[e],o=this.frameOffsets(),s=r[i+0],a=r[i+1],l=r[i+2],u=r[i+3],c=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,u),t.closePath(),t.fillStrokeShape(this)),c)if(o){const i=o[e],r=2*n;t.drawImage(c,s,a,l,u,i[r+0],i[r+1],l,u)}else t.drawImage(c,s,a,l,u,0,0,l,u)}_hitFunc(t){const e=this.animation(),n=this.frameIndex(),i=4*n,r=this.animations()[e],o=this.frameOffsets(),s=r[i+2],a=r[i+3];if(t.beginPath(),o){const i=o[e],r=2*n;t.rect(i[r+0],i[r+1],s,a)}else t.rect(0,0,s,a);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),e=this.animation();t<this.animations()[e].length/4-1?this.frameIndex(t+1):this.frameIndex(0)}}ze.prototype.className="Sprite",a(ze),U.addGetterSetter(ze,"animation"),U.addGetterSetter(ze,"animations"),U.addGetterSetter(ze,"frameOffsets"),U.addGetterSetter(ze,"image"),U.addGetterSetter(ze,"frameIndex",0,B()),U.addGetterSetter(ze,"frameRate",17,B()),U.backCompat(ze,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class je extends Zt{_sceneFunc(t){const e=this.innerRadius(),n=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(let r=1;r<2*i;r++){const o=r%2===0?n:e,s=o*Math.sin(r*Math.PI/i),a=-1*o*Math.cos(r*Math.PI/i);t.lineTo(s,a)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}function Ue(t){return[...t].reduce((t,e,n,i)=>{if(/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED8\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8])/.test(e)){const r=i[n+1];r&&/(?:\uD83C[\uDFFB-\uDFFF])|\u200D/.test(r)?(t.push(e+r),i[n+1]=""):t.push(e)}else/(?:\uD83C[\uDDE6-\uDDFF]){2}/.test(e+(i[n+1]||""))?t.push(e+i[n+1]):n>0&&/(?:[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\u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uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99\uDF60\uDF62-\uDF64\uDF66]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD29\uDD2D-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD67-\uDD69\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])|[\u0488\u0489\u1ABE\u20DD-\u20E0\u20E2-\u20E4\uA670-\uA672]|(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BE-\u09C0\u09C7\u09C8\u09CB\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CF3\u0D02\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2\u0DF3\u0F3E\u0F3F\u0F7F\u102B\u102C\u1031\u1038\u103B\u103C\u1056\u1057\u1062-\u1064\u1067-\u106D\u1083\u1084\u1087-\u108C\u108F\u109A-\u109C\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\u302E\u302F\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3E\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDFB8-\uDFBA\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC\uDFCD\uDFCF]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB0-\uDCB2\uDCB9\uDCBB-\uDCBE\uDCC1\uDDAF-\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF1E\uDF20\uDF21\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD30-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97\uDF61\uDF65\uDF67]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6\uDF03\uDF34\uDF35\uDF3E\uDF3F\uDF41]|\uD818[\uDD2A-\uDD2C]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD65\uDD66\uDD6D-\uDD72])/.test(e)?t[t.length-1]+=e:e&&t.push(e);return t},[])}je.prototype.className="Star",je.prototype._centroid=!0,je.prototype._attrsAffectingSize=["innerRadius","outerRadius"],a(je),U.addGetterSetter(je,"numPoints",5,B()),U.addGetterSetter(je,"innerRadius",0,B()),U.addGetterSetter(je,"outerRadius",0,B());const Ge="auto",Ve="inherit",He="justify",qe="left",Xe="middle",Ke="normal",Ye=" ",Ze="none",Qe=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Je=Qe.length;let $e;function tn(){return $e||($e=b.createCanvasElement().getContext("2d"),$e)}class en extends Zt{constructor(t){super(function(t){return(t=t||{}).fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}(t)),this._partialTextX=0,this._partialTextY=0;for(let e=0;e<Je;e++)this.on(Qe[e]+"Change.konva",this._setTextData);this._setTextData()}_sceneFunc(t){var e,n;const i=this.textArr,r=i.length;if(!this.text())return;let o,a=this.padding(),l=this.fontSize(),u=this.lineHeight()*l,c=this.verticalAlign(),h=this.direction(),d=0,f=this.align(),p=this.getWidth(),g=this.letterSpacing(),m=this.charRenderFunc(),v=this.fill(),y=this.textDecoration(),b=-1!==y.indexOf("underline"),w=-1!==y.indexOf("line-through");h=h===Ve?t.direction:h;let D=u/2,A=Xe;if(!s.legacyTextRendering){const t=this.measureSize("M");A="alphabetic";D=((null!==(e=t.fontBoundingBoxAscent)&&void 0!==e?e:t.actualBoundingBoxAscent)-(null!==(n=t.fontBoundingBoxDescent)&&void 0!==n?n:t.actualBoundingBoxDescent))/2+u/2}for("rtl"===h&&t.setAttr("direction",h),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",A),t.setAttr("textAlign",qe),c===Xe?d=(this.getHeight()-r*u-2*a)/2:"bottom"===c&&(d=this.getHeight()-r*u-2*a),t.translate(a,d+a),o=0;o<r;o++){let e=0,n=0;const c=i[o],d=c.text,y=c.width,A=c.lastInParagraph;if(t.save(),"right"===f?e+=p-y-2*a:"center"===f&&(e+=(p-y-2*a)/2),b){t.save(),t.beginPath();const i=e,r=D+n+(s.legacyTextRendering?Math.round(l/2):Math.round(l/4));t.moveTo(i,r);const o=f!==He||A?y:p-2*a;t.lineTo(i+Math.round(o),r),t.lineWidth=l/15;const u=this._getLinearGradient();t.strokeStyle=u||v,t.stroke(),t.restore()}const x=e;if("rtl"===h||0===g&&f!==He&&!m)0!==g&&t.setAttr("letterSpacing","".concat(g,"px")),this._partialTextX=e,this._partialTextY=D+n,this._partialText=d,t.fillStrokeShape(this);else{const r=d.split(" ").length-1,s=Ue(d);for(let l=0;l<s.length;l++){const u=s[l];if(" "!==u||A||f!==He||(e+=(p-2*a-y)/r),this._partialTextX=e,this._partialTextY=D+n,this._partialText=u,m){t.save();m({char:u,index:l+i.slice(0,o).reduce((t,e)=>t+Ue(e.text).length,0),x:e,y:D+n,lineIndex:o,column:l,isLastInLine:A,width:this.measureSize(u).width,context:t})}t.fillStrokeShape(this),m&&t.restore(),e+=this.measureSize(u).width+g}}if(w){t.save(),t.beginPath();const e=s.legacyTextRendering?0:-Math.round(l/4),i=x;t.moveTo(i,D+n+e);const r=f!==He||A?y:p-2*a;t.lineTo(i+Math.round(r),D+n+e),t.lineWidth=l/15;const o=this._getLinearGradient();t.strokeStyle=o||v,t.stroke(),t.restore()}t.restore(),r>1&&(D+=u)}}_hitFunc(t){const e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const e=b._isString(t)?t:null===t||void 0===t?"":t+"";return this._setAttr("text",e),this}getWidth(){return this.attrs.width===Ge||void 0===this.attrs.width?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){return this.attrs.height===Ge||void 0===this.attrs.height?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return b.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var e,n,i,r,o,s,a,l,u,c,h;let d,f=tn(),p=this.fontSize();f.save(),f.font=this._getContextFont(),d=f.measureText(t),f.restore();const g=p/100;return{actualBoundingBoxAscent:null!==(e=d.actualBoundingBoxAscent)&&void 0!==e?e:71.58203125*g,actualBoundingBoxDescent:null!==(n=d.actualBoundingBoxDescent)&&void 0!==n?n:0,actualBoundingBoxLeft:null!==(i=d.actualBoundingBoxLeft)&&void 0!==i?i:-7.421875*g,actualBoundingBoxRight:null!==(r=d.actualBoundingBoxRight)&&void 0!==r?r:75.732421875*g,alphabeticBaseline:null!==(o=d.alphabeticBaseline)&&void 0!==o?o:0,emHeightAscent:null!==(s=d.emHeightAscent)&&void 0!==s?s:100*g,emHeightDescent:null!==(a=d.emHeightDescent)&&void 0!==a?a:-20*g,fontBoundingBoxAscent:null!==(l=d.fontBoundingBoxAscent)&&void 0!==l?l:91*g,fontBoundingBoxDescent:null!==(u=d.fontBoundingBoxDescent)&&void 0!==u?u:21*g,hangingBaseline:null!==(c=d.hangingBaseline)&&void 0!==c?c:72.80000305175781*g,ideographicBaseline:null!==(h=d.ideographicBaseline)&&void 0!==h?h:-21*g,width:d.width,height:p}}_getContextFont(){return this.fontStyle()+Ye+this.fontVariant()+Ye+(this.fontSize()+"px ")+this.fontFamily().split(",").map(t=>{const e=(t=t.trim()).indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return e&&!n&&(t='"'.concat(t,'"')),t}).join(", ")}_addTextLine(t){this.align()===He&&(t=t.trim());const e=this._getTextWidth(t);return this.textArr.push({text:t,width:e,lastInParagraph:!1})}_getTextWidth(t){const e=this.letterSpacing(),n=t.length;return tn().measureText(t).width+e*n}_setTextData(){let t=this.text().split("\n"),e=+this.fontSize(),n=0,i=this.lineHeight()*e,r=this.attrs.width,o=this.attrs.height,s=r!==Ge&&void 0!==r,a=o!==Ge&&void 0!==o,l=this.padding(),u=r-2*l,c=o-2*l,h=0,d=this.wrap(),f="char"!==d&&d!==Ze,p=this.ellipsis();this.textArr=[],tn().font=this._getContextFont();const g=p?this._getTextWidth("\u2026"):0;for(let m=0,v=t.length;m<v;++m){let e=t[m],r=this._getTextWidth(e);if(s&&r>u)for(;e.length>0;){let t=0,o=Ue(e).length,s="",l=0;for(;t<o;){const n=t+o>>>1,r=Ue(e).slice(0,n+1).join(""),d=this._getTextWidth(r);(p&&a&&h+i>c?d+g:d)<=u?(t=n+1,s=r,l=d):o=n}if(!s)break;if(f){const n=Ue(e),i=Ue(s),r=n[i.length];let o;if((r===Ye||"-"===r)&&l<=u)o=i.length;else{const t=i.lastIndexOf(Ye),e=i.lastIndexOf("-");o=Math.max(t,e)+1}o>0&&(t=o,s=n.slice(0,t).join(""),l=this._getTextWidth(s))}s=s.trimRight(),this._addTextLine(s),n=Math.max(n,l),h+=i;if(this._shouldHandleEllipsis(h)){this._tryToAddEllipsisToLastLine();break}if(e=Ue(e).slice(t).join("").trimLeft(),e.length>0&&(r=this._getTextWidth(e),r<=u)){this._addTextLine(e),h+=i,n=Math.max(n,r);break}}else this._addTextLine(e),h+=i,n=Math.max(n,r),this._shouldHandleEllipsis(h)&&m<v-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),a&&h+i>c)break}this.textHeight=e,this.textWidth=n}_shouldHandleEllipsis(t){const e=+this.fontSize(),n=this.lineHeight()*e,i=this.attrs.height,r=i!==Ge&&void 0!==i,o=i-2*this.padding();return!(this.wrap()!==Ze)||r&&t+n>o}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,e=t!==Ge&&void 0!==t,n=t-2*this.padding(),i=this.ellipsis(),r=this.textArr[this.textArr.length-1];if(r&&i){if(e){this._getTextWidth(r.text+"\u2026")<n||(r.text=r.text.slice(0,r.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(r.text+"\u2026")}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=-1!==this.textDecoration().indexOf("underline")||-1!==this.textDecoration().indexOf("line-through"),e=this.hasShadow();return!(!t||!e)||super._useBufferCanvas()}}en.prototype._fillFunc=function(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)},en.prototype._strokeFunc=function(t){t.setAttr("miterLimit",2),t.strokeText(this._partialText,this._partialTextX,this._partialTextY)},en.prototype.className="Text",en.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],a(en),U.overWriteSetter(en,"width",N()),U.overWriteSetter(en,"height",N()),U.addGetterSetter(en,"direction",Ve),U.addGetterSetter(en,"fontFamily","Arial"),U.addGetterSetter(en,"fontSize",12,B()),U.addGetterSetter(en,"fontStyle",Ke),U.addGetterSetter(en,"fontVariant",Ke),U.addGetterSetter(en,"padding",0,B()),U.addGetterSetter(en,"align",qe),U.addGetterSetter(en,"verticalAlign","top"),U.addGetterSetter(en,"lineHeight",1,B()),U.addGetterSetter(en,"wrap","word"),U.addGetterSetter(en,"ellipsis",!1,W()),U.addGetterSetter(en,"letterSpacing",0,B()),U.addGetterSetter(en,"text","",L()),U.addGetterSetter(en,"textDecoration",""),U.addGetterSetter(en,"charRenderFunc",void 0);const nn="normal";function rn(t){t.fillText(this.partialText,0,0)}function on(t){t.strokeText(this.partialText,0,0)}class sn extends Zt{constructor(t){super(t),this.dummyCanvas=b.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return xe.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;return t>this.pathLength?null:xe.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=xe.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const e=this.textDecoration(),n=this.fill(),i=this.fontSize(),r=this.glyphInfo,o=-1!==e.indexOf("underline"),s=-1!==e.indexOf("line-through");o&&t.beginPath();for(let a=0;a<r.length;a++){t.save();const e=r[a].p0;t.translate(e.x,e.y),t.rotate(r[a].rotation),this.partialText=r[a].text,t.fillStrokeShape(this),o&&(0===a&&t.moveTo(0,i/2+1),t.lineTo(r[a].width,i/2+1)),t.restore()}if(o&&(t.strokeStyle=n,t.lineWidth=i/20,t.stroke()),s){t.beginPath();for(let e=0;e<r.length;e++){t.save();const n=r[e].p0;t.translate(n.x,n.y),t.rotate(r[e].rotation),0===e&&t.moveTo(0,0),t.lineTo(r[e].width,0),t.restore()}t.strokeStyle=n,t.lineWidth=i/20,t.stroke()}t.restore()}_hitFunc(t){t.beginPath();const e=this.glyphInfo;if(e.length>=1){const n=e[0].p0;t.moveTo(n.x,n.y)}for(let n=0;n<e.length;n++){const i=e[n].p1;t.lineTo(i.x,i.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return b.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return en.prototype.setText.call(this,t)}_getContextFont(){return en.prototype._getContextFont.call(this)}_getTextSize(t){const e=this.dummyCanvas.getContext("2d");e.save(),e.font=this._getContextFont();const n=e.measureText(t);return e.restore(),{width:n.width,height:parseInt("".concat(this.fontSize()),10)}}_setTextData(){const t=Ue(this.text()),e=[];let n=0;for(let h=0;h<t.length;h++)e.push({char:t[h],width:this._getTextSize(t[h]).width}),n+=e[h].width;const{height:i}=this._getTextSize(this.attrs.text);if(this.textWidth=n,this.textHeight=i,this.glyphInfo=[],!this.attrs.data)return null;const r=this.letterSpacing(),o=this.align(),s=this.kerningFunc(),a=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);let l=0;"center"===o&&(l=Math.max(0,this.pathLength/2-a/2)),"right"===o&&(l=Math.max(0,this.pathLength-a));let u=l;for(let h=0;h<e.length;h++){const n=this._getPointAtLength(u);if(!n)return;const i=e[h].char;let l=e[h].width+r;if(" "===i&&"justify"===o){const t=this.text().split(" ").length-1;l+=(this.pathLength-a)/t}const d=this._getPointAtLength(u+l);if(!d)return;const f=xe.getLineLength(n.x,n.y,d.x,d.y);let p=0;if(s)try{p=s(e[h-1].char,i)*this.fontSize()}catch(c){p=0}n.x+=p,d.x+=p,this.textWidth+=p;const g=xe.getPointOnLine(p+f/2,n.x,n.y,d.x,d.y),m=Math.atan2(d.y-n.y,d.x-n.x);this.glyphInfo.push({transposeX:g.x,transposeY:g.y,text:t[h],rotation:m,p0:n,p1:d,width:f}),u+=l}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const t=[];this.glyphInfo.forEach(function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)});let e,n,i=t[0]||0,r=t[0]||0,o=t[1]||0,s=t[1]||0;for(let l=0;l<t.length/2;l++)e=t[2*l],n=t[2*l+1],i=Math.min(i,e),r=Math.max(r,e),o=Math.min(o,n),s=Math.max(s,n);const a=this.fontSize();return{x:i-a/2,y:o-a/2,width:r-i+a,height:s-o+a}}destroy(){return b.releaseCanvas(this.dummyCanvas),super.destroy()}}sn.prototype._fillFunc=rn,sn.prototype._strokeFunc=on,sn.prototype._fillFuncHit=rn,sn.prototype._strokeFuncHit=on,sn.prototype.className="TextPath",sn.prototype._attrsAffectingSize=["text","fontSize","data"],a(sn),U.addGetterSetter(sn,"data"),U.addGetterSetter(sn,"fontFamily","Arial"),U.addGetterSetter(sn,"fontSize",12,B()),U.addGetterSetter(sn,"fontStyle",nn),U.addGetterSetter(sn,"align","left"),U.addGetterSetter(sn,"letterSpacing",0,B()),U.addGetterSetter(sn,"textBaseline","middle"),U.addGetterSetter(sn,"fontVariant",nn),U.addGetterSetter(sn,"text",""),U.addGetterSetter(sn,"textDecoration",""),U.addGetterSetter(sn,"kerningFunc",void 0);const an="tr-konva",ln=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(t=>t+".".concat(an)).join(" "),un="nodesRect",cn=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange","draggableChange"],hn={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},dn="ontouchstart"in s._global;const fn=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function pn(t,e,n){const i=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),r=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return(0,at.A)((0,at.A)({},t),{},{rotation:t.rotation+e,x:i,y:r})}function gn(t,e){const n=function(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}(t);return pn(t,e,n)}let mn=0;class vn extends ee{constructor(t){super(t),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(ln,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return b.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return an+this._id}setNodes(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._nodes&&this._nodes.length&&this.detach();const e=t.filter(t=>!t.isAncestorOf(this)||(b.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1));this._nodes=t=e,1===t.length&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(t=>{const e=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()};if(t._attrsAffectingSize.length){const n=t._attrsAffectingSize.map(t=>t+"Change."+this._getEventNamespace()).join(" ");t.on(n,e)}t.on(cn.map(t=>t+".".concat(this._getEventNamespace())).join(" "),e),t.on("absoluteTransformChange.".concat(this._getEventNamespace()),e),this._proxyDrag(t)}),this._resetTransformCache();return!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let e;t.on("dragstart.".concat(this._getEventNamespace()),n=>{e=t.getAbsolutePosition(),this.isDragging()||t===this.findOne(".back")||this.startDrag(n,!1)}),t.on("dragmove.".concat(this._getEventNamespace()),n=>{if(!e)return;const i=t.getAbsolutePosition(),r=i.x-e.x,o=i.y-e.y;this.nodes().forEach(e=>{if(e===t)return;if(e.isDragging())return;const i=e.getAbsolutePosition();e.setAbsolutePosition({x:i.x+r,y:i.y+o}),e.startDrag(n)}),e=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(un),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(un,this.__getNodeRect)}__getNodeShape(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rotation(),n=arguments.length>2?arguments[2]:void 0;const i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),r=t.getAbsoluteScale(n),o=t.getAbsolutePosition(n),a=i.x*r.x-t.offsetX()*r.x,l=i.y*r.y-t.offsetY()*r.y,u=(s.getAngle(t.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI);return pn({x:o.x+a*Math.cos(u)+l*Math.sin(-u),y:o.y+l*Math.cos(u)+a*Math.sin(u),width:i.width*r.x,height:i.height*r.y,rotation:u},-s.getAngle(e),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const t=[];this.nodes().map(e=>{const n=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],r=e.getAbsoluteTransform();i.forEach(function(e){const n=r.point(e);t.push(n)})});const e=new u;e.rotate(-s.getAngle(this.rotation()));let n=1/0,i=1/0,r=-1/0,o=-1/0;t.forEach(function(t){const s=e.point(t);void 0===n&&(n=r=s.x,i=o=s.y),n=Math.min(n,s.x),i=Math.min(i,s.y),r=Math.max(r,s.x),o=Math.max(o,s.y)}),e.invert();const a=e.point({x:n,y:i});return{x:a.x,y:a.y,width:r-n,height:o-i,rotation:s.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),fn.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const e=new Ne({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:dn?10:"auto"}),n=this;e.on("mousedown touchstart",function(t){n._handleMouseDown(t)}),e.on("dragstart",t=>{e.stopDrag(),t.cancelBubble=!0}),e.on("dragend",t=>{t.cancelBubble=!0}),e.on("mouseenter",()=>{const n=s.getAngle(this.rotation()),i=this.rotateAnchorCursor(),r=function(t,e,n){if("rotater"===t)return n;e+=b.degToRad(hn[t]||0);const i=(b.radToDeg(e)%360+360)%360;return b._inRange(i,337.5,360)||b._inRange(i,0,22.5)?"ns-resize":b._inRange(i,22.5,67.5)?"nesw-resize":b._inRange(i,67.5,112.5)?"ew-resize":b._inRange(i,112.5,157.5)?"nwse-resize":b._inRange(i,157.5,202.5)?"ns-resize":b._inRange(i,202.5,247.5)?"nesw-resize":b._inRange(i,247.5,292.5)?"ew-resize":b._inRange(i,292.5,337.5)?"nwse-resize":(b.error("Transformer has unknown angle for cursor detection: "+i),"pointer")}(t,n,i);e.getStage().content&&(e.getStage().content.style.cursor=r),this._cursorChange=!0}),e.on("mouseout",()=>{e.getStage().content&&(e.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(e)}_createBack(){const t=new Zt({name:"back",width:0,height:0,sceneFunc(t,e){const n=e.getParent(),i=n.padding();t.beginPath(),t.rect(-i,-i,e.width()+2*i,e.height()+2*i),t.moveTo(e.width()/2,-i),n.rotateEnabled()&&n.rotateLineVisible()&&t.lineTo(e.width()/2,-n.rotateAnchorOffset()*b._sign(e.height())-i),t.fillStrokeShape(e)},hitFunc:(t,e)=>{if(!this.shouldOverdrawWholeArea())return;const n=this.padding();t.beginPath(),t.rect(-n,-n,e.width()+2*n,e.height()+2*n),t.fillStrokeShape(e)}});this.add(t),this._proxyDrag(t),t.on("dragstart",t=>{t.cancelBubble=!0}),t.on("dragmove",t=>{t.cancelBubble=!0}),t.on("dragend",t=>{t.cancelBubble=!0}),this.on("dragmove",t=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const e=this._getNodeRect(),n=e.width,i=e.height,r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));this.sin=Math.abs(i/r),this.cos=Math.abs(n/r),"undefined"!==typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const o=t.target.getAbsolutePosition(),s=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-o.x,y:s.y-o.y},mn++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(e=>{e._fire("transformstart",{evt:t.evt,target:e})})}_handleMouseMove(t){let e,n,i;const r=this.findOne("."+this._movingAnchorName),o=r.getStage();o.setPointersPositions(t);const a=o.getPointerPosition();let l={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const u=r.getAbsolutePosition();this.anchorDragBoundFunc()&&(l=this.anchorDragBoundFunc()(u,l,t)),r.setAbsolutePosition(l);const c=r.getAbsolutePosition();if(u.x===c.x&&u.y===c.y)return;if("rotater"===this._movingAnchorName){const i=this._getNodeRect();e=r.x()-i.width/2,n=-r.y()+i.height/2;let o=Math.atan2(-n,e)+Math.PI/2;i.height<0&&(o-=Math.PI);const a=s.getAngle(this.rotation())+o,l=s.getAngle(this.rotationSnapTolerance()),u=function(t,e,n){let i=e;for(let r=0;r<t.length;r++){const o=s.getAngle(t[r]),a=Math.abs(o-e)%(2*Math.PI);Math.min(a,2*Math.PI-a)<n&&(i=o)}return i}(this.rotationSnaps(),a,l),c=gn(i,u-i.rotation);return void this._fitNodesInto(c,t)}const h=this.shiftBehavior();let d;d="inverted"===h?this.keepRatio()&&!t.shiftKey:"none"===h?this.keepRatio():this.keepRatio()||t.shiftKey;let f=this.centeredScaling()||t.altKey;if("top-left"===this._movingAnchorName){if(d){const t=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(t.x-r.x(),2)+Math.pow(t.y-r.y(),2));const o=this.findOne(".top-left").x()>t.x?-1:1,s=this.findOne(".top-left").y()>t.y?-1:1;e=i*this.cos*o,n=i*this.sin*s,this.findOne(".top-left").x(t.x-e),this.findOne(".top-left").y(t.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(r.y());else if("top-right"===this._movingAnchorName){if(d){const t=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(r.x()-t.x,2)+Math.pow(t.y-r.y(),2));const o=this.findOne(".top-right").x()<t.x?-1:1,s=this.findOne(".top-right").y()>t.y?-1:1;e=i*this.cos*o,n=i*this.sin*s,this.findOne(".top-right").x(t.x+e),this.findOne(".top-right").y(t.y-n)}var p=r.position();this.findOne(".top-left").y(p.y),this.findOne(".bottom-right").x(p.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(r.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(r.x());else if("bottom-left"===this._movingAnchorName){if(d){const t=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(t.x-r.x(),2)+Math.pow(r.y()-t.y,2));const o=t.x<r.x()?-1:1,s=r.y()<t.y?-1:1;e=i*this.cos*o,n=i*this.sin*s,r.x(t.x-e),r.y(t.y+n)}p=r.position(),this.findOne(".top-left").x(p.x),this.findOne(".bottom-right").y(p.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(r.y());else if("bottom-right"===this._movingAnchorName){if(d){const t=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(r.x()-t.x,2)+Math.pow(r.y()-t.y,2));const o=this.findOne(".bottom-right").x()<t.x?-1:1,s=this.findOne(".bottom-right").y()<t.y?-1:1;e=i*this.cos*o,n=i*this.sin*s,this.findOne(".bottom-right").x(t.x+e),this.findOne(".bottom-right").y(t.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(f=this.centeredScaling()||t.altKey,f){const t=this.findOne(".top-left"),e=this.findOne(".bottom-right"),n=t.x(),i=t.y(),r=this.getWidth()-e.x(),o=this.getHeight()-e.y();e.move({x:-n,y:-i}),t.move({x:r,y:o})}const g=this.findOne(".top-left").getAbsolutePosition();e=g.x,n=g.y;const m=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),v=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:e,y:n,width:m,height:v,rotation:s.getAngle(this.rotation())},t)}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){var e;if(this._transforming){this._transforming=!1,"undefined"!==typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const n=this.getNode();mn--,this._fire("transformend",{evt:t,target:n}),null===(e=this.getLayer())||void 0===e||e.batchDraw(),n&&this._nodes.forEach(e=>{var n;e._fire("transformend",{evt:t,target:e}),null===(n=e.getLayer())||void 0===n||n.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,e){const n=this._getNodeRect();if(b._inRange(t.width,2*-this.padding()-1,1))return void this.update();if(b._inRange(t.height,2*-this.padding()-1,1))return void this.update();const i=new u;if(i.rotate(s.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const e=i.point({x:2*-this.padding(),y:0});t.x+=e.x,t.y+=e.y,t.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const e=i.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.width+=2*this.padding()}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const e=i.point({x:0,y:2*-this.padding()});t.x+=e.x,t.y+=e.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding()}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const e=i.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding()}if(this.boundBoxFunc()){const e=this.boundBoxFunc()(n,t);e?t=e:b.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const r=1e7,o=new u;o.translate(n.x,n.y),o.rotate(n.rotation),o.scale(n.width/r,n.height/r);const a=new u,l=t.width/r,c=t.height/r;!1===this.flipEnabled()?(a.translate(t.x,t.y),a.rotate(t.rotation),a.translate(t.width<0?t.width:0,t.height<0?t.height:0),a.scale(Math.abs(l),Math.abs(c))):(a.translate(t.x,t.y),a.rotate(t.rotation),a.scale(l,c));const h=a.multiply(o.invert());this._nodes.forEach(t=>{var e;if(!t.getStage())return;const n=t.getParent().getAbsoluteTransform(),i=t.getTransform().copy();i.translate(t.offsetX(),t.offsetY());const r=new u;r.multiply(n.copy().invert()).multiply(h).multiply(n).multiply(i);const o=r.decompose();t.setAttrs(o),null===(e=t.getLayer())||void 0===e||e.batchDraw()}),this.rotation(b._getRotation(t.rotation)),this._nodes.forEach(t=>{this._fire("transform",{evt:e,target:t}),t._fire("transform",{evt:e,target:t})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,e){this.findOne(t).setAttrs(e)}update(){var t;const e=this._getNodeRect();this.rotation(b._getRotation(e.rotation));const n=e.width,i=e.height,r=this.enabledAnchors(),o=this.resizeEnabled(),s=this.padding(),a=this.anchorSize(),l=this.find("._anchor");l.forEach(t=>{t.setAttrs({width:a,height:a,offsetX:a/2,offsetY:a/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:a/2+s,offsetY:a/2+s,visible:o&&r.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:a/2+s,visible:o&&r.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:a/2-s,offsetY:a/2+s,visible:o&&r.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:a/2+s,visible:o&&r.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:a/2-s,visible:o&&r.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:a/2+s,offsetY:a/2-s,visible:o&&r.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:a/2-s,visible:o&&r.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:a/2-s,offsetY:a/2-s,visible:o&&r.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*b._sign(i)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),draggable:this.nodes().some(t=>t.draggable()),x:0,y:0});const u=this.anchorStyleFunc();u&&l.forEach(t=>{u(t)}),null===(t=this.getLayer())||void 0===t||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),ee.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return rt.prototype.toObject.call(this)}clone(t){return rt.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}vn.isTransforming=()=>mn>0,vn.prototype.className="Transformer",a(vn),U.addGetterSetter(vn,"enabledAnchors",fn,function(t){return t instanceof Array||b.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(t){-1===fn.indexOf(t)&&b.warn("Unknown anchor name: "+t+". Available names are: "+fn.join(", "))}),t||[]}),U.addGetterSetter(vn,"flipEnabled",!0,W()),U.addGetterSetter(vn,"resizeEnabled",!0),U.addGetterSetter(vn,"anchorSize",10,B()),U.addGetterSetter(vn,"rotateEnabled",!0),U.addGetterSetter(vn,"rotateLineVisible",!0),U.addGetterSetter(vn,"rotationSnaps",[]),U.addGetterSetter(vn,"rotateAnchorOffset",50,B()),U.addGetterSetter(vn,"rotateAnchorCursor","crosshair"),U.addGetterSetter(vn,"rotationSnapTolerance",5,B()),U.addGetterSetter(vn,"borderEnabled",!0),U.addGetterSetter(vn,"anchorStroke","rgb(0, 161, 255)"),U.addGetterSetter(vn,"anchorStrokeWidth",1,B()),U.addGetterSetter(vn,"anchorFill","white"),U.addGetterSetter(vn,"anchorCornerRadius",0,B()),U.addGetterSetter(vn,"borderStroke","rgb(0, 161, 255)"),U.addGetterSetter(vn,"borderStrokeWidth",1,B()),U.addGetterSetter(vn,"borderDash"),U.addGetterSetter(vn,"keepRatio",!0),U.addGetterSetter(vn,"shiftBehavior","default"),U.addGetterSetter(vn,"centeredScaling",!1),U.addGetterSetter(vn,"ignoreStroke",!1),U.addGetterSetter(vn,"padding",0,B()),U.addGetterSetter(vn,"nodes"),U.addGetterSetter(vn,"node"),U.addGetterSetter(vn,"boundBoxFunc"),U.addGetterSetter(vn,"anchorDragBoundFunc"),U.addGetterSetter(vn,"anchorStyleFunc"),U.addGetterSetter(vn,"shouldOverdrawWholeArea",!1),U.addGetterSetter(vn,"useSingleNodeRotation",!0),U.backCompat(vn,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class yn extends Zt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,s.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}function bn(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}yn.prototype.className="Wedge",yn.prototype._centroid=!0,yn.prototype._attrsAffectingSize=["radius"],a(yn),U.addGetterSetter(yn,"radius",0,B()),U.addGetterSetter(yn,"angle",0,B()),U.addGetterSetter(yn,"clockwise",!1),U.backCompat(yn,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});const wn=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Dn=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];U.addGetterSetter(rt,"blurRadius",0,B(),U.afterSetFilter);U.addGetterSetter(rt,"brightness",0,B(),U.afterSetFilter);U.addGetterSetter(rt,"contrast",0,B(),U.afterSetFilter);function An(t,e,n,i,r){const o=n-e,s=r-i;if(0===o)return i+s/2;if(0===s)return i;let a=(t-e)/o;return a=s*a+i,a}U.addGetterSetter(rt,"embossStrength",.5,B(),U.afterSetFilter),U.addGetterSetter(rt,"embossWhiteLevel",.5,B(),U.afterSetFilter),U.addGetterSetter(rt,"embossDirection","top-left",void 0,U.afterSetFilter),U.addGetterSetter(rt,"embossBlend",!1,void 0,U.afterSetFilter);U.addGetterSetter(rt,"enhance",0,B(),U.afterSetFilter);U.addGetterSetter(rt,"hue",0,B(),U.afterSetFilter),U.addGetterSetter(rt,"saturation",0,B(),U.afterSetFilter),U.addGetterSetter(rt,"luminance",0,B(),U.afterSetFilter);U.addGetterSetter(rt,"hue",0,B(),U.afterSetFilter),U.addGetterSetter(rt,"saturation",0,B(),U.afterSetFilter),U.addGetterSetter(rt,"value",0,B(),U.afterSetFilter);function xn(t,e,n){let i=4*(n*t.width+e);const r=[];return r.push(t.data[i++],t.data[i++],t.data[i++],t.data[i++]),r}function Cn(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}U.addGetterSetter(rt,"kaleidoscopePower",2,B(),U.afterSetFilter),U.addGetterSetter(rt,"kaleidoscopeAngle",0,B(),U.afterSetFilter);U.addGetterSetter(rt,"threshold",0,B(),U.afterSetFilter);U.addGetterSetter(rt,"noise",.2,B(),U.afterSetFilter);U.addGetterSetter(rt,"pixelSize",8,B(),U.afterSetFilter);U.addGetterSetter(rt,"levels",.5,B(),U.afterSetFilter);U.addGetterSetter(rt,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),U.addGetterSetter(rt,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),U.addGetterSetter(rt,"blue",0,R,U.afterSetFilter);U.addGetterSetter(rt,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),U.addGetterSetter(rt,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),U.addGetterSetter(rt,"blue",0,R,U.afterSetFilter),U.addGetterSetter(rt,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});U.addGetterSetter(rt,"threshold",.5,B(),U.afterSetFilter);ce.Util._assign(ce,{Arc:he,Arrow:Ce,Circle:Se,Ellipse:Fe,Image:Ee,Label:Be,Tag:Ie,Line:pe,Path:xe,Rect:Ne,RegularPolygon:Le,Ring:We,Sprite:ze,Star:je,Text:en,TextPath:sn,Transformer:vn,Wedge:yn,Filters:{Blur:function(t){const e=Math.round(this.blurRadius());e>0&&function(t,e){const n=t.data,i=t.width,r=t.height;let o,s,a,l,u,c,h,d,f,p,g,m,v,y,b,w,D,A,x,C;const S=e+e+1,F=i-1,E=r-1,k=e+1,M=k*(k+1)/2,T=new bn,P=wn[e],_=Dn[e];let R=null,B=T,I=null,N=null;for(let L=1;L<S;L++)B=B.next=new bn,L===k&&(R=B);B.next=T,a=s=0;for(let L=0;L<r;L++){m=v=y=b=l=u=c=h=0,d=k*(w=n[s]),f=k*(D=n[s+1]),p=k*(A=n[s+2]),g=k*(x=n[s+3]),l+=M*w,u+=M*D,c+=M*A,h+=M*x,B=T;for(let t=0;t<k;t++)B.r=w,B.g=D,B.b=A,B.a=x,B=B.next;for(let t=1;t<k;t++)o=s+((F<t?F:t)<<2),l+=(B.r=w=n[o])*(C=k-t),u+=(B.g=D=n[o+1])*C,c+=(B.b=A=n[o+2])*C,h+=(B.a=x=n[o+3])*C,m+=w,v+=D,y+=A,b+=x,B=B.next;I=T,N=R;for(let t=0;t<i;t++)n[s+3]=x=h*P>>_,0!==x?(x=255/x,n[s]=(l*P>>_)*x,n[s+1]=(u*P>>_)*x,n[s+2]=(c*P>>_)*x):n[s]=n[s+1]=n[s+2]=0,l-=d,u-=f,c-=p,h-=g,d-=I.r,f-=I.g,p-=I.b,g-=I.a,o=a+((o=t+e+1)<F?o:F)<<2,m+=I.r=n[o],v+=I.g=n[o+1],y+=I.b=n[o+2],b+=I.a=n[o+3],l+=m,u+=v,c+=y,h+=b,I=I.next,d+=w=N.r,f+=D=N.g,p+=A=N.b,g+=x=N.a,m-=w,v-=D,y-=A,b-=x,N=N.next,s+=4;a+=i}for(let L=0;L<i;L++){v=y=b=m=u=c=h=l=0,s=L<<2,d=k*(w=n[s]),f=k*(D=n[s+1]),p=k*(A=n[s+2]),g=k*(x=n[s+3]),l+=M*w,u+=M*D,c+=M*A,h+=M*x,B=T;for(let e=0;e<k;e++)B.r=w,B.g=D,B.b=A,B.a=x,B=B.next;let t=i;for(let r=1;r<=e;r++)s=t+L<<2,l+=(B.r=w=n[s])*(C=k-r),u+=(B.g=D=n[s+1])*C,c+=(B.b=A=n[s+2])*C,h+=(B.a=x=n[s+3])*C,m+=w,v+=D,y+=A,b+=x,B=B.next,r<E&&(t+=i);s=L,I=T,N=R;for(let e=0;e<r;e++)o=s<<2,n[o+3]=x=h*P>>_,x>0?(x=255/x,n[o]=(l*P>>_)*x,n[o+1]=(u*P>>_)*x,n[o+2]=(c*P>>_)*x):n[o]=n[o+1]=n[o+2]=0,l-=d,u-=f,c-=p,h-=g,d-=I.r,f-=I.g,p-=I.b,g-=I.a,o=L+((o=e+k)<E?o:E)*i<<2,l+=m+=I.r=n[o],u+=v+=I.g=n[o+1],c+=y+=I.b=n[o+2],h+=b+=I.a=n[o+3],I=I.next,d+=w=N.r,f+=D=N.g,p+=A=N.b,g+=x=N.a,m-=w,v-=D,y-=A,b-=x,N=N.next,s+=i}}(t,e)},Brightness:function(t){const e=this.brightness(),n=t.data,i=n.length;for(let r=0;r<i;r+=4)n[r]=Math.min(255,n[r]*e),n[r+1]=Math.min(255,n[r+1]*e),n[r+2]=Math.min(255,n[r+2]*e)},Brighten:function(t){const e=255*this.brightness(),n=t.data,i=n.length;for(let r=0;r<i;r+=4)n[r]+=e,n[r+1]+=e,n[r+2]+=e},Contrast:function(t){const e=Math.pow((this.contrast()+100)/100,2),n=t.data,i=n.length;let r=150,o=150,s=150;for(let a=0;a<i;a+=4)r=n[a],o=n[a+1],s=n[a+2],r/=255,r-=.5,r*=e,r+=.5,r*=255,o/=255,o-=.5,o*=e,o+=.5,o*=255,s/=255,s-=.5,s*=e,s+=.5,s*=255,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,n[a]=r,n[a+1]=o,n[a+2]=s},Emboss:function(t){var e,n,i,r,o,s,a,l,u;const c=t.data,h=t.width,d=t.height,f=Math.min(1,Math.max(0,null!==(n=null===(e=this.embossStrength)||void 0===e?void 0:e.call(this))&&void 0!==n?n:.5)),p=Math.min(1,Math.max(0,null!==(r=null===(i=this.embossWhiteLevel)||void 0===i?void 0:i.call(this))&&void 0!==r?r:.5)),g=null!==(a={"top-left":315,top:270,"top-right":225,right:180,"bottom-right":135,bottom:90,"bottom-left":45,left:0}[null!==(s=null===(o=this.embossDirection)||void 0===o?void 0:o.call(this))&&void 0!==s?s:"top-left"])&&void 0!==a?a:315,m=!(null===(u=null===(l=this.embossBlend)||void 0===l?void 0:l.call(this))||void 0===u||!u),v=10*f,y=255*p,b=g*Math.PI/180,w=Math.cos(b),D=Math.sin(b),A=128/1020*v,x=new Uint8ClampedArray(c),C=new Float32Array(h*d);for(let M=0,T=0;T<c.length;T+=4,M++)C[M]=.2126*x[T]+.7152*x[T+1]+.0722*x[T+2];const S=[-1,0,1,-2,0,2,-1,0,1],F=[-1,-2,-1,0,0,0,1,2,1],E=[-h-1,-h,1-h,-1,0,1,h-1,h,h+1],k=t=>t<0?0:t>255?255:t;for(let M=1;M<d-1;M++)for(let t=1;t<h-1;t++){const e=M*h+t;let n=0,i=0;n+=C[e+E[0]]*S[0],i+=C[e+E[0]]*F[0],n+=C[e+E[1]]*S[1],i+=C[e+E[1]]*F[1],n+=C[e+E[2]]*S[2],i+=C[e+E[2]]*F[2],n+=C[e+E[3]]*S[3],i+=C[e+E[3]]*F[3],n+=C[e+E[5]]*S[5],i+=C[e+E[5]]*F[5],n+=C[e+E[6]]*S[6],i+=C[e+E[6]]*F[6],n+=C[e+E[7]]*S[7],i+=C[e+E[7]]*F[7],n+=C[e+E[8]]*S[8],i+=C[e+E[8]]*F[8];const r=k(y+(w*n+D*i)*A),o=4*e;if(m){const t=r-y;c[o]=k(x[o]+t),c[o+1]=k(x[o+1]+t),c[o+2]=k(x[o+2]+t),c[o+3]=x[o+3]}else c[o]=c[o+1]=c[o+2]=r,c[o+3]=x[o+3]}for(let M=0;M<h;M++){let t=4*M,e=4*((d-1)*h+M);c[t]=x[t],c[t+1]=x[t+1],c[t+2]=x[t+2],c[t+3]=x[t+3],c[e]=x[e],c[e+1]=x[e+1],c[e+2]=x[e+2],c[e+3]=x[e+3]}for(let M=1;M<d-1;M++){let t=M*h*4,e=4*(M*h+(h-1));c[t]=x[t],c[t+1]=x[t+1],c[t+2]=x[t+2],c[t+3]=x[t+3],c[e]=x[e],c[e+1]=x[e+1],c[e+2]=x[e+2],c[e+3]=x[e+3]}return t},Enhance:function(t){const e=t.data,n=e.length;let i,r,o,s=e[0],a=s,l=e[1],u=l,c=e[2],h=c;const d=this.enhance();if(0===d)return;for(let b=0;b<n;b+=4)i=e[b+0],i<s?s=i:i>a&&(a=i),r=e[b+1],r<l?l=r:r>u&&(u=r),o=e[b+2],o<c?c=o:o>h&&(h=o);let f,p,g,m,v,y;if(a===s&&(a=255,s=0),u===l&&(u=255,l=0),h===c&&(h=255,c=0),d>0)f=a+d*(255-a),p=s-d*(s-0),g=u+d*(255-u),m=l-d*(l-0),v=h+d*(255-h),y=c-d*(c-0);else{const t=.5*(a+s);f=a+d*(a-t),p=s+d*(s-t);const e=.5*(u+l);g=u+d*(u-e),m=l+d*(l-e);const n=.5*(h+c);v=h+d*(h-n),y=c+d*(c-n)}for(let b=0;b<n;b+=4)e[b+0]=An(e[b+0],s,a,p,f),e[b+1]=An(e[b+1],l,u,m,g),e[b+2]=An(e[b+2],c,h,y,v)},Grayscale:function(t){const e=t.data,n=e.length;for(let i=0;i<n;i+=4){const t=.34*e[i]+.5*e[i+1]+.16*e[i+2];e[i]=t,e[i+1]=t,e[i+2]=t}},HSL:function(t){const e=t.data,n=e.length,i=Math.pow(2,this.saturation()),r=Math.abs(this.hue()+360)%360,o=127*this.luminance(),s=1*i*Math.cos(r*Math.PI/180),a=1*i*Math.sin(r*Math.PI/180),l=.299+.701*s+.167*a,u=.587-.587*s+.33*a,c=.114-.114*s-.497*a,h=.299-.299*s-.328*a,d=.587+.413*s+.035*a,f=.114-.114*s+.293*a,p=.299-.3*s+1.25*a,g=.587-.586*s-1.05*a,m=.114+.886*s-.2*a;let v,y,b,w;for(let D=0;D<n;D+=4)v=e[D+0],y=e[D+1],b=e[D+2],w=e[D+3],e[D+0]=l*v+u*y+c*b+o,e[D+1]=h*v+d*y+f*b+o,e[D+2]=p*v+g*y+m*b+o,e[D+3]=w},HSV:function(t){const e=t.data,n=e.length,i=Math.pow(2,this.value()),r=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=i*r*Math.cos(o*Math.PI/180),a=i*r*Math.sin(o*Math.PI/180),l=.299*i+.701*s+.167*a,u=.587*i-.587*s+.33*a,c=.114*i-.114*s-.497*a,h=.299*i-.299*s-.328*a,d=.587*i+.413*s+.035*a,f=.114*i-.114*s+.293*a,p=.299*i-.3*s+1.25*a,g=.587*i-.586*s-1.05*a,m=.114*i+.886*s-.2*a;for(let v=0;v<n;v+=4){const t=e[v+0],n=e[v+1],i=e[v+2],r=e[v+3];e[v+0]=l*t+u*n+c*i,e[v+1]=h*t+d*n+f*i,e[v+2]=p*t+g*n+m*i,e[v+3]=r}},Invert:function(t){const e=t.data,n=e.length;for(let i=0;i<n;i+=4)e[i]=255-e[i],e[i+1]=255-e[i+1],e[i+2]=255-e[i+2]},Kaleidoscope:function(t){const e=t.width,n=t.height;let i,r,o,s,a,l,u,c,h,d,f=Math.round(this.kaleidoscopePower());const p=Math.round(this.kaleidoscopeAngle()),g=Math.floor(e*(p%360)/360);if(f<1)return;const m=b.createCanvasElement();m.width=e,m.height=n;const v=m.getContext("2d").getImageData(0,0,e,n);b.releaseCanvas(m),function(t,e,n){const i=t.data,r=e.data,o=t.width,s=t.height,a=n.polarCenterX||o/2,l=n.polarCenterY||s/2;let u=Math.sqrt(a*a+l*l),c=o-a,h=s-l;const d=Math.sqrt(c*c+h*h);u=d>u?d:u;const f=s,p=o,g=360/p*Math.PI/180;for(let m=0;m<p;m+=1){const t=Math.sin(m*g),e=Math.cos(m*g);for(let n=0;n<f;n+=1){c=Math.floor(a+u*n/f*e),h=Math.floor(l+u*n/f*t);let s=4*(h*o+c);const d=i[s+0],p=i[s+1],g=i[s+2],v=i[s+3];s=4*(m+n*o),r[s+0]=d,r[s+1]=p,r[s+2]=g,r[s+3]=v}}}(t,v,{polarCenterX:e/2,polarCenterY:n/2});let y=e/Math.pow(2,f);for(;y<=8;)y*=2,f-=1;y=Math.ceil(y);let w=y,D=0,A=w,x=1;for(g+y>e&&(D=w,A=0,x=-1),r=0;r<n;r+=1)for(i=D;i!==A;i+=x)o=Math.round(i+g)%e,h=4*(e*r+o),a=v.data[h+0],l=v.data[h+1],u=v.data[h+2],c=v.data[h+3],d=4*(e*r+i),v.data[d+0]=a,v.data[d+1]=l,v.data[d+2]=u,v.data[d+3]=c;for(r=0;r<n;r+=1)for(w=Math.floor(y),s=0;s<f;s+=1){for(i=0;i<w+1;i+=1)h=4*(e*r+i),a=v.data[h+0],l=v.data[h+1],u=v.data[h+2],c=v.data[h+3],d=4*(e*r+2*w-i-1),v.data[d+0]=a,v.data[d+1]=l,v.data[d+2]=u,v.data[d+3]=c;w*=2}!function(t,e,n){const i=t.data,r=e.data,o=t.width,s=t.height,a=n.polarCenterX||o/2,l=n.polarCenterY||s/2;let u=Math.sqrt(a*a+l*l),c=o-a,h=s-l;const d=Math.sqrt(c*c+h*h);u=d>u?d:u;const f=s,p=o,g=n.polarRotation||0;let m,v;for(c=0;c<o;c+=1)for(h=0;h<s;h+=1){const t=c-a,e=h-l,n=Math.sqrt(t*t+e*e)*f/u;let s=(180*Math.atan2(e,t)/Math.PI+360+g)%360;s=s*p/360,m=Math.floor(s),v=Math.floor(n);let d=4*(v*o+m);const y=i[d+0],b=i[d+1],w=i[d+2],D=i[d+3];d=4*(h*o+c),r[d+0]=y,r[d+1]=b,r[d+2]=w,r[d+3]=D}}(v,t,{polarRotation:0})},Mask:function(t){let e=function(t,e){const n=xn(t,0,0),i=xn(t,t.width-1,0),r=xn(t,0,t.height-1),o=xn(t,t.width-1,t.height-1),s=e||10;if(Cn(n,i)<s&&Cn(i,o)<s&&Cn(o,r)<s&&Cn(r,n)<s){const e=function(t){const e=[0,0,0];for(let n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}([i,n,o,r]),a=[];for(let n=0;n<t.width*t.height;n++){const i=Cn(e,[t.data[4*n],t.data[4*n+1],t.data[4*n+2]]);a[n]=i<s?0:255}return a}}(t,this.threshold());return e&&(e=function(t,e,n){const i=[1,1,1,1,0,1,1,1,1],r=Math.round(Math.sqrt(i.length)),o=Math.floor(r/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let c=0;for(let s=0;s<r;s++)for(let u=0;u<r;u++){const h=a+s-o,d=l+u-o;if(h>=0&&h<n&&d>=0&&d<e){const n=i[s*r+u];c+=t[h*e+d]*n}}s[u]=2040===c?255:0}return s}(e,t.width,t.height),e=function(t,e,n){const i=[1,1,1,1,1,1,1,1,1],r=Math.round(Math.sqrt(i.length)),o=Math.floor(r/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let c=0;for(let s=0;s<r;s++)for(let u=0;u<r;u++){const h=a+s-o,d=l+u-o;if(h>=0&&h<n&&d>=0&&d<e){const n=i[s*r+u];c+=t[h*e+d]*n}}s[u]=c>=1020?255:0}return s}(e,t.width,t.height),e=function(t,e,n){const i=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],r=Math.round(Math.sqrt(i.length)),o=Math.floor(r/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let c=0;for(let s=0;s<r;s++)for(let u=0;u<r;u++){const h=a+s-o,d=l+u-o;if(h>=0&&h<n&&d>=0&&d<e){const n=i[s*r+u];c+=t[h*e+d]*n}}s[u]=c}return s}(e,t.width,t.height),function(t,e){for(let n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}(t,e)),t},Noise:function(t){const e=255*this.noise(),n=t.data,i=n.length,r=e/2;for(let o=0;o<i;o+=4)n[o+0]+=r-2*r*Math.random(),n[o+1]+=r-2*r*Math.random(),n[o+2]+=r-2*r*Math.random()},Pixelate:function(t){let e=Math.ceil(this.pixelSize()),n=t.width,i=t.height,r=Math.ceil(n/e),o=Math.ceil(i/e),s=t.data;if(e<=0)b.error("pixelSize value can not be <= 0");else for(let a=0;a<r;a+=1)for(let t=0;t<o;t+=1){let r=0,o=0,l=0,u=0;const c=a*e,h=c+e,d=t*e,f=d+e;let p=0;for(let t=c;t<h;t+=1)if(!(t>=n))for(let e=d;e<f;e+=1){if(e>=i)continue;const a=4*(n*e+t);r+=s[a+0],o+=s[a+1],l+=s[a+2],u+=s[a+3],p+=1}r/=p,o/=p,l/=p,u/=p;for(let t=c;t<h;t+=1)if(!(t>=n))for(let e=d;e<f;e+=1){if(e>=i)continue;const a=4*(n*e+t);s[a+0]=r,s[a+1]=o,s[a+2]=l,s[a+3]=u}}},Posterize:function(t){const e=Math.round(254*this.levels())+1,n=t.data,i=n.length,r=255/e;for(let o=0;o<i;o+=1)n[o]=Math.floor(n[o]/r)*r},RGB:function(t){const e=t.data,n=e.length,i=this.red(),r=this.green(),o=this.blue();for(let s=0;s<n;s+=4){const t=(.34*e[s]+.5*e[s+1]+.16*e[s+2])/255;e[s]=t*i,e[s+1]=t*r,e[s+2]=t*o,e[s+3]=e[s+3]}},RGBA:function(t){const e=t.data,n=e.length,i=this.red(),r=this.green(),o=this.blue(),s=this.alpha();for(let a=0;a<n;a+=4){const t=1-s;e[a]=i*s+e[a]*t,e[a+1]=r*s+e[a+1]*t,e[a+2]=o*s+e[a+2]*t}},Sepia:function(t){const e=t.data,n=e.length;for(let i=0;i<n;i+=4){const t=e[i+0],n=e[i+1],r=e[i+2];e[i+0]=Math.min(255,.393*t+.769*n+.189*r),e[i+1]=Math.min(255,.349*t+.686*n+.168*r),e[i+2]=Math.min(255,.272*t+.534*n+.131*r)}},Solarize:function(t){const e=t.data;for(let n=0;n<e.length;n+=4){const t=e[n],i=e[n+1],r=e[n+2];.2126*t+.7152*i+.0722*r>=128&&(e[n]=255-t,e[n+1]=255-i,e[n+2]=255-r)}return t},Threshold:function(t){const e=255*this.threshold(),n=t.data,i=n.length;for(let r=0;r<i;r+=1)n[r]=n[r]<e?0:255}}});var Sn=n(94922),Fn=n.n(Sn);const En=ce;var kn=n(66362),Mn=n.n(kn),Tn=n(70763);const Pn={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let _n=!1,Rn=!1;const Bn=".react-konva-event";let In=!1;const Nn="ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.\nPosition of a node will be changed during drag&drop, so you should update state of the react app as well.\nConsider to add onDragMove or onDragEnd events.\nFor more info see: https://github.com/konvajs/react-konva/issues/256\n",Ln='ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor more info see: https://github.com/konvajs/react-konva/issues/194\n',On={};function Wn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:On;if(!_n&&"zIndex"in e&&(console.warn(Ln),_n=!0),!Rn&&e.draggable){var i=void 0!==e.x||void 0!==e.y,r=e.onDragEnd||e.onDragMove;i&&!r&&(console.warn(Nn),Rn=!0)}for(var o in n)if(!Pn[o]){var s="on"===o.slice(0,2),a=n[o]!==e[o];if(s&&a)"content"===(f=o.substr(2).toLowerCase()).substr(0,7)&&(f="content"+f.substr(7,1).toUpperCase()+f.substr(8)),t.off(f,n[o]);!e.hasOwnProperty(o)&&t.setAttr(o,void 0)}var l=In||e._useStrictMode,u={},c=!1;const h={};for(var o in e)if(!Pn[o]){s="on"===o.slice(0,2);var d=n[o]!==e[o];if(s&&d)"content"===(f=o.substr(2).toLowerCase()).substr(0,7)&&(f="content"+f.substr(7,1).toUpperCase()+f.substr(8)),e[o]&&(h[f]=e[o]);!s&&(e[o]!==n[o]||l&&e[o]!==t.getAttr(o))&&(c=!0,u[o]=e[o])}for(var f in c&&(t.setAttrs(u),zn(t)),h)t.on(f+Bn,h[f])}function zn(t){if(!s.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}var jn=n(97039);const Un={},Gn={};function Vn(t,e){"string"!==typeof e?(t.add(e),zn(t)):console.error("Do not use plain text as child of Konva.Node. You are using text: ".concat(e))}function Hn(t,e,n){let i=En[t];i||(console.error("Konva has no node with the type ".concat(t,'. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/').concat(t,'" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html')),i=En.Group);const r={},o={};for(var s in e){"on"===s.slice(0,2)?o[s]=e[s]:r[s]=e[s]}const a=new i(r);return Wn(a,o),a}function qn(t,e,n){console.error('Text components are not supported for now in ReactKonva. Your text is: "'.concat(t,'"'))}function Xn(t,e,n){return!1}function Kn(t){return t}function Yn(){return null}function Zn(){return null}function Qn(t,e,n,i){return Gn}function Jn(){}function $n(t){}function ti(t,e){return!1}function ei(){return Un}function ni(){return Un}En.Node.prototype._applyProps=Wn;const ii=setTimeout,ri=clearTimeout,oi=-1;function si(t,e){return!1}const ai=!1,li=!0,ui=!0;function ci(t,e){e.parent===t?e.moveToTop():t.add(e),zn(t)}function hi(t,e){e.parent===t?e.moveToTop():t.add(e),zn(t)}function di(t,e,n){e._remove(),t.add(e),e.setZIndex(n.getZIndex()),zn(t)}function fi(t,e,n){di(t,e,n)}function pi(t,e){e.destroy(),e.off(Bn),zn(t)}function gi(t,e){e.destroy(),e.off(Bn),zn(t)}function mi(t,e,n){console.error('Text components are not yet supported in ReactKonva. You text is: "'.concat(n,'"'))}function vi(t,e,n){}function yi(t,e,n,i,r){Wn(t,r,i)}function bi(t){t.hide(),zn(t)}function wi(t){}function Di(t,e){(null==e.visible||e.visible)&&t.show()}function Ai(t,e){}function xi(t){}function Ci(){}const Si=()=>Tn.DefaultEventPriority;var Fi,Ei,ki=Object.defineProperty,Mi=Object.defineProperties,Ti=Object.getOwnPropertyDescriptors,Pi=Object.getOwnPropertySymbols,_i=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Bi=(t,e,n)=>e in t?ki(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ii=(t,e)=>{for(var n in e||(e={}))_i.call(e,n)&&Bi(t,n,e[n]);if(Pi)for(var n of Pi(e))Ri.call(e,n)&&Bi(t,n,e[n]);return t};"undefined"===typeof window||!(null==(Fi=window.document)?void 0:Fi.createElement)&&"ReactNative"!==(null==(Ei=window.navigator)?void 0:Ei.product)?Sn.useEffect:Sn.useLayoutEffect;function Ni(t,e,n){if(!t)return;if(!0===n(t))return t;let i=e?t.return:t.child;for(;i;){const t=Ni(i,e,n);if(t)return t;i=e?null:i.sibling}}function Li(t){try{return Object.defineProperties(t,{_currentRenderer:{get:()=>null,set(){}},_currentRenderer2:{get:()=>null,set(){}}})}catch(e){return t}}const Oi=console.error;console.error=function(){const t=[...arguments].join("");if(!(null==t?void 0:t.startsWith("Warning:"))||!t.includes("useContext"))return Oi.apply(this,arguments);console.error=Oi};const Wi=Li(Sn.createContext(null));class zi extends Sn.Component{render(){return Sn.createElement(Wi.Provider,{value:this._reactInternals},this.props.children)}}function ji(){const t=Sn.useContext(Wi);if(null===t)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const e=Sn.useId();return Sn.useMemo(()=>{for(const n of[t,null==t?void 0:t.alternate]){if(!n)continue;const t=Ni(n,!1,t=>{let n=t.memoizedState;for(;n;){if(n.memoizedState===e)return!0;n=n.next}});if(t)return t}},[t,e])}function Ui(){const t=function(){const t=ji(),[e]=Sn.useState(()=>new Map);e.clear();let n=t;for(;n;){if(n.type&&"object"===typeof n.type){const t=void 0===n.type._context&&n.type.Provider===n.type?n.type:n.type._context;t&&t!==Wi&&!e.has(t)&&e.set(t,Sn.useContext(Li(t)))}n=n.return}return e}();return Sn.useMemo(()=>Array.from(t.keys()).reduce((e,n)=>i=>{return Sn.createElement(e,null,Sn.createElement(n.Provider,(r=Ii({},i),o={value:t.get(n)},Mi(r,Ti(o)))));var r,o},t=>Sn.createElement(zi,Ii({},t))),[t])}const Gi=t=>{const e=Fn().useRef(null),n=Fn().useRef(null),i=Fn().useRef(null),r=function(t){const e=Fn().useRef({});return Fn().useLayoutEffect(()=>{e.current=t}),Fn().useLayoutEffect(()=>()=>{e.current={}},[]),e.current}(t),o=Ui(),s=e=>{const{forwardedRef:n}=t;n&&("function"===typeof n?n(e):n.current=e)};return Fn().useLayoutEffect(()=>(n.current=new En.Stage({width:t.width,height:t.height,container:e.current}),s(n.current),i.current=Zi.createContainer(n.current,Tn.LegacyRoot,!1,null),Zi.updateContainer(Fn().createElement(o,{},t.children),i.current),()=>{En.isBrowser&&(s(null),Zi.updateContainer(null,i.current,null),n.current.destroy())}),[]),Fn().useLayoutEffect(()=>{s(n.current),Wn(n.current,t,r),Zi.updateContainer(Fn().createElement(o,{},t.children),i.current,null)}),Fn().createElement("div",{ref:e,id:t.id,accessKey:t.accessKey,className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})},Vi="Layer",Hi="Group",qi="Rect",Xi="Image",Ki="Text",Yi="Transformer",Zi=Mn()(i);Zi.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Fn().version,rendererPackageName:"react-konva"});const Qi=Fn().forwardRef((t,e)=>Fn().createElement(zi,{},Fn().createElement(Gi,(0,at.A)((0,at.A)({},t),{},{forwardedRef:e}))))},56080:t=>{"use strict";t.exports=function(t,e){var n,i,r,o,s,a,l,u,c,h,d,f,p,g,m,v,y,b,w,D,A,x,C,S,F;n=t.state,i=t.next_in,S=t.input,r=i+(t.avail_in-5),o=t.next_out,F=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(f+=S[i++]<<p,p+=8,f+=S[i++]<<p,p+=8),b=g[f&v];e:for(;;){if(f>>>=w=b>>>24,p-=w,0===(w=b>>>16&255))F[o++]=65535&b;else{if(!(16&w)){if(0===(64&w)){b=g[(65535&b)+(f&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}D=65535&b,(w&=15)&&(p<w&&(f+=S[i++]<<p,p+=8),D+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=S[i++]<<p,p+=8,f+=S[i++]<<p,p+=8),b=m[f&y];n:for(;;){if(f>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0===(64&w)){b=m[(65535&b)+(f&(1<<w)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(A=65535&b,p<(w&=15)&&(f+=S[i++]<<p,(p+=8)<w&&(f+=S[i++]<<p,p+=8)),(A+=f&(1<<w)-1)>l){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=w,p-=w,A>(w=o-s)){if((w=A-w)>c&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(x=0,C=d,0===h){if(x+=u-w,w<D){D-=w;do{F[o++]=d[x++]}while(--w);x=o-A,C=F}}else if(h<w){if(x+=u+h-w,(w-=h)<D){D-=w;do{F[o++]=d[x++]}while(--w);if(x=0,h<D){D-=w=h;do{F[o++]=d[x++]}while(--w);x=o-A,C=F}}}else if(x+=h-w,w<D){D-=w;do{F[o++]=d[x++]}while(--w);x=o-A,C=F}for(;D>2;)F[o++]=C[x++],F[o++]=C[x++],F[o++]=C[x++],D-=3;D&&(F[o++]=C[x++],D>1&&(F[o++]=C[x++]))}else{x=o-A;do{F[o++]=F[x++],F[o++]=F[x++],F[o++]=F[x++],D-=3}while(D>2);D&&(F[o++]=F[x++],D>1&&(F[o++]=F[x++]))}break}}break}}while(i<r&&o<a);i-=D=p>>3,f&=(1<<(p-=D<<3))-1,t.next_in=i,t.next_out=o,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=o<a?a-o+257:257-(o-a),n.hold=f,n.bits=p}},57622:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(94922);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var o=n(90306);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s.apply(this,arguments)}const a=i.forwardRef((t,e)=>i.createElement(o.A,s({},t,{ref:e,icon:r})))},58864:(t,e,n)=>{"use strict";var i=n(52654),r=n(68208),o=n(37839),s=n(36928),a=n(98129),l=n(9375),u=n(50713),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.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&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==s.Z_OK)throw new Error(a[n]);if(this.header=new u,i.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"===typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=i.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[n])}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(t,e){var n,a,l,u,h,d=this.strm,f=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"===typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new r.Buf8(f),d.next_out=0,d.avail_out=f),(n=i.inflate(d,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(n=i.inflateSetDictionary(this.strm,p)),n===s.Z_BUF_ERROR&&!0===g&&(n=s.Z_OK,g=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==s.Z_STREAM_END&&(0!==d.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(d.output,d.next_out),u=d.next_out-l,h=o.buf2string(d.output,l),d.next_out=u,d.avail_out=f-u,u&&r.arraySet(d.output,d.output,l,u,0),this.onData(h)):this.onData(r.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((d.avail_in>0||0===d.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),d.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=h,e.inflate=d,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.ungzip=d},59790:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(94922);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var o=n(90306);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s.apply(this,arguments)}const a=i.forwardRef((t,e)=>i.createElement(o.A,s({},t,{ref:e,icon:r})))},59849:(t,e,n)=>{"use strict";var i=n(68208),r=15,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],s=[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],l=[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,n,u,c,h,d,f){var p,g,m,v,y,b,w,D,A,x=f.bits,C=0,S=0,F=0,E=0,k=0,M=0,T=0,P=0,_=0,R=0,B=null,I=0,N=new i.Buf16(16),L=new i.Buf16(16),O=null,W=0;for(C=0;C<=r;C++)N[C]=0;for(S=0;S<u;S++)N[e[n+S]]++;for(k=x,E=r;E>=1&&0===N[E];E--);if(k>E&&(k=E),0===E)return c[h++]=20971520,c[h++]=20971520,f.bits=1,0;for(F=1;F<E&&0===N[F];F++);for(k<F&&(k=F),P=1,C=1;C<=r;C++)if(P<<=1,(P-=N[C])<0)return-1;if(P>0&&(0===t||1!==E))return-1;for(L[1]=0,C=1;C<r;C++)L[C+1]=L[C]+N[C];for(S=0;S<u;S++)0!==e[n+S]&&(d[L[e[n+S]]++]=S);if(0===t?(B=O=d,b=19):1===t?(B=o,I-=257,O=s,W-=257,b=256):(B=a,O=l,b=-1),R=0,S=0,C=F,y=h,M=k,T=0,m=-1,v=(_=1<<k)-1,1===t&&_>852||2===t&&_>592)return 1;for(;;){w=C-T,d[S]<b?(D=0,A=d[S]):d[S]>b?(D=O[W+d[S]],A=B[I+d[S]]):(D=96,A=0),p=1<<C-T,F=g=1<<M;do{c[y+(R>>T)+(g-=p)]=w<<24|D<<16|A}while(0!==g);for(p=1<<C-1;R&p;)p>>=1;if(0!==p?(R&=p-1,R+=p):R=0,S++,0===--N[C]){if(C===E)break;C=e[n+d[S]]}if(C>k&&(R&v)!==m){for(0===T&&(T=k),y+=F,P=1<<(M=C-T);M+T<E&&!((P-=N[M+T])<=0);)M++,P<<=1;if(_+=1<<M,1===t&&_>852||2===t&&_>592)return 1;c[m=R&v]=k<<24|M<<16|y-h}}return 0!==R&&(c[y+R]=C-T<<24|64<<16),f.bits=k,0}},60591:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(89261);function r(t){let{children:e,type:n}=t;return(0,i.jsx)("div",{className:"react-pdf__message react-pdf__message--".concat(n),children:e})}},63185:(t,e,n)=>{"use strict";n.d(e,{Bd:()=>o,UT:()=>v,ci:()=>a,h1:()=>y,jA:()=>h,mZ:()=>d,mw:()=>l,qC:()=>p,qf:()=>u,vS:()=>m,xL:()=>g,zL:()=>c});var i=n(64288),r=n(21058);const o="undefined"!==typeof window,s=o&&"file:"===window.location.protocol;function a(t){return function(t){return"undefined"!==typeof t}(t)&&null!==t}function l(t){return t instanceof ArrayBuffer}function u(t){return(0,i.A)(o,"isBlob can only be used in a browser environment"),t instanceof Blob}function c(t){return function(t){return"string"===typeof t}(t)&&/^data:/.test(t)}function h(t){(0,i.A)(c(t),"Invalid data URI.");const[e="",n=""]=t.split(",");return-1!==e.split(";").indexOf("base64")?atob(n):unescape(n)}function d(){return o&&window.devicePixelRatio||1}const f="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function p(){r(!s,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(f))}function g(t){(null===t||void 0===t?void 0:t.cancel)&&t.cancel()}function m(t,e){return Object.defineProperty(t,"width",{get(){return this.view[2]*e},configurable:!0}),Object.defineProperty(t,"height",{get(){return this.view[3]*e},configurable:!0}),Object.defineProperty(t,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(t,"originalHeight",{get(){return this.view[3]},configurable:!0}),t}function v(t){return"RenderingCancelledException"===t.name}function y(t){return new Promise((e,n)=>{const i=new FileReader;i.onload=()=>{if(!i.result)return n(new Error("Error while reading a file."));e(i.result)},i.onerror=t=>{if(!t.target)return n(new Error("Error while reading a file."));const{error:e}=t.target;if(!e)return n(new Error("Error while reading a file."));switch(e.code){case e.NOT_FOUND_ERR:return n(new Error("Error while reading a file: File not found."));case e.SECURITY_ERR:return n(new Error("Error while reading a file: Security error."));case e.ABORT_ERR:return n(new Error("Error while reading a file: Aborted."));default:return n(new Error("Error while reading a file."))}},i.readAsArrayBuffer(t)})}},64288:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=!0,r="Invariant failed";function o(t,e){if(!t){if(i)throw new Error(r);var n="function"===typeof e?e():e,o=n?"".concat(r,": ").concat(n):r;throw new Error(o)}}},64467:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(20816);function r(t,e,n){return(e=(0,i.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},64579:(t,e,n)=>{var i=n(78913),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},66362:(t,e,n)=>{"use strict";t.exports=n(5956)},68208:(t,e)=>{"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,s;for(i=0,e=0,n=t.length;e<n;e++)i+=t[e].length;for(s=new Uint8Array(i),r=0,e=0,n=t.length;e<n;e++)o=t[e],s.set(o,r),r+=o.length;return s}},o={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(n)},70011:()=>{},70763:(t,e,n)=>{"use strict";t.exports=n(47460)},74807:(t,e,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=i},74935:(t,e,n)=>{"use strict";var i=n(94922),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var i,o={},u=null,c=null;for(i in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)s.call(e,i)&&!l.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:r,type:t,key:u,ref:c,props:o,_owner:a.current}}e.Fragment=o,e.jsx=u,e.jsxs=u},76003:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},78678:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(94922);const r=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,i.useRef)(t);return e||(n.current=t),(0,i.useCallback)(function(){return n.current&&n.current(...arguments)},[])}},78805:(t,e,n)=>{"use strict";function i(t){let e=!1;return{promise:new Promise((n,i)=>{t.then(t=>!e&&n(t)).catch(t=>!e&&i(t))}),cancel(){e=!0}}}n.d(e,{A:()=>i})},78913:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},80359:(t,e,n)=>{"use strict";n.d(e,{ph:()=>le});var i=n(89379),r={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}};function o(t){let e=t.match(/url\((['"]?)(.*?)(\1)\)/);if(!e)return null;let n=e[2].trim();return n.startsWith("#")?null:n}function s(t){if(/%[0-9A-Fa-f]{2}/.test(t))return t;try{return encodeURI(t)}catch(e){return t}}var a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[snapDOM]",{ttlMs:e=3e5,maxEntries:n=12}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Map,r=0;function o(o,s,a){if(r>=n)return;let l=Date.now();(i.get(s)||0)>l||(i.set(s,l+e),r++,"warn"===o&&console&&console.warn?console.warn("".concat(t," ").concat(a)):console&&console.error&&console.error("".concat(t," ").concat(a)))}return{warnOnce(t,e){o("warn",t,e)},errorOnce(t,e){o("error",t,e)},reset(){i.clear(),r=0}}}("[snapDOM]",{ttlMs:18e4,maxEntries:10}),l=new Map,u=new Map;function c(t,e){if(!e||function(t){return/^data:|^blob:|^about:blank$/i.test(t)}(t)||function(t,e){try{let n=typeof location<"u"&&location.href?location.href:"http://localhost/",i=e.includes("{url}")?e.split("{url}")[0]:e,r=new URL(i||".",n),o=new URL(t,n);if(o.origin===r.origin)return!0;let s=o.searchParams;if(s&&(s.has("url")||s.has("target")))return!0}catch(n){}return!1}(t,e))return!1;try{let e=typeof location<"u"&&location.href?location.href:"http://localhost/",n=new URL(t,e);return!(typeof location<"u")||n.origin!==location.origin}catch(n){return!!e}}function h(t){return new Promise((e,n)=>{let i=new FileReader;i.onload=()=>e(String(i.result||"")),i.onerror=()=>n(new Error("read_failed")),i.readAsDataURL(t)})}async function d(t){var e,n,r;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=null!==(e=o.as)&&void 0!==e?e:"blob",f=null!==(n=o.timeout)&&void 0!==n?n:3e3,p=o.useProxy||"",g=null!==(r=o.errorTTL)&&void 0!==r?r:8e3,m=o.headers||{},v=!!o.silent;if(/^data:/i.test(t))try{if("text"===d)return{ok:!0,data:String(t),status:200,url:t,fromCache:!1};if("dataURL"===d)return{ok:!0,data:String(t),status:200,url:t,fromCache:!1,mime:String(t).slice(5).split(";")[0]||""};let[,e="",n=""]=String(t).match(/^data:([^,]*),(.*)$/)||[],i=/;base64/i.test(e)?atob(n):decodeURIComponent(n),r=new Uint8Array([...i].map(t=>t.charCodeAt(0))),o=new Blob([r],{type:(e||"").split(";")[0]||""});return{ok:!0,data:o,status:200,url:t,fromCache:!1,mime:o.type||""}}catch(F){return{ok:!1,data:null,status:0,url:t,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(t))try{let e=await fetch(t);if(!e.ok)return{ok:!1,data:null,status:e.status,url:t,fromCache:!1,reason:"http_error"};let n=await e.blob(),i=n.type||e.headers.get("content-type")||"";return"dataURL"===d?{ok:!0,data:await h(n),status:e.status,url:t,fromCache:!1,mime:i}:"text"===d?{ok:!0,data:await n.text(),status:e.status,url:t,fromCache:!1,mime:i}:{ok:!0,data:n,status:e.status,url:t,fromCache:!1,mime:i}}catch(E){return{ok:!1,data:null,status:0,url:t,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(t))return"dataURL"===d?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:t,fromCache:!1,mime:"image/png"}:{ok:!0,data:"text"===d?"":new Blob([]),status:200,url:t,fromCache:!1};let y=function(t,e){var n,i;return[e.as||"blob",null!==(n=e.timeout)&&void 0!==n?n:3e3,e.useProxy||"",null!==(i=e.errorTTL)&&void 0!==i?i:8e3,t].join("|")}(t,{as:d,timeout:f,useProxy:p,errorTTL:g}),b=u.get(y);if(b&&b.until>Date.now())return(0,i.A)((0,i.A)({},b.result),{},{fromCache:!0});b&&u.delete(y);let w=l.get(y);if(w)return w;let D=c(t,p)?function(t,e){if(!e)return t;if(e.includes("{url}"))return e.replace("{urlRaw}",s(t)).replace("{url}",encodeURIComponent(t));if(/[?&]url=?$/.test(e))return"".concat(e).concat(encodeURIComponent(t));if(e.endsWith("?"))return"".concat(e,"url=").concat(encodeURIComponent(t));if(e.endsWith("/"))return"".concat(e).concat(s(t));let n=e.includes("?")?"&":"?";return"".concat(e).concat(n,"url=").concat(encodeURIComponent(t))}(t,p):t,A=o.credentials;if(!A)try{let e=typeof location<"u"&&location.href?location.href:"http://localhost/",n=new URL(t,e);A=typeof location<"u"&&n.origin===location.origin?"include":"omit"}catch(k){A="omit"}let x=new AbortController,C=setTimeout(()=>x.abort("timeout"),f),S=(async()=>{try{let i=await fetch(D,{signal:x.signal,credentials:A,headers:m});if(!i.ok){let r={ok:!1,data:null,status:i.status,url:D,fromCache:!1,reason:"http_error"};if(g>0&&u.set(y,{until:Date.now()+g,result:r}),!v){var e,n;let r="".concat(i.status," ").concat(i.statusText||"").trim();a.warnOnce("http:".concat(i.status,":").concat(d,":").concat(new URL(t,null!==(e=null===(n=location)||void 0===n?void 0:n.href)&&void 0!==e?e:"http://localhost/").origin),"HTTP error ".concat(r," while fetching ").concat(d," ").concat(t))}return o.onError&&o.onError(r),r}if("text"===d)return{ok:!0,data:await i.text(),status:i.status,url:D,fromCache:!1};let r=await i.blob(),s=r.type||i.headers.get("content-type")||"";return"dataURL"===d?{ok:!0,data:await h(r),status:i.status,url:D,fromCache:!1,mime:s}:{ok:!0,data:r,status:i.status,url:D,fromCache:!1,mime:s}}catch(s){let e=s&&"object"==typeof s&&"name"in s&&"AbortError"===s.name?String(s.message||"").includes("timeout")?"timeout":"abort":"network",n={ok:!1,data:null,status:0,url:D,fromCache:!1,reason:e};if(!/^blob:/i.test(t)&&g>0&&u.set(y,{until:Date.now()+g,result:n}),!v){var i,r;let n="".concat(e,":").concat(d,":").concat(new URL(t,null!==(i=null===(r=location)||void 0===r?void 0:r.href)&&void 0!==i?i:"http://localhost/").origin),o="timeout"===e?"Timeout after ".concat(f,"ms. Consider increasing timeout or using a proxy for ").concat(t):"abort"===e?"Request aborted while fetching ".concat(d," ").concat(t):"Network/CORS issue while fetching ".concat(d," ").concat(t,". A proxy may be required");a.errorOnce(n,o)}return o.onError&&o.onError(n),n}finally{clearTimeout(C),l.delete(y)}})();return l.set(y,S),S}async function f(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(t)||"none"===t.trim())return t;let n=o(t);if(!n)return t;let i=s(n);if(r.background.has(i)){let t=r.background.get(i);return t?'url("'.concat(t,'")'):"none"}try{let t=await d(i,{as:"dataURL",useProxy:e.useProxy});return t.ok?(r.background.set(i,t.data),'url("'.concat(t.data,'")')):(r.background.set(i,null),"none")}catch(a){return r.background.set(i,null),"none"}}var p=new Set(["meta","script","noscript","title","link","template"]),g=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]);function m(t){if(t=String(t).toLowerCase(),g.has(t)){let e={};return r.defaultStyle.set(t,e),e}if(r.defaultStyle.has(t))return r.defaultStyle.get(t);let e=document.getElementById("snapdom-sandbox");e||(e=document.createElement("div"),e.id="snapdom-sandbox",e.setAttribute("data-snapdom-sandbox","true"),e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.left="-9999px",e.style.top="-9999px",e.style.width="0px",e.style.height="0px",e.style.overflow="hidden",document.body.appendChild(e));let n=document.createElement(t);n.style.all="initial",e.appendChild(n);let i=getComputedStyle(n),o={};for(let r of i){if(w(r))continue;let t=i.getPropertyValue(r);o[r]=t}return e.removeChild(n),r.defaultStyle.set(t,o),o}var v=/(?:^|-)(animation|transition)(?:-|$)/i,y=/^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,b=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope"]);function w(t){let e=String(t).toLowerCase();return!!(b.has(e)||y.test(e)||v.test(e))}function D(t,e){if(e=String(e||"").toLowerCase(),g.has(e))return"";let n=[],i=m(e);for(let[r,o]of Object.entries(t)){if(w(r))continue;let t=i[r];o&&o!==t&&n.push("".concat(r,":").concat(o))}return n.sort(),n.join(";")}function A(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(t instanceof Element))return window.getComputedStyle(t,e);let n=r.computedStyle.get(t);if(n||(n=new Map,r.computedStyle.set(t,n)),!n.has(e)){let i=window.getComputedStyle(t,e);n.set(e,i)}return n.get(e)}function x(t){let e={};for(let n of t)e[n]=t.getPropertyValue(n);return e}function C(t){let e=[],n=0,i=0;for(let r=0;r<t.length;r++){let o=t[r];"("===o&&n++,")"===o&&n--,","===o&&0===n&&(e.push(t.slice(i,r).trim()),i=r+1)}return e.push(t.slice(i).trim()),e}var S=[/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],F=Object.assign({materialIconsFilled:"https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2",materialIconsOutlined:"https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2",materialIconsRound:"https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2",materialIconsSharp:"https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2"},typeof window<"u"&&window.__SNAPDOM_ICON_FONTS__||{}),E=[];function k(t){let e="string"==typeof t?t:"",n=[...S,...E];for(let i of n)if(i instanceof RegExp&&i.test(e))return!0;return!!(/icon/i.test(e)||/glyph/i.test(e)||/symbols/i.test(e)||/feather/i.test(e)||/fontawesome/i.test(e))}function M(){let t=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase();return/\bmaterial\s*icons\b/.test(t)||/\bmaterial\s*symbols\b/.test(t)}var T=new Map;function P(t){var e,n;let i=(null===(e=t.getPropertyValue("-webkit-text-fill-color"))||void 0===e?void 0:e.trim())||"",r=/^transparent$/i.test(i)||/rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(i);if(i&&!r&&"currentcolor"!==i.toLowerCase())return i;let o=null===(n=t.color)||void 0===n?void 0:n.trim();return o&&"inherit"!==o?o:"#000"}async function _(t){let{family:e="Material Icons",weight:n="normal",fontSize:i=32,color:r="#000",variation:o="",className:s=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=String(e||"").replace(/^['"]+|['"]+$/g,""),l=window.devicePixelRatio||1,u=function(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=Object.create(null),i=String(e||""),r=/['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g;for(;t=r.exec(i);)n[t[1].toUpperCase()]=Number(t[2]);return n}(o),{familyForMeasure:c,familyForCanvas:h}=await async function(t,e,n){var i;let r=String(t||""),o=r.toLowerCase(),s=String(e||"").toLowerCase();if(/\bmaterial\s*icons\b/.test(o)&&!/\bsymbols\b/.test(o))return{familyForMeasure:r,familyForCanvas:r};if(!/\bmaterial\s*symbols\b/.test(o))return{familyForMeasure:r,familyForCanvas:r};let a=n&&(null!==(i=n.FILL)&&void 0!==i?i:n.fill),l="outlined";/\brounded\b/.test(s)||/\bround\b/.test(s)?l="rounded":/\bsharp\b/.test(s)?l="sharp":/\boutlined\b/.test(s)&&(l="outlined");let u=null;if(1===a&&("outlined"===l&&F.materialIconsFilled?u={url:F.materialIconsFilled,alias:"snapdom-mi-filled"}:"rounded"===l&&F.materialIconsRound?u={url:F.materialIconsRound,alias:"snapdom-mi-round"}:"sharp"===l&&F.materialIconsSharp&&(u={url:F.materialIconsSharp,alias:"snapdom-mi-sharp"})),!u)return{familyForMeasure:r,familyForCanvas:r};if(!T.has(u.alias))try{let t=new FontFace(u.alias,"url(".concat(u.url,")"),{style:"normal",weight:"400"});document.fonts.add(t),await t.load(),T.set(u.alias,!0)}catch(h){return{familyForMeasure:r,familyForCanvas:r}}let c='"'.concat(u.alias,'"');return{familyForMeasure:c,familyForCanvas:c}}(a,s,u);await async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Material Icons",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;try{await Promise.all([document.fonts.load("400 ".concat(e,'px "').concat(String(t).replace(/["']/g,""),'"')),document.fonts.ready])}catch(n){}}(h.replace(/^["']+|["']+$/g,""),i);let d=document.createElement("span");d.textContent=t,d.style.position="absolute",d.style.visibility="hidden",d.style.left="-99999px",d.style.whiteSpace="nowrap",d.style.fontFamily=c,d.style.fontWeight=String(n||"normal"),d.style.fontSize="".concat(i,"px"),d.style.lineHeight="1",d.style.margin="0",d.style.padding="0",d.style.fontFeatureSettings="'liga' 1",d.style.fontVariantLigatures="normal",d.style.color=r,document.body.appendChild(d);let f=d.getBoundingClientRect(),p=Math.max(1,Math.ceil(f.width)),g=Math.max(1,Math.ceil(f.height));document.body.removeChild(d);let m=document.createElement("canvas");m.width=p*l,m.height=g*l;let v=m.getContext("2d");v.scale(l,l),v.font="".concat(n?"".concat(n," "):"").concat(i,"px ").concat(h),v.textAlign="left",v.textBaseline="top",v.fillStyle=r;try{v.fontKerning="normal"}catch(y){}return v.fillText(t,0,0),{dataUrl:m.toDataURL(),width:p,height:g}}async function R(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#000";e=e.replace(/^['"]+|['"]+$/g,"");let o=window.devicePixelRatio||1;try{await document.fonts.ready}catch(d){}let s=document.createElement("span");s.textContent=t,s.style.position="absolute",s.style.visibility="hidden",s.style.fontFamily='"'.concat(e,'"'),s.style.fontWeight=n||"normal",s.style.fontSize="".concat(i,"px"),s.style.lineHeight="1",s.style.whiteSpace="nowrap",s.style.padding="0",s.style.margin="0",document.body.appendChild(s);let a=s.getBoundingClientRect(),l=Math.ceil(a.width),u=Math.ceil(a.height);document.body.removeChild(s);let c=document.createElement("canvas");c.width=Math.max(1,l*o),c.height=Math.max(1,u*o);let h=c.getContext("2d");return h.scale(o,o),h.font=n?"".concat(n," ").concat(i,'px "').concat(e,'"'):"".concat(i,'px "').concat(e,'"'),h.textAlign="left",h.textBaseline="top",h.fillStyle=r,h.fillText(t,0,0),{dataUrl:c.toDataURL(),width:l,height:u}}var B=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","emoji","math","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]);function I(t){if(!t)return"";for(let e of t.split(",")){let t=e.trim().replace(/^['"]+|['"]+$/g,"");if(t&&!B.has(t.toLowerCase()))return t}return""}function N(t){let e=String(null!==t&&void 0!==t?t:"400").trim().toLowerCase();if("normal"===e)return 400;if("bold"===e)return 700;let n=parseInt(e,10);return Number.isFinite(n)?Math.min(900,Math.max(100,n)):400}function L(t){let e=String(null!==t&&void 0!==t?t:"normal").trim().toLowerCase();return e.startsWith("italic")?"italic":e.startsWith("oblique")?"oblique":"normal"}function O(t,e){if(!t)return!1;try{let n=new URL(t,location.href);if(n.origin===location.origin)return!0;let i=n.host.toLowerCase();if(["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","p.typekit.net","kit.fontawesome.com","use.fontawesome.com"].some(t=>i.endsWith(t)))return!0;let r=(n.pathname+n.search).toLowerCase();if(/\bfont(s)?\b/.test(r)||/\.woff2?(\b|$)/.test(r))return!0;for(let t of e){let e=t.toLowerCase().replace(/\s+/g,"+"),n=t.toLowerCase().replace(/\s+/g,"-");if(r.includes(e)||r.includes(n))return!0}return!1}catch(n){return!1}}function W(t,e){return t&&t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(t,n,i)=>{let r=(i||"").trim();if(!r||/^data:|^blob:|^https?:|^file:|^about:/i.test(r))return t;let o=r;try{o=new URL(r,e||location.href).href}catch(s){}return'url("'.concat(o,'")')})}var z=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g;async function j(t,e,n){if(!t)return t;let i=new Set;function r(t,e){try{return new URL(t,e||location.href).href}catch(n){return t}}let o=W(t,e||location.href);return o=await async function t(e,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(s>4)return console.warn("[snapDOM] @import depth exceeded (".concat(4,") at ").concat(o)),e;let a,l="",u=0;for(;a=z.exec(e);){l+=e.slice(u,a.index),u=z.lastIndex;let h=r((a[2]||a[4]||"").trim(),o);if(i.has(h)){console.warn("[snapDOM] Skipping circular @import: ".concat(h));continue}i.add(h);let f="";try{let t=await d(h,{as:"text",useProxy:n,silent:!0});t.ok&&"string"==typeof t.data&&(f=t.data)}catch(c){}f?(f=W(f,h),f=await t(f,h,s+1),l+="\n/* inlined: ".concat(h," */\n").concat(f,"\n")):l+=a[0]}return l+=e.slice(u),l}(o,e||location.href,0),o}var U=/url\((["']?)([^"')]+)\1\)/g,G=/@font-face[^{}]*\{[^}]*\}/g;function V(t){if(!t)return[];let e=[],n=t.split(",").map(t=>t.trim()).filter(Boolean);for(let i of n){let t=i.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!t)continue;let n=t[1],r=t[2],o=t=>{if(!t.includes("?"))return parseInt(t,16);return[parseInt(t.replace(/\?/g,"0"),16),parseInt(t.replace(/\?/g,"F"),16)]};if(r){let t=o(n),i=o(r),s=Array.isArray(t)?t[0]:t,a=Array.isArray(i)?i[1]:i;e.push([Math.min(s,a),Math.max(s,a)])}else{let t=o(n);Array.isArray(t)?e.push([t[0],t[1]]):e.push([t,t])}}return e}function H(t,e){if(!e.length||!t||0===t.size)return!0;for(let n of t)for(let[t,i]of e)if(n>=t&&n<=i)return!0;return!1}function q(t,e){let n=[];if(!t)return n;for(let r of t.matchAll(U)){let t=(r[2]||"").trim();if(t&&!t.startsWith("data:")){if(!/^https?:/i.test(t))try{t=new URL(t,e||location.href).href}catch(i){}n.push(t)}}return n}async function X(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=t;for(let p of t.matchAll(U)){let t=o(p[0]);if(!t)continue;let g=t;if(!g.startsWith("http")&&!g.startsWith("data:"))try{g=new URL(g,e||location.href).href}catch(h){}if(!k(g)){var s,a;if(null!==(s=r.resource)&&void 0!==s&&s.has(g)){var l;null!==(l=r.font)&&void 0!==l&&l.add(g),i=i.replace(p[0],"url(".concat(r.resource.get(g),")"));continue}if(null===(a=r.font)||void 0===a||!a.has(g))try{let t=await d(g,{as:"dataURL",useProxy:n,silent:!0});if(t.ok&&"string"==typeof t.data){var u,c;let e=t.data;null!==(u=r.resource)&&void 0!==u&&u.set(g,e),null!==(c=r.font)&&void 0!==c&&c.add(g),i=i.replace(p[0],"url(".concat(e,")"))}}catch(f){console.warn("[snapDOM] Failed to fetch font resource:",g)}}}return i}function K(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Set((t.families||[]).map(t=>String(t).toLowerCase())),n=new Set((t.domains||[]).map(t=>String(t).toLowerCase())),i=new Set((t.subsets||[]).map(t=>String(t).toLowerCase()));return(t,r)=>{if(e.size&&e.has(t.family.toLowerCase()))return!0;if(n.size)for(let e of t.srcUrls)try{if(n.has(new URL(e).host.toLowerCase()))return!0}catch(o){}if(i.size){let t=function(t){if(!t.length)return null;let e=(e,n)=>t.some(t=>{let[i,r]=t;return!(r<e||i>n)}),n=e(0,255)||e(305,305),i=e(256,591)||e(7680,7935),r=e(880,1023),o=e(1024,1279);return e(7840,7929)||e(258,259)||e(416,417)||e(431,432)?"vietnamese":o?"cyrillic":r?"greek":i?"latin-ext":n?"latin":null}(r);if(t&&i.has(t))return!0}return!1}}async function Y(t,e,n,r){let o;try{o=t.cssRules||[]}catch(a){return}let s=(t,e)=>{try{return new URL(t,e||location.href).href}catch(n){return t}};for(let l of o){if(l.type===CSSRule.IMPORT_RULE&&l.styleSheet){let t=l.href?s(l.href,e):e;if(r.depth>=4){console.warn("[snapDOM] CSSOM import depth exceeded (".concat(4,") at ").concat(t));continue}if(t&&r.visitedSheets.has(t)){console.warn("[snapDOM] Skipping circular CSSOM import: ".concat(t));continue}t&&r.visitedSheets.add(t);let o=(0,i.A)((0,i.A)({},r),{},{depth:(r.depth||0)+1});await Y(l.styleSheet,t,n,o);continue}if(l.type===CSSRule.FONT_FACE_RULE){let t=I((l.style.getPropertyValue("font-family")||"").trim());if(!t||k(t))continue;let i=(l.style.getPropertyValue("font-weight")||"400").trim(),o=(l.style.getPropertyValue("font-style")||"normal").trim(),s=(l.style.getPropertyValue("font-stretch")||"100%").trim(),a=(l.style.getPropertyValue("src")||"").trim(),u=(l.style.getPropertyValue("unicode-range")||"").trim();if(!r.faceMatchesRequired(t,o,i,s))continue;let c=V(u);if(!H(r.usedCodepoints,c))continue;let h={family:t,weightSpec:i,styleSpec:o,stretchSpec:s,unicodeRange:u,srcRaw:a,srcUrls:q(a,e||location.href),href:e||location.href};if(r.simpleExcluder&&r.simpleExcluder(h,c))continue;if(/url\(/i.test(a)){let l=await X(a,e||location.href,r.useProxy);await n("@font-face{font-family:".concat(t,";src:").concat(l,";font-style:").concat(o,";font-weight:").concat(i,";font-stretch:").concat(s,";").concat(u?"unicode-range:".concat(u,";"):"","}"))}else await n("@font-face{font-family:".concat(t,";src:").concat(a,";font-style:").concat(o,";font-weight:").concat(i,";font-stretch:").concat(s,";").concat(u?"unicode-range:".concat(u,";"):"","}"))}}}async function Z(){var t,e;let{required:n,usedCodepoints:i,exclude:o,localFonts:s=[],useProxy:a=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n instanceof Set||(n=new Set),i instanceof Set||(i=new Set);let l=new Map;for(let r of n){let[t,e,n,i]=String(r).split("__");if(!t)continue;let o=l.get(t)||[];o.push({w:parseInt(e,10),s:n,st:parseInt(i,10)}),l.set(t,o)}function u(t,e,n,i){if(!l.has(t))return!1;let r=l.get(t),o=function(t){let e=String(t||"400").trim(),n=e.match(/^(\d{2,3})\s+(\d{2,3})$/);if(n){let t=N(n[1]),e=N(n[2]);return{min:Math.min(t,e),max:Math.max(t,e)}}let i=N(e);return{min:i,max:i}}(n),s=function(t){let e=String(t||"normal").trim().toLowerCase();return"italic"===e?{kind:"italic"}:e.startsWith("oblique")?{kind:"oblique"}:{kind:"normal"}}(e),a=function(t){let e=String(t||"100%").trim(),n=e.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);if(n){let t=parseFloat(n[1]),e=parseFloat(n[2]);return{min:Math.min(t,e),max:Math.max(t,e)}}let i=e.match(/(\d+(?:\.\d+)?)\s*%/),r=i?parseFloat(i[1]):100;return{min:r,max:r}}(i),u=o.min!==o.max,c=o.min,h=t=>"normal"===s.kind&&"normal"===t||"normal"!==s.kind&&("italic"===t||"oblique"===t),d=!1;for(let l of r){let t=u?l.w>=o.min&&l.w<=o.max:l.w===c,e=h(L(l.s)),n=l.st>=a.min&&l.st<=a.max;if(t&&e&&n){d=!0;break}}if(d)return!0;if(!u)for(let l of r){let t=h(L(l.s)),e=l.st>=a.min&&l.st<=a.max;if(Math.abs(c-l.w)<=300&&t&&e)return!0}if(!u&&"normal"===s.kind&&r.some(t=>"normal"!==L(t.s)))for(let l of r){let t=Math.abs(c-l.w)<=300,e=l.st>=a.min&&l.st<=a.max;if(t&&e)return!0}return!1}let c=K(o),h=function(t,e,n,i){let r=Array.from(t||[]).sort().join("|"),o=e?JSON.stringify({families:(e.families||[]).map(t=>String(t).toLowerCase()).sort(),domains:(e.domains||[]).map(t=>String(t).toLowerCase()).sort(),subsets:(e.subsets||[]).map(t=>String(t).toLowerCase()).sort()}):"",s=(n||[]).map(t=>"".concat((t.family||"").toLowerCase(),"::").concat(t.weight||"normal","::").concat(t.style||"normal","::").concat(t.src||"")).sort().join("|");return"fonts-embed-css::req=".concat(r,"::ex=").concat(o,"::lf=").concat(s,"::px=").concat(i||"")}(n,o,s,a);if(null!==(t=r.resource)&&void 0!==t&&t.has(h))return r.resource.get(h);let f=function(t){let e=new Set;for(let i of t||[]){var n;let t=null===(n=String(i).split("__")[0])||void 0===n?void 0:n.trim();t&&e.add(t)}return e}(n),p=[],g=z;for(let r of document.querySelectorAll("style")){let t=r.textContent||"";for(let e of t.matchAll(g)){let t=(e[2]||e[4]||"").trim();t&&!k(t)&&(document.querySelector('link[rel="stylesheet"][href="'.concat(t,'"]'))||p.push(t))}}p.length&&await Promise.all(p.map(t=>new Promise(e=>{if(document.querySelector('link[rel="stylesheet"][href="'.concat(t,'"]')))return e(null);let n=document.createElement("link");n.rel="stylesheet",n.href=t,n.setAttribute("data-snapdom","injected-import"),n.onload=()=>e(n),n.onerror=()=>e(null),document.head.appendChild(n)})));let m="",v=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(t=>!!t.href);for(let r of v)try{if(k(r.href))continue;let t="",e=!1;try{e=new URL(r.href,location.href).origin===location.origin}catch(U){}if(!e&&!O(r.href,f))continue;if(e){let e=Array.from(document.styleSheets).find(t=>t.href===r.href);if(e)try{let n=e.cssRules||[];t=Array.from(n).map(t=>t.cssText).join("")}catch(Z){}}if(!t&&(t=(await d(r.href,{as:"text",useProxy:a})).data,k(r.href)))continue;t=await j(t,r.href,a);let n="";for(let s of t.match(G)||[]){var y,b,w,D,A,x;let t=I(((null===(y=s.match(/font-family:\s*([^;]+);/i))||void 0===y?void 0:y[1])||"").trim());if(!t||k(t))continue;let e=((null===(b=s.match(/font-weight:\s*([^;]+);/i))||void 0===b?void 0:b[1])||"400").trim(),l=((null===(w=s.match(/font-style:\s*([^;]+);/i))||void 0===w?void 0:w[1])||"normal").trim(),h=((null===(D=s.match(/font-stretch:\s*([^;]+);/i))||void 0===D?void 0:D[1])||"100%").trim(),d=((null===(A=s.match(/unicode-range:\s*([^;]+);/i))||void 0===A?void 0:A[1])||"").trim(),f=((null===(x=s.match(/src\s*:\s*([^;}]+)[;}]/i))||void 0===x?void 0:x[1])||"").trim(),p=q(f,r.href);if(!u(t,l,e,h))continue;let g=V(d);if(!H(i,g))continue;let m={family:t,weightSpec:e,styleSpec:l,stretchSpec:h,unicodeRange:d,srcRaw:f,srcUrls:p,href:r.href};o&&c(m,g)||(n+=/url\(/i.test(f)?await X(s,r.href,a):s)}n.trim()&&(m+=n)}catch(Q){console.warn("[snapDOM] Failed to process stylesheet:",r.href)}let C={requiredIndex:l,usedCodepoints:i,faceMatchesRequired:u,simpleExcluder:o?K(o):null,useProxy:a,visitedSheets:new Set,depth:0};for(let r of document.styleSheets)if(!r.href||!v.some(t=>t.href===r.href))try{let t=r.href||location.href;t&&C.visitedSheets.add(t),await Y(r,t,async t=>{m+=t},C)}catch(J){}try{for(let t of document.fonts||[]){if(!t||!t.family||"loaded"!==t.status||!t._snapdomSrc)continue;let e=String(t.family).replace(/^['"]+|['"]+$/g,"");if(k(e)||!l.has(e)||null!==o&&void 0!==o&&o.families&&o.families.some(t=>String(t).toLowerCase()===e.toLowerCase()))continue;let n=t._snapdomSrc;var S,F,E;if(!String(n).startsWith("data:"))if(null!==(S=r.resource)&&void 0!==S&&S.has(t._snapdomSrc))n=r.resource.get(t._snapdomSrc),null===(F=r.font)||void 0===F||F.add(t._snapdomSrc);else if(null===(E=r.font)||void 0===E||!E.has(t._snapdomSrc))try{var M,T;let e=await d(t._snapdomSrc,{as:"dataURL",useProxy:a,silent:!0});if(!e.ok||"string"!=typeof e.data)continue;n=e.data,null!==(M=r.resource)&&void 0!==M&&M.set(t._snapdomSrc,n),null===(T=r.font)||void 0===T||T.add(t._snapdomSrc)}catch($){console.warn("[snapDOM] Failed to fetch dynamic font src:",t._snapdomSrc);continue}m+="@font-face{font-family:'".concat(e,"';src:url(").concat(n,");font-style:").concat(t.style||"normal",";font-weight:").concat(t.weight||"normal",";}")}}catch(tt){}for(let I of s){if(!I||"object"!=typeof I)continue;let t=String(I.family||"").replace(/^['"]+|['"]+$/g,"");if(!t||k(t)||!l.has(t)||null!==o&&void 0!==o&&o.families&&o.families.some(e=>String(e).toLowerCase()===t.toLowerCase()))continue;let e=null!=I.weight?String(I.weight):"normal",n=null!=I.style?String(I.style):"normal",i=null!=I.stretchPct?"".concat(I.stretchPct,"%"):"100%",s=String(I.src||""),u=s;var P,_,R;if(!u.startsWith("data:"))if(null!==(P=r.resource)&&void 0!==P&&P.has(s))u=r.resource.get(s),null===(_=r.font)||void 0===_||_.add(s);else if(null===(R=r.font)||void 0===R||!R.has(s))try{var B,W;let t=await d(s,{as:"dataURL",useProxy:a,silent:!0});if(!t.ok||"string"!=typeof t.data)continue;u=t.data,null!==(B=r.resource)&&void 0!==B&&B.set(s,u),null===(W=r.font)||void 0===W||W.add(s)}catch(et){console.warn("[snapDOM] Failed to fetch localFonts src:",s);continue}m+="@font-face{font-family:'".concat(t,"';src:url(").concat(u,");font-style:").concat(n,";font-weight:").concat(e,";font-stretch:").concat(i,";}")}return m&&(m=function(t){if(!t)return t;let e=/@font-face[^{}]*\{[^}]*\}/gi,n=new Set,i=[];for(let h of t.match(e)||[]){var r,o,s,a,l,u;let t=I((null===(r=h.match(/font-family:\s*([^;]+);/i))||void 0===r?void 0:r[1])||""),e=((null===(o=h.match(/font-weight:\s*([^;]+);/i))||void 0===o?void 0:o[1])||"400").trim(),c=((null===(s=h.match(/font-style:\s*([^;]+);/i))||void 0===s?void 0:s[1])||"normal").trim(),d=((null===(a=h.match(/font-stretch:\s*([^;]+);/i))||void 0===a?void 0:a[1])||"100%").trim(),f=((null===(l=h.match(/unicode-range:\s*([^;]+);/i))||void 0===l?void 0:l[1])||"").trim(),p=((null===(u=h.match(/src\s*:\s*([^;}]+)[;}]/i))||void 0===u?void 0:u[1])||"").trim(),g=q(p,location.href),m=g.length?g.map(t=>String(t).toLowerCase()).sort().join("|"):p.toLowerCase(),v=[String(t||"").toLowerCase(),e,c,d,f.toLowerCase(),m].join("|");n.has(v)||(n.add(v),i.push(h))}if(0===i.length)return t;let c=0;return t.replace(e,()=>i[c++]||"")}(m),null!==(e=r.resource)&&void 0!==e&&e.set(h,m)),m}function Q(t){let e=new Set;if(!t)return e;let n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,null),i=t=>{let n=I(t.fontFamily);if(!n)return;e.add(((t,e,i)=>"".concat(n,"__").concat(N(t),"__").concat(L(e),"__").concat(function(t){let e=String(null!==t&&void 0!==t?t:"100%").match(/(\d+(?:\.\d+)?)\s*%/);return e?Math.max(50,Math.min(200,parseFloat(e[1]))):100}(i)))(t.fontWeight,t.fontStyle,t.fontStretch))};i(getComputedStyle(t));let r=getComputedStyle(t,"::before");r&&r.content&&"none"!==r.content&&i(r);let o=getComputedStyle(t,"::after");for(o&&o.content&&"none"!==o.content&&i(o);n.nextNode();){let t=n.currentNode;i(getComputedStyle(t));let e=getComputedStyle(t,"::before");e&&e.content&&"none"!==e.content&&i(e);let r=getComputedStyle(t,"::after");r&&r.content&&"none"!==r.content&&i(r)}return e}var J=[];function $(t){if(!t)return null;if(Array.isArray(t)){let[e,n]=t;return"function"==typeof e?e(n):e}if("object"==typeof t&&"plugin"in t){let{plugin:e,options:n}=t;return"function"==typeof e?e(n):e}return"function"==typeof t?t():t}function tt(t){return(t&&Array.isArray(t.plugins)?t.plugins:J)||J}async function et(t,e,n){let i=n,r=tt(e);for(let o of r){let n=o&&"function"==typeof o[t]?o[t]:null;if(!n)continue;let r=await n(e,i);typeof r<"u"&&(i=r)}return i}async function nt(t,e,n){let i=[],r=tt(e);for(let o of r){let r=o&&"function"==typeof o[t]?o[t]:null;if(!r)continue;let s=await r(e,n);typeof s<"u"&&i.push(s)}return i}function it(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!t||t.plugins&&!n||(t.plugins=function(t){let e=[];if(Array.isArray(t))for(let n of t){let t=$(n);if(!t||!t.name)continue;let i=e.findIndex(e=>e&&e.name===t.name);i>=0&&e.splice(i,1),e.push(t)}for(let n of J)n&&n.name&&!e.some(t=>t.name===n.name)&&e.push(n);return Object.freeze(e)}(e)),t}var rt=n(36018),ot=new WeakMap,st=new Map,at=0;function lt(){at++}var ut=!1;var ct=new WeakMap;function ht(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=ot.get(t);if(i&&i.epoch===at)return i.snapshot;let r=e||getComputedStyle(t),o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},i=t.getPropertyValue("visibility");for(let a=0;a<t.length;a++){let e=t[a],i=t.getPropertyValue(e);("background-image"===e||"content"===e)&&i.includes("url(")&&!i.includes("data:")&&(i="none"),n[e]=i}let r=["text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-decoration-skip-ink"];for(let a of r)if(!n[a])try{let e=t.getPropertyValue(a);e&&(n[a]=e)}catch(o){}if(e.embedFonts){let e=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(let i of e)if(!n[i])try{let e=t.getPropertyValue(i);e&&(n[i]=e)}catch(s){}}return"hidden"===i&&(n.opacity="0"),n}(r,n);return function(t,e,n){if(t instanceof HTMLElement&&t.style&&t.style.height)return;let i=t.tagName&&t.tagName.toLowerCase();if(!i||"div"!==i&&"section"!==i&&"article"!==i&&"main"!==i&&"aside"!==i&&"header"!==i&&"footer"!==i&&"nav"!==i&&"ol"!==i&&"ul"!==i&&"li"!==i)return;let r=e.display||"";if(r.includes("flex")||r.includes("grid")||function(t){return t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof HTMLIFrameElement||t instanceof SVGElement||t instanceof HTMLObjectElement||t instanceof HTMLEmbedElement}(t))return;let o=e.position;if("absolute"===o||"fixed"===o||"sticky"===o||"none"!==e.transform||function(t){return!!(t.backgroundImage&&"none"!==t.backgroundImage||t.backgroundColor&&"rgba(0, 0, 0, 0)"!==t.backgroundColor&&"transparent"!==t.backgroundColor||(parseFloat(t.borderTopWidth)||0)>0||(parseFloat(t.borderBottomWidth)||0)>0||(parseFloat(t.paddingTop)||0)>0||(parseFloat(t.paddingBottom)||0)>0)||"visible"!==(t.overflowBlock||t.overflowY||"visible")}(e)||function(t){let e=t.parentElement;if(!e)return!1;let n=getComputedStyle(e).display||"";return n.includes("flex")||n.includes("grid")}(t))return;let s=e.overflowX||e.overflow||"visible",a=e.overflowY||e.overflow||"visible";if("visible"!==s||"visible"!==a)return;let l=e.clip;l&&"auto"!==l&&"rect(auto, auto, auto, auto)"!==l||"hidden"===e.visibility||"0"===e.opacity||function(t,e){if(t.textContent&&/\S/.test(t.textContent))return!0;let n=t.firstElementChild,i=t.lastElementChild;if(n&&"BR"===n.tagName||i&&"BR"===i.tagName)return!0;let r=t.scrollHeight;if(0===r)return!1;let o=parseFloat(e.paddingTop)||0,s=parseFloat(e.paddingBottom)||0;return r>o+s}(t,e)&&(delete n.height,delete n["block-size"])}(t,r,o),ot.set(t,{epoch:at,snapshot:o}),o}async function dt(t,e,n,i){var o;if("STYLE"===t.tagName)return;let s=function(t,e){return t&&t.session&&t.persist?t:t&&(t.styleMap||t.styleCache||t.nodeMap)?{session:t,persist:{snapshotKeyCache:st,defaultStyle:r.defaultStyle,baseStyle:r.baseStyle,image:r.image,resource:r.resource,background:r.background,font:r.font},options:e||{}}:{session:r.session,persist:{snapshotKeyCache:st,defaultStyle:r.defaultStyle,baseStyle:r.baseStyle,image:r.image,resource:r.resource,background:r.background,font:r.font},options:t||e||{}}}(n,i),a=s.options&&s.options.cache||"auto";if("disabled"!==a&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement;if(!ut){ut=!0;try{new MutationObserver(()=>lt()).observe(t,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch(i){}try{new MutationObserver(()=>lt()).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch(r){}try{var e,n;let t=document.fonts;t&&(null!==(e=t.addEventListener)&&void 0!==e&&e.call(t,"loadingdone",lt),null===(n=t.ready)||void 0===n||n.then(()=>lt()).catch(()=>{}))}catch(o){}}}(document.documentElement),"disabled"===a&&!s.session.__bumpedForDisabled&&(lt(),st.clear(),s.session.__bumpedForDisabled=!0),g.has(null===(o=t.tagName)||void 0===o?void 0:o.toLowerCase())){var l;let n=null===(l=t.getAttribute)||void 0===l?void 0:l.call(t,"style");n&&e.setAttribute("style",n)}let{session:u,persist:c}=s;u.styleCache.has(t)||u.styleCache.set(t,getComputedStyle(t));let h=ht(t,u.styleCache.get(t),s.options),d=function(t){let e=ct.get(t);return e||(e=Object.entries(t).sort((t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0).map(t=>{let[e,n]=t;return"".concat(e,":").concat(n)}).join(";"),ct.set(t,e),e)}(h),f=c.snapshotKeyCache.get(d);if(!f){var p;f=D(h,(null===(p=t.tagName)||void 0===p?void 0:p.toLowerCase())||"div"),c.snapshotKeyCache.set(d,f)}u.styleMap.set(e,f)}var ft=["fill","stroke","color","background-color","stop-color"],pt=new Map;function gt(t,e){var n,i,r;if(!(t instanceof Element)||!(e instanceof Element))return;let o=null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"style"),s=!(!o||!o.includes("var("));if(!s&&null!==(i=t.attributes)&&void 0!==i&&i.length){let e=t.attributes;for(let t=0;t<e.length;t++){let n=e[t];if(n&&"string"==typeof n.value&&n.value.includes("var(")){s=!0;break}}}let a=null;if(s)try{a=getComputedStyle(t)}catch(l){}if(s){let n=t.style;if(n&&n.length)for(let t=0;t<n.length;t++){let i=n[t],r=n.getPropertyValue(i);if(!r||!r.includes("var("))continue;let o=a&&a.getPropertyValue(i);if(o)try{e.style.setProperty(i,o.trim(),n.getPropertyPriority(i))}catch(u){}}}if(s&&null!==(r=t.attributes)&&void 0!==r&&r.length){let n=t.attributes;for(let t=0;t<n.length;t++){let i=n[t];if(!i||"string"!=typeof i.value||!i.value.includes("var("))continue;let r=i.name,o=a&&a.getPropertyValue(r);if(o)try{e.style.setProperty(r,o.trim())}catch(c){}}}if(!s){if(!a)try{a=getComputedStyle(t)}catch(h){a=null}if(!a)return;let n=t.namespaceURI||"html",i=function(t,e){let n=e+"::"+t.toLowerCase(),i=pt.get(n);if(i)return i;let r=document,o="http://www.w3.org/2000/svg"===e?r.createElementNS(e,t):r.createElement(t),s=r.createElement("div");s.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",s.appendChild(o),r.documentElement.appendChild(s);let a=getComputedStyle(o),l={};for(let u of ft)l[u]=a.getPropertyValue(u)||"";return s.remove(),pt.set(n,l),l}(t.tagName,n);for(let t of ft){let n=a.getPropertyValue(t)||"",r=i[t]||"";if(n&&n!==r)try{e.style.setProperty(t,n.trim())}catch(d){}}}}function mt(t,e,n){return Promise.all(t.map(t=>new Promise(i=>{!function r(){(0,rt.a)(n=>{!n||"function"!=typeof n.timeRemaining||n.timeRemaining()>0?e(t,i):r()},{fast:n})}()})))}function vt(t,e){return t?(t=(t=(t=(t=(t=t.replace(/:host\(([^)]+)\)/g,(t,n)=>":where(".concat(e,":is(").concat(n.trim(),"))"))).replace(/:host\b/g,":where(".concat(e,")"))).replace(/:host-context\(([^)]+)\)/g,(t,n)=>":where(:where(".concat(n.trim(),") ").concat(e,")"))).replace(/::slotted\(([^)]+)\)/g,(t,n)=>":where(".concat(e," ").concat(n.trim(),")"))).replace(/(^|})(\s*)([^@}{]+){/g,(t,n,i,r)=>{let o=function(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.split(",").map(t=>t.trim()).filter(Boolean).map(t=>{if(t.startsWith(":where(")||t.startsWith("@"))return t;let i=n?function(t){return!(t=t.trim())||/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(t)?t:"".concat(t,":not([data-sd-slotted])")}(t):t;return":where(".concat(e," ").concat(i,")")}).join(", ")}(r,e,!0);return"".concat(n).concat(i).concat(o,"{")}),t):""}function yt(t,e){try{let n=getComputedStyle(t).getPropertyValue(e).trim();if(n)return n}catch(n){}try{let t=getComputedStyle(document.documentElement).getPropertyValue(e).trim();if(t)return t}catch(i){}return""}async function bt(t,e,n){let r=await async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=()=>{try{var e;return t.contentDocument||(null===(e=t.contentWindow)||void 0===e?void 0:e.document)||null}catch(n){return null}},i=n(),r=0;for(;r<e&&(!i||!i.body&&!i.documentElement);)await new Promise(t=>setTimeout(t,0)),i=n(),r++;return i&&(i.body||i.documentElement)?i:null}(t,3);if(!r)throw new Error("iframe document not accessible/ready");let{contentWidth:o,contentHeight:s,rect:a}=function(t){let e=t.getBoundingClientRect(),n=0,i=0,r=0,o=0;try{let e=getComputedStyle(t);n=parseFloat(e.borderLeftWidth)||0,i=parseFloat(e.borderRightWidth)||0,r=parseFloat(e.borderTopWidth)||0,o=parseFloat(e.borderBottomWidth)||0}catch(s){}return{contentWidth:Math.max(0,Math.round(e.width-(n+i))),contentHeight:Math.max(0,Math.round(e.height-(r+o))),rect:e}}(t),l=null===n||void 0===n?void 0:n.snap;if(!l||"function"!=typeof l.toPng)throw new Error("snapdom.toPng not available in iframe or window");let u,c=(0,i.A)((0,i.A)({},n),{},{scale:1}),h=function(t,e,n){let i=t.createElement("style");return i.setAttribute("data-sd-iframe-pin",""),i.textContent="html, body {margin: 0 !important;padding: 0 !important;width: ".concat(e,"px !important;height: ").concat(n,"px !important;min-width: ").concat(e,"px !important;min-height: ").concat(n,"px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}"),(t.head||t.documentElement).appendChild(i),()=>{try{i.remove()}catch(t){}}}(r,o,s);try{u=await l.toPng(r.documentElement,c)}finally{h()}u.style.display="block",u.style.width="".concat(o,"px"),u.style.height="".concat(s,"px");let d=document.createElement("div");return e.nodeMap.set(d,t),dt(t,d,e,n),d.style.overflow="hidden",d.style.display="block",d.style.width||(d.style.width="".concat(Math.round(a.width),"px")),d.style.height||(d.style.height="".concat(Math.round(a.height),"px")),d.appendChild(u),d}var wt=new Map;async function Dt(t){var e;if(null!==(e=r.resource)&&void 0!==e&&e.has(t))return r.resource.get(t);if(wt.has(t))return wt.get(t);let n=(async e=>{let n=await d(t,{as:"dataURL",silent:!0});if(!n.ok||"string"!=typeof n.data)throw new Error("[snapDOM] Failed to read blob URL: ".concat(t));return null!==(e=r.resource)&&void 0!==e&&e.set(t,n.data),n.data})();wt.set(t,n);try{let e=await n;return wt.set(t,e),e}catch(i){throw wt.delete(t),i}}var At=/\bblob:[^)"'\s]+/g;async function xt(t){if(!t||-1===t.indexOf("blob:"))return t;let e=Array.from(new Set(t.match(At)||[]));if(0===e.length)return t;let n=t;for(let r of e)try{let t=await Dt(r);n=n.split(r).join(t)}catch(i){}return n}function Ct(t){return"string"==typeof t&&t.startsWith("blob:")}function St(t){return(t||"").split(",").map(t=>t.trim()).filter(Boolean).map(t=>{let e=t.match(/^(\S+)(\s+.+)?$/);return e?{url:e[1],desc:e[2]||""}:null}).filter(Boolean)}function Ft(t){return t.map(t=>t.desc?"".concat(t.url," ").concat(t.desc.trim()):t.url).join(", ")}async function Et(t,e,n){if(!t)throw new Error("Invalid node");let i,r=new Set,o=null,s=null;if(t.nodeType===Node.ELEMENT_NODE){let e=(t.localName||t.tagName||"").toLowerCase();if("snapdom-sandbox"===t.id||t.hasAttribute("data-snapdom-sandbox")||p.has(e))return null}if(t.nodeType===Node.TEXT_NODE||t.nodeType!==Node.ELEMENT_NODE)return t.cloneNode(!0);if("exclude"===t.getAttribute("data-capture")){if("hide"===n.excludeMode){let e=document.createElement("div"),n=t.getBoundingClientRect();return e.style.cssText="display:inline-block;width:".concat(n.width,"px;height:").concat(n.height,"px;visibility:hidden;"),e}if("remove"===n.excludeMode)return null}if(n.exclude&&Array.isArray(n.exclude))for(let p of n.exclude)try{var a;if(null!==(a=t.matches)&&void 0!==a&&a.call(t,p)){if("hide"===n.excludeMode){let e=document.createElement("div"),n=t.getBoundingClientRect();return e.style.cssText="display:inline-block;width:".concat(n.width,"px;height:").concat(n.height,"px;visibility:hidden;"),e}if("remove"===n.excludeMode)return null}}catch(tt){console.warn("Invalid selector in exclude option: ".concat(p),tt)}if("function"==typeof n.filter)try{if(!n.filter(t)){if("hide"===n.filterMode){let e=document.createElement("div"),n=t.getBoundingClientRect();return e.style.cssText="display:inline-block;width:".concat(n.width,"px;height:").concat(n.height,"px;visibility:hidden;"),e}if("remove"===n.filterMode)return null}}catch(g){console.warn("Error in filter function:",g)}if("IFRAME"===t.tagName){let i=!1;try{var l;i=!!(t.contentDocument||null!==(l=t.contentWindow)&&void 0!==l&&l.document)}catch(m){i=!1}if(i)try{return await bt(t,e,n)}catch(tt){console.warn("[SnapDOM] iframe rasterization failed, fallback:",tt)}if(n.placeholders){let i=document.createElement("div");return i.style.cssText="width:".concat(t.offsetWidth,"px;height:").concat(t.offsetHeight,"px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;"),dt(t,i,e,n),i}{let i=t.getBoundingClientRect(),r=document.createElement("div");return r.style.cssText="display:inline-block;width:".concat(i.width,"px;height:").concat(i.height,"px;visibility:hidden;"),dt(t,r,e,n),r}}if("placeholder"===t.getAttribute("data-capture")){let i=t.cloneNode(!1);e.nodeMap.set(i,t),dt(t,i,e,n);let r=document.createElement("div");return r.textContent=t.getAttribute("data-placeholder-text")||"",r.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",i.appendChild(r),i}if("CANVAS"===t.tagName){let i="";try{let e=t.getContext("2d",{willReadFrequently:!0});try{e&&e.getImageData(0,0,1,1)}catch(v){}if(await new Promise(t=>requestAnimationFrame(t)),i=t.toDataURL("image/png"),!i||"data:,"===i){try{e&&e.getImageData(0,0,1,1)}catch(y){}if(await new Promise(t=>requestAnimationFrame(t)),i=t.toDataURL("image/png"),!i||"data:,"===i){let e=document.createElement("canvas");e.width=t.width,e.height=t.height;let n=e.getContext("2d");n&&(n.drawImage(t,0,0),i=e.toDataURL("image/png"))}}}catch(b){}let r=document.createElement("img");try{r.decoding="sync",r.loading="eager"}catch(w){}i&&(r.src=i),r.width=t.width,r.height=t.height;try{let e=getComputedStyle(t);e.width&&(r.style.width=e.width),e.height&&(r.style.height=e.height)}catch(D){}return e.nodeMap.set(r,t),dt(t,r,e,n),r}try{if(i=t.cloneNode(!1),gt(t,i),e.nodeMap.set(i,t),"IMG"===t.tagName){!function(t,e){try{let n=t.currentSrc||t.src||"";if(!n)return;e.setAttribute("src",n),e.removeAttribute("srcset"),e.removeAttribute("sizes"),e.loading="eager",e.decoding="sync"}catch(n){}}(t,i);try{let e=t.getBoundingClientRect(),n=Math.round(e.width||0),r=Math.round(e.height||0);if(!n||!r){let e=window.getComputedStyle(t),i=parseFloat(e.width)||0,o=parseFloat(e.height)||0,s=parseInt(t.getAttribute("width")||"",10)||0,a=parseInt(t.getAttribute("height")||"",10)||0,l=t.width||t.naturalWidth||0,u=t.height||t.naturalHeight||0;n=Math.round(n||i||s||l||0),r=Math.round(r||o||a||u||0)}n&&(i.dataset.snapdomWidth=String(n)),r&&(i.dataset.snapdomHeight=String(r))}catch(A){}try{let e=t.getAttribute("style")||"",n=window.getComputedStyle(t),r=t=>{let i=e.match(new RegExp("".concat(t,"\\s*:\\s*([^;]+)"),"i")),r=i?i[1].trim():n.getPropertyValue(t);return/%|auto/i.test(String(r||""))},o=parseInt(i.dataset.snapdomWidth||"0",10),s=parseInt(i.dataset.snapdomHeight||"0",10),a=r("width")||!o,l=r("height")||!s;a&&o&&(i.style.width="".concat(o,"px")),l&&s&&(i.style.height="".concat(s,"px")),o&&(i.style.minWidth="".concat(o,"px")),s&&(i.style.minHeight="".concat(s,"px"))}catch(x){}}}catch(g){throw console.error("[Snapdom] Failed to clone node:",t,g),g}if(t instanceof HTMLTextAreaElement){let e=t.getBoundingClientRect();i.style.width="".concat(e.width,"px"),i.style.height="".concat(e.height,"px")}if(t instanceof HTMLInputElement&&(i.value=t.value,i.setAttribute("value",t.value),void 0!==t.checked&&(i.checked=t.checked,t.checked&&i.setAttribute("checked",""),t.indeterminate&&(i.indeterminate=t.indeterminate))),t instanceof HTMLSelectElement&&(o=t.value),t instanceof HTMLTextAreaElement&&(s=t.value),dt(t,i,e,n),t.shadowRoot){let o=function(t,i){if(t.nodeType===Node.ELEMENT_NODE&&"STYLE"===t.tagName)return i(null);Et(t,e,n).then(t=>{i(t||null)}).catch(()=>{i(null)})};try{let e=t.shadowRoot.querySelectorAll("slot");for(let t of e){let e=[];try{var u,c;e=(null===(u=t.assignedNodes)||void 0===u?void 0:u.call(t,{flatten:!0}))||(null===(c=t.assignedNodes)||void 0===c?void 0:c.call(t))||[]}catch(C){var h;e=(null===(h=t.assignedNodes)||void 0===h?void 0:h.call(t))||[]}for(let t of e)r.add(t)}}catch(S){}let s=function(t){return t.shadowScopeSeq=(t.shadowScopeSeq||0)+1,"s".concat(t.shadowScopeSeq)}(e),a='[data-sd="'.concat(s,'"]');try{i.setAttribute("data-sd",s)}catch(F){}let l=function(t){let e="";try{t.querySelectorAll("style").forEach(t=>{e+=(t.textContent||"")+"\n"});let i=t.adoptedStyleSheets||[];for(let t of i)try{if(t&&t.cssRules)for(let n of t.cssRules)e+=n.cssText+"\n"}catch(n){}}catch(i){}return e}(t.shadowRoot),d=vt(l,a),f=function(t){let e=new Set;if(!t)return e;let n,i=/var\(\s*(--[A-Za-z0-9_-]+)\b/g;for(;n=i.exec(t);)e.add(n[1]);return e}(l),p=function(t,e,n){let i=[];for(let r of e){let e=yt(t,r);e&&i.push("".concat(r,": ").concat(e,";"))}return i.length?"".concat(n,"{").concat(i.join(""),"}\n"):""}(t,f,a);!function(t,e,n){if(!e)return;let i=document.createElement("style");i.setAttribute("data-sd",n),i.textContent=e,t.insertBefore(i,t.firstChild||null)}(i,p+d,s);let g=document.createDocumentFragment(),m=await mt(Array.from(t.shadowRoot.childNodes),o,n.fast);g.append(...m.filter(t=>!!t)),i.appendChild(g)}if("SLOT"===t.tagName){var d;let i=function(t,i){Et(t,e,n).then(t=>{t&&function(t){t&&(t.nodeType===Node.ELEMENT_NODE&&t.setAttribute("data-sd-slotted",""),t.querySelectorAll&&t.querySelectorAll("*").forEach(t=>t.setAttribute("data-sd-slotted","")))}(t),i(t||null)}).catch(()=>{i(null)})},r=(null===(d=t.assignedNodes)||void 0===d?void 0:d.call(t,{flatten:!0}))||[],o=r.length>0?r:Array.from(t.childNodes),s=document.createDocumentFragment(),a=await mt(Array.from(o),i,n.fast);return s.append(...a.filter(t=>!!t)),s}let f=await mt(Array.from(t.childNodes),function(t,i){if(r.has(t))return i(null);Et(t,e,n).then(t=>{i(t||null)}).catch(()=>{i(null)})},n.fast);if(i.append(...f.filter(t=>!!t)),null!==o&&i instanceof HTMLSelectElement){i.value=o;for(let t of i.options)t.value===o?t.setAttribute("selected",""):t.removeAttribute("selected")}return null!==s&&i instanceof HTMLTextAreaElement&&(i.textContent=s),i}function kt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="",i=Math.max(1,t);for(;i>0;)i--,n=String.fromCharCode(97+i%26)+n,i=Math.floor(i/26);return e?n.toUpperCase():n}function Mt(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],i=Math.max(1,Math.min(3999,t)),r="";for(let[o,s]of n)for(;i>=o;)r+=s,i-=o;return e?r:r.toLowerCase()}function Tt(t,e){switch((e||"decimal").toLowerCase()){case"decimal":default:return String(Math.max(0,t));case"decimal-leading-zero":return(t<10?"0":"")+String(Math.max(0,t));case"lower-alpha":return kt(t,!1);case"upper-alpha":return kt(t,!0);case"lower-roman":return Mt(t,!1);case"upper-roman":return Mt(t,!0)}}function Pt(t){let e=()=>{var t,e;return null!==(t=null===r||void 0===r||null===(e=r.session)||void 0===e?void 0:e.__counterEpoch)&&void 0!==t?t:0},n=e(),i=new WeakMap,o=t instanceof Document?t.documentElement:t,s=t=>{let e=0,n=null===t||void 0===t?void 0:t.parentElement;if(!n)return 0;for(let i of n.children){if(i===t)break;"LI"===i.tagName&&e++}return e},a=(t,e,n)=>{let i,r,o=(t=>{let e=new Map;for(let[n,i]of t)e.set(n,i.slice());return e})(t);try{var a;i=(null===(a=n.style)||void 0===a?void 0:a.counterReset)||getComputedStyle(n).counterReset}catch(u){}if(i&&"none"!==i)for(let s of i.split(",")){let t=s.trim().split(/\s+/),n=t[0],i=Number.isFinite(Number(t[1]))?Number(t[1]):0;if(!n)continue;let r=e.get(n);if(r&&r.length){let t=r.slice();t.push(i),o.set(n,t)}else o.set(n,[i])}try{var l;r=(null===(l=n.style)||void 0===l?void 0:l.counterIncrement)||getComputedStyle(n).counterIncrement}catch(c){}if(r&&"none"!==r)for(let s of r.split(",")){let t=s.trim().split(/\s+/),e=t[0],n=Number.isFinite(Number(t[1]))?Number(t[1]):1;if(!e)continue;let i=o.get(e)||[];0===i.length&&i.push(0),i[i.length-1]+=n,o.set(e,i)}try{if("list-item"===getComputedStyle(n).display&&(t=>t&&"LI"===t.tagName)(n)){let t=n.parentElement,e=1;if(t&&"OL"===t.tagName){let i=t.getAttribute("start"),r=Number.isFinite(Number(i))?Number(i):1,o=s(n),a=n.getAttribute("value");e=Number.isFinite(Number(a))?Number(a):r+o}else e=1+s(n);let i=o.get("list-item")||[];0===i.length&&i.push(0),i[i.length-1]=e,o.set("list-item",i)}}catch(h){}return o},l=(t,e,n)=>{let r=a(n,e,t);i.set(t,r);let o=r;for(let i of t.children)o=l(i,r,o);return r},u=new Map;function c(){let t=e();if(t!==n){n=t;let e=new Map;l(o,e,e)}}return l(o,u,u),{get(t,e){var n;c();let r=null===(n=i.get(t))||void 0===n?void 0:n.get(e);return r&&r.length?r[r.length-1]:0},getStack(t,e){var n;c();let r=null===(n=i.get(t))||void 0===n?void 0:n.get(e);return r?r.slice():[]}}}var _t=new WeakMap;function Rt(t){try{return t&&t.cssRules?t.cssRules:null}catch(e){return null}}function Bt(t){let e=t.querySelectorAll('style,link[rel~="stylesheet"]'),n="n:".concat(e.length,"|"),i=0;for(let o=0;o<e.length;o++){let t=e[o];if("STYLE"===t.tagName){let e=t.textContent?t.textContent.length:0;n+="S".concat(e,"|");let r=t.sheet,o=r?Rt(r):null;o&&(i+=o.length)}else{let e=t.getAttribute("href")||"",r=t.getAttribute("media")||"all";n+="L".concat(e,"|m:").concat(r,"|");let o=t.sheet,s=o?Rt(o):null;s&&(i+=s.length)}}let r=t.adoptedStyleSheets;return n+="ass:".concat(Array.isArray(r)?r.length:0,"|tr:").concat(i),n}function It(t,e,n){let i=Rt(t);if(!i)return!1;for(let r=0;r<i.length;r++){if(n.budget<=0)return!1;let t=i[r],o=t&&t.cssText?t.cssText:"";n.budget--;for(let n of e)if(o.includes(n))return!0;if(t&&t.cssRules&&t.cssRules.length)for(let i=0;i<t.cssRules.length&&n.budget>0;i++){let r=t.cssRules[i],o=r&&r.cssText?r.cssText:"";n.budget--;for(let t of e)if(o.includes(t))return!0}if(n.budget<=0)return!1}return!1}function Nt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=Bt(t),n=_t.get(t);if(n&&n.fingerprint===e)return n.result;let i=["::before","::after","::first-letter",":before",":after",":first-letter","counter(","counters(","counter-increment","counter-reset"],r=t.querySelectorAll("style");for(let a=0;a<r.length;a++){let n=r[a].textContent||"";for(let r of i)if(n.includes(r))return _t.set(t,{fingerprint:e,result:!0}),!0}let o=t.adoptedStyleSheets;if(Array.isArray(o)&&o.length){let n={budget:300};try{for(let r of o)if(It(r,i,n))return _t.set(t,{fingerprint:e,result:!0}),!0}catch(s){}}{let n=t.querySelectorAll('style,link[rel~="stylesheet"]'),r={budget:300};for(let o=0;o<n.length&&r.budget>0;o++){let s=n[o],a=null;if(s.tagName,a=s.sheet||null,a&&It(a,i,r))return _t.set(t,{fingerprint:e,result:!0}),!0}}return t.querySelector('[style*="counter("], [style*="counters("]')?(_t.set(t,{fingerprint:e,result:!0}),!0):(_t.set(t,{fingerprint:e,result:!1}),!1)}var Lt=new WeakMap,Ot=-1;function Wt(t){if(!t)return"";let e,n=[],i=/"([^"]*)"/g;for(;e=i.exec(t);)n.push(e[1]);return n.length?n.join(""):function(t){return(t||"").replace(/"([^"]*)"/g,"$1")}(t)}function zt(t,e){let n=t.parentElement,i=n?Lt.get(n):null;return i?{get(t,n){let r=e.get(t,n),o=i.get(n);return"number"==typeof o?Math.max(r,o):r},getStack(t,n){let r=e.getStack(t,n);if(!r.length)return r;let o=i.get(n);if("number"==typeof o){let t=r.slice();return t[t.length-1]=Math.max(t[t.length-1],o),t}return r}}:e}function jt(t,e,n){let i=new Map;function r(t){let e=[];if(!t||"none"===t)return e;for(let n of String(t).split(",")){let t=n.trim().split(/\s+/),i=t[0],r=Number.isFinite(Number(t[1]))?Number(t[1]):void 0;i&&e.push({name:i,num:r})}return e}let o=r(null===e||void 0===e?void 0:e.counterReset),s=r(null===e||void 0===e?void 0:e.counterIncrement);function a(e){if(i.has(e))return i.get(e).slice();let r=n.getStack(t,e);r=r.length?r.slice():[];let a=o.find(t=>t.name===e);if(a){let t=Number.isFinite(a.num)?a.num:0;r=r.length?[...r,t]:[t]}let l=s.find(t=>t.name===e);if(l){let t=Number.isFinite(l.num)?l.num:1;0===r.length&&(r=[0]),r[r.length-1]+=t}return i.set(e,r.slice()),r}return{get(t,e){let n=a(e);return n.length?n[n.length-1]:0},getStack:(t,e)=>a(e),__incs:s}}function Ut(t,e,n){var i;let r;try{r=getComputedStyle(t,e)}catch(l){}let o=null===(i=r)||void 0===i?void 0:i.content;if(!o||"none"===o||"normal"===o)return{text:"",incs:[]};let s=jt(t,r,zt(t,n)),a=function(t){return/\bcounter\s*\(|\bcounters\s*\(/.test(t||"")}(o)?function(t,e,n){if(!t||"none"===t)return t;try{let i=/\b(counter|counters)\s*\(([^)]+)\)/g,r=t.replace(i,(t,i,r)=>{let o=String(r).split(",").map(t=>t.trim());if("counter"===i){var s;let t=null===(s=o[0])||void 0===s?void 0:s.replace(/^["']|["']$/g,""),i=(o[1]||"decimal").toLowerCase();return Tt(n.get(e,t),i)}{var a,l,u;let t=null===(a=o[0])||void 0===a?void 0:a.replace(/^["']|["']$/g,""),i=null!==(l=null===(u=o[1])||void 0===u?void 0:u.replace(/^["']|["']$/g,""))&&void 0!==l?l:"",r=(o[2]||"decimal").toLowerCase(),s=n.getStack(e,t);return s.length?s.map(t=>Tt(t,r)).join(i):""}});return function(t){return(t||"").replace(/"([^"]*)"/g,"$1")}(r)}catch(i){return"- "}}(o,t,s):o;return{text:Wt(a),incs:s.__incs||[]}}async function Gt(t,e,n,i){var a,l;if(!(t instanceof Element)||!(e instanceof Element))return;if(!function(t,e){let n=Bt(t);return e?(e.__pseudoPreflightFp!==n&&(e.__pseudoPreflight=Nt(t),e.__pseudoPreflightFp=n),!!e.__pseudoPreflight):Nt(t)}(t.ownerDocument||document,n))return;let u=null!==(a=null===r||void 0===r||null===(l=r.session)||void 0===l?void 0:l.__counterEpoch)&&void 0!==a?a:0;if(Ot!==u&&(Lt=new WeakMap,n&&(n.__counterCtx=null),Ot=u),!n.__counterCtx)try{n.__counterCtx=Pt(t.ownerDocument||document)}catch(b){}let c=n.__counterCtx;for(let r of["::before","::after","::first-letter"])try{var p,g;let a=A(t,r);if(!a||"none"===a.content&&"none"===a.backgroundImage&&"transparent"===a.backgroundColor&&("none"===a.borderStyle||0===parseFloat(a.borderWidth))&&(!a.transform||"none"===a.transform)&&"inline"===a.display)continue;if("::first-letter"===r){var m;let i=getComputedStyle(t);if(a.color===i.color&&a.fontSize===i.fontSize&&a.fontWeight===i.fontWeight)continue;let r=Array.from(e.childNodes).find(t=>{var e;return t.nodeType===Node.TEXT_NODE&&(null===(e=t.textContent)||void 0===e?void 0:e.trim().length)>0});if(!r)continue;let o=r.textContent,s=null===(m=o.match(/^((?:[\0-\x08\x0E-\x1F!-\/:-@\[-`\{-\x9F\xA1-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u0890-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDB\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7DD-\uA7F0\uA802\uA806\uA80B\uA823-\uA82F\uA836-\uA83F\uA874-\uA881\uA8B4-\uA8CF\uA8DA-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF\uA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DEEF\uDEFA-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDCEF\uDCFA-\uDDCF\uDDEE\uDDEF\uDDFB-\uDEBF\uDEDF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5-\uDEFD\uDF00-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD0-\uDCFF\uDD44-\uDD4A\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCAC\uDCB0\uDCB5-\uDD00\uDD2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEAE\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD88D[\uDC7A-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\u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\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDE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uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:['\u2019])?)/))||void 0===m?void 0:m[0],l=o.slice((null===s||void 0===s?void 0:s.length)||0);if(!s||/[\uD800-\uDFFF]/.test(s))continue;let u=document.createElement("span");u.textContent=s,u.dataset.snapdomPseudo="::first-letter";let c=D(x(a),"span");n.styleMap.set(u,c);let h=document.createTextNode(l);e.replaceChild(h,r),e.insertBefore(u,h);continue}let l=null!==(p=a.content)&&void 0!==p?p:"",u=""===l||"none"===l||"normal"===l,{text:v,incs:y}=Ut(t,r,c),b=a.backgroundImage,F=a.backgroundColor,E=a.fontFamily,M=parseInt(a.fontSize)||32,T=parseInt(a.fontWeight)||!1,P=a.color||"#000",_=a.borderStyle,B=parseFloat(a.borderWidth),I=a.transform,N=k(E),L=!u&&""!==v,O=b&&"none"!==b,W=F&&"transparent"!==F&&"rgba(0, 0, 0, 0)"!==F,z=_&&"none"!==_&&B>0,j=I&&"none"!==I;if(!(L||O||W||z||j)){if(y&&y.length&&t.parentElement){let e=Lt.get(t.parentElement)||new Map;for(let{name:n}of y){if(!n)continue;let i=zt(t,c),o=jt(t,getComputedStyle(t,r),i).get(t,n);e.set(n,o)}Lt.set(t.parentElement,e)}continue}let U=document.createElement("span");U.dataset.snapdomPseudo=r,U.style.pointerEvents="none";let G=D(x(a),"span");if(n.styleMap.set(U,G),N&&v&&1===v.length){let{dataUrl:t,width:n,height:i}=await R(v,E,T,M,P),r=document.createElement("img");r.src=t,r.style="height:".concat(M,"px;width:").concat(n/i*M,"px;object-fit:contain;"),U.appendChild(r),e.dataset.snapdomHasIcon="true"}else if(v&&v.startsWith("url(")){let e=o(v);if(null!==e&&void 0!==e&&e.trim())try{let t=document.createElement("img"),n=await d(s(e),{as:"dataURL",useProxy:i.useProxy});t.src=n.data,t.style="width:".concat(M,"px;height:auto;object-fit:contain;"),U.appendChild(t)}catch(h){console.error("[snapdom] Error in pseudo ".concat(r," for"),t,h)}}else!N&&L&&(U.textContent=v);U.style.backgroundImage="none","maskImage"in U.style&&(U.style.maskImage="none"),"webkitMaskImage"in U.style&&(U.style.webkitMaskImage="none");try{U.style.backgroundRepeat=a.backgroundRepeat,U.style.backgroundSize=a.backgroundSize,a.backgroundPositionX&&a.backgroundPositionY?(U.style.backgroundPositionX=a.backgroundPositionX,U.style.backgroundPositionY=a.backgroundPositionY):U.style.backgroundPosition=a.backgroundPosition,U.style.backgroundOrigin=a.backgroundOrigin,U.style.backgroundClip=a.backgroundClip,U.style.backgroundAttachment=a.backgroundAttachment,U.style.backgroundBlendMode=a.backgroundBlendMode}catch(w){}if(O)try{let t=C(b),e=await Promise.all(t.map(f));U.style.backgroundImage=e.join(", ")}catch(S){console.warn("[snapdom] Failed to inline background-image for ".concat(r),S)}W&&(U.style.backgroundColor=F);let V=U.childNodes.length>0||""!==(null===(g=U.textContent)||void 0===g?void 0:g.trim())||O||W||z||j;if(y&&y.length&&t.parentElement){let e=Lt.get(t.parentElement)||new Map,n=zt(t,c),i=jt(t,getComputedStyle(t,r),n);for(let{name:r}of y){if(!r)continue;let n=i.get(t,r);e.set(r,n)}Lt.set(t.parentElement,e)}if(!V)continue;"::before"===r?e.insertBefore(U,e.firstChild):e.appendChild(U)}catch(tt){console.warn("[snapdom] Failed to capture ".concat(r," for"),t,tt)}let v=Array.from(t.children),y=Array.from(e.children).filter(t=>!t.dataset.snapdomPseudo);for(let r=0;r<Math.min(v.length,y.length);r++)await Gt(v[r],y[r],n,i)}function Vt(t,e){if(!t||!(t instanceof Element))return;let n=t.ownerDocument||document,i=e||n,r=t instanceof SVGSVGElement?[t]:Array.from(t.querySelectorAll("svg"));if(0===r.length)return;let o=/url\(\s*#([^)]+)\)/g,s=["fill","stroke","filter","clip-path","mask","marker","marker-start","marker-mid","marker-end"],a=t=>{if(!t||!t.getAttribute)return null;let e=t.getAttribute("href")||t.getAttribute("xlink:href")||("function"==typeof t.getAttributeNS?t.getAttributeNS("http://www.w3.org/1999/xlink","href"):null);if(e)return e;let n=t.attributes;if(!n)return null;for(let i=0;i<n.length;i++){let t=n[i];if(!t||!t.name)continue;if("href"===t.name)return t.value;let e=t.name.indexOf(":");if(-1!==e&&"href"===t.name.slice(e+1))return t.value}return null},l=new Set(Array.from(t.querySelectorAll("[id]")).map(t=>t.id)),u=new Set,c=!1,h=function(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)for(o.lastIndex=0;e=o.exec(t);){c=!0;let t=(e[1]||"").trim();t&&(l.has(t)||(u.add(t),n&&!n.has(t)&&n.add(t)))}},d=t=>{let e=t.querySelectorAll("use");for(let i of e){let t=a(i);if(!t||!t.startsWith("#"))continue;c=!0;let e=t.slice(1).trim();e&&!l.has(e)&&u.add(e)}let n=t.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');for(let i of n){h(i.getAttribute("style")||"");for(let t of s)h(i.getAttribute(t))}};for(let w of r)d(w);if(!c)return;let f=t.querySelector("svg.inline-defs-container");f||(f=n.createElementNS("http://www.w3.org/2000/svg","svg"),f.classList.add("inline-defs-container"),f.setAttribute("aria-hidden","true"),f.setAttribute("style","position:absolute;width:0;height:0;overflow:hidden"),t.insertBefore(f,t.firstChild||null));let p=f.querySelector("defs")||null,g=e=>{if(!e||l.has(e))return null;let n=(t=>window.CSS&&CSS.escape?CSS.escape(t):t.replace(/[^a-zA-Z0-9_-]/g,"\\$&"))(e),r=e=>{let n=i.querySelector(e);return n&&!t.contains(n)?n:null};return r("svg defs > *#".concat(n))||r("svg > symbol#".concat(n))||r("*#".concat(n))};if(!u.size)return;let m=new Set(u),v=new Set;for(;m.size;){let t=m.values().next().value;if(m.delete(t),!t||l.has(t)||v.has(t))continue;let e=g(t);if(!e){v.add(t);continue}p||(p=n.createElementNS("http://www.w3.org/2000/svg","defs"),f.appendChild(p));let i=e.cloneNode(!0);i.id||i.setAttribute("id",t),p.appendChild(i),v.add(t),l.add(t);let r=[i,...i.querySelectorAll("*")];for(let n of r){var y;let t=a(n);if(t&&t.startsWith("#")){let e=t.slice(1).trim();e&&!l.has(e)&&!v.has(e)&&m.add(e)}let e=(null===(y=n.getAttribute)||void 0===y?void 0:y.call(n,"style"))||"";e&&h(e,m);for(let i of s){var b;let t=null===(b=n.getAttribute)||void 0===b?void 0:b.call(n,i);t&&h(t,m)}}}}function Ht(t){if(!t||"auto"===t)return null;let e=Number.parseFloat(t);return Number.isFinite(e)?e:null}function qt(t,e){let n=[];for(let i=t;i&&i!==e;){let t=i.parentElement;if(!t)break;n.push(Array.prototype.indexOf.call(t.children,i)),i=t}return n.reverse()}function Xt(t,e,n){let i=t;for(let r=0;r<e.length;r++)if(i=Kt(i,n)[e[r]],!i)return null;return i instanceof HTMLElement?i:null}function Kt(t,e){let n=[],i=t.children;for(let r=0;r<i.length;r++){let t=i[r];t.hasAttribute(e)||n.push(t)}return n}async function Yt(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={styleMap:r.session.styleMap,styleCache:r.session.styleCache,nodeMap:r.session.nodeMap},o="",s="";!function(t){let e=getComputedStyle(t),n=e.outlineStyle,i=e.outlineWidth,r=e.borderStyle,o=e.borderWidth,s="none"!==n&&parseFloat(i)>0,a="none"===r||0===parseFloat(o);s&&a&&(t.style.border="".concat(i," solid transparent"))}(t);try{Vt(t)}catch($){console.warn("inlineExternal defs or symbol failed:",$)}try{e=await Et(t,i,n)}catch($){throw console.warn("deepClone failed:",$),$}try{await Gt(t,e,i,n)}catch($){console.warn("inlinePseudoElements failed:",$)}await async function(t){if(!t)return;let e=t.querySelectorAll?t.querySelectorAll("img"):[];for(let p of e)try{let t=p.getAttribute("src")||p.currentSrc||"";if(Ct(t)){let e=await Dt(t);p.setAttribute("src",e)}let e=p.getAttribute("srcset");if(e&&e.includes("blob:")){let t=St(e),n=!1;for(let e of t)if(Ct(e.url))try{e.url=await Dt(e.url),n=!0}catch(l){}n&&p.setAttribute("srcset",Ft(t))}}catch(u){}let n=t.querySelectorAll?t.querySelectorAll("image"):[];for(let p of n)try{var i;let t="http://www.w3.org/1999/xlink",e=p.getAttribute("href")||(null===(i=p.getAttributeNS)||void 0===i?void 0:i.call(p,t,"href"));if(Ct(e)){var r;let n=await Dt(e);p.setAttribute("href",n),null===(r=p.removeAttributeNS)||void 0===r||r.call(p,t,"href")}}catch(c){}let o=t.querySelectorAll?t.querySelectorAll("[style*='blob:']"):[];for(let p of o)try{let t=p.getAttribute("style");if(t&&t.includes("blob:")){let e=await xt(t);p.setAttribute("style",e)}}catch(h){}let s=t.querySelectorAll?t.querySelectorAll("style"):[];for(let p of s)try{let t=p.textContent||"";t.includes("blob:")&&(p.textContent=await xt(t))}catch(d){}let a=["poster"];for(let p of a){let e=t.querySelectorAll?t.querySelectorAll("[".concat(p,"^='blob:']")):[];for(let t of e)try{let e=t.getAttribute(p);Ct(e)&&t.setAttribute(p,await Dt(e))}catch(f){}}}(e);try{let t=e.querySelectorAll("style[data-sd]");for(let e of t)s+=e.textContent||"",e.remove()}catch(c){}let a=function(t){let e=Array.from(new Set(t.values())).filter(Boolean).sort(),n=new Map,i=1;for(let r of e)n.set(r,"c".concat(i++));return n}(i.styleMap);o=Array.from(a.entries()).map(t=>{let[e,n]=t;return".".concat(n,"{").concat(e,"}")}).join(""),o=s+o;for(let[r,h]of i.styleMap.entries()){var l,u;if("STYLE"===r.tagName)continue;if(r.getRootNode&&r.getRootNode()instanceof ShadowRoot){r.setAttribute("style",h.replace(/;/g,"; "));continue}let t=a.get(h);t&&r.classList.add(t);let e=null===(l=r.style)||void 0===l?void 0:l.backgroundImage,n=null===(u=r.dataset)||void 0===u?void 0:u.snapdomHasIcon;e&&"none"!==e&&(r.style.backgroundImage=e),n&&(r.style.verticalAlign="middle",r.style.display="inline")}for(let[r,h]of i.nodeMap.entries()){let t=h.scrollLeft,e=h.scrollTop;if((t||e)&&r instanceof HTMLElement){r.style.overflow="hidden",r.style.scrollbarWidth="none",r.style.msOverflowStyle="none";let n=document.createElement("div");for(n.style.transform="translate(".concat(-t,"px, ").concat(-e,"px)"),n.style.willChange="transform",n.style.display="inline-block",n.style.width="100%";r.firstChild;)n.appendChild(r.firstChild);r.appendChild(n)}}if(function(t,e){if(!t||!e)return;let n=t.scrollTop||0;if(!n)return;"static"===getComputedStyle(e).position&&(e.style.position="relative");let i=t.getBoundingClientRect(),r=t.clientHeight,o="data-snap-ph",s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;s.nextNode();){var a;let l=s.currentNode,u=getComputedStyle(l),c=u.position;if("sticky"!==c&&"-webkit-sticky"!==c)continue;let h=Ht(u.top),d=Ht(u.bottom);if(null==h&&null==d)continue;let f=Xt(e,qt(l,t),o);if(!f)continue;let p=l.getBoundingClientRect(),g=p.width,m=p.height,v=p.left-i.left;if(!(g>0&&m>0)||!Number.isFinite(v))continue;let y=null!=h?h+n:n+(r-m-d);if(!Number.isFinite(y))continue;let b=Number.parseInt(u.zIndex,10),w=Number.isFinite(b),D=w?Math.max(b,1)+1:2,A=w?b-1:0,x=f.cloneNode(!1);x.setAttribute(o,"1"),x.style.position="sticky",x.style.left="".concat(v,"px"),x.style.top="".concat(y,"px"),x.style.width="".concat(g,"px"),x.style.height="".concat(m,"px"),x.style.visibility="hidden",x.style.zIndex=String(A),x.style.overflow="hidden",x.style.background="transparent",x.style.boxShadow="none",x.style.filter="none",null!==(a=f.parentElement)&&void 0!==a&&a.insertBefore(x,f),f.style.position="absolute",f.style.left="".concat(v,"px"),f.style.top="".concat(y,"px"),f.style.bottom="auto",f.style.zIndex=String(D),f.style.pointerEvents="none"}}(t,e instanceof HTMLElement&&e.firstElementChild instanceof HTMLElement?e.firstElementChild:e),t===i.nodeMap.get(e)){let n=i.styleCache.get(t)||window.getComputedStyle(t);i.styleCache.set(t,n);let r=function(t){if(!t||"none"===t)return"";let e=t.replace(/translate[XY]?\([^)]*\)/g,"");return e=e.replace(/matrix\(([^)]+)\)/g,(t,e)=>{let n=e.split(",").map(t=>t.trim());return 6!==n.length?"matrix(".concat(e,")"):(n[4]="0",n[5]="0","matrix(".concat(n.join(", "),")"))}),e=e.replace(/matrix3d\(([^)]+)\)/g,(t,e)=>{let n=e.split(",").map(t=>t.trim());return 16!==n.length?"matrix3d(".concat(e,")"):(n[12]="0",n[13]="0","matrix3d(".concat(n.join(", "),")"))}),e.trim().replace(/\s{2,}/g," ")}(n.transform);e.style.margin="0",e.style.top="auto",e.style.left="auto",e.style.right="auto",e.style.bottom="auto",e.style.animation="none",e.style.transition="none",e.style.willChange="auto",e.style.float="none",e.style.clear="none",e.style.transform=r||""}for(let[r,h]of i.nodeMap.entries())"PRE"===h.tagName&&(r.style.marginTop="0",r.style.marginBlockStart="0");return{clone:e,classCSS:o,styleCache:i.styleCache}}async function Zt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.from(t.querySelectorAll("img")),i=async t=>{if(!t.getAttribute("src")){let e=t.currentSrc||t.src||"";e&&t.setAttribute("src",e)}t.removeAttribute("srcset"),t.removeAttribute("sizes");let n=t.src||"";if(!n)return;let i=await d(n,{as:"dataURL",useProxy:e.useProxy});if(i.ok&&"string"==typeof i.data&&i.data.startsWith("data:"))return t.src=i.data,t.width||(t.width=t.naturalWidth||100),void(t.height||(t.height=t.naturalHeight||100));let{width:r,height:o}=function(t){var e,n,i,r;let o=parseInt((null===(e=t.dataset)||void 0===e?void 0:e.snapdomWidth)||"",10)||0,s=parseInt((null===(n=t.dataset)||void 0===n?void 0:n.snapdomHeight)||"",10)||0,a=parseInt(t.getAttribute("width")||"",10)||0,l=parseInt(t.getAttribute("height")||"",10)||0,u=parseFloat((null===(i=t.style)||void 0===i?void 0:i.width)||"")||0,c=parseFloat((null===(r=t.style)||void 0===r?void 0:r.height)||"")||0;return{width:o||u||a||t.width||t.naturalWidth||100,height:s||c||l||t.height||t.naturalHeight||100}}(t),{fallbackURL:s}=e||{};if(s)try{let i="function"==typeof s?await s({width:r,height:o,src:n,element:t}):s;if(i){let n=await d(i,{as:"dataURL",useProxy:e.useProxy});return t.src=n.data,t.width||(t.width=r),void(t.height||(t.height=o))}}catch(a){}if(!1!==e.placeholders){let e=document.createElement("div");e.style.cssText=["width:".concat(r,"px"),"height:".concat(o,"px"),"background:#ccc","display:inline-block","text-align:center","line-height:".concat(o,"px"),"color:#666","font-size:12px","overflow:hidden"].join(";"),e.textContent="img",t.replaceWith(e)}else{let e=document.createElement("div");e.style.cssText="display:inline-block;width:".concat(r,"px;height:").concat(o,"px;visibility:hidden;"),t.replaceWith(e)}};for(let r=0;r<n.length;r+=4){let t=n.slice(r,r+4).map(i);await Promise.allSettled(t)}}function Qt(t){var e;if(!t)return()=>{};let n=function(t){let e=getComputedStyle(t),n=e.getPropertyValue("-webkit-line-clamp")||e.getPropertyValue("line-clamp");n=(n||"").trim();let i=parseInt(n,10);return Number.isFinite(i)&&i>0?i:0}(t);if(n<=0)return()=>{};if(!function(t){return!(t.childElementCount>0)&&Array.from(t.childNodes).some(t=>t.nodeType===Node.TEXT_NODE)}(t))return()=>{};let i=getComputedStyle(t),r=Math.round(function(t){let e=(t.lineHeight||"").trim(),n=parseFloat(t.fontSize)||16;return e&&"normal"!==e?e.endsWith("px")?parseFloat(e):/^\d+(\.\d+)?$/.test(e)?Math.round(parseFloat(e)*n):e.endsWith("%")?Math.round(parseFloat(e)/100*n):Math.round(1.2*n):Math.round(1.2*n)}(i)*n+function(t){return(parseFloat(t.paddingTop)||0)+(parseFloat(t.paddingBottom)||0)}(i)),o=null!==(e=t.textContent)&&void 0!==e?e:"",s=o;if(t.scrollHeight<=r+.5)return()=>{};let a=0,l=o.length,u=-1;for(;a<=l;){let e=a+l>>1;t.textContent=o.slice(0,e)+"\u2026",t.scrollHeight<=r+.5?(u=e,a=e+1):l=e-1}return t.textContent=(u>=0?o.slice(0,u):"")+"\u2026",()=>{t.textContent=s}}function Jt(t){t&&(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{stripFrameworkDirectives:n=!0}=e,i=new Set(["xml","xlink"]),r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;r.nextNode();){let t=r.currentNode;for(let e of Array.from(t.attributes)){let r=e.name;if(r.includes("@"))t.removeAttribute(r);else{if(r.includes(":")){let e=r.split(":",1)[0];if(!i.has(e)){t.removeAttribute(r);continue}}n&&(r.startsWith("x-")||r.startsWith("v-")||r.startsWith(":")||r.startsWith("on:")||r.startsWith("bind:")||r.startsWith("let:")||r.startsWith("class:"))&&t.removeAttribute(r)}}}}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),function(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT),n=[];for(;e.nextNode();)n.push(e.currentNode);for(let i of n)i.remove()}(t))}function $t(t,e){if(!(t instanceof Element)||function(t){try{var e;let n=(null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"style"))||"";return/\b(height|width|block-size|inline-size)\s*:/.test(n)}catch(n){return!1}}(t)||function(t){return t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof HTMLIFrameElement||t instanceof SVGElement||t instanceof HTMLObjectElement||t instanceof HTMLEmbedElement}(t))return!1;let n=e.position;if("absolute"===n||"fixed"===n||"sticky"===n)return!1;let i=e.display||"";return!(i.includes("flex")||i.includes("grid")||i.startsWith("table")||e.transform&&"none"!==e.transform)}function te(t){let e=getComputedStyle(t);return!("none"===e.display||"absolute"===e.position||"fixed"===e.position||"sticky"===e.position||"none"!==(e.cssFloat||e.float||"none")||e.transform&&"none"!==e.transform)}function ee(t,e){if(!(t instanceof Element))return!1;if("exclude"===t.getAttribute("data-capture")&&"remove"===(null===e||void 0===e?void 0:e.excludeMode))return!0;if(Array.isArray(null===e||void 0===e?void 0:e.exclude))for(let i of e.exclude)try{if(t.matches(i))return"remove"===e.excludeMode}catch(n){}return!1}var ne=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return Number.isFinite(t)?Math.round(t*10**e)/10**e:t};function ie(t,e,n,i,r){let o=n.a,s=n.b,a=n.c,l=n.d,u=n.e||0,c=n.f||0;function h(t,e){let n=t-i,h=e-r,d=o*n+a*h,f=s*n+l*h;return d+=i+u,f+=r+c,[d,f]}let d=[h(0,0),h(t,0),h(0,e),h(t,e)],f=1/0,p=1/0,g=-1/0,m=-1/0;for(let[v,y]of d)v<f&&(f=v),y<p&&(p=y),v>g&&(g=v),y>m&&(m=y);return{minX:f,minY:p,maxX:g,maxY:m,width:g-f,height:m-p}}var re=null;function oe(t){let e=function(){if(re)return re;let t=document.createElement("div");return t.id="snapdom-measure-slot",t.setAttribute("aria-hidden","true"),Object.assign(t.style,{position:"absolute",left:"-99999px",top:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(t),re=t,t}(),n=document.createElement("div");n.style.transformOrigin="0 0",t.baseTransform&&(n.style.transform=t.baseTransform),t.rotate&&(n.style.rotate=t.rotate),t.scale&&(n.style.scale=t.scale),t.translate&&(n.style.translate=t.translate),e.appendChild(n);let i=se(n);return e.removeChild(n),i}function se(t){let e=getComputedStyle(t).transform;if(!e||"none"===e)return new DOMMatrix;try{return new DOMMatrix(e)}catch(n){return new WebKitCSSMatrix(e)}}async function ae(t,e){var n;if(!t)throw new Error("Element cannot be null or undefined");!function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"soft";switch(r.session.__counterEpoch=(r.session.__counterEpoch||0)+1,t){case"auto":return r.session.styleMap=new Map,void(r.session.nodeMap=new Map);case"soft":default:return r.session.styleMap=new Map,r.session.nodeMap=new Map,void(r.session.styleCache=new WeakMap);case"full":return;case"disabled":r.session.styleMap=new Map,r.session.nodeMap=new Map,r.session.styleCache=new WeakMap,r.computedStyle=new WeakMap,r.baseStyle=new Map,r.defaultStyle=new Map,r.image=new Map,r.background=new Map,r.resource=new Map,r.font=new Set}}(e.cache);let o,s,a,l,c,h=e.fast,d=!1!==e.outerTransforms,p=!!e.outerShadows,g={element:t,options:e,plugins:e.plugins},m="",v="",y=null;await et("beforeSnap",g),await et("beforeClone",g);let b=Qt(g.element);try{({clone:o,classCSS:s,styleCache:a}=await Yt(g.element,g.options)),!d&&o&&(y=function(t,e){if(!t||!e||!e.style)return null;let n=getComputedStyle(t);try{e.style.transformOrigin="0 0"}catch(o){}try{"translate"in e.style&&(e.style.translate="none"),"rotate"in e.style&&(e.style.rotate="none")}catch(s){}let i=n.transform||"none";if(!i||"none"===i)try{let n=se(t);if(1===n.a&&0===n.b&&0===n.c&&1===n.d)return e.style.transform="none",{a:1,b:0,c:0,d:1}}catch(a){}let r=i.match(/^matrix\(\s*([^)]+)\)$/i);if(r){let t=r[1].split(",").map(t=>parseFloat(t.trim()));if(6===t.length&&t.every(Number.isFinite)){let[n,i,r,o]=t,s=Math.sqrt(n*n+i*i)||0,a=0,u=0,c=0,h=0,d=0,f=0;s>0&&(a=n/s,u=i/s,c=a*r+u*o,h=r-a*c,d=o-u*c,f=Math.sqrt(h*h+d*d)||0,f>0?c/=f:c=0);let p=s,g=0,m=c*f,v=f;try{e.style.transform="matrix(".concat(p,", ").concat(g,", ").concat(m,", ").concat(v,", 0, 0)")}catch(l){}return{a:p,b:g,c:m,d:v}}}try{let t=String(i).trim();return e.style.transform=t+" translate(0px, 0px) rotate(0deg)",null}catch(u){return null}}(g.element,o)),!p&&o&&function(t,e){if(!t||!e||!e.style)return;let n=getComputedStyle(t);try{e.style.boxShadow="none"}catch(r){}try{e.style.textShadow="none"}catch(o){}try{e.style.outline="none"}catch(s){}let i=(n.filter||"").replace(/\bblur\([^()]*\)\s*/gi,"").replace(/\bdrop-shadow\([^()]*\)\s*/gi,"").trim().replace(/\s+/g," ");try{e.style.filter=i.length?i:"none"}catch(a){}}(g.element,o)}finally{b()}if(g=(0,i.A)({clone:o,classCSS:s,styleCache:a},g),await et("afterClone",g),Jt(g.clone),"remove"===(null===(n=g.options)||void 0===n?void 0:n.excludeMode))try{!function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;!function t(e,i){if(!(e instanceof Element)||!(i instanceof Element))return;let r=e.childElementCount>i.childElementCount,o=n.get(e)||getComputedStyle(e);if(n.has(e)||n.set(e,o),r&&$t(e,o)){i.style.height||(i.style.height="auto"),i.style.width||(i.style.width="auto"),i.style.removeProperty("block-size"),i.style.removeProperty("inline-size"),i.style.minHeight||(i.style.minHeight="0"),i.style.minWidth||(i.style.minWidth="0"),i.style.maxHeight||(i.style.maxHeight="none"),i.style.maxWidth||(i.style.maxWidth="none");let t=o.overflowY||o.overflowBlock||"visible",e=o.overflowX||o.overflowInline||"visible";("visible"!==t||"visible"!==e)&&(i.style.overflow="visible")}let s=Array.from(e.children),a=Array.from(i.children);for(let n=0;n<Math.min(s.length,a.length);n++)t(s[n],a[n])}(t,e)}(g.element,g.clone,g.styleCache)}catch(u){console.warn("[snapdom] shrink pass failed:",u)}try{await async function(t,e){if(!(t instanceof Element))return 0;let n='.material-icons, [class*="material-symbols"]',i=Array.from(t.querySelectorAll(n)).filter(t=>t&&t.textContent&&t.textContent.trim());if(0===i.length)return 0;let r=e instanceof Element?Array.from(e.querySelectorAll(n)).filter(t=>t&&t.textContent&&t.textContent.trim()):[],o=0;for(let a=0;a<i.length;a++){let t=i[a],e=r[a]||null;try{let n=getComputedStyle(e||t),i=n.fontFamily||"Material Icons";if(!M(i))continue;let r=(e||t).textContent.trim();if(!r)continue;let s=parseInt(n.fontSize,10)||24,a=n.fontWeight&&"normal"!==n.fontWeight?n.fontWeight:"normal",l=P(n),u=n.fontVariationSettings&&"normal"!==n.fontVariationSettings?n.fontVariationSettings:"",c=(e||t).className||"",{dataUrl:h,width:d,height:f}=await _(r,{family:i,weight:a,fontSize:s,color:l,variation:u,className:c});t.textContent="";let p=t.ownerDocument.createElement("img");p.src=h,p.alt=r,p.style.height="".concat(s,"px"),p.style.width="".concat(Math.max(1,Math.round(d/f*s)),"px"),p.style.objectFit="contain",p.style.verticalAlign=getComputedStyle(t).verticalAlign||"baseline",t.appendChild(p),o++}catch(s){}}return o}(g.clone,g.element)}catch(S){}await new Promise(t=>{(0,rt.a)(async()=>{await Zt(g.clone,g.options),t()},{fast:h})}),await new Promise(t=>{(0,rt.a)(async()=>{await async function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=[[t,e]],o=["background-image","mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"],s=["mask-position","mask-size","mask-repeat","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],a=["background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode"],l=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;r.length;){let[t,e]=r.shift(),u=n.get(t)||A(t);n.has(t)||n.set(t,u);let c=(()=>{let t=u.getPropertyValue("border-image"),e=u.getPropertyValue("border-image-source");return t&&"none"!==t||e&&"none"!==e})();for(let n of a){let t=u.getPropertyValue(n);t&&e.style.setProperty(n,t)}for(let n of o){let t=u.getPropertyValue(n);if(!t||"none"===t)continue;let r=C(t),o=await Promise.all(r.map(t=>f(t,i)));o.some(t=>t&&"none"!==t&&!/^url\(undefined/.test(t))&&e.style.setProperty(n,o.join(", "))}for(let n of s){let t=u.getPropertyValue(n);!t||"initial"===t||e.style.setProperty(n,t)}if(c)for(let n of l){let t=u.getPropertyValue(n);!t||"initial"===t||e.style.setProperty(n,t)}let h=Array.from(t.children),d=Array.from(e.children).filter(t=>!(t.dataset&&t.dataset.snapdomPseudo));for(let n=0;n<Math.min(h.length,d.length);n++)r.push([h[n],d[n]])}}(g.element,g.clone,g.styleCache,g.options),t()},{fast:h})}),e.embedFonts&&await new Promise(t=>{(0,rt.a)(async()=>{let e=Q(g.element),n=function(t){let e=new Set,n=t=>{if(t)for(let n of t)e.add(n.codePointAt(0))},i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;i.nextNode();){let t=i.currentNode;if(t.nodeType===Node.TEXT_NODE)n(t.nodeValue||"");else if(t.nodeType===Node.ELEMENT_NODE){let i=t;for(let t of["::before","::after"]){var r;let s=null===(r=getComputedStyle(i,t))||void 0===r?void 0:r.getPropertyValue("content");if(s&&"none"!==s)if(/^"/.test(s)||/^'/.test(s))n(s.slice(1,-1));else{let t=s.match(/\\[0-9A-Fa-f]{1,6}/g);if(t)for(let n of t)try{e.add(parseInt(n.slice(1),16))}catch(o){}}}}}return e}(g.element);if((0,rt.b)()){let t=new Set(Array.from(e).map(t=>String(t).split("__")[0]).filter(Boolean));await async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;try{await document.fonts.ready}catch(r){}let n=Array.from(t||[]).filter(Boolean);if(0===n.length)return;let i=()=>{let t=document.createElement("div");t.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(let e of n){let n=document.createElement("span");n.textContent="AaBbGg1234\xc1\xc9\xcd\xd3\xda\xe7\xf1\u2014\u221e",n.style.fontFamily='"'.concat(e,'"'),n.style.fontWeight="700",n.style.fontStyle="italic",n.style.fontSize="32px",n.style.lineHeight="1",n.style.whiteSpace="nowrap",n.style.margin="0",n.style.padding="0",t.appendChild(n)}document.body.appendChild(t),t.offsetWidth,document.body.removeChild(t)};for(let o=0;o<Math.max(1,e);o++)i(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(t)))}(t,1)}m=await Z({required:e,usedCodepoints:n,preCached:!1,exclude:g.options.excludeFonts,useProxy:g.options.useProxy}),t()},{fast:h})});let w=function(t){let e=new Set;return t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(t.tagName&&e.add(t.tagName.toLowerCase()),"function"==typeof t.querySelectorAll&&t.querySelectorAll("*").forEach(t=>e.add(t.tagName.toLowerCase())),Array.from(e))}(g.clone).sort(),D=w.join(",");r.baseStyle.has(D)?v=r.baseStyle.get(D):await new Promise(t=>{(0,rt.a)(()=>{v=function(t){let e=new Map;for(let i of t){let t=r.defaultStyle.get(i);if(!t)continue;let n=Object.entries(t).map(t=>{let[e,n]=t;return"".concat(e,":").concat(n,";")}).sort().join("");n&&(e.has(n)||e.set(n,[]),e.get(n).push(i))}let n="";for(let[i,r]of e.entries())n+="".concat(r.join(",")," { ").concat(i," }\n");return n}(w),r.baseStyle.set(D,v),t()},{fast:h})}),g=(0,i.A)({fontsCSS:m,baseCSS:v},g),await et("beforeRender",g),await new Promise(t=>{(0,rt.a)(()=>{var n;let r=getComputedStyle(g.element),o=g.element.getBoundingClientRect(),s=Math.max(1,ne(g.element.offsetWidth||parseFloat(r.width)||o.width||1)),a=Math.max(1,ne(g.element.offsetHeight||parseFloat(r.height)||o.height||1));if("remove"===(null===(n=g.options)||void 0===n?void 0:n.excludeMode)){let t=function(t,e){let n=getComputedStyle(t),i=t.getBoundingClientRect(),r=1/0,o=-1/0,s=!1,a=Array.from(t.children);for(let u of a){if(ee(u,e)||!te(u))continue;let t=u.getBoundingClientRect(),n=t.top-i.top,a=t.bottom-i.top;a<=n||(n<r&&(r=n),a>o&&(o=a),s=!0)}let l=s?Math.max(0,o-r):0;return(parseFloat(n.borderTopWidth)||0)+(parseFloat(n.borderBottomWidth)||0)+(parseFloat(n.paddingTop)||0)+(parseFloat(n.paddingBottom)||0)+l}(g.element,g.options);Number.isFinite(t)&&t>0&&(a=Math.max(1,Math.min(a,ne(t+1))))}let u=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n="string"==typeof t?parseFloat(t):t;return Number.isFinite(n)?n:e},h=u(g.options.width),f=u(g.options.height),m=s,v=a,b=Number.isFinite(h),w=Number.isFinite(f),D=a>0?s/a:1;b&&w?(m=Math.max(1,ne(h)),v=Math.max(1,ne(f))):b?(m=Math.max(1,ne(h)),v=Math.max(1,ne(m/(D||1)))):w?(v=Math.max(1,ne(f)),m=Math.max(1,ne(v*(D||1)))):(m=s,v=a);let A=0,x=0,C=s,S=a;if(!d&&y&&Number.isFinite(y.a)){let t=ie(s,a,{a:y.a,b:y.b||0,c:y.c||0,d:y.d||1,e:0,f:0},0,0);A=ne(t.minX),x=ne(t.minY),C=ne(t.maxX),S=ne(t.maxY)}else if(d&&function(t){return function(t){let e=getComputedStyle(t),n=e.transform||"none";if("none"!==n&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(n))return!0;let i=e.rotate&&"none"!==e.rotate&&"0deg"!==e.rotate,r=e.scale&&"none"!==e.scale&&"1"!==e.scale,o=e.translate&&"none"!==e.translate&&"0px 0px"!==e.translate;return!!(i||r||o)}(t)}(g.element)){let t=r.transform&&"none"!==r.transform?r.transform:"",e=function(t){let e={rotate:"0deg",scale:null,translate:null},n="function"==typeof t.computedStyleMap?t.computedStyleMap():null;if(n){let h=t=>{try{return"function"==typeof n.has&&!n.has(t)||"function"!=typeof n.get?null:n.get(t)}catch(e){return null}},d=h("rotate");if(d)if(d.angle){let t=d.angle;e.rotate="rad"===t.unit?180*t.value/Math.PI+"deg":t.value+t.unit}else d.unit?e.rotate="rad"===d.unit?180*d.value/Math.PI+"deg":d.value+d.unit:e.rotate=String(d);else{let n=getComputedStyle(t);e.rotate=n.rotate&&"none"!==n.rotate?n.rotate:"0deg"}let f=h("scale");if(f){var i,r,o,s;let t="x"in f&&null!=(null===(i=f.x)||void 0===i?void 0:i.value)?f.x.value:Array.isArray(f)?null===(r=f[0])||void 0===r?void 0:r.value:Number(f)||1,n="y"in f&&null!=(null===(o=f.y)||void 0===o?void 0:o.value)?f.y.value:Array.isArray(f)?null===(s=f[1])||void 0===s?void 0:s.value:t;e.scale="".concat(t," ").concat(n)}else{let n=getComputedStyle(t);e.scale=n.scale&&"none"!==n.scale?n.scale:null}let p=h("translate");if(p){var a,l,u,c;let t="x"in p&&"value"in p.x?p.x.value:Array.isArray(p)?null===(a=p[0])||void 0===a?void 0:a.value:0,n="y"in p&&"value"in p.y?p.y.value:Array.isArray(p)?null===(l=p[1])||void 0===l?void 0:l.value:0,i="x"in p&&null!==(u=p.x)&&void 0!==u&&u.unit?p.x.unit:"px",r="y"in p&&null!==(c=p.y)&&void 0!==c&&c.unit?p.y.unit:"px";e.translate="".concat(t).concat(i," ").concat(n).concat(r)}else{let n=getComputedStyle(t);e.translate=n.translate&&"none"!==n.translate?n.translate:null}return e}let h=getComputedStyle(t);return e.rotate=h.rotate&&"none"!==h.rotate?h.rotate:"0deg",e.scale=h.scale&&"none"!==h.scale?h.scale:null,e.translate=h.translate&&"none"!==h.translate?h.translate:null,e}(g.element),n=oe({baseTransform:t,rotate:e.rotate||"0deg",scale:e.scale,translate:e.translate}),{ox:i,oy:o}=function(t,e,n){let i=(t.transformOrigin||"0 0").trim().split(/\s+/),[r,o]=[i[0]||"0",i[1]||"0"],s=(t,e)=>{let n=t.toLowerCase();return"left"===n||"top"===n?0:"center"===n?e/2:"right"===n||"bottom"===n?e:n.endsWith("px")?parseFloat(n)||0:n.endsWith("%")?(parseFloat(n)||0)*e/100:/^-?\d+(\.\d+)?$/.test(n)&&parseFloat(n)||0};return{ox:s(r,e),oy:s(o,n)}}(r,s,a),l=ie(s,a,n.is2D?n:new DOMMatrix(n.toString()),i,o);A=ne(l.minX),x=ne(l.minY),C=ne(l.maxX),S=ne(l.maxY)}let F=function(t){let e=t.boxShadow||"";if(!e||"none"===e)return{top:0,right:0,bottom:0,left:0};let n=e.split(/\),(?=(?:[^()]*\([^()]*\))*[^()]*$)/).map(t=>t.trim()),i=0,r=0,o=0,s=0;for(let l of n){var a;let t=(null===(a=l.match(/-?\d+(\.\d+)?px/g))||void 0===a?void 0:a.map(t=>parseFloat(t)))||[];if(t.length<2)continue;let[e,n,u=0,c=0]=t,h=Math.abs(e)+u+c,d=Math.abs(n)+u+c;r=Math.max(r,h+Math.max(e,0)),s=Math.max(s,h+Math.max(-e,0)),o=Math.max(o,d+Math.max(n,0)),i=Math.max(i,d+Math.max(-n,0))}return{top:Math.ceil(i),right:Math.ceil(r),bottom:Math.ceil(o),left:Math.ceil(s)}}(r),E=function(t){let e=(t.filter||"").match(/blur\(\s*([0-9.]+)px\s*\)/),n=e?Math.ceil(parseFloat(e[1])||0):0;return{top:n,right:n,bottom:n,left:n}}(r),k=function(t){if("none"===(t.outlineStyle||"none"))return{top:0,right:0,bottom:0,left:0};let e=Math.ceil(parseFloat(t.outlineWidth||"0")||0);return{top:e,right:e,bottom:e,left:e}}(r),M=function(t){let e="".concat(t.filter||""," ").concat(t.webkitFilter||"").trim();if(!e||"none"===e)return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let n=e.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],i=0,r=0,o=0,s=0,a=!1;for(let u of n){var l;a=!0;let t=(null===(l=u.match(/-?\d+(?:\.\d+)?px/gi))||void 0===l?void 0:l.map(t=>parseFloat(t)))||[],[e=0,n=0,c=0]=t,h=Math.abs(e)+c,d=Math.abs(n)+c;r=Math.max(r,h+Math.max(e,0)),s=Math.max(s,h+Math.max(-e,0)),o=Math.max(o,d+Math.max(n,0)),i=Math.max(i,d+Math.max(-n,0))}return{bleed:{top:ne(i),right:ne(r),bottom:ne(o),left:ne(s)},has:a}}(r),T=p?{top:ne(F.top+E.top+k.top+M.bleed.top),right:ne(F.right+E.right+k.right+M.bleed.right),bottom:ne(F.bottom+E.bottom+k.bottom+M.bleed.bottom),left:ne(F.left+E.left+k.left+M.bleed.left)}:{top:0,right:0,bottom:0,left:0};A=ne(A-T.left),x=ne(x-T.top),C=ne(C+T.right),S=ne(S+T.bottom);let P=Math.max(1,ne(C-A)),_=Math.max(1,ne(S-x)),R=b||w?ne(m/s):1,B=w||b?ne(v/a):1,I=Math.max(1,ne(P*R)),N=Math.max(1,ne(_*B)),L="http://www.w3.org/2000/svg",O=(0,rt.b)()?1:0,W=ne(O+(d?0:1)),z=document.createElementNS(L,"foreignObject"),j=ne(A),U=ne(x);z.setAttribute("x",String(ne(-(j-W)))),z.setAttribute("y",String(ne(-(U-W)))),z.setAttribute("width",String(ne(s+2*W))),z.setAttribute("height",String(ne(a+2*W))),z.style.overflow="visible";let G=document.createElement("style");G.textContent=g.baseCSS+g.fontsCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+g.classCSS,z.appendChild(G);let V=document.createElement("div");V.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),V.style.width="".concat(ne(s),"px"),V.style.height="".concat(ne(a),"px"),V.style.overflow="visible",g.clone.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),V.appendChild(g.clone),z.appendChild(V);let H=(new XMLSerializer).serializeToString(z),q=ne(P+2*W),X=ne(_+2*W),K=b||w;e.meta={w0:s,h0:a,vbW:q,vbH:X,targetW:m,targetH:v};let Y=(0,rt.b)()&&K?q:ne(I+2*W),Z=(0,rt.b)()&&K?X:ne(N+2*W);c='<svg xmlns="'.concat(L,'" width="').concat(Y,'" height="').concat(Z,'" viewBox="0 0 ').concat(q," ").concat(X,'">')+H+"</svg>",l="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(c)),g=(0,i.A)({svgString:c,dataURL:l},g),t()},{fast:h})}),await et("afterRender",g);let x=document.getElementById("snapdom-sandbox");return x&&"absolute"===x.style.position&&x.remove(),g.dataURL}var le=Object.assign(async function(t,e){if(!t)throw new Error("Element cannot be null or undefined");let n=function(){var t,e,n,i,r,o,s,a,l,u,c,h,d,f,p,g,m,v,y,b;let w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},D=null!==(t=w.format)&&void 0!==t?t:"png";"jpg"===D&&(D="jpeg");let A=function(t){if("string"==typeof t){let e=t.toLowerCase().trim();if("disabled"===e||"full"===e||"auto"===e||"soft"===e)return e}return"soft"}(w.cache);return{debug:null!==(e=w.debug)&&void 0!==e&&e,fast:null===(n=w.fast)||void 0===n||n,scale:null!==(i=w.scale)&&void 0!==i?i:1,exclude:null!==(r=w.exclude)&&void 0!==r?r:[],excludeMode:null!==(o=w.excludeMode)&&void 0!==o?o:"hide",filter:null!==(s=w.filter)&&void 0!==s?s:null,filterMode:null!==(a=w.filterMode)&&void 0!==a?a:"hide",placeholders:!1!==w.placeholders,embedFonts:null!==(l=w.embedFonts)&&void 0!==l&&l,iconFonts:Array.isArray(w.iconFonts)?w.iconFonts:w.iconFonts?[w.iconFonts]:[],localFonts:Array.isArray(w.localFonts)?w.localFonts:[],excludeFonts:null!==(u=w.excludeFonts)&&void 0!==u?u:void 0,fallbackURL:null!==(c=w.fallbackURL)&&void 0!==c?c:void 0,cache:A,useProxy:"string"==typeof w.useProxy?w.useProxy:"",width:null!==(h=w.width)&&void 0!==h?h:null,height:null!==(d=w.height)&&void 0!==d?d:null,format:D,type:null!==(f=w.type)&&void 0!==f?f:"svg",quality:null!==(p=w.quality)&&void 0!==p?p:.92,dpr:null!==(g=w.dpr)&&void 0!==g?g:window.devicePixelRatio||1,backgroundColor:null!==(m=w.backgroundColor)&&void 0!==m?m:["jpeg","webp"].includes(D)?"#ffffff":null,filename:null!==(v=w.filename)&&void 0!==v?v:"snapDOM",outerTransforms:null===(y=w.outerTransforms)||void 0===y||y,outerShadows:null!==(b=w.outerShadows)&&void 0!==b&&b}}(e);if(it(n,e&&e.plugins),(0,rt.b)()&&(!0===n.embedFonts||function(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;e.nextNode();){let t=e.currentNode,n=getComputedStyle(t),i=n.backgroundImage&&"none"!==n.backgroundImage,r=n.maskImage&&"none"!==n.maskImage||n.webkitMaskImage&&"none"!==n.webkitMaskImage;if(i||r||"CANVAS"===t.tagName)return!0}return!1}(t)))for(let r=0;r<3;r++)try{await de(t,e),he=!1}catch(i){}return n.iconFonts&&n.iconFonts.length>0&&function(t){let e=Array.isArray(t)?t:[t];for(let n of e)n instanceof RegExp?E.push(n):"string"==typeof n?E.push(new RegExp(n,"i")):console.warn("[snapdom] Ignored invalid iconFont value:",n)}(n.iconFonts),n.snap||(n.snap={toPng:(t,e)=>le.toPng(t,e),toSvg:(t,e)=>le.toSvg(t,e)}),le.capture(t,n,ue)},{plugins:function(){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let i=e.flat();for(let r of i){let t=$(r);t&&(J.some(e=>e&&e.name&&t.name&&e.name===t.name)||J.push(t))}}(...arguments),le}}),ue=Symbol("snapdom.internal"),ce=Symbol("snapdom.internal.silent"),he=!1;async function de(t,e){if(he)return;let n,r=(0,i.A)((0,i.A)({},e),{},{fast:!0,embedFonts:!0,scale:.2});try{n=await ae(t,r)}catch(o){}await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(t))),n&&await new Promise(t=>{let e=new Image;try{e.decoding="sync",e.loading="eager"}catch(i){}e.style.cssText="position:fixed;left:0px;top:0px;width:10px;height:10px;opacity:0.01;pointer-events:none;",e.src=n,document.body.appendChild(e),(async()=>{try{"function"==typeof e.decode&&await e.decode()}catch(i){}let n=performance.now();for(;!(e.complete&&e.naturalWidth>0)&&performance.now()-n<900;)await new Promise(t=>setTimeout(t,200));await new Promise(t=>requestAnimationFrame(t));try{e.remove()}catch(r){}t()})()}),t.querySelectorAll("canvas").forEach(t=>{try{let e=t.getContext("2d",{willReadFrequently:!0});e&&e.getImageData(0,0,1,1)}catch(e){}}),he=!0}le.capture=async(t,e,r)=>{if(r!==ue)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");let o=await ae(t,e),s={img:async(t,e)=>{let{toImg:r}=await n.e(568).then(n.bind(n,12568));return r(o,(0,i.A)((0,i.A)({},t),e||{}))},svg:async(t,e)=>{let{toSvg:r}=await n.e(568).then(n.bind(n,12568));return r(o,(0,i.A)((0,i.A)({},t),e||{}))},canvas:async(t,e)=>{let{toCanvas:r}=await n.e(0).then(n.bind(n,36e3));return r(o,(0,i.A)((0,i.A)({},t),e||{}))},blob:async(t,e)=>{let{toBlob:r}=await n.e(399).then(n.bind(n,29399));return r(o,(0,i.A)((0,i.A)({},t),e||{}))},png:async(t,e)=>{let{rasterize:r}=await n.e(286).then(n.bind(n,286));return r(o,(0,i.A)((0,i.A)((0,i.A)({},t),e||{}),{},{format:"png"}))},jpeg:async(t,e)=>{let{rasterize:r}=await n.e(286).then(n.bind(n,286));return r(o,(0,i.A)((0,i.A)((0,i.A)({},t),e||{}),{},{format:"jpeg"}))},webp:async(t,e)=>{let{rasterize:r}=await n.e(286).then(n.bind(n,286));return r(o,(0,i.A)((0,i.A)((0,i.A)({},t),e||{}),{},{format:"webp"}))},download:async(t,e)=>{let{download:r}=await n.e(237).then(n.bind(n,27237));return r(o,(0,i.A)((0,i.A)({},t),e||{}))}},a=(0,i.A)((0,i.A)({},e),{},{export:{url:o},exports:{svg:async t=>{let{toSvg:r}=await n.e(568).then(n.bind(n,12568));return r(o,(0,i.A)((0,i.A)((0,i.A)({},e),t||{}),{},{[ce]:!0}))},canvas:async t=>{let{toCanvas:r}=await n.e(0).then(n.bind(n,36e3));return r(o,(0,i.A)((0,i.A)((0,i.A)({},e),t||{}),{},{[ce]:!0}))},png:async t=>{let{rasterize:r}=await n.e(286).then(n.bind(n,286));return r(o,(0,i.A)((0,i.A)((0,i.A)({},e),t||{}),{},{format:"png",[ce]:!0}))},jpeg:async t=>{let{rasterize:r}=await n.e(286).then(n.bind(n,286));return r(o,(0,i.A)((0,i.A)((0,i.A)({},e),t||{}),{},{format:"jpeg",[ce]:!0}))},jpg:async t=>{let{rasterize:r}=await n.e(286).then(n.bind(n,286));return r(o,(0,i.A)((0,i.A)((0,i.A)({},e),t||{}),{},{format:"jpeg",[ce]:!0}))},webp:async t=>{let{rasterize:r}=await n.e(286).then(n.bind(n,286));return r(o,(0,i.A)((0,i.A)((0,i.A)({},e),t||{}),{},{format:"webp",[ce]:!0}))},blob:async t=>{let{toBlob:r}=await n.e(399).then(n.bind(n,29399));return r(o,(0,i.A)((0,i.A)((0,i.A)({},e),t||{}),{},{[ce]:!0}))},img:async t=>{let{toImg:r}=await n.e(568).then(n.bind(n,12568));return r(o,(0,i.A)((0,i.A)((0,i.A)({},e),t||{}),{},{[ce]:!0}))}}}),l=await nt("defineExports",a),u=Object.assign({},...l.filter(t=>t&&"object"==typeof t)),c=(0,i.A)((0,i.A)({},s),u);c.jpeg&&!c.jpg&&(c.jpg=(t,e)=>c.jpeg(t,e));let h=!1,d=Promise.resolve();async function f(t,n){return d=d.then(async()=>{let r=c[t];if(!r)throw new Error("[snapdom] Unknown export type: ".concat(t));let s=function(t,n){let r=(0,i.A)((0,i.A)({},e),n||{});return("jpeg"===t||"jpg"===t)&&(null==r.backgroundColor||"transparent"===r.backgroundColor)&&(r.backgroundColor="#ffffff"),r}(t,n),a=(0,i.A)((0,i.A)({},e),{},{export:{type:t,options:s,url:o}});await et("beforeExport",a);let l=await r(a,s);return await et("afterExport",a,l),h||(h=!0,await et("afterSnap",e)),l})}let p={url:o,toRaw:()=>o,to:(t,e)=>f(t,e),toImg:t=>f("img",t),toSvg:t=>f("svg",t),toCanvas:t=>f("canvas",t),toBlob:t=>f("blob",t),toPng:t=>f("png",t),toJpg:t=>f("jpg",t),toWebp:t=>f("webp",t),download:t=>f("download",t)};for(let n of Object.keys(c)){let t="to"+n.charAt(0).toUpperCase()+n.slice(1);p[t]||(p[t]=t=>f(n,t))}return p},le.toRaw=(t,e)=>le(t,e).then(t=>t.toRaw()),le.toImg=(t,e)=>le(t,e).then(t=>t.toImg()),le.toSvg=(t,e)=>le(t,e).then(t=>t.toSvg()),le.toCanvas=(t,e)=>le(t,e).then(t=>t.toCanvas()),le.toBlob=(t,e)=>le(t,e).then(t=>t.toBlob()),le.toPng=(t,e)=>le(t,(0,i.A)((0,i.A)({},e),{},{format:"png"})).then(t=>t.toPng()),le.toJpg=(t,e)=>le(t,(0,i.A)((0,i.A)({},e),{},{format:"jpeg"})).then(t=>t.toJpg()),le.toWebp=(t,e)=>le(t,(0,i.A)((0,i.A)({},e),{},{format:"webp"})).then(t=>t.toWebp()),le.download=(t,e)=>le(t,e).then(t=>t.download())},81537:(t,e,n)=>{var i=n(94922);t.exports=function(t,e,n){const r=i.useRef("loading"),o=i.useRef(),[s,a]=i.useState(0),l=i.useRef(),u=i.useRef(),c=i.useRef();return l.current===t&&u.current===e&&c.current===n||(r.current="loading",o.current=void 0,l.current=t,u.current=e,c.current=n),i.useLayoutEffect(function(){if(t){var i=document.createElement("img");return i.addEventListener("load",s),i.addEventListener("error",l),e&&(i.crossOrigin=e),n&&(i.referrerPolicy=n),i.src=t,function(){i.removeEventListener("load",s),i.removeEventListener("error",l)}}function s(){i.decode().catch(()=>{}).finally(()=>{r.current="loaded",o.current=i,a(Math.random())})}function l(){r.current="failed",o.current=void 0,a(Math.random())}},[t,e,n]),[o.current,r.current]}},82284:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{A:()=>i})},84088:(t,e)=>{"use strict";function n(t,e){var n=t.length;t.push(e);t:for(;0<n;){var i=n-1>>>1,r=t[i];if(!(0<o(r,e)))break t;t[i]=e,t[n]=r,n=i}}function i(t){return 0===t.length?null:t[0]}function r(t){if(0===t.length)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,r=t.length,s=r>>>1;i<s;){var a=2*(i+1)-1,l=t[a],u=a+1,c=t[u];if(0>o(l,n))u<r&&0>o(c,l)?(t[i]=c,t[u]=n,i=u):(t[i]=l,t[a]=n,i=a);else{if(!(u<r&&0>o(c,n)))break t;t[i]=c,t[u]=n,i=u}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],h=1,d=null,f=3,p=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(t){for(var e=i(c);null!==e;){if(null===e.callback)r(c);else{if(!(e.startTime<=t))break;r(c),e.sortIndex=e.expirationTime,n(u,e)}e=i(c)}}function D(t){if(m=!1,w(t),!g)if(null!==i(u))g=!0,R(A);else{var e=i(c);null!==e&&B(D,e.startTime-t)}}function A(t,n){g=!1,m&&(m=!1,y(F),F=-1),p=!0;var o=f;try{for(w(n),d=i(u);null!==d&&(!(d.expirationTime>n)||t&&!M());){var s=d.callback;if("function"===typeof s){d.callback=null,f=d.priorityLevel;var a=s(d.expirationTime<=n);n=e.unstable_now(),"function"===typeof a?d.callback=a:d===i(u)&&r(u),w(n)}else r(u);d=i(u)}if(null!==d)var l=!0;else{var h=i(c);null!==h&&B(D,h.startTime-n),l=!1}return l}finally{d=null,f=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,S=null,F=-1,E=5,k=-1;function M(){return!(e.unstable_now()-k<E)}function T(){if(null!==S){var t=e.unstable_now();k=t;var n=!0;try{n=S(!0,t)}finally{n?x():(C=!1,S=null)}}else C=!1}if("function"===typeof b)x=function(){b(T)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,_=P.port2;P.port1.onmessage=T,x=function(){_.postMessage(null)}}else x=function(){v(T,0)};function R(t){S=t,C||(C=!0,x())}function B(t,n){F=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,R(A))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return i(u)},e.unstable_next=function(t){switch(f){case 1:case 2:case 3:var e=3;break;default:e=f}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_scheduleCallback=function(t,r,o){var s=e.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return t={id:h++,callback:r,priorityLevel:t,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(t.sortIndex=o,n(c,t),null===i(u)&&t===i(c)&&(m?(y(F),F=-1):m=!0,B(D,o-s))):(t.sortIndex=a,n(u,t),g||p||(g=!0,R(A))),t},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(t){var e=f;return function(){var n=f;f=e;try{return t.apply(this,arguments)}finally{f=n}}}},87821:()=>{},88648:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=(0,n(94922).createContext)(null)},89261:(t,e,n)=>{"use strict";t.exports=n(74935)},89379:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(64467);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){(0,i.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}},90140:(t,e,n)=>{"use strict";var i=n(68208);function r(t){for(var e=t.length;--e>=0;)t[e]=0}var o=256,s=286,a=30,l=15,u=[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],h=[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],f=new Array(576);r(f);var p=new Array(60);r(p);var g=new Array(512);r(g);var m=new Array(256);r(m);var v=new Array(29);r(v);var y,b,w,D=new Array(a);function A(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function x(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function C(t){return t<256?g[t]:g[256+(t>>>7)]}function S(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function F(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,S(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function E(t,e,n){F(t,n[2*e],n[2*e+1])}function k(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function M(t,e,n){var i,r,o=new Array(16),s=0;for(i=1;i<=l;i++)o[i]=s=s+n[i-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=k(o[a]++,a))}}function T(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;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 P(t){t.bi_valid>8?S(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 _(t,e,n,i){var r=2*e,o=2*n;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]}function R(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&_(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!_(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function B(t,e,n){var i,r,s,a,l=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===i?E(t,r,e):(E(t,(s=m[r])+o+1,e),0!==(a=u[s])&&F(t,r-=v[s],a),E(t,s=C(--i),n),0!==(a=c[s])&&F(t,i-=D[s],a))}while(l<t.last_lit);E(t,256,e)}function I(t,e){var n,i,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)R(t,o,n);r=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*r]=o[2*n]+o[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=r,t.heap[1]=r++,R(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,o,s,a,u=e.dyn_tree,c=e.max_code,h=e.stat_desc.static_tree,d=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,g=e.stat_desc.max_length,m=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(i=t.heap[n])+1]+1]+1)>g&&(o=g,m++),u[2*i+1]=o,i>c||(t.bl_count[o]++,s=0,i>=p&&(s=f[i-p]),a=u[2*i],t.opt_len+=a*(o+s),d&&(t.static_len+=a*(h[2*i+1]+s)));if(0!==m){do{for(o=g-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,m-=2}while(m>0);for(o=g;0!==o;o--)for(i=t.bl_count[o];0!==i;)(r=t.heap[--n])>c||(u[2*r+1]!==o&&(t.opt_len+=(o-u[2*r+1])*u[2*r],u[2*r+1]=o),i--)}}(t,e),M(o,c,t.bl_count)}function N(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=s,s=e[2*(i+1)+1],++a<l&&r===s||(a<u?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,a=0,o=r,0===s?(l=138,u=3):r===s?(l=6,u=3):(l=7,u=4))}function L(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),i=0;i<=n;i++)if(r=s,s=e[2*(i+1)+1],!(++a<l&&r===s)){if(a<u)do{E(t,r,t.bl_tree)}while(0!==--a);else 0!==r?(r!==o&&(E(t,r,t.bl_tree),a--),E(t,16,t.bl_tree),F(t,a-3,2)):a<=10?(E(t,17,t.bl_tree),F(t,a-3,3)):(E(t,18,t.bl_tree),F(t,a-11,7));a=0,o=r,0===s?(l=138,u=3):r===s?(l=6,u=3):(l=7,u=4)}}r(D);var O=!1;function W(t,e,n,r){F(t,0+(r?1:0),3),function(t,e,n,r){P(t),r&&(S(t,n),S(t,~n)),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){O||(!function(){var t,e,n,i,r,o=new Array(16);for(n=0,i=0;i<28;i++)for(v[i]=n,t=0;t<1<<u[i];t++)m[n++]=i;for(m[n-1]=i,r=0,i=0;i<16;i++)for(D[i]=r,t=0;t<1<<c[i];t++)g[r++]=i;for(r>>=7;i<a;i++)for(D[i]=r<<7,t=0;t<1<<c[i]-7;t++)g[256+r++]=i;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,o[8]++;for(;t<=255;)f[2*t+1]=9,t++,o[9]++;for(;t<=279;)f[2*t+1]=7,t++,o[7]++;for(;t<=287;)f[2*t+1]=8,t++,o[8]++;for(M(f,287,o),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=k(t,5);y=new A(f,u,257,s,l),b=new A(p,c,0,a,l),w=new A(new Array(0),h,0,19,7)}(),O=!0),t.l_desc=new x(t.dyn_ltree,y),t.d_desc=new x(t.dyn_dtree,b),t.bl_desc=new x(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,T(t)},e._tr_stored_block=W,e._tr_flush_block=function(t,e,n,i){var r,s,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&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<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),a=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),I(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),r=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=r&&(r=s)):r=s=n+5,n+4<=r&&-1!==e?W(t,e,n,i):4===t.strategy||s===r?(F(t,2+(i?1:0),3),B(t,f,p)):(F(t,4+(i?1:0),3),function(t,e,n,i){var r;for(F(t,e-257,5),F(t,n-1,5),F(t,i-4,4),r=0;r<i;r++)F(t,t.bl_tree[2*d[r]+1],3);L(t,t.dyn_ltree,e-1),L(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),B(t,t.dyn_ltree,t.dyn_dtree)),T(t),i&&P(t)},e._tr_tally=function(t,e,n){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&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(m[n]+o+1)]++,t.dyn_dtree[2*C(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){F(t,2,3),E(t,256,f),function(t){16===t.bi_valid?(S(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)}(t)}},90306:(t,e,n)=>{"use strict";n.d(e,{A:()=>At});var i=n(53986),r=n(94922),o=n.n(r),s=n(47215),a=n(64467);const l={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},u=Math.round;function c(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=n.map(t=>parseFloat(t));for(let r=0;r<3;r+=1)i[r]=e(i[r]||0,n[r]||"",r);return n[3]?i[3]=n[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const h=(t,e,n)=>0===n?t:t/100;function d(t,e){const n=e||255;return t>n?n:t<0?0:t}class f{constructor(t){function e(e){return e[0]in t&&e[1]in t&&e[2]in t}if((0,a.A)(this,"isValid",!0),(0,a.A)(this,"r",0),(0,a.A)(this,"g",0),(0,a.A)(this,"b",0),(0,a.A)(this,"a",1),(0,a.A)(this,"_h",void 0),(0,a.A)(this,"_s",void 0),(0,a.A)(this,"_l",void 0),(0,a.A)(this,"_v",void 0),(0,a.A)(this,"_max",void 0),(0,a.A)(this,"_min",void 0),(0,a.A)(this,"_brightness",void 0),t)if("string"===typeof t){const n=t.trim();function i(t){return n.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(i("rgb"))this.fromRgbString(n);else if(i("hsl"))this.fromHslString(n);else if(i("hsv")||i("hsb"))this.fromHsvString(n);else{const r=l[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(t instanceof f)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(e("rgb"))this.r=d(t.r),this.g=d(t.g),this.b=d(t.b),this.a="number"===typeof t.a?d(t.a,1):1;else if(e("hsl"))this.fromHsl(t);else{if(!e("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t));this.fromHsv(t)}else;}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const e=this.toHsv();return e.h=t,this._c(e)}getLuminance(){function t(t){const e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return.2126*t(this.r)+.7152*t(this.g)+.0722*t(this.b)}getHue(){if("undefined"===typeof this._h){const t=this.getMax()-this.getMin();this._h=0===t?0:u(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if("undefined"===typeof this._s){const t=this.getMax()-this.getMin();this._s=0===t?0:t/this.getMax()}return this._s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const e=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:e,s:n,l:i,a:this.a})}lighten(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const e=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:e,s:n,l:i,a:this.a})}mix(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(t),i=e/100,r=t=>(n[t]-this[t])*i+this[t],o={r:u(r("r")),g:u(r("g")),b:u(r("b")),a:u(100*r("a"))/100};return this._c(o)}tint(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},t)}shade(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const e=this._c(t),n=this.a+e.a*(1-this.a),i=t=>u((this[t]*this.a+e[t]*e.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const e=(this.r||0).toString(16);t+=2===e.length?e:"0"+e;const n=(this.g||0).toString(16);t+=2===n.length?n:"0"+n;const i=(this.b||0).toString(16);if(t+=2===i.length?i:"0"+i,"number"===typeof this.a&&this.a>=0&&this.a<1){const e=u(255*this.a).toString(16);t+=2===e.length?e:"0"+e}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),e=u(100*this.getSaturation()),n=u(100*this.getLightness());return 1!==this.a?"hsla(".concat(t,",").concat(e,"%,").concat(n,"%,").concat(this.a,")"):"hsl(".concat(t,",").concat(e,"%,").concat(n,"%)")}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")"):"rgb(".concat(this.r,",").concat(this.g,",").concat(this.b,")")}toString(){return this.toRgbString()}_sc(t,e,n){const i=this.clone();return i[t]=d(e,n),i}_c(t){return new this.constructor(t)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const e=t.replace("#","");function n(t,n){return parseInt(e[t]+e[n||t],16)}e.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=e[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=e[6]?n(6,7)/255:1)}fromHsl(t){let{h:e,s:n,l:i,a:r}=t;if(this._h=e%360,this._s=n,this._l=i,this.a="number"===typeof r?r:1,n<=0){const t=u(255*i);this.r=t,this.g=t,this.b=t}let o=0,s=0,a=0;const l=e/60,c=(1-Math.abs(2*i-1))*n,h=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,s=h):l>=1&&l<2?(o=h,s=c):l>=2&&l<3?(s=c,a=h):l>=3&&l<4?(s=h,a=c):l>=4&&l<5?(o=h,a=c):l>=5&&l<6&&(o=c,a=h);const d=i-c/2;this.r=u(255*(o+d)),this.g=u(255*(s+d)),this.b=u(255*(a+d))}fromHsv(t){let{h:e,s:n,v:i,a:r}=t;this._h=e%360,this._s=n,this._v=i,this.a="number"===typeof r?r:1;const o=u(255*i);if(this.r=o,this.g=o,this.b=o,n<=0)return;const s=e/60,a=Math.floor(s),l=s-a,c=u(i*(1-n)*255),h=u(i*(1-n*l)*255),d=u(i*(1-n*(1-l))*255);switch(a){case 0:this.g=d,this.b=c;break;case 1:this.r=h,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=h;break;case 4:this.r=d,this.g=c;break;default:this.g=c,this.b=h}}fromHsvString(t){const e=c(t,h);this.fromHsv({h:e[0],s:e[1],v:e[2],a:e[3]})}fromHslString(t){const e=c(t,h);this.fromHsl({h:e[0],s:e[1],l:e[2],a:e[3]})}fromRgbString(t){const e=c(t,(t,e)=>e.includes("%")?u(t/100*255):t);this.r=e[0],this.g=e[1],this.b=e[2],this.a=e[3]}}const p=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function g(t,e,n){let i;return i=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e,i<0?i+=360:i>=360&&(i-=360),i}function m(t,e,n){if(0===t.h&&0===t.s)return t.s;let i;return i=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e,i>1&&(i=1),n&&5===e&&i>.1&&(i=.1),i<.06&&(i=.06),Math.round(100*i)/100}function v(t,e,n){let i;return i=n?t.v+.05*e:t.v-.15*e,i=Math.max(0,Math.min(1,i)),Math.round(100*i)/100}const y=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];y.primary=y[5];const b=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];b.primary=b[5];const w=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];w.primary=w[5];const D=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];D.primary=D[5];const A=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];A.primary=A[5];const x=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];x.primary=x[5];const C=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];C.primary=C[5];const S=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];S.primary=S[5];const F=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];F.primary=F[5];const E=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];E.primary=E[5];const k=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];k.primary=k[5];const M=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];M.primary=M[5];const T=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];T.primary=T[5];const P=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];P.primary=P[5];const _=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];_.primary=_[5];const R=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];R.primary=R[5];const B=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];B.primary=B[5];const I=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];I.primary=I[5];const N=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];N.primary=N[5];const L=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];L.primary=L[5];const O=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];O.primary=O[5];const W=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];W.primary=W[5];const z=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];z.primary=z[5];const j=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];j.primary=j[5];const U=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];U.primary=U[5];const G=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];G.primary=G[5];const V=(0,r.createContext)({});var H=n(89379);const q="data-rc-order",X="data-rc-priority",K=new Map;function Y(){let{mark:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function Z(t){if(t.attachTo)return t.attachTo;return document.querySelector("head")||document.body}function Q(t){return Array.from((K.get(t)||t).children).filter(t=>"STYLE"===t.tagName)}function J(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"===typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:i,priority:r=0}=e,o=function(t){return"queue"===t?"prependQueue":t?"prepend":"append"}(i),s="prependQueue"===o,a=document.createElement("style");a.setAttribute(q,o),s&&r&&a.setAttribute(X,"".concat(r)),null!==n&&void 0!==n&&n.nonce&&(a.nonce=null===n||void 0===n?void 0:n.nonce),a.innerHTML=t;const l=Z(e),{firstChild:u}=l;if(i){if(s){const t=(e.styles||Q(l)).filter(t=>{if(!["prepend","prependQueue"].includes(t.getAttribute(q)))return!1;const e=Number(t.getAttribute(X)||0);return r>=e});if(t.length)return l.insertBefore(a,t[t.length-1].nextSibling),a}l.insertBefore(a,u)}else l.appendChild(a);return a}function $(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{styles:n}=e;return n||(n=Q(Z(e))),n.find(n=>n.getAttribute(Y(e))===t)}function tt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=Z(n),r=Q(i),o=(0,H.A)((0,H.A)({},n),{},{styles:r});!function(t,e){const n=K.get(t);if(!n||!function(t,e){if(!t)return!1;if(t.contains)return t.contains(e);let n=e;for(;n;){if(n===t)return!0;n=n.parentNode}return!1}(document,n)){const n=J("",e),{parentNode:i}=n;K.set(t,i),t.removeChild(n)}}(i,o);const s=$(e,o);if(s){var a,l,u;if(null!==(a=o.csp)&&void 0!==a&&a.nonce&&s.nonce!==(null===(l=o.csp)||void 0===l?void 0:l.nonce))s.nonce=null===(u=o.csp)||void 0===u?void 0:u.nonce;return s.innerHTML!==t&&(s.innerHTML=t),s}const c=J(t,o);return c.setAttribute(Y(o),e),c}function et(t){var e;return null===t||void 0===t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}function nt(t){return function(t){return et(t)instanceof ShadowRoot}(t)?et(t):null}let it={};const rt=[];function ot(t,e){0}function st(t,e){0}function at(t,e,n){e||it[n]||(t(!1,n),it[n]=!0)}function lt(t,e){at(ot,t,e)}lt.preMessage=t=>{rt.push(t)},lt.resetWarned=function(){it={}},lt.noteOnce=function(t,e){at(st,t,e)};function ut(t){return"object"===typeof t&&"string"===typeof t.name&&"string"===typeof t.theme&&("object"===typeof t.icon||"function"===typeof t.icon)}function ct(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((e,n)=>{const i=t[n];if("class"===n)e.className=i,delete e.class;else delete e[n],e[(r=n,r.replace(/-(.)/g,(t,e)=>e.toUpperCase()))]=i;var r;return e},{})}function ht(t,e,n){return n?o().createElement(t.tag,(0,H.A)((0,H.A)({key:e},ct(t.attrs)),n),(t.children||[]).map((n,i)=>ht(n,"".concat(e,"-").concat(t.tag,"-").concat(i)))):o().createElement(t.tag,(0,H.A)({key:e},ct(t.attrs)),(t.children||[]).map((n,i)=>ht(n,"".concat(e,"-").concat(t.tag,"-").concat(i))))}function dt(t){return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[],i=new f(t),r=i.toHsv();for(let o=5;o>0;o-=1){const t=new f({h:g(r,o,!0),s:m(r,o,!0),v:v(r,o,!0)});n.push(t)}n.push(i);for(let o=1;o<=4;o+=1){const t=new f({h:g(r,o),s:m(r,o),v:v(r,o)});n.push(t)}return"dark"===e.theme?p.map(t=>{let{index:i,amount:r}=t;return new f(e.backgroundColor||"#141414").mix(n[i],r).toHexString()}):n.map(t=>t.toHexString())}(t)[0]}function ft(t){return t?Array.isArray(t)?t:[t]:[]}const pt=["icon","className","onClick","style","primaryColor","secondaryColor"],gt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const mt=t=>{const{icon:e,className:n,onClick:o,style:s,primaryColor:a,secondaryColor:l}=t,u=(0,i.A)(t,pt),c=r.useRef(null);let h=gt;var d,f;if(a&&(h={primaryColor:a,secondaryColor:l||dt(a)}),(t=>{const{csp:e,prefixCls:n,layer:i}=(0,r.useContext)(V);let o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),i&&(o="@layer ".concat(i," {\n").concat(o,"\n}")),(0,r.useEffect)(()=>{const n=nt(t.current);tt(o,"@ant-design-icons",{prepend:!i,csp:e,attachTo:n})},[])})(c),d=ut(e),f="icon should be icon definiton, but got ".concat(e),lt(d,"[@ant-design/icons] ".concat(f)),!ut(e))return null;let p=e;return p&&"function"===typeof p.icon&&(p=(0,H.A)((0,H.A)({},p),{},{icon:p.icon(h.primaryColor,h.secondaryColor)})),ht(p.icon,"svg-".concat(p.name),(0,H.A)((0,H.A)({className:n,onClick:o,style:s,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};mt.displayName="IconReact",mt.getTwoToneColors=function(){return(0,H.A)({},gt)},mt.setTwoToneColors=function(t){let{primaryColor:e,secondaryColor:n}=t;gt.primaryColor=e,gt.secondaryColor=n||dt(e),gt.calculated=!!n};const vt=mt;function yt(t){const[e,n]=ft(t);return vt.setTwoToneColors({primaryColor:e,secondaryColor:n})}const bt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function wt(){return wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},wt.apply(this,arguments)}yt(F.primary);const Dt=r.forwardRef((t,e)=>{const{className:n,icon:o,spin:a,rotate:l,tabIndex:u,onClick:c,twoToneColor:h}=t,d=(0,i.A)(t,bt),{prefixCls:f="anticon",rootClassName:p}=r.useContext(V),g=(0,s.$)(p,f,{["".concat(f,"-").concat(o.name)]:!!o.name,["".concat(f,"-spin")]:!!a||"loading"===o.name},n);let m=u;void 0===m&&c&&(m=-1);const v=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,[y,b]=ft(h);return r.createElement("span",wt({role:"img","aria-label":o.name},d,{ref:e,tabIndex:m,onClick:c,className:g}),r.createElement(vt,{icon:o,primaryColor:y,secondaryColor:b,style:v}))});Dt.getTwoToneColor=function(){const t=vt.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},Dt.setTwoToneColor=yt;const At=Dt},90931:(t,e,n)=>{var i=n(99635),r=n(76003);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},90999:(t,e,n)=>{"use strict";n.d(e,{PDFDocument:()=>pa});var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function s(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(e){o(e)}}function a(t){try{l(i.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}l((i=i.apply(t,e||[])).next())})}function a(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function l(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}for(var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=new Uint8Array(256),h=0;h<64;h++)c[u.charCodeAt(h)]=h;var d,f=function(t){var e,n,i,r,o,s=.75*t.length,a=t.length,l=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var u=new Uint8Array(s);for(e=0;e<a;e+=4)n=c[t.charCodeAt(e)],i=c[t.charCodeAt(e+1)],r=c[t.charCodeAt(e+2)],o=c[t.charCodeAt(e+3)],u[l++]=n<<2|i>>4,u[l++]=(15&i)<<4|r>>2,u[l++]=(3&r)<<6|63&o;return u},p=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,g=function(t){return t.charCodeAt(0)},m=function(t){return t.codePointAt(0)},v=function(t,e){return w(t.toString(16),e,"0").toUpperCase()},y=function(t){return v(t,2)},b=function(t){return String.fromCharCode(t)},w=function(t,e,n){for(var i="",r=0,o=e-t.length;r<o;r++)i+=n;return i+t},D=function(t,e,n){for(var i=t.length,r=0;r<i;r++)e[n++]=t.charCodeAt(r);return i},A=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},x=function(t){return t.replace(/\t|\u0085|\u2028|\u2029/g," ").replace(/[\b\v]/g,"")},C=["\\n","\\f","\\r","\\u000B"],S=function(t){return/^[\n\f\r\u000B]$/.test(t)},F=function(t){return t.split(/[\n\f\r\u000B]/)},E=function(t){return t.replace(/[\n\f\r\u000B]/g," ")},k=function(t,e){var n,i=t.charCodeAt(e),r=e+1,o=1;return i>=55296&&i<=56319&&t.length>r&&(n=t.charCodeAt(r))>=56320&&n<=57343&&(o=2),[t.slice(e,e+o),o]},M=function(t,e,n,i){for(var r=function(t){for(var e=C.join("|"),n=["$"],i=0,r=t.length;i<r;i++){var o=t[i];if(S(o))throw new TypeError("`wordBreak` must not include "+e);n.push(""===o?".":A(o))}var s=n.join("|");return new RegExp("("+e+")|((.*?)("+s+"))","gm")}(e),o=x(t).match(r),s="",a=0,l=[],u=function(){""!==s&&l.push(s),s="",a=0},c=0,h=o.length;c<h;c++){var d=o[c];if(S(d))u();else{var f=i(d);a+f>n&&u(),s+=d,a+=f}}return u(),l},T=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,P=function(t){var e=t.match(T);if(e){var n=e[1],i=e[2],r=void 0===i?"01":i,o=e[3],s=void 0===o?"01":o,a=e[4],l=void 0===a?"00":a,u=e[5],c=void 0===u?"00":u,h=e[6],d=void 0===h?"00":h,f=e[7],p=void 0===f?"Z":f,g=e[8],m=void 0===g?"00":g,v=e[9];return new Date(n+"-"+r+"-"+s+"T"+l+":"+c+":"+d+("Z"===p?"Z":""+p+m+":"+(void 0===v?"00":v)))}},_=function(t,e){for(var n,i,r=0;r<t.length;){var o=t.substring(r).match(e);if(!o)return{match:i,pos:r};i=o,r+=(null!==(n=o.index)&&void 0!==n?n:0)+o[0].length}return{match:i,pos:r}},R=function(t){return t[t.length-1]},B=function(t){if(t instanceof Uint8Array)return t;for(var e=t.length,n=new Uint8Array(e),i=0;i<e;i++)n[i]=t.charCodeAt(i);return n},I=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.length,i=[],r=0;r<n;r++){var o=t[r];i[r]=o instanceof Uint8Array?o:B(o)}var s=0;for(r=0;r<n;r++)s+=t[r].length;for(var a=new Uint8Array(s),l=0,u=0;u<n;u++)for(var c=i[u],h=0,d=c.length;h<d;h++)a[l++]=c[h];return a},N=function(t){for(var e="",n=0,i=t.length;n<i;n++)e+=b(t[n]);return e},L=function(t,e){return t.id-e.id},O=function(t){for(var e=t.length,n=0,i=Math.floor(e/2);n<i;n++){var r=n,o=e-n-1,s=t[n];t[r]=t[o],t[o]=s}return t},W=function(t){if("string"===typeof t)return function(t){var e=t.trim(),n=e.substring(0,100).match(p);if(!n)return f(e);var i=n[0],r=e.substring(i.length);return f(r)}(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(t instanceof Uint8Array)return t;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},z=function(){return new Promise(function(t){setTimeout(function(){return t()},0)})},j=function(t){return Math.floor((t-65536)/1024)+55296},U=function(t){return(t-65536)%1024+56320};!function(t){t.BigEndian="BigEndian",t.LittleEndian="LittleEndian"}(d||(d={}));for(var G="\ufffd".codePointAt(0),V=function(t,e){if(void 0===e&&(e=!0),t.length<=1)return String.fromCodePoint(G);for(var n=e?K(t):d.BigEndian,i=e?2:0,r=[];t.length-i>=2;){var o=X(t[i++],t[i++],n);if(H(o))if(t.length-i<2)r.push(G);else{var s=X(t[i++],t[i++],n);q(s)?r.push(o,s):r.push(G)}else q(o)?(i+=2,r.push(G)):r.push(o)}return i<t.length&&r.push(G),String.fromCodePoint.apply(String,r)},H=function(t){return t>=55296&&t<=56319},q=function(t){return t>=56320&&t<=57343},X=function(t,e,n){if(n===d.LittleEndian)return e<<8|t;if(n===d.BigEndian)return t<<8|e;throw new Error("Invalid byteOrder: "+n)},K=function(t){return Y(t)?d.BigEndian:Z(t)?d.LittleEndian:d.BigEndian},Y=function(t){return 254===t[0]&&255===t[1]},Z=function(t){return 255===t[0]&&254===t[1]},Q=function(t){return Y(t)||Z(t)},J=function(t){return Math.ceil(t.toString(2).length/8)},$=function(t){for(var e=new Uint8Array(J(t)),n=1;n<=e.length;n++)e[n-1]=t>>8*(e.length-n);return e},tt=function(t){throw new Error(t)},et=n(55407),nt=n.n(et),it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=new Uint8Array(256),ot=0;ot<64;ot++)rt[it.charCodeAt(ot)]=ot;var st=function(t){return function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}(nt().inflate(function(t){var e,n,i,r,o,s=.75*t.length,a=t.length,l=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var u=new Uint8Array(s);for(e=0;e<a;e+=4)n=rt[t.charCodeAt(e)],i=rt[t.charCodeAt(e+1)],r=rt[t.charCodeAt(e+2)],o=rt[t.charCodeAt(e+3)],u[l++]=n<<2|i>>4,u[l++]=(15&i)<<4|r>>2,u[l++]=(3&r)<<6|63&o;return u}(t)))};var at,lt={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/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PSY0uaQsyr65L2oKi1yFt1PLaQ3lzfXTgXodGoJYzglndSLDMPg1sTPJpQJHJigw0QrGERqD9YhyTOgONQDUyuF1zaxuokc/BW2ztXCMrGZ9WMW1oQZHIXWNBkSCfRZEL5BMUiZw6CzVSFCfUSGZFNjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w=="};!function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.HelveticaBold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"}(at||(at={}));var ut={},ct=function(){function t(){var t=this;this.getWidthOfGlyph=function(e){return t.CharWidths[e]},this.getXAxisKerningForPair=function(e,n){return(t.KernPairXAmounts[e]||{})[n]}}return t.load=function(e){var n=ut[e];if(n)return n;var i=st(lt[e]),r=Object.assign(new t,JSON.parse(i));return r.CharWidths=r.CharMetrics.reduce(function(t,e){return t[e.N]=e.WX,t},{}),r.KernPairXAmounts=r.KernPairs.reduce(function(t,e){var n=e[0],i=e[1],r=e[2];return t[n]||(t[n]={}),t[n][i]=r,t},{}),ut[e]=r,r},t}();for(var ht=st("eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK4BCAFzG+xWCQgXF02Y3nU4dJJVKKrx5mPgKBVMImOvYXY+QKJRCoHzXzxMErQrap810hqaloioF1e0L5kvFUwqe23Hu+Q+1TinWeZnuMwSKrRRsL8Nn/kOxlYLtOnzFWE1Viqmu/eceVioVaylYe1OwVKilQD0PCYgiLRtVcJz4kEItW13mNLi0UsCVAB77KyxTKeJKEPff3rsREkVcCeLD3He3HqArBV0J6G/v/fU2cK1WH23l0e3c7T71N9uUVv/c5i73bWlVs1Y0u5/3srO7aQb2EPUB+eUTva0TYgG5mGbbzZSUkJTpn75ygF4PThhq1SMGMds4HYZdN54n/rdWc8rv02bfH9I2hbqGsKbPnIYzHSc0qmTIxI6nuwpiAIQmU8F4Gy7jK8RwntAI1v3wedj39FmFECp508s4zUOyGmwpKrwbL8eOIlVU//Yf/S1J9C212Pa/uuSwbVDYlWzxf/aj/UtfWgm258t1G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(ht),ft=function(t,e){var n=this;this.canEncodeUnicodeCodePoint=function(t){return t in n.unicodeMappings},this.encodeUnicodeCodePoint=function(t){var e=n.unicodeMappings[t];if(!e){var i=String.fromCharCode(t),r="0x"+function(t,e,n){for(var i="",r=0,o=e-t.length;r<o;r++)i+=n;return i+t}(t.toString(16),4,"0"),o=n.name+' cannot encode "'+i+'" ('+r+")";throw new Error(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},pt={Symbol:new ft("Symbol",dt.symbol),ZapfDingbats:new ft("ZapfDingbats",dt.zapfdingbats),WinAnsi:new ft("WinAnsi",dt.win1252)},gt=function(t){return Object.keys(t).map(function(e){return t[e]})},mt=gt(at),vt=function(t){return mt.includes(t)},yt=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},bt=function(t){return"`"+t+"`"},wt=function(t){var e=typeof t;return"string"===e?"'"+t+"'":"undefined"===e?bt(t):t},Dt=function(t,e,n){Array.isArray(n)||(n=gt(n));for(var i=0,r=n.length;i<r;i++)if(t===n[i])return;throw new TypeError(function(t,e,n){for(var i=new Array(n.length),r=0,o=n.length;r<o;r++){var s=n[r];i[r]=wt(s)}var a=i.join(" or ");return bt(e)+" must be one of "+a+", but was actually "+wt(t)}(t,e,n))},At=function(t,e,n){Array.isArray(n)||(n=gt(n)),Dt(t,e,n.concat(void 0))},xt=function(t,e){return"null"===e?null===t:"undefined"===e?void 0===t:"string"===e?"string"===typeof t:"number"===e?"number"===typeof t&&!isNaN(t):"boolean"===e?"boolean"===typeof t:"symbol"===e?"symbol"===typeof t:"bigint"===e?"bigint"===typeof t:e===Date?t instanceof Date:e===Array?t instanceof Array:e===Uint8Array?t instanceof Uint8Array:e===ArrayBuffer?t instanceof ArrayBuffer:e===Function?t instanceof Function:t instanceof e[0]},Ct=function(t,e,n){for(var i=new Array(n.length),r=0,o=n.length;r<o;r++){var s=n[r];"null"===s&&(i[r]=bt("null")),"undefined"===s&&(i[r]=bt("undefined")),"string"===s?i[r]=bt("string"):"number"===s?i[r]=bt("number"):"boolean"===s?i[r]=bt("boolean"):"symbol"===s?i[r]=bt("symbol"):"bigint"===s?i[r]=bt("bigint"):s===Array?i[r]=bt("Array"):s===Uint8Array?i[r]=bt("Uint8Array"):s===ArrayBuffer?i[r]=bt("ArrayBuffer"):i[r]=bt(s[1])}var a,l=i.join(" or ");return bt(e)+" must be of type "+l+", but was actually of type "+bt(null===(a=t)?"null":void 0===a?"undefined":"string"===typeof a?"string":isNaN(a)?"NaN":"number"===typeof a?"number":"boolean"===typeof a?"boolean":"symbol"===typeof a?"symbol":"bigint"===typeof a?"bigint":a.constructor&&a.constructor.name?a.constructor.name:a.name?a.name:a.constructor?String(a.constructor):String(a))},St=function(t,e,n){for(var i=0,r=n.length;i<r;i++)if(xt(t,n[i]))return;throw new TypeError(Ct(t,e,n))},Ft=function(t,e,n){St(t,e,n.concat("undefined"))},Et=function(t,e,n){for(var i=0,r=t.length;i<r;i++)St(t[i],e,n)},kt=function(t,e,n,i){if(St(t,e,["number"]),St(n,"min",["number"]),St(i,"max",["number"]),i=Math.max(n,i),t<n||t>i)throw new Error(bt(e)+" must be at least "+n+" and at most "+i+", but was actually "+t)},Mt=function(t,e,n,i){St(t,e,["number","undefined"]),"number"===typeof t&&kt(t,e,n,i)},Tt=function(t,e,n){if(St(t,e,["number"]),t%n!==0)throw new Error(bt(e)+" must be a multiple of "+n+", but was actually "+t)},Pt=function(t,e){if(![1,0].includes(Math.sign(t)))throw new Error(bt(e)+" must be a positive number or 0, but was actually "+t)},_t=new Uint16Array(256),Rt=0;Rt<256;Rt++)_t[Rt]=Rt;_t[22]=g("\x17"),_t[24]=g("\u02d8"),_t[25]=g("\u02c7"),_t[26]=g("\u02c6"),_t[27]=g("\u02d9"),_t[28]=g("\u02dd"),_t[29]=g("\u02db"),_t[30]=g("\u02da"),_t[31]=g("\u02dc"),_t[127]=g("\ufffd"),_t[128]=g("\u2022"),_t[129]=g("\u2020"),_t[130]=g("\u2021"),_t[131]=g("\u2026"),_t[132]=g("\u2014"),_t[133]=g("\u2013"),_t[134]=g("\u0192"),_t[135]=g("\u2044"),_t[136]=g("\u2039"),_t[137]=g("\u203a"),_t[138]=g("\u2212"),_t[139]=g("\u2030"),_t[140]=g("\u201e"),_t[141]=g("\u201c"),_t[142]=g("\u201d"),_t[143]=g("\u2018"),_t[144]=g("\u2019"),_t[145]=g("\u201a"),_t[146]=g("\u2122"),_t[147]=g("\ufb01"),_t[148]=g("\ufb02"),_t[149]=g("\u0141"),_t[150]=g("\u0152"),_t[151]=g("\u0160"),_t[152]=g("\u0178"),_t[153]=g("\u017d"),_t[154]=g("\u0131"),_t[155]=g("\u0142"),_t[156]=g("\u0153"),_t[157]=g("\u0161"),_t[158]=g("\u017e"),_t[159]=g("\ufffd"),_t[160]=g("\u20ac"),_t[173]=g("\ufffd");var Bt=function(t){for(var e=new Array(t.length),n=0,i=t.length;n<i;n++)e[n]=_t[t[n]];return String.fromCodePoint.apply(String,e)};const It=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}();var Nt,Lt=function(t){function e(e,n){var i="Method "+e+"."+n+"() not implemented";return t.call(this,i)||this}return r(e,t),e}(Error),Ot=function(t){function e(e){var n="Cannot construct "+e+" - it has a private constructor";return t.call(this,n)||this}return r(e,t),e}(Error),Wt=function(t){function e(e,n){var i=function(t){var e,n;return null!==(e=null===t||void 0===t?void 0:t.name)&&void 0!==e?e:null===(n=null===t||void 0===t?void 0:t.constructor)||void 0===n?void 0:n.name},r="Expected instance of "+(Array.isArray(e)?e.map(i):[i(e)]).join(" or ")+", but got instance of "+(n?i(n):n);return t.call(this,r)||this}return r(e,t),e}(Error),zt=function(t){function e(e){var n=e+" stream encoding not supported";return t.call(this,n)||this}return r(e,t),e}(Error),jt=function(t){function e(e,n){var i="Cannot call "+e+"."+n+"() more than once";return t.call(this,i)||this}return r(e,t),e}(Error),Ut=(function(t){function e(e){var n="Missing catalog (ref="+e+")";return t.call(this,n)||this}r(e,t)}(Error),function(t){function e(){return t.call(this,"Can't embed page with missing Contents")||this}return r(e,t),e}(Error)),Gt=function(t){function e(e){var n,i,r,o="Unrecognized stream type: "+(null!==(r=null!==(i=null===(n=null===e||void 0===e?void 0:e.contructor)||void 0===n?void 0:n.name)&&void 0!==i?i:null===e||void 0===e?void 0:e.name)&&void 0!==r?r:e);return t.call(this,o)||this}return r(e,t),e}(Error),Vt=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 r(e,t),e}(Error),Ht=function(t){function e(e){var n="Attempted to convert PDFArray with "+e+" elements to rectangle, but must have exactly 4 elements.";return t.call(this,n)||this}return r(e,t),e}(Error),qt=function(t){function e(e){var n='Attempted to convert "'+e+'" to a date, but it does not match the PDF date string format.';return t.call(this,n)||this}return r(e,t),e}(Error),Xt=function(t){function e(e,n){var i="Invalid targetIndex specified: targetIndex="+e+" must be less than Count="+n;return t.call(this,i)||this}return r(e,t),e}(Error),Kt=function(t){function e(e,n){var i="Failed to "+n+" at targetIndex="+e+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return t.call(this,i)||this}return r(e,t),e}(Error),Yt=function(t){function e(e,n,i){var r="index should be at least "+n+" and at most "+i+", but was actually "+e;return t.call(this,r)||this}return r(e,t),e}(Error),Zt=function(t){function e(){return t.call(this,"Attempted to set invalid field value")||this}return r(e,t),e}(Error),Qt=function(t){function e(){return t.call(this,"Attempted to select multiple values for single-select field")||this}return r(e,t),e}(Error),Jt=function(t){function e(e){var n="No /DA (default appearance) entry found for field: "+e;return t.call(this,n)||this}return r(e,t),e}(Error),$t=function(t){function e(e){var n="No Tf operator found for DA of field: "+e;return t.call(this,n)||this}return r(e,t),e}(Error),te=function(t){function e(e,n){var i="Failed to parse number (line:"+e.line+" col:"+e.column+" offset="+e.offset+'): "'+n+'"';return t.call(this,i)||this}return r(e,t),e}(Error),ee=function(t){function e(e,n){var i="Failed to parse PDF document (line:"+e.line+" col:"+e.column+" offset="+e.offset+"): "+n;return t.call(this,i)||this}return r(e,t),e}(Error),ne=function(t){function e(e,n,i){var r="Expected next byte to be "+n+" but it was actually "+i;return t.call(this,e,r)||this}return r(e,t),e}(ee),ie=function(t){function e(e,n){var i="Failed to parse PDF object starting with the following byte: "+n;return t.call(this,e,i)||this}return r(e,t),e}(ee),re=function(t){function e(e){return t.call(this,e,"Failed to parse invalid PDF object")||this}return r(e,t),e}(ee),oe=function(t){function e(e){return t.call(this,e,"Failed to parse PDF stream")||this}return r(e,t),e}(ee),se=function(t){function e(e){return t.call(this,e,"Failed to parse PDF literal string due to unbalanced parenthesis")||this}return r(e,t),e}(ee),ae=function(t){function e(e){return t.call(this,e,"Parser stalled")||this}return r(e,t),e}(ee),le=function(t){function e(e){return t.call(this,e,"No PDF header found")||this}return r(e,t),e}(ee),ue=function(t){function e(e,n){var i="Did not find expected keyword '"+N(n)+"'";return t.call(this,e,i)||this}return r(e,t),e}(ee);!function(t){t[t.Null=0]="Null",t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Newline=10]="Newline",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationPoint=33]="ExclamationPoint",t[t.Hash=35]="Hash",t[t.Percent=37]="Percent",t[t.LeftParen=40]="LeftParen",t[t.RightParen=41]="RightParen",t[t.Plus=43]="Plus",t[t.Minus=45]="Minus",t[t.Dash=45]="Dash",t[t.Period=46]="Period",t[t.ForwardSlash=47]="ForwardSlash",t[t.Zero=48]="Zero",t[t.One=49]="One",t[t.Two=50]="Two",t[t.Three=51]="Three",t[t.Four=52]="Four",t[t.Five=53]="Five",t[t.Six=54]="Six",t[t.Seven=55]="Seven",t[t.Eight=56]="Eight",t[t.Nine=57]="Nine",t[t.LessThan=60]="LessThan",t[t.GreaterThan=62]="GreaterThan",t[t.A=65]="A",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.O=79]="O",t[t.P=80]="P",t[t.R=82]="R",t[t.LeftSquareBracket=91]="LeftSquareBracket",t[t.BackSlash=92]="BackSlash",t[t.RightSquareBracket=93]="RightSquareBracket",t[t.a=97]="a",t[t.b=98]="b",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.i=105]="i",t[t.j=106]="j",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.x=120]="x",t[t.LeftCurly=123]="LeftCurly",t[t.RightCurly=125]="RightCurly",t[t.Tilde=126]="Tilde"}(Nt||(Nt={}));const ce=Nt;const he=function(){function t(t,e){this.major=String(t),this.minor=String(e)}return t.prototype.toString=function(){var t=b(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 n=e;return t[e++]=ce.Percent,t[e++]=ce.P,t[e++]=ce.D,t[e++]=ce.F,t[e++]=ce.Dash,e+=D(this.major,t,e),t[e++]=ce.Period,e+=D(this.minor,t,e),t[e++]=ce.Newline,t[e++]=ce.Percent,t[e++]=129,t[e++]=129,t[e++]=129,t[e++]=129,e-n},t.forVersion=function(e,n){return new t(e,n)},t}();const de=function(){function t(){}return t.prototype.clone=function(t){throw new Lt(this.constructor.name,"clone")},t.prototype.toString=function(){throw new Lt(this.constructor.name,"toString")},t.prototype.sizeInBytes=function(){throw new Lt(this.constructor.name,"sizeInBytes")},t.prototype.copyBytesInto=function(t,e){throw new Lt(this.constructor.name,"copyBytesInto")},t}();const fe=function(t){function e(e){var n=t.call(this)||this;return n.numberValue=e,n.stringValue=function(t){var e,n=String(t);if(Math.abs(t)<1){if(e=parseInt(t.toString().split("e-")[1])){var i=t<0;i&&(t*=-1),t*=Math.pow(10,e-1),n="0."+new Array(e).join("0")+t.toString().substring(2),i&&(n="-"+n)}}else(e=parseInt(t.toString().split("+")[1]))>20&&(e-=20,n=(t/=Math.pow(10,e)).toString()+new Array(e+1).join("0"));return n}(e),n}return r(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+=D(this.stringValue,t,e),this.stringValue.length},e.of=function(t){return new e(t)},e}(de);var pe=function(t){function e(e){var n=t.call(this)||this;return n.array=[],n.context=e,n}return r(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,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return(e=this.context).lookupMaybe.apply(e,l([this.get(t)],n))},e.prototype.lookup=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return(e=this.context).lookup.apply(e,l([this.get(t)],n))},e.prototype.asRectangle=function(){if(4!==this.size())throw new Ht(this.size());var t=this.lookup(0,fe).asNumber(),e=this.lookup(1,fe).asNumber();return{x:t,y:e,width:this.lookup(2,fe).asNumber()-t,height:this.lookup(3,fe).asNumber()-e}},e.prototype.asArray=function(){return this.array.slice()},e.prototype.clone=function(t){for(var n=e.withContext(t||this.context),i=0,r=this.size();i<r;i++)n.push(this.array[i]);return n},e.prototype.toString=function(){for(var t="[ ",e=0,n=this.size();e<n;e++)t+=this.get(e).toString(),t+=" ";return t+="]"},e.prototype.sizeInBytes=function(){for(var t=3,e=0,n=this.size();e<n;e++)t+=this.get(e).sizeInBytes()+1;return t},e.prototype.copyBytesInto=function(t,e){var n=e;t[e++]=ce.LeftSquareBracket,t[e++]=ce.Space;for(var i=0,r=this.size();i<r;i++)e+=this.get(i).copyBytesInto(t,e),t[e++]=ce.Space;return t[e++]=ce.RightSquareBracket,e-n},e.prototype.scalePDFNumbers=function(t,e){for(var n=0,i=this.size();n<i;n++){var r=this.lookup(n);if(r instanceof fe){var o=n%2===0?t:e;this.set(n,fe.of(r.asNumber()*o))}}},e.withContext=function(t){return new e(t)},e}(de);const ge=pe;var me={};const ve=function(t){function e(e,n){var i=this;if(e!==me)throw new Ot("PDFBool");return(i=t.call(this)||this).value=n,i}return r(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++]=ce.t,t[e++]=ce.r,t[e++]=ce.u,t[e++]=ce.e,4):(t[e++]=ce.f,t[e++]=ce.a,t[e++]=ce.l,t[e++]=ce.s,t[e++]=ce.e,5)},e.True=new e(me,!0),e.False=new e(me,!1),e}(de);var ye=new Uint8Array(256);ye[ce.LeftParen]=1,ye[ce.RightParen]=1,ye[ce.LessThan]=1,ye[ce.GreaterThan]=1,ye[ce.LeftSquareBracket]=1,ye[ce.RightSquareBracket]=1,ye[ce.LeftCurly]=1,ye[ce.RightCurly]=1,ye[ce.ForwardSlash]=1,ye[ce.Percent]=1;var be=new Uint8Array(256);be[ce.Null]=1,be[ce.Tab]=1,be[ce.Newline]=1,be[ce.FormFeed]=1,be[ce.CarriageReturn]=1,be[ce.Space]=1;for(var we=new Uint8Array(256),De=0;De<256;De++)we[De]=be[De]||ye[De]?1:0;we[ce.Hash]=1;var Ae=function(t){return t.replace(/#([\dABCDEF]{2})/g,function(t,e){return function(t){return b(parseInt(t,16))}(e)})},xe=function(t){return t>=ce.ExclamationPoint&&t<=ce.Tilde&&!we[t]},Ce={},Se=new Map,Fe=function(t){function e(e,n){var i=this;if(e!==Ce)throw new Ot("PDFName");i=t.call(this)||this;for(var r="/",o=0,s=n.length;o<s;o++){var a=n[o],l=g(a);r+=xe(l)?a:"#"+y(l)}return i.encodedName=r,i}return r(e,t),e.prototype.asBytes=function(){for(var t=[],e="",n=!1,i=function(e){void 0!==e&&t.push(e),n=!1},r=1,o=this.encodedName.length;r<o;r++){var s=this.encodedName[r],a=g(s),l=this.encodedName[r+1];n?a>=ce.Zero&&a<=ce.Nine||a>=ce.a&&a<=ce.f||a>=ce.A&&a<=ce.F?2!==(e+=s).length&&(l>="0"&&l<="9"||l>="a"&&l<="f"||l>="A"&&l<="F")||(i(parseInt(e,16)),e=""):i(a):a===ce.Hash?n=!0:i(a)}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+=D(this.encodedName,t,e),this.encodedName.length},e.of=function(t){var n=Ae(t),i=Se.get(n);return i||(i=new e(Ce,n),Se.set(n,i)),i},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}(de);const Ee=Fe;const ke=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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++]=ce.n,t[e++]=ce.u,t[e++]=ce.l,t[e++]=ce.l,4},e}(de));var Me=function(t){function e(e,n){var i=t.call(this)||this;return i.dict=e,i.context=n,i}return r(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 n=this.dict.get(t);if(n!==ke||e)return n},e.prototype.has=function(t){var e=this.dict.get(t);return void 0!==e&&e!==ke},e.prototype.lookupMaybe=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=n.includes(ke),o=(e=this.context).lookupMaybe.apply(e,l([this.get(t,r)],n));if(o!==ke||r)return o},e.prototype.lookup=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=n.includes(ke),o=(e=this.context).lookup.apply(e,l([this.get(t,r)],n));if(o!==ke||r)return o},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(),n=Ee.of(this.context.addRandomSuffix(t,10));e.includes(n);)n=Ee.of(this.context.addRandomSuffix(t,10));return n},e.prototype.clone=function(t){for(var n=e.withContext(t||this.context),i=this.entries(),r=0,o=i.length;r<o;r++){var s=i[r],a=s[0],l=s[1];n.set(a,l)}return n},e.prototype.toString=function(){for(var t="<<\n",e=this.entries(),n=0,i=e.length;n<i;n++){var r=e[n],o=r[0],s=r[1];t+=o.toString()+" "+s.toString()+"\n"}return t+=">>"},e.prototype.sizeInBytes=function(){for(var t=5,e=this.entries(),n=0,i=e.length;n<i;n++){var r=e[n],o=r[0],s=r[1];t+=o.sizeInBytes()+s.sizeInBytes()+2}return t},e.prototype.copyBytesInto=function(t,e){var n=e;t[e++]=ce.LessThan,t[e++]=ce.LessThan,t[e++]=ce.Newline;for(var i=this.entries(),r=0,o=i.length;r<o;r++){var s=i[r],a=s[0],l=s[1];e+=a.copyBytesInto(t,e),t[e++]=ce.Space,e+=l.copyBytesInto(t,e),t[e++]=ce.Newline}return t[e++]=ce.GreaterThan,t[e++]=ce.GreaterThan,e-n},e.withContext=function(t){return new e(new Map,t)},e.fromMapWithContext=function(t,n){return new e(t,n)},e}(de);const Te=Me;var Pe=function(t){function e(e){var n=t.call(this)||this;return n.dict=e,n}return r(e,t),e.prototype.clone=function(t){throw new Lt(this.constructor.name,"clone")},e.prototype.getContentsString=function(){throw new Lt(this.constructor.name,"getContentsString")},e.prototype.getContents=function(){throw new Lt(this.constructor.name,"getContents")},e.prototype.getContentsSize=function(){throw new Lt(this.constructor.name,"getContentsSize")},e.prototype.updateDict=function(){var t=this.getContentsSize();this.dict.set(Ee.Length,fe.of(t))},e.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},e.prototype.toString=function(){this.updateDict();var t=this.dict.toString();return t+="\nstream\n",t+=this.getContentsString(),t+="\nendstream"},e.prototype.copyBytesInto=function(t,e){this.updateDict();var n=e;e+=this.dict.copyBytesInto(t,e),t[e++]=ce.Newline,t[e++]=ce.s,t[e++]=ce.t,t[e++]=ce.r,t[e++]=ce.e,t[e++]=ce.a,t[e++]=ce.m,t[e++]=ce.Newline;for(var i=this.getContents(),r=0,o=i.length;r<o;r++)t[e++]=i[r];return t[e++]=ce.Newline,t[e++]=ce.e,t[e++]=ce.n,t[e++]=ce.d,t[e++]=ce.s,t[e++]=ce.t,t[e++]=ce.r,t[e++]=ce.e,t[e++]=ce.a,t[e++]=ce.m,e-n},e}(de);const _e=Pe;const Re=function(t){function e(e,n){var i=t.call(this,e)||this;return i.contents=n,i}return r(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 N(this.contents)},e.prototype.getContents=function(){return this.contents},e.prototype.getContentsSize=function(){return this.contents.length},e.of=function(t,n){return new e(t,n)},e}(_e);var Be={},Ie=new Map;const Ne=function(t){function e(e,n,i){var r=this;if(e!==Be)throw new Ot("PDFRef");return(r=t.call(this)||this).objectNumber=n,r.generationNumber=i,r.tag=n+" "+i+" R",r}return r(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+=D(this.tag,t,e),this.tag.length},e.of=function(t,n){void 0===n&&(n=0);var i=t+" "+n+" R",r=Ie.get(i);return r||(r=new e(Be,t,n),Ie.set(i,r)),r},e}(de);var Le=function(){function t(t,e){this.name=t,this.args=e||[]}return t.prototype.clone=function(e){for(var n=new Array(this.args.length),i=0,r=n.length;i<r;i++){var o=this.args[i];n[i]=o instanceof de?o.clone(e):o}return t.of(this.name,n)},t.prototype.toString=function(){for(var t="",e=0,n=this.args.length;e<n;e++)t+=String(this.args[e])+" ";return t+=this.name},t.prototype.sizeInBytes=function(){for(var t=0,e=0,n=this.args.length;e<n;e++){var i=this.args[e];t+=(i instanceof de?i.sizeInBytes():i.length)+1}return t+=this.name.length},t.prototype.copyBytesInto=function(t,e){for(var n=e,i=0,r=this.args.length;i<r;i++){var o=this.args[i];e+=o instanceof de?o.copyBytesInto(t,e):D(o,t,e),t[e++]=ce.Space}return(e+=D(this.name,t,e))-n},t.of=function(e,n){return new t(e,n)},t}();const Oe=Le;var We;!function(t){t.NonStrokingColor="sc",t.NonStrokingColorN="scn",t.NonStrokingColorRgb="rg",t.NonStrokingColorGray="g",t.NonStrokingColorCmyk="k",t.NonStrokingColorspace="cs",t.StrokingColor="SC",t.StrokingColorN="SCN",t.StrokingColorRgb="RG",t.StrokingColorGray="G",t.StrokingColorCmyk="K",t.StrokingColorspace="CS",t.BeginMarkedContentSequence="BDC",t.BeginMarkedContent="BMC",t.EndMarkedContent="EMC",t.MarkedContentPointWithProps="DP",t.MarkedContentPoint="MP",t.DrawObject="Do",t.ConcatTransformationMatrix="cm",t.PopGraphicsState="Q",t.PushGraphicsState="q",t.SetFlatness="i",t.SetGraphicsStateParams="gs",t.SetLineCapStyle="J",t.SetLineDashPattern="d",t.SetLineJoinStyle="j",t.SetLineMiterLimit="M",t.SetLineWidth="w",t.SetTextMatrix="Tm",t.SetRenderingIntent="ri",t.AppendRectangle="re",t.BeginInlineImage="BI",t.BeginInlineImageData="ID",t.EndInlineImage="EI",t.ClipEvenOdd="W*",t.ClipNonZero="W",t.CloseAndStroke="s",t.CloseFillEvenOddAndStroke="b*",t.CloseFillNonZeroAndStroke="b",t.ClosePath="h",t.AppendBezierCurve="c",t.CurveToReplicateFinalPoint="y",t.CurveToReplicateInitialPoint="v",t.EndPath="n",t.FillEvenOddAndStroke="B*",t.FillEvenOdd="f*",t.FillNonZeroAndStroke="B",t.FillNonZero="f",t.LegacyFillNonZero="F",t.LineTo="l",t.MoveTo="m",t.ShadingFill="sh",t.StrokePath="S",t.BeginText="BT",t.EndText="ET",t.MoveText="Td",t.MoveTextSetLeading="TD",t.NextLine="T*",t.SetCharacterSpacing="Tc",t.SetFontAndSize="Tf",t.SetTextHorizontalScaling="Tz",t.SetTextLineHeight="TL",t.SetTextRenderingMode="Tr",t.SetTextRise="Ts",t.SetWordSpacing="Tw",t.ShowText="Tj",t.ShowTextAdjusted="TJ",t.ShowTextLine="'",t.ShowTextLineAndSpace='"',t.Type3D0="d0",t.Type3D1="d1",t.BeginCompatibilitySection="BX",t.EndCompatibilitySection="EX"}(We||(We={}));const ze=We;const je=function(t){function e(e,n){var i=t.call(this,e)||this;return i.computeContents=function(){var t=i.getUnencodedContents();return i.encode?nt().deflate(t):t},i.encode=n,n&&e.set(Ee.of("Filter"),Ee.of("FlateDecode")),i.contentsCache=It.populatedBy(i.computeContents),i}return r(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 Lt(this.constructor.name,"getUnencodedContents")},e}(_e);var Ue=function(t){function e(e,n,i){void 0===i&&(i=!0);var r=t.call(this,e,i)||this;return r.operators=n,r}return r(e,t),e.prototype.push=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=this.operators).push.apply(t,e)},e.prototype.clone=function(t){for(var n=new Array(this.operators.length),i=0,r=this.operators.length;i<r;i++)n[i]=this.operators[i].clone(t);var o=this.dict,s=this.encode;return e.of(o.clone(t),n,s)},e.prototype.getContentsString=function(){for(var t="",e=0,n=this.operators.length;e<n;e++)t+=this.operators[e]+"\n";return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=0,n=0,i=this.operators.length;n<i;n++)e+=this.operators[n].copyBytesInto(t,e),t[e++]=ce.Newline;return t},e.prototype.getUnencodedContentsSize=function(){for(var t=0,e=0,n=this.operators.length;e<n;e++)t+=this.operators[e].sizeInBytes()+1;return t},e.of=function(t,n,i){return void 0===i&&(i=!0),new e(t,n,i)},e}(je);const Ge=Ue;var Ve=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}(),He=function(t,e){var n=t[0],i=e[0];return n.objectNumber-i.objectNumber},qe=function(){function t(){this.largestObjectNumber=0,this.header=he.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=Ve.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,Ne.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=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=e.includes(ke),r=t instanceof Ne?this.indirectObjects.get(t):t;if(r&&(r!==ke||i)){for(var o=0,s=e.length;o<s;o++){var a=e[o];if(a===ke){if(r===ke)return r}else if(r instanceof a)return r}throw new Wt(e,r)}},t.prototype.lookup=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=t instanceof Ne?this.indirectObjects.get(t):t;if(0===e.length)return i;for(var r=0,o=e.length;r<o;r++){var s=e[r];if(s===ke){if(i===ke)return i}else if(i instanceof s)return i}throw new Wt(e,i)},t.prototype.getObjectRef=function(t){for(var e=Array.from(this.indirectObjects.entries()),n=0,i=e.length;n<i;n++){var r=e[n],o=r[0];if(r[1]===t)return o}},t.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(He)},t.prototype.obj=function(t){if(t instanceof de)return t;if(null===t||void 0===t)return ke;if("string"===typeof t)return Ee.of(t);if("number"===typeof t)return fe.of(t);if("boolean"===typeof t)return t?ve.True:ve.False;if(Array.isArray(t)){for(var e=ge.withContext(this),n=0,i=t.length;n<i;n++)e.push(this.obj(t[n]));return e}var r=Te.withContext(this),o=Object.keys(t);for(n=0,i=o.length;n<i;n++){var s=o[n],a=t[s];void 0!==a&&r.set(Ee.of(s),this.obj(a))}return r},t.prototype.stream=function(t,e){return void 0===e&&(e={}),Re.of(this.obj(e),B(t))},t.prototype.flateStream=function(t,e){return void 0===e&&(e={}),this.stream(nt().deflate(B(t)),o(o({},e),{Filter:"FlateDecode"}))},t.prototype.contentStream=function(t,e){return void 0===e&&(e={}),Ge.of(this.obj(e),t)},t.prototype.formXObject=function(t,e){return void 0===e&&(e={}),this.contentStream(t,o(o({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=Oe.of(ze.PushGraphicsState),n=Ge.of(t,[e]);return this.pushGraphicsStateContentStreamRef=this.register(n),this.pushGraphicsStateContentStreamRef},t.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var t=this.obj({}),e=Oe.of(ze.PopGraphicsState),n=Ge.of(t,[e]);return this.popGraphicsStateContentStreamRef=this.register(n),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}();const Xe=qe;var Ke=function(t){function e(e,n,i){void 0===i&&(i=!0);var r=t.call(this,e,n)||this;return r.normalized=!1,r.autoNormalizeCTM=i,r}return r(e,t),e.prototype.clone=function(t){for(var n=e.fromMapWithContext(new Map,t||this.context,this.autoNormalizeCTM),i=this.entries(),r=0,o=i.length;r<o;r++){var s=i[r],a=s[0],l=s[1];n.set(a,l)}return n},e.prototype.Parent=function(){return this.lookupMaybe(Ee.Parent,Te)},e.prototype.Contents=function(){return this.lookup(Ee.of("Contents"))},e.prototype.Annots=function(){return this.lookupMaybe(Ee.Annots,ge)},e.prototype.BleedBox=function(){return this.lookupMaybe(Ee.BleedBox,ge)},e.prototype.TrimBox=function(){return this.lookupMaybe(Ee.TrimBox,ge)},e.prototype.ArtBox=function(){return this.lookupMaybe(Ee.ArtBox,ge)},e.prototype.Resources=function(){var t=this.getInheritableAttribute(Ee.Resources);return this.context.lookupMaybe(t,Te)},e.prototype.MediaBox=function(){var t=this.getInheritableAttribute(Ee.MediaBox);return this.context.lookup(t,ge)},e.prototype.CropBox=function(){var t=this.getInheritableAttribute(Ee.CropBox);return this.context.lookupMaybe(t,ge)},e.prototype.Rotate=function(){var t=this.getInheritableAttribute(Ee.Rotate);return this.context.lookupMaybe(t,fe)},e.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(n){e||(e=n.get(t))}),e},e.prototype.setParent=function(t){this.set(Ee.Parent,t)},e.prototype.addContentStream=function(t){var e=this.normalizedEntries().Contents||this.context.obj([]);this.set(Ee.Contents,e),e.push(t)},e.prototype.wrapContentStreams=function(t,e){var n=this.Contents();return n instanceof ge&&(n.insert(0,t),n.push(e),!0)},e.prototype.addAnnot=function(t){this.normalizedEntries().Annots.push(t)},e.prototype.removeAnnot=function(t){var e=this.normalizedEntries().Annots,n=e.indexOf(t);void 0!==n&&e.remove(n)},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 n=this.newFontDictionaryKey(t);return this.setFontDictionary(n,e),n},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 n=this.newXObjectKey(t);return this.setXObject(n,e),n},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 n=this.newExtGStateKey(t);return this.setExtGState(n,e),n},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(Ee.Contents);this.context.lookup(e)instanceof _e&&this.set(Ee.Contents,t.obj([e])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var n=this.getInheritableAttribute(Ee.Resources),i=t.lookupMaybe(n,Te)||t.obj({});this.set(Ee.Resources,i);var r=i.lookupMaybe(Ee.Font,Te)||t.obj({});i.set(Ee.Font,r);var o=i.lookupMaybe(Ee.XObject,Te)||t.obj({});i.set(Ee.XObject,o);var s=i.lookupMaybe(Ee.ExtGState,Te)||t.obj({});i.set(Ee.ExtGState,s);var a=this.Annots()||t.obj([]);this.set(Ee.Annots,a),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(Ee.Font,Te),XObject:e.lookup(Ee.XObject,Te),ExtGState:e.lookup(Ee.ExtGState,Te)}},e.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],e.withContextAndParent=function(t,n){var i=new Map;return i.set(Ee.Type,Ee.Page),i.set(Ee.Parent,n),i.set(Ee.Resources,t.obj({})),i.set(Ee.MediaBox,t.obj([0,0,612,792])),new e(i,t,!1)},e.fromMapWithContext=function(t,n,i){return void 0===i&&(i=!0),new e(t,n,i)},e}(Te);const Ye=Ke;var Ze=function(){function t(t,e){var n=this;this.traversedObjects=new Map,this.copy=function(t){return t instanceof Ye?n.copyPDFPage(t):t instanceof Te?n.copyPDFDict(t):t instanceof ge?n.copyPDFArray(t):t instanceof _e?n.copyPDFStream(t):t instanceof Ne?n.copyPDFIndirectObject(t):t.clone()},this.copyPDFPage=function(t){for(var e=t.clone(),i=Ye.InheritableEntries,r=0,o=i.length;r<o;r++){var s=Ee.of(i[r]),a=e.getInheritableAttribute(s);!e.get(s)&&a&&e.set(s,a)}return e.delete(Ee.of("Parent")),n.copyPDFDict(e)},this.copyPDFDict=function(t){if(n.traversedObjects.has(t))return n.traversedObjects.get(t);var e=t.clone(n.dest);n.traversedObjects.set(t,e);for(var i=t.entries(),r=0,o=i.length;r<o;r++){var s=i[r],a=s[0],l=s[1];e.set(a,n.copy(l))}return e},this.copyPDFArray=function(t){if(n.traversedObjects.has(t))return n.traversedObjects.get(t);var e=t.clone(n.dest);n.traversedObjects.set(t,e);for(var i=0,r=t.size();i<r;i++){var o=t.get(i);e.set(i,n.copy(o))}return e},this.copyPDFStream=function(t){if(n.traversedObjects.has(t))return n.traversedObjects.get(t);var e=t.clone(n.dest);n.traversedObjects.set(t,e);for(var i=t.dict.entries(),r=0,o=i.length;r<o;r++){var s=i[r],a=s[0],l=s[1];e.dict.set(a,n.copy(l))}return e},this.copyPDFIndirectObject=function(t){if(!n.traversedObjects.has(t)){var e=n.dest.nextRef();n.traversedObjects.set(t,e);var i=n.src.lookup(t);if(i){var r=n.copy(i);n.dest.assign(e,r)}}return n.traversedObjects.get(t)},this.src=t,this.dest=e}return t.for=function(e,n){return new t(e,n)},t}();const Qe=Ze;var Je=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,n=this.subsections.length;e<n;e++){var i=this.subsections[e];t+=i[0].ref.objectNumber+" "+i.length+"\n";for(var r=0,o=i.length;r<o;r++){var s=i[r];t+=w(String(s.offset),10,"0"),t+=" ",t+=w(String(s.ref.generationNumber),5,"0"),t+=" ",t+=s.deleted?"f":"n",t+=" \n"}}return t},t.prototype.sizeInBytes=function(){for(var t=5,e=0,n=this.subsections.length;e<n;e++){var i=this.subsections[e],r=i.length,o=i[0];t+=2,t+=String(o.ref.objectNumber).length,t+=String(r).length,t+=20*r}return t},t.prototype.copyBytesInto=function(t,e){var n=e;return t[e++]=ce.x,t[e++]=ce.r,t[e++]=ce.e,t[e++]=ce.f,t[e++]=ce.Newline,(e+=this.copySubsectionsIntoBuffer(this.subsections,t,e))-n},t.prototype.copySubsectionsIntoBuffer=function(t,e,n){for(var i=n,r=t.length,o=0;o<r;o++){var s=this.subsections[o],a=String(s[0].ref.objectNumber);n+=D(a,e,n),e[n++]=ce.Space;var l=String(s.length);n+=D(l,e,n),e[n++]=ce.Newline,n+=this.copyEntriesIntoBuffer(s,e,n)}return n-i},t.prototype.copyEntriesIntoBuffer=function(t,e,n){for(var i=t.length,r=0;r<i;r++){var o=t[r],s=w(String(o.offset),10,"0");n+=D(s,e,n),e[n++]=ce.Space;var a=w(String(o.ref.generationNumber),5,"0");n+=D(a,e,n),e[n++]=ce.Space,e[n++]=o.deleted?ce.f:ce.n,e[n++]=ce.Space,e[n++]=ce.Newline}return 20*i},t.prototype.append=function(t){if(0===this.chunkLength)return this.subsections.push([t]),this.chunkIdx=0,void(this.chunkLength=1);var e=this.subsections[this.chunkIdx],n=e[this.chunkLength-1];t.ref.objectNumber-n.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:Ne.of(0,65535),offset:0,deleted:!0})},t.createEmpty=function(){return new t},t}();const $e=Je;const tn=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 n=e;return t[e++]=ce.s,t[e++]=ce.t,t[e++]=ce.a,t[e++]=ce.r,t[e++]=ce.t,t[e++]=ce.x,t[e++]=ce.r,t[e++]=ce.e,t[e++]=ce.f,t[e++]=ce.Newline,e+=D(this.lastXRefOffset,t,e),t[e++]=ce.Newline,t[e++]=ce.Percent,t[e++]=ce.Percent,t[e++]=ce.E,t[e++]=ce.O,t[e++]=ce.F,e-n},t.forLastCrossRefSectionOffset=function(e){return new t(e)},t}();const en=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 n=e;return t[e++]=ce.t,t[e++]=ce.r,t[e++]=ce.a,t[e++]=ce.i,t[e++]=ce.l,t[e++]=ce.e,t[e++]=ce.r,t[e++]=ce.Newline,(e+=this.dict.copyBytesInto(t,e))-n},t.of=function(e){return new t(e)},t}();var nn=function(t){function e(e,n,i){void 0===i&&(i=!0);var r=t.call(this,e.obj({}),i)||this;return r.objects=n,r.offsets=r.computeObjectOffsets(),r.offsetsString=r.computeOffsetsString(),r.dict.set(Ee.of("Type"),Ee.of("ObjStm")),r.dict.set(Ee.of("N"),fe.of(r.objects.length)),r.dict.set(Ee.of("First"),fe.of(r.offsetsString.length)),r}return r(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,n=this.objects.length;e<n;e++){t+=this.objects[e][1]+"\n"}return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=D(this.offsetsString,t,0),n=0,i=this.objects.length;n<i;n++){e+=this.objects[n][1].copyBytesInto(t,e),t[e++]=ce.Newline}return t},e.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+R(this.offsets)[1]+R(this.objects)[1].sizeInBytes()+1},e.prototype.computeOffsetsString=function(){for(var t="",e=0,n=this.offsets.length;e<n;e++){var i=this.offsets[e];t+=i[0]+" "+i[1]+" "}return t},e.prototype.computeObjectOffsets=function(){for(var t=0,e=new Array(this.objects.length),n=0,i=this.objects.length;n<i;n++){var r=this.objects[n],o=r[0],s=r[1];e[n]=[o.objectNumber,t],t+=s.sizeInBytes()+1}return e},e.withContextAndObjects=function(t,n,i){return void 0===i&&(i=!0),new e(t,n,i)},e}(je);const rn=nn;var on=function(){function t(t,e){var n=this;this.parsedObjects=0,this.shouldWaitForTick=function(t){return n.parsedObjects+=t,n.parsedObjects%n.objectsPerTick===0},this.context=t,this.objectsPerTick=e}return t.prototype.serializeToBuffer=function(){return s(this,void 0,void 0,function(){var t,e,n,i,r,o,s,l,u,c,h,d,f,p,g,m,v;return a(this,function(a){switch(a.label){case 0:return[4,this.computeBufferSize()];case 1:t=a.sent(),e=t.size,n=t.header,i=t.indirectObjects,r=t.xref,o=t.trailerDict,s=t.trailer,l=0,u=new Uint8Array(e),l+=n.copyBytesInto(u,l),u[l++]=ce.Newline,u[l++]=ce.Newline,c=0,h=i.length,a.label=2;case 2:return c<h?(d=i[c],f=d[0],p=d[1],g=String(f.objectNumber),l+=D(g,u,l),u[l++]=ce.Space,m=String(f.generationNumber),l+=D(m,u,l),u[l++]=ce.Space,u[l++]=ce.o,u[l++]=ce.b,u[l++]=ce.j,u[l++]=ce.Newline,l+=p.copyBytesInto(u,l),u[l++]=ce.Newline,u[l++]=ce.e,u[l++]=ce.n,u[l++]=ce.d,u[l++]=ce.o,u[l++]=ce.b,u[l++]=ce.j,u[l++]=ce.Newline,u[l++]=ce.Newline,v=p instanceof rn?p.getObjectsCount():1,this.shouldWaitForTick(v)?[4,z()]:[3,4]):[3,5];case 3:a.sent(),a.label=4;case 4:return c++,[3,2];case 5:return r&&(l+=r.copyBytesInto(u,l),u[l++]=ce.Newline),o&&(l+=o.copyBytesInto(u,l),u[l++]=ce.Newline,u[l++]=ce.Newline),l+=s.copyBytesInto(u,l),[2,u]}})})},t.prototype.computeIndirectObjectSize=function(t){var e=t[0],n=t[1];return e.sizeInBytes()+3+(n.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 s(this,void 0,void 0,function(){var t,e,n,i,r,o,s,l,u,c,h;return a(this,function(a){switch(a.label){case 0:t=he.forVersion(1,7),e=t.sizeInBytes()+2,n=$e.create(),i=this.context.enumerateIndirectObjects(),r=0,o=i.length,a.label=1;case 1:return r<o?(s=i[r],l=s[0],n.addEntry(l,e),e+=this.computeIndirectObjectSize(s),this.shouldWaitForTick(1)?[4,z()]:[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return u=e,e+=n.sizeInBytes()+1,c=en.of(this.createTrailerDict()),e+=c.sizeInBytes()+2,h=tn.forLastCrossRefSectionOffset(u),[2,{size:e+=h.sizeInBytes(),header:t,indirectObjects:i,xref:n,trailerDict:c,trailer:h}]}})})},t.forContext=function(e,n){return new t(e,n)},t}();const sn=on;var an=function(t){function e(e){var n=t.call(this)||this;return n.data=e,n}return r(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 n=this.data.length,i=0;i<n;i++)t[e++]=this.data[i];return n},e.of=function(t){return new e(t)},e}(de);const ln=an;var un;!function(t){t[t.Deleted=0]="Deleted",t[t.Uncompressed=1]="Uncompressed",t[t.Compressed=2]="Compressed"}(un||(un={}));var cn=function(t){function e(e,n,i){void 0===i&&(i=!0);var r=t.call(this,e,i)||this;return r.computeIndex=function(){for(var t=[],e=0,n=0,i=r.entries.length;n<i;n++){var o=r.entries[n],s=r.entries[n-1];0===n?t.push(o.ref.objectNumber):o.ref.objectNumber-s.ref.objectNumber>1&&(t.push(e),t.push(o.ref.objectNumber),e=0),e+=1}return t.push(e),t},r.computeEntryTuples=function(){for(var t=new Array(r.entries.length),e=0,n=r.entries.length;e<n;e++){var i=r.entries[e];if(i.type===un.Deleted){var o=i.type,s=i.nextFreeObjectNumber,a=i.ref;t[e]=[o,s,a.generationNumber]}if(i.type===un.Uncompressed){o=i.type;var l=i.offset;a=i.ref;t[e]=[o,l,a.generationNumber]}if(i.type===un.Compressed){o=i.type;var u=i.objectStreamRef,c=i.index;t[e]=[o,u.objectNumber,c]}}return t},r.computeMaxEntryByteWidths=function(){for(var t=r.entryTuplesCache.access(),e=[0,0,0],n=0,i=t.length;n<i;n++){var o=t[n],s=o[0],a=o[1],l=o[2],u=J(s),c=J(a),h=J(l);u>e[0]&&(e[0]=u),c>e[1]&&(e[1]=c),h>e[2]&&(e[2]=h)}return e},r.entries=n||[],r.entryTuplesCache=It.populatedBy(r.computeEntryTuples),r.maxByteWidthsCache=It.populatedBy(r.computeMaxEntryByteWidths),r.indexCache=It.populatedBy(r.computeIndex),e.set(Ee.of("Type"),Ee.of("XRef")),r}return r(e,t),e.prototype.addDeletedEntry=function(t,e){var n=un.Deleted;this.entries.push({type:n,ref:t,nextFreeObjectNumber:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addUncompressedEntry=function(t,e){var n=un.Uncompressed;this.entries.push({type:n,ref:t,offset:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addCompressedEntry=function(t,e,n){var i=un.Compressed;this.entries.push({type:i,ref:t,objectStreamRef:e,index:n}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.clone=function(t){var n=this,i=n.dict,r=n.entries,o=n.encode;return e.of(i.clone(t),r.slice(),o)},e.prototype.getContentsString=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),n="",i=0,r=t.length;i<r;i++){for(var o=t[i],s=o[0],a=o[1],l=o[2],u=O($(s)),c=O($(a)),h=O($(l)),d=e[0]-1;d>=0;d--)n+=(u[d]||0).toString(2);for(d=e[1]-1;d>=0;d--)n+=(c[d]||0).toString(2);for(d=e[2]-1;d>=0;d--)n+=(h[d]||0).toString(2)}return n},e.prototype.getUnencodedContents=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),n=new Uint8Array(this.getUnencodedContentsSize()),i=0,r=0,o=t.length;r<o;r++){for(var s=t[r],a=s[0],l=s[1],u=s[2],c=O($(a)),h=O($(l)),d=O($(u)),f=e[0]-1;f>=0;f--)n[i++]=c[f]||0;for(f=e[1]-1;f>=0;f--)n[i++]=h[f]||0;for(f=e[2]-1;f>=0;f--)n[i++]=d[f]||0}return n},e.prototype.getUnencodedContentsSize=function(){var t=function(t){for(var e=0,n=0,i=t.length;n<i;n++)e+=t[n];return e}(this.maxByteWidthsCache.access());return t*this.entries.length},e.prototype.updateDict=function(){t.prototype.updateDict.call(this);var e=this.maxByteWidthsCache.access(),n=this.indexCache.access(),i=this.dict.context;this.dict.set(Ee.of("W"),i.obj(e)),this.dict.set(Ee.of("Index"),i.obj(n))},e.create=function(t,n){void 0===n&&(n=!0);var i=new e(t,[],n);return i.addDeletedEntry(Ne.of(0,65535),0),i},e.of=function(t,n,i){return void 0===i&&(i=!0),new e(t,n,i)},e}(je);const hn=cn;var dn=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.encodeStreams=i,o.objectsPerStream=r,o}return r(e,t),e.prototype.computeBufferSize=function(){return s(this,void 0,void 0,function(){var t,e,n,i,r,o,s,l,u,c,h,d,f,p,g,m,v,y,b;return a(this,function(a){switch(a.label){case 0:t=this.context.largestObjectNumber+1,e=he.forVersion(1,7),n=e.sizeInBytes()+2,i=hn.create(this.createTrailerDict(),this.encodeStreams),r=[],o=[],s=[],l=this.context.enumerateIndirectObjects(),d=0,f=l.length,a.label=1;case 1:return d<f?(u=l[d],g=u[0],c=u[1],g===this.context.trailerInfo.Encrypt||c instanceof _e||c instanceof ln||0!==g.generationNumber?(r.push(u),i.addUncompressedEntry(g,n),n+=this.computeIndirectObjectSize(u),this.shouldWaitForTick(1)?[4,z()]:[3,3]):[3,4]):[3,6];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:p=R(o),h=R(s),p&&p.length%this.objectsPerStream!==0||(p=[],o.push(p),h=Ne.of(t++),s.push(h)),i.addCompressedEntry(g,h,p.length),p.push(u),a.label=5;case 5:return d++,[3,1];case 6:d=0,f=o.length,a.label=7;case 7:return d<f?(p=o[d],g=s[d],m=rn.withContextAndObjects(this.context,p,this.encodeStreams),i.addUncompressedEntry(g,n),n+=this.computeIndirectObjectSize([g,m]),r.push([g,m]),this.shouldWaitForTick(p.length)?[4,z()]:[3,9]):[3,10];case 8:a.sent(),a.label=9;case 9:return d++,[3,7];case 10:return v=Ne.of(t++),i.dict.set(Ee.of("Size"),fe.of(t)),i.addUncompressedEntry(v,n),y=n,n+=this.computeIndirectObjectSize([v,i]),r.push([v,i]),b=tn.forLastCrossRefSectionOffset(y),[2,{size:n+=b.sizeInBytes(),header:e,indirectObjects:r,trailer:b}]}})})},e.forContext=function(t,n,i,r){return void 0===i&&(i=!0),void 0===r&&(r=50),new e(t,n,i,r)},e}(sn);const fn=dn;var pn=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return r(e,t),e.prototype.asBytes=function(){for(var t=this.value+(this.value.length%2===1?"0":""),e=t.length,n=new Uint8Array(t.length/2),i=0,r=0;i<e;){var o=parseInt(t.substring(i,i+2),16);n[r]=o,i+=2,r+=1}return n},e.prototype.decodeText=function(){var t=this.asBytes();return Q(t)?V(t):Bt(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=P(t);if(!e)throw new qt(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++]=ce.LessThan,e+=D(this.value,t,e),t[e++]=ce.GreaterThan,this.value.length+2},e.of=function(t){return new e(t)},e.fromText=function(t){for(var n=function(t,e){void 0===e&&(e=!0);var n=[];e&&n.push(65279);for(var i=0,r=t.length;i<r;){var o=t.codePointAt(i);if(o<65536)n.push(o),i+=1;else{if(!(o<1114112))throw new Error("Invalid code point: 0x"+y(o));n.push(j(o),U(o)),i+=2}}return new Uint16Array(n)}(t),i="",r=0,o=n.length;r<o;r++)i+=v(n[r],4);return new e(i)},e}(de);const gn=pn;var mn=function(){function t(t,e){this.encoding=t===at.ZapfDingbats?pt.ZapfDingbats:t===at.Symbol?pt.Symbol:pt.WinAnsi,this.font=ct.load(t),this.fontName=this.font.FontName,this.customName=e}return t.prototype.encodeText=function(t){for(var e=this.encodeTextAsGlyphs(t),n=new Array(e.length),i=0,r=e.length;i<r;i++)n[i]=y(e[i].code);return gn.of(n.join(""))},t.prototype.widthOfTextAtSize=function(t,e){for(var n=this.encodeTextAsGlyphs(t),i=0,r=0,o=n.length;r<o;r++){var s=n[r].name,a=(n[r+1]||{}).name,l=this.font.getXAxisKerningForPair(s,a)||0;i+=this.widthOfGlyph(s)+l}return i*(e/1e3)},t.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var n=e.descender,i=void 0===n||n,r=this.font,o=r.Ascender,s=r.Descender,a=r.FontBBox,l=(o||a[3])-(s||a[1]);return i||(l+=s||0),l/1e3*t},t.prototype.sizeOfFontAtHeight=function(t){var e=this.font,n=e.Ascender,i=e.Descender,r=e.FontBBox;return 1e3*t/((n||r[3])-(i||r[1]))},t.prototype.embedIntoContext=function(t,e){var n=t.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===pt.WinAnsi?"WinAnsiEncoding":void 0});return e?(t.assign(e,n),e):t.register(n)},t.prototype.widthOfGlyph=function(t){return this.font.getWidthOfGlyph(t)||250},t.prototype.encodeTextAsGlyphs=function(t){for(var e=Array.from(t),n=new Array(e.length),i=0,r=e.length;i<r;i++){var o=m(e[i]);n[i]=this.encoding.encodeUnicodeCodePoint(o)}return n},t.for=function(e,n){return new t(e,n)},t}();const vn=mn;var yn=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"},bn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"<"+t.join("")+">"},wn=function(t){return v(t,4)},Dn=function(t){if(function(t){return t>=0&&t<=65535}(t))return wn(t);if(function(t){return t>=65536&&t<=1114111}(t)){var e=j(t),n=U(t);return""+wn(e)+wn(n)}var i=y(t);throw new Error("0x"+i+" is not a valid UTF-8 or UTF-16 codepoint.")},An=function(t){var e=t["OS/2"]?t["OS/2"].sFamilyClass:0;return function(t){var e=0,n=function(t){e|=1<<t-1};return t.fixedPitch&&n(1),t.serif&&n(2),t.symbolic&&n(3),t.script&&n(4),t.nonsymbolic&&n(6),t.italic&&n(7),t.allCap&&n(17),t.smallCap&&n(18),t.forceBold&&n(19),e}({fixedPitch:t.post.isFixedPitch,serif:1<=e&&e<=7,symbolic:!0,script:10===e,italic:t.head.macStyle.italic})},xn=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return r(e,t),e.prototype.asBytes=function(){for(var t=[],e="",n=!1,i=function(e){void 0!==e&&t.push(e),n=!1},r=0,o=this.value.length;r<o;r++){var s=this.value[r],a=g(s),l=this.value[r+1];n?a===ce.Newline||a===ce.CarriageReturn?i():a===ce.n?i(ce.Newline):a===ce.r?i(ce.CarriageReturn):a===ce.t?i(ce.Tab):a===ce.b?i(ce.Backspace):a===ce.f?i(ce.FormFeed):a===ce.LeftParen?i(ce.LeftParen):a===ce.RightParen?i(ce.RightParen):a===ce.Backspace?i(ce.BackSlash):a>=ce.Zero&&a<=ce.Seven?3!==(e+=s).length&&l>="0"&&l<="7"||(i(parseInt(e,8)),e=""):i(a):a===ce.BackSlash?n=!0:i(a)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return Q(t)?V(t):Bt(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=P(t);if(!e)throw new qt(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++]=ce.LeftParen,e+=D(this.value,t,e),t[e++]=ce.RightParen,this.value.length+2},e.of=function(t){return new e(t)},e.fromDate=function(t){return new e("D:"+w(String(t.getUTCFullYear()),4,"0")+w(String(t.getUTCMonth()+1),2,"0")+w(String(t.getUTCDate()),2,"0")+w(String(t.getUTCHours()),2,"0")+w(String(t.getUTCMinutes()),2,"0")+w(String(t.getUTCSeconds()),2,"0")+"Z")},e}(de);const Cn=xn;var Sn=function(){function t(t,e,n,i){var r=this;this.allGlyphsInFontSortedById=function(){for(var t=new Array(r.font.characterSet.length),e=0,n=t.length;e<n;e++){var i=r.font.characterSet[e];t[e]=r.font.glyphForCodePoint(i)}return function(t,e){for(var n=[],i=0,r=t.length;i<r;i++){var o=t[i],s=t[i-1];0!==i&&e(o)===e(s)||n.push(o)}return n}(t.sort(L),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=n,this.fontFeatures=i,this.baseFontName="",this.glyphCache=It.populatedBy(this.allGlyphsInFontSortedById)}return t.for=function(e,n,i,r){return s(this,void 0,void 0,function(){return a(this,function(o){switch(o.label){case 0:return[4,e.create(n)];case 1:return[2,new t(o.sent(),n,i,r)]}})})},t.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,n=new Array(e.length),i=0,r=e.length;i<r;i++)n[i]=v(e[i].id,4);return gn.of(n.join(""))},t.prototype.widthOfTextAtSize=function(t,e){for(var n=this.font.layout(t,this.fontFeatures).glyphs,i=0,r=0,o=n.length;r<o;r++)i+=n[r].advanceWidth*this.scale;return i*(e/1e3)},t.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var n=e.descender,i=void 0===n||n,r=this.font,o=r.ascent,s=r.descent,a=r.bbox,l=(o||a.maxY)*this.scale-(s||a.minY)*this.scale;return i||(l-=Math.abs(s)||0),l/1e3*t},t.prototype.sizeOfFontAtHeight=function(t){var e=this.font,n=e.ascent,i=e.descent,r=e.bbox;return 1e3*t/((n||r.maxY)*this.scale-(i||r.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 s(this,void 0,void 0,function(){var n,i,r;return a(this,function(o){switch(o.label){case 0:return[4,this.embedCIDFontDict(t)];case 1:return n=o.sent(),i=this.embedUnicodeCmap(t),r=t.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[n],ToUnicode:i}),e?(t.assign(e,r),[2,e]):[2,t.register(r)]}})})},t.prototype.isCFF=function(){return this.font.cff},t.prototype.embedCIDFontDict=function(t){return s(this,void 0,void 0,function(){var e,n;return a(this,function(i){switch(i.label){case 0:return[4,this.embedFontDescriptor(t)];case 1:return e=i.sent(),n=t.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",CIDToGIDMap:"Identity",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:Cn.of("Adobe"),Ordering:Cn.of("Identity"),Supplement:0},FontDescriptor:e,W:this.computeWidths()}),[2,t.register(n)]}})})},t.prototype.embedFontDescriptor=function(t){return s(this,void 0,void 0,function(){var e,n,i,r,o,s,l,u,c,h,d,f,p,g,m;return a(this,function(a){switch(a.label){case 0:return[4,this.embedFontStream(t)];case 1:return e=a.sent(),n=this.scale,i=this.font,r=i.italicAngle,o=i.ascent,s=i.descent,l=i.capHeight,u=i.xHeight,c=this.font.bbox,h=c.minX,d=c.minY,f=c.maxX,p=c.maxY,g=t.obj(((m={Type:"FontDescriptor",FontName:this.baseFontName,Flags:An(this.font),FontBBox:[h*n,d*n,f*n,p*n],ItalicAngle:r,Ascent:o*n,Descent:s*n,CapHeight:(l||o)*n,XHeight:(u||0)*n,StemV:0})[this.isCFF()?"FontFile3":"FontFile2"]=e,m)),[2,t.register(g)]}})})},t.prototype.serializeFont=function(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,this.fontData]})})},t.prototype.embedFontStream=function(t){return s(this,void 0,void 0,function(){var e,n,i;return a(this,function(r){switch(r.label){case 0:return i=(n=t).flateStream,[4,this.serializeFont()];case 1:return e=i.apply(n,[r.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,t.register(e)]}})})},t.prototype.embedUnicodeCmap=function(t){var e=function(t,e){for(var n=new Array(t.length),i=0,r=t.length;i<r;i++){var o=t[i],s=bn(wn(e(o))),a=bn.apply(void 0,o.codePoints.map(Dn));n[i]=[s,a]}return yn(n)}(this.glyphCache.access(),this.glyphId.bind(this)),n=t.flateStream(e);return t.register(n)},t.prototype.glyphId=function(t){return t?t.id:-1},t.prototype.computeWidths=function(){for(var t=this.glyphCache.access(),e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i],s=t[i-1],a=this.glyphId(o),l=this.glyphId(s);0===i?e.push(a):a-l!==1&&(e.push(n),e.push(a),n=[]),n.push(o.advanceWidth*this.scale)}return e.push(n),e},t}();const Fn=Sn;var En=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.subset=o.font.createSubset(),o.glyphs=[],o.glyphCache=It.populatedBy(function(){return o.glyphs}),o.glyphIdMap=new Map,o}return r(e,t),e.for=function(t,n,i,r){return s(this,void 0,void 0,function(){return a(this,function(o){switch(o.label){case 0:return[4,t.create(n)];case 1:return[2,new e(o.sent(),n,i,r)]}})})},e.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,n=new Array(e.length),i=0,r=e.length;i<r;i++){var o=e[i],s=this.subset.includeGlyph(o);this.glyphs[s-1]=o,this.glyphIdMap.set(o.id,s),n[i]=v(s,4)}return this.glyphCache.invalidate(),gn.of(n.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,n){var i=[];t.subset.encodeStream().on("data",function(t){return i.push(t)}).on("end",function(){return e(function(t){for(var e=0,n=0,i=t.length;n<i;n++)e+=t[n].length;var r=new Uint8Array(e),o=0;for(n=0,i=t.length;n<i;n++){var s=t[n];r.set(s,o),o+=s.length}return r}(i))}).on("error",function(t){return n(t)})})},e}(Fn);const kn=En;var Mn;!function(t){t.Source="Source",t.Data="Data",t.Alternative="Alternative",t.Supplement="Supplement",t.EncryptedPayload="EncryptedPayload",t.FormData="EncryptedPayload",t.Schema="Schema",t.Unspecified="Unspecified"}(Mn||(Mn={}));const Tn=function(){function t(t,e,n){void 0===n&&(n={}),this.fileData=t,this.fileName=e,this.options=n}return t.for=function(e,n,i){return void 0===i&&(i={}),new t(e,n,i)},t.prototype.embedIntoContext=function(t,e){return s(this,void 0,void 0,function(){var n,i,r,o,s,l,u,c,h;return a(this,function(a){return n=this.options,i=n.mimeType,r=n.description,o=n.creationDate,s=n.modificationDate,l=n.afRelationship,u=t.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:null!==i&&void 0!==i?i:void 0,Params:{Size:this.fileData.length,CreationDate:o?Cn.fromDate(o):void 0,ModDate:s?Cn.fromDate(s):void 0}}),c=t.register(u),h=t.obj({Type:"Filespec",F:Cn.of(this.fileName),UF:gn.fromText(this.fileName),EF:{F:c},Desc:r?gn.fromText(r):void 0,AFRelationship:null!==l&&void 0!==l?l:void 0}),e?(t.assign(e,h),[2,e]):[2,t.register(h)]})})},t}();var Pn,_n=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];!function(t){t.DeviceGray="DeviceGray",t.DeviceRGB="DeviceRGB",t.DeviceCMYK="DeviceCMYK"}(Pn||(Pn={}));var Rn={1:Pn.DeviceGray,3:Pn.DeviceRGB,4:Pn.DeviceCMYK};const Bn=function(){function t(t,e,n,i,r){this.imageData=t,this.bitsPerComponent=e,this.width=n,this.height=i,this.colorSpace=r}return t.for=function(e){return s(this,void 0,void 0,function(){var n,i,r,o,s,l,u,c;return a(this,function(a){if(n=new DataView(e.buffer),65496!==n.getUint16(0))throw new Error("SOI not found in JPEG");for(i=2;i<n.byteLength&&(r=n.getUint16(i),i+=2,!_n.includes(r));)i+=n.getUint16(i);if(!_n.includes(r))throw new Error("Invalid JPEG");if(i+=2,o=n.getUint8(i++),s=n.getUint16(i),i+=2,l=n.getUint16(i),i+=2,u=n.getUint8(i++),!(c=Rn[u]))throw new Error("Unknown JPEG channel.");return[2,new t(e,o,l,s,c)]})})},t.prototype.embedIntoContext=function(t,e){return s(this,void 0,void 0,function(){var n;return a(this,function(i){return n=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===Pn.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),e?(t.assign(e,n),[2,e]):[2,t.register(n)]})})},t}();var In={toRGBA8:function(t){var e=t.width,n=t.height;if(null==t.tabs.acTL)return[In.toRGBA8.decodeImage(t.data,e,n,t).buffer];var i=[];null==t.frames[0].data&&(t.frames[0].data=t.data);for(var r=e*n*4,o=new Uint8Array(r),s=new Uint8Array(r),a=new Uint8Array(r),l=0;l<t.frames.length;l++){var u=t.frames[l],c=u.rect.x,h=u.rect.y,d=u.rect.width,f=u.rect.height,p=In.toRGBA8.decodeImage(u.data,d,f,t);if(0!=l)for(var g=0;g<r;g++)a[g]=o[g];if(0==u.blend?In._copyTile(p,d,f,o,e,n,c,h,0):1==u.blend&&In._copyTile(p,d,f,o,e,n,c,h,1),i.push(o.buffer.slice(0)),0==u.dispose);else if(1==u.dispose)In._copyTile(s,d,f,o,e,n,c,h,0);else if(2==u.dispose)for(g=0;g<r;g++)o[g]=a[g]}return i}};In.toRGBA8.decodeImage=function(t,e,n,i){var r=e*n,o=In.decode._getBPP(i),s=Math.ceil(e*o/8),a=new Uint8Array(4*r),l=new Uint32Array(a.buffer),u=i.ctype,c=i.depth,h=In._bin.readUshort;Date.now();if(6==u){var d=r<<2;if(8==c)for(var f=0;f<d;f+=4)a[f]=t[f],a[f+1]=t[f+1],a[f+2]=t[f+2],a[f+3]=t[f+3];if(16==c)for(f=0;f<d;f++)a[f]=t[f<<1]}else if(2==u){var p=i.tabs.tRNS;if(null==p){if(8==c)for(f=0;f<r;f++){var g=3*f;l[f]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(16==c)for(f=0;f<r;f++){g=6*f;l[f]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}}else{var m=p[0],v=p[1],y=p[2];if(8==c)for(f=0;f<r;f++){var b=f<<2;g=3*f;l[f]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==m&&t[g+1]==v&&t[g+2]==y&&(a[b+3]=0)}if(16==c)for(f=0;f<r;f++){b=f<<2,g=6*f;l[f]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],h(t,g)==m&&h(t,g+2)==v&&h(t,g+4)==y&&(a[b+3]=0)}}}else if(3==u){var w=i.tabs.PLTE,D=i.tabs.tRNS,A=D?D.length:0;if(1==c)for(var x=0;x<n;x++){var C=x*s,S=x*e;for(f=0;f<e;f++){b=S+f<<2;var F=3*(E=t[C+(f>>3)]>>7-(7&f)&1);a[b]=w[F],a[b+1]=w[F+1],a[b+2]=w[F+2],a[b+3]=E<A?D[E]:255}}if(2==c)for(x=0;x<n;x++)for(C=x*s,S=x*e,f=0;f<e;f++){b=S+f<<2,F=3*(E=t[C+(f>>2)]>>6-((3&f)<<1)&3);a[b]=w[F],a[b+1]=w[F+1],a[b+2]=w[F+2],a[b+3]=E<A?D[E]:255}if(4==c)for(x=0;x<n;x++)for(C=x*s,S=x*e,f=0;f<e;f++){b=S+f<<2,F=3*(E=t[C+(f>>1)]>>4-((1&f)<<2)&15);a[b]=w[F],a[b+1]=w[F+1],a[b+2]=w[F+2],a[b+3]=E<A?D[E]:255}if(8==c)for(f=0;f<r;f++){var E;b=f<<2,F=3*(E=t[f]);a[b]=w[F],a[b+1]=w[F+1],a[b+2]=w[F+2],a[b+3]=E<A?D[E]:255}}else if(4==u){if(8==c)for(f=0;f<r;f++){b=f<<2;var k=t[M=f<<1];a[b]=k,a[b+1]=k,a[b+2]=k,a[b+3]=t[M+1]}if(16==c)for(f=0;f<r;f++){var M;b=f<<2,k=t[M=f<<2];a[b]=k,a[b+1]=k,a[b+2]=k,a[b+3]=t[M+2]}}else if(0==u)for(m=i.tabs.tRNS?i.tabs.tRNS:-1,x=0;x<n;x++){var T=x*s,P=x*e;if(1==c)for(var _=0;_<e;_++){var R=(k=255*(t[T+(_>>>3)]>>>7-(7&_)&1))==255*m?0:255;l[P+_]=R<<24|k<<16|k<<8|k}else if(2==c)for(_=0;_<e;_++){R=(k=85*(t[T+(_>>>2)]>>>6-((3&_)<<1)&3))==85*m?0:255;l[P+_]=R<<24|k<<16|k<<8|k}else if(4==c)for(_=0;_<e;_++){R=(k=17*(t[T+(_>>>1)]>>>4-((1&_)<<2)&15))==17*m?0:255;l[P+_]=R<<24|k<<16|k<<8|k}else if(8==c)for(_=0;_<e;_++){R=(k=t[T+_])==m?0:255;l[P+_]=R<<24|k<<16|k<<8|k}else if(16==c)for(_=0;_<e;_++){k=t[T+(_<<1)],R=h(t,T+(_<<f))==m?0:255;l[P+_]=R<<24|k<<16|k<<8|k}}return a},In.decode=function(t){for(var e,n=new Uint8Array(t),i=8,r=In._bin,o=r.readUshort,s=r.readUint,a={tabs:{},frames:[]},l=new Uint8Array(n.length),u=0,c=0,h=[137,80,78,71,13,10,26,10],d=0;d<8;d++)if(n[d]!=h[d])throw"The input is not a PNG file!";for(;i<n.length;){var f=r.readUint(n,i);i+=4;var p=r.readASCII(n,i,4);if(i+=4,"IHDR"==p)In.decode._IHDR(n,i,a);else if("IDAT"==p){for(d=0;d<f;d++)l[u+d]=n[i+d];u+=f}else if("acTL"==p)a.tabs[p]={num_frames:s(n,i),num_plays:s(n,i+4)},e=new Uint8Array(n.length);else if("fcTL"==p){var g;if(0!=c)(g=a.frames[a.frames.length-1]).data=In.decode._decompress(a,e.slice(0,c),g.rect.width,g.rect.height),c=0;var m={x:s(n,i+12),y:s(n,i+16),width:s(n,i+4),height:s(n,i+8)},v=o(n,i+22);v=o(n,i+20)/(0==v?100:v);var y={rect:m,delay:Math.round(1e3*v),dispose:n[i+24],blend:n[i+25]};a.frames.push(y)}else if("fdAT"==p){for(d=0;d<f-4;d++)e[c+d]=n[i+d+4];c+=f-4}else if("pHYs"==p)a.tabs[p]=[r.readUint(n,i),r.readUint(n,i+4),n[i+8]];else if("cHRM"==p){a.tabs[p]=[];for(d=0;d<8;d++)a.tabs[p].push(r.readUint(n,i+4*d))}else if("tEXt"==p){null==a.tabs[p]&&(a.tabs[p]={});var b=r.nextZero(n,i),w=r.readASCII(n,i,b-i),D=r.readASCII(n,b+1,i+f-b-1);a.tabs[p][w]=D}else if("iTXt"==p){null==a.tabs[p]&&(a.tabs[p]={});b=0;var A=i;b=r.nextZero(n,A);w=r.readASCII(n,A,b-A),n[A=b+1],n[A+1];A+=2,b=r.nextZero(n,A);r.readASCII(n,A,b-A);A=b+1,b=r.nextZero(n,A);r.readUTF8(n,A,b-A);A=b+1;D=r.readUTF8(n,A,f-(A-i));a.tabs[p][w]=D}else if("PLTE"==p)a.tabs[p]=r.readBytes(n,i,f);else if("hIST"==p){var x=a.tabs.PLTE.length/3;a.tabs[p]=[];for(d=0;d<x;d++)a.tabs[p].push(o(n,i+2*d))}else if("tRNS"==p)3==a.ctype?a.tabs[p]=r.readBytes(n,i,f):0==a.ctype?a.tabs[p]=o(n,i):2==a.ctype&&(a.tabs[p]=[o(n,i),o(n,i+2),o(n,i+4)]);else if("gAMA"==p)a.tabs[p]=r.readUint(n,i)/1e5;else if("sRGB"==p)a.tabs[p]=n[i];else if("bKGD"==p)0==a.ctype||4==a.ctype?a.tabs[p]=[o(n,i)]:2==a.ctype||6==a.ctype?a.tabs[p]=[o(n,i),o(n,i+2),o(n,i+4)]:3==a.ctype&&(a.tabs[p]=n[i]);else if("IEND"==p)break;i+=f;r.readUint(n,i);i+=4}0!=c&&((g=a.frames[a.frames.length-1]).data=In.decode._decompress(a,e.slice(0,c),g.rect.width,g.rect.height),c=0);return a.data=In.decode._decompress(a,l,a.width,a.height),delete a.compress,delete a.interlace,delete a.filter,a},In.decode._decompress=function(t,e,n,i){Date.now();var r=In.decode._getBPP(t),o=Math.ceil(n*r/8),s=new Uint8Array((o+1+t.interlace)*i);e=In.decode._inflate(e,s);Date.now();return 0==t.interlace?e=In.decode._filterZero(e,t,0,n,i):1==t.interlace&&(e=In.decode._readInterlace(e,t)),e},In.decode._inflate=function(t,e){return In.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),e)},In.inflateRaw=function(){var t={H:{}};return t.H.N=function(e,n){var i,r,o=Uint8Array,s=0,a=0,l=0,u=0,c=0,h=0,d=0,f=0,p=0;if(3==e[0]&&0==e[1])return n||new o(0);var g=t.H,m=g.b,v=g.e,y=g.R,b=g.n,w=g.A,D=g.Z,A=g.m,x=null==n;for(x&&(n=new o(e.length>>>2<<3));0==s;)if(s=m(e,p,1),a=m(e,p+1,2),p+=3,0!=a){if(x&&(n=t.H.W(n,f+(1<<17))),1==a&&(i=A.J,r=A.h,h=511,d=31),2==a){l=v(e,p,5)+257,u=v(e,p+5,5)+1,c=v(e,p+10,4)+4;p+=14;for(var C=1,S=0;S<38;S+=2)A.Q[S]=0,A.Q[S+1]=0;for(S=0;S<c;S++){var F=v(e,p+3*S,3);A.Q[1+(A.X[S]<<1)]=F,F>C&&(C=F)}p+=3*c,b(A.Q,C),w(A.Q,C,A.u),i=A.w,r=A.d,p=y(A.u,(1<<C)-1,l+u,e,p,A.v);var E=g.V(A.v,0,l,A.C);h=(1<<E)-1;var k=g.V(A.v,l,u,A.D);d=(1<<k)-1,b(A.C,E),w(A.C,E,i),b(A.D,k),w(A.D,k,r)}for(;;){var M=i[D(e,p)&h];p+=15&M;var T=M>>>4;if(T>>>8==0)n[f++]=T;else{if(256==T)break;var P=f+T-254;if(T>264){var _=A.q[T-257];P=f+(_>>>3)+v(e,p,7&_),p+=7&_}var R=r[D(e,p)&d];p+=15&R;var B=R>>>4,I=A.c[B],N=(I>>>4)+m(e,p,15&I);for(p+=15&I;f<P;)n[f]=n[f++-N],n[f]=n[f++-N],n[f]=n[f++-N],n[f]=n[f++-N];f=P}}}else{0!=(7&p)&&(p+=8-(7&p));var L=(p>>>3)+4,O=e[L-4]|e[L-3]<<8;x&&(n=t.H.W(n,f+O)),n.set(new o(e.buffer,e.byteOffset+L,O),f),p=L+O<<3,f+=O}return n.length==f?n:n.slice(0,f)},t.H.W=function(t,e){var n=t.length;if(e<=n)return t;var i=new Uint8Array(n<<1);return i.set(t,0),i},t.H.R=function(e,n,i,r,o,s){for(var a=t.H.e,l=t.H.Z,u=0;u<i;){var c=e[l(r,o)&n];o+=15&c;var h=c>>>4;if(h<=15)s[u]=h,u++;else{var d=0,f=0;16==h?(f=3+a(r,o,2),o+=2,d=s[u-1]):17==h?(f=3+a(r,o,3),o+=3):18==h&&(f=11+a(r,o,7),o+=7);for(var p=u+f;u<p;)s[u]=d,u++}}return o},t.H.V=function(t,e,n,i){for(var r=0,o=0,s=i.length>>>1;o<n;){var a=t[o+e];i[o<<1]=0,i[1+(o<<1)]=a,a>r&&(r=a),o++}for(;o<s;)i[o<<1]=0,i[1+(o<<1)]=0,o++;return r},t.H.n=function(e,n){for(var i,r,o,s,a=t.H.m,l=e.length,u=a.j,c=0;c<=n;c++)u[c]=0;for(c=1;c<l;c+=2)u[e[c]]++;var h=a.K;for(i=0,u[0]=0,r=1;r<=n;r++)i=i+u[r-1]<<1,h[r]=i;for(o=0;o<l;o+=2)0!=(s=e[o+1])&&(e[o]=h[s],h[s]++)},t.H.A=function(e,n,i){for(var r=e.length,o=t.H.m.r,s=0;s<r;s+=2)if(0!=e[s+1])for(var a=s>>1,l=e[s+1],u=a<<4|l,c=n-l,h=e[s]<<c,d=h+(1<<c);h!=d;){i[o[h]>>>15-n]=u,h++}},t.H.l=function(e,n){for(var i=t.H.m.r,r=15-n,o=0;o<e.length;o+=2){var s=e[o]<<n-e[o+1];e[o]=i[s]>>>r}},t.H.M=function(t,e,n){n<<=7&e;var i=e>>>3;t[i]|=n,t[i+1]|=n>>>8},t.H.I=function(t,e,n){n<<=7&e;var i=e>>>3;t[i]|=n,t[i+1]|=n>>>8,t[i+2]|=n>>>16},t.H.e=function(t,e,n){return(t[e>>>3]|t[(e>>>3)+1]<<8)>>>(7&e)&(1<<n)-1},t.H.b=function(t,e,n){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16)>>>(7&e)&(1<<n)-1},t.H.Z=function(t,e){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16)>>>(7&e)},t.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)},t.H.m=function(){var t=Uint16Array,e=Uint32Array;return{K:new t(16),j:new t(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 t(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 e(32),J:new t(512),_:[],h:new t(32),$:[],w:new t(32768),C:[],v:[],d:new t(32768),D:[],u:new t(512),Q:[],r:new t(32768),s:new e(286),Y:new e(30),a:new e(19),t:new e(15e3),k:new t(65536),g:new t(32768)}}(),function(){for(var e=t.H.m,n=0;n<32768;n++){var i=n;i=(4278255360&(i=(4042322160&(i=(3435973836&(i=(2863311530&i)>>>1|(1431655765&i)<<1))>>>2|(858993459&i)<<2))>>>4|(252645135&i)<<4))>>>8|(16711935&i)<<8,e.r[n]=(i>>>16|i<<16)>>>17}function r(t,e,n){for(;0!=e--;)t.push(0,n)}for(n=0;n<32;n++)e.q[n]=e.S[n]<<3|e.T[n],e.c[n]=e.p[n]<<4|e.z[n];r(e._,144,8),r(e._,112,9),r(e._,24,7),r(e._,8,8),t.H.n(e._,9),t.H.A(e._,9,e.J),t.H.l(e._,9),r(e.$,32,5),t.H.n(e.$,5),t.H.A(e.$,5,e.h),t.H.l(e.$,5),r(e.Q,19,0),r(e.C,286,0),r(e.D,30,0),r(e.v,320,0)}(),t.H.N}(),In.decode._readInterlace=function(t,e){for(var n=e.width,i=e.height,r=In.decode._getBPP(e),o=r>>3,s=Math.ceil(n*r/8),a=new Uint8Array(i*s),l=0,u=[0,0,4,0,2,0,1],c=[0,4,0,2,0,1,0],h=[8,8,8,4,4,2,2],d=[8,8,4,4,2,2,1],f=0;f<7;){for(var p=h[f],g=d[f],m=0,v=0,y=u[f];y<i;)y+=p,v++;for(var b=c[f];b<n;)b+=g,m++;var w=Math.ceil(m*r/8);In.decode._filterZero(t,e,l,m,v);for(var D=0,A=u[f];A<i;){for(var x=c[f],C=l+D*w<<3;x<n;){var S;if(1==r)S=(S=t[C>>3])>>7-(7&C)&1,a[A*s+(x>>3)]|=S<<7-(7&x);if(2==r)S=(S=t[C>>3])>>6-(7&C)&3,a[A*s+(x>>2)]|=S<<6-((3&x)<<1);if(4==r)S=(S=t[C>>3])>>4-(7&C)&15,a[A*s+(x>>1)]|=S<<4-((1&x)<<2);if(r>=8)for(var F=A*s+x*o,E=0;E<o;E++)a[F+E]=t[(C>>3)+E];C+=r,x+=g}D++,A+=p}m*v!=0&&(l+=v*(1+w)),f+=1}return a},In.decode._getBPP=function(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth},In.decode._filterZero=function(t,e,n,i,r){var o=In.decode._getBPP(e),s=Math.ceil(i*o/8),a=In.decode._paeth;o=Math.ceil(o/8);var l=0,u=1,c=t[n],h=0;if(c>1&&(t[n]=[0,0,1][c-2]),3==c)for(h=o;h<s;h++)t[h+1]=t[h+1]+(t[h+1-o]>>>1)&255;for(var d=0;d<r;d++)if(h=0,0==(c=t[(u=(l=n+d*s)+d+1)-1]))for(;h<s;h++)t[l+h]=t[u+h];else if(1==c){for(;h<o;h++)t[l+h]=t[u+h];for(;h<s;h++)t[l+h]=t[u+h]+t[l+h-o]}else if(2==c)for(;h<s;h++)t[l+h]=t[u+h]+t[l+h-s];else if(3==c){for(;h<o;h++)t[l+h]=t[u+h]+(t[l+h-s]>>>1);for(;h<s;h++)t[l+h]=t[u+h]+(t[l+h-s]+t[l+h-o]>>>1)}else{for(;h<o;h++)t[l+h]=t[u+h]+a(0,t[l+h-s],0);for(;h<s;h++)t[l+h]=t[u+h]+a(t[l+h-o],t[l+h-s],t[l+h-o-s])}return t},In.decode._paeth=function(t,e,n){var i=t+e-n,r=i-t,o=i-e,s=i-n;return r*r<=o*o&&r*r<=s*s?t:o*o<=s*s?e:n},In.decode._IHDR=function(t,e,n){var i=In._bin;n.width=i.readUint(t,e),e+=4,n.height=i.readUint(t,e),e+=4,n.depth=t[e],e++,n.ctype=t[e],e++,n.compress=t[e],e++,n.filter=t[e],e++,n.interlace=t[e],e++},In._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,n){t[e]=n>>8&255,t[e+1]=255&n},readUint:function(t,e){return 16777216*t[e]+(t[e+1]<<16|t[e+2]<<8|t[e+3])},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n},readASCII:function(t,e,n){for(var i="",r=0;r<n;r++)i+=String.fromCharCode(t[e+r]);return i},writeASCII:function(t,e,n){for(var i=0;i<n.length;i++)t[e+i]=n.charCodeAt(i)},readBytes:function(t,e,n){for(var i=[],r=0;r<n;r++)i.push(t[e+r]);return i},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,e,n){for(var i,r="",o=0;o<n;o++)r+="%"+In._bin.pad(t[e+o].toString(16));try{i=decodeURIComponent(r)}catch(s){return In._bin.readASCII(t,e,n)}return i}},In._copyTile=function(t,e,n,i,r,o,s,a,l){for(var u=Math.min(e,r),c=Math.min(n,o),h=0,d=0,f=0;f<c;f++)for(var p=0;p<u;p++)if(s>=0&&a>=0?(h=f*e+p<<2,d=(a+f)*r+s+p<<2):(h=(-a+f)*e-s+p<<2,d=f*r+p<<2),0==l)i[d]=t[h],i[d+1]=t[h+1],i[d+2]=t[h+2],i[d+3]=t[h+3];else if(1==l){var g=t[h+3]*(1/255),m=t[h]*g,v=t[h+1]*g,y=t[h+2]*g,b=i[d+3]*(1/255),w=i[d]*b,D=i[d+1]*b,A=i[d+2]*b,x=1-g,C=g+b*x,S=0==C?0:1/C;i[d+3]=255*C,i[d+0]=(m+w*x)*S,i[d+1]=(v+D*x)*S,i[d+2]=(y+A*x)*S}else if(2==l){g=t[h+3],m=t[h],v=t[h+1],y=t[h+2],b=i[d+3],w=i[d],D=i[d+1],A=i[d+2];g==b&&m==w&&v==D&&y==A?(i[d]=0,i[d+1]=0,i[d+2]=0,i[d+3]=0):(i[d]=m,i[d+1]=v,i[d+2]=y,i[d+3]=g)}else if(3==l){g=t[h+3],m=t[h],v=t[h+1],y=t[h+2],b=i[d+3],w=i[d],D=i[d+1],A=i[d+2];if(g==b&&m==w&&v==D&&y==A)continue;if(g<220&&b>20)return!1}return!0},In.encode=function(t,e,n,i,r,o,s){null==i&&(i=0),null==s&&(s=!1);var a=In.encode.compress(t,e,n,i,[!1,!1,!1,0,s]);return In.encode.compressPNG(a,-1),In.encode._main(a,e,n,r,o)},In.encodeLL=function(t,e,n,i,r,o,s,a){for(var l={ctype:0+(1==i?0:2)+(0==r?0:4),depth:o,frames:[]},u=(Date.now(),(i+r)*o),c=u*e,h=0;h<t.length;h++)l.frames.push({rect:{x:0,y:0,width:e,height:n},img:new Uint8Array(t[h]),blend:0,dispose:1,bpp:Math.ceil(u/8),bpl:Math.ceil(c/8)});return In.encode.compressPNG(l,0,!0),In.encode._main(l,e,n,s,a)},In.encode._main=function(t,e,n,i,r){null==r&&(r={});var o=In.crc.crc,s=In._bin.writeUint,a=In._bin.writeUshort,l=In._bin.writeASCII,u=8,c=t.frames.length>1,h=!1,d=33+(c?20:0);if(null!=r.sRGB&&(d+=13),null!=r.pHYs&&(d+=21),3==t.ctype){for(var f=t.plte.length,p=0;p<f;p++)t.plte[p]>>>24!=255&&(h=!0);d+=8+3*f+4+(h?8+1*f+4:0)}for(var g=0;g<t.frames.length;g++){c&&(d+=38),d+=(C=t.frames[g]).cimg.length+12,0!=g&&(d+=4)}d+=12;var m=new Uint8Array(d),v=[137,80,78,71,13,10,26,10];for(p=0;p<8;p++)m[p]=v[p];if(s(m,u,13),l(m,u+=4,"IHDR"),s(m,u+=4,e),s(m,u+=4,n),m[u+=4]=t.depth,m[++u]=t.ctype,m[++u]=0,m[++u]=0,m[++u]=0,s(m,++u,o(m,u-17,17)),u+=4,null!=r.sRGB&&(s(m,u,1),l(m,u+=4,"sRGB"),m[u+=4]=r.sRGB,s(m,++u,o(m,u-5,5)),u+=4),null!=r.pHYs&&(s(m,u,9),l(m,u+=4,"pHYs"),s(m,u+=4,r.pHYs[0]),s(m,u+=4,r.pHYs[1]),m[u+=4]=r.pHYs[2],s(m,++u,o(m,u-13,13)),u+=4),c&&(s(m,u,8),l(m,u+=4,"acTL"),s(m,u+=4,t.frames.length),s(m,u+=4,null!=r.loop?r.loop:0),s(m,u+=4,o(m,u-12,12)),u+=4),3==t.ctype){s(m,u,3*(f=t.plte.length)),l(m,u+=4,"PLTE"),u+=4;for(p=0;p<f;p++){var y=3*p,b=t.plte[p],w=255&b,D=b>>>8&255,A=b>>>16&255;m[u+y+0]=w,m[u+y+1]=D,m[u+y+2]=A}if(s(m,u+=3*f,o(m,u-3*f-4,3*f+4)),u+=4,h){s(m,u,f),l(m,u+=4,"tRNS"),u+=4;for(p=0;p<f;p++)m[u+p]=t.plte[p]>>>24&255;s(m,u+=f,o(m,u-f-4,f+4)),u+=4}}var x=0;for(g=0;g<t.frames.length;g++){var C=t.frames[g];c&&(s(m,u,26),l(m,u+=4,"fcTL"),s(m,u+=4,x++),s(m,u+=4,C.rect.width),s(m,u+=4,C.rect.height),s(m,u+=4,C.rect.x),s(m,u+=4,C.rect.y),a(m,u+=4,i[g]),a(m,u+=2,1e3),m[u+=2]=C.dispose,m[++u]=C.blend,s(m,++u,o(m,u-30,30)),u+=4);var S=C.cimg;s(m,u,(f=S.length)+(0==g?0:4));var F=u+=4;l(m,u,0==g?"IDAT":"fdAT"),u+=4,0!=g&&(s(m,u,x++),u+=4),m.set(S,u),s(m,u+=f,o(m,F,u-F)),u+=4}return s(m,u,0),l(m,u+=4,"IEND"),s(m,u+=4,o(m,u-4,4)),u+=4,m.buffer},In.encode.compressPNG=function(t,e,n){for(var i=0;i<t.frames.length;i++){var r=t.frames[i],o=(r.rect.width,r.rect.height),s=new Uint8Array(o*r.bpl+o);r.cimg=In.encode._filterZero(r.img,o,r.bpp,r.bpl,s,e,n)}},In.encode.compress=function(t,e,n,i,r){for(var o=r[0],s=r[1],a=r[2],l=r[3],u=r[4],c=6,h=8,d=255,f=0;f<t.length;f++)for(var p=new Uint8Array(t[f]),g=p.length,m=0;m<g;m+=4)d&=p[m+3];var v=255!=d,y=In.encode.framize(t,e,n,o,s,a),b={},w=[],D=[];if(0!=i){var A=[];for(m=0;m<y.length;m++)A.push(y[m].img.buffer);var x=In.encode.concatRGBA(A),C=In.quantize(x,i),S=0,F=new Uint8Array(C.abuf);for(m=0;m<y.length;m++){var E=(H=y[m].img).length;D.push(new Uint8Array(C.inds.buffer,S>>2,E>>2));for(f=0;f<E;f+=4)H[f]=F[S+f],H[f+1]=F[S+f+1],H[f+2]=F[S+f+2],H[f+3]=F[S+f+3];S+=E}for(m=0;m<C.plte.length;m++)w.push(C.plte[m].est.rgba)}else for(f=0;f<y.length;f++){var k=y[f],M=new Uint32Array(k.img.buffer),T=k.rect.width,P=(g=M.length,new Uint8Array(g));D.push(P);for(m=0;m<g;m++){var _=M[m];if(0!=m&&_==M[m-1])P[m]=P[m-1];else if(m>T&&_==M[m-T])P[m]=P[m-T];else{var R=b[_];if(null==R&&(b[_]=R=w.length,w.push(_),w.length>=300))break;P[m]=R}}}var B=w.length;B<=256&&0==u&&(h=B<=2?1:B<=4?2:B<=16?4:8,h=Math.max(h,l));for(f=0;f<y.length;f++){(k=y[f]).rect.x,k.rect.y,T=k.rect.width;var I=k.rect.height,N=k.img,L=(new Uint32Array(N.buffer),4*T),O=4;if(B<=256&&0==u){L=Math.ceil(h*T/8);for(var W=new Uint8Array(L*I),z=D[f],j=0;j<I;j++){m=j*L;var U=j*T;if(8==h)for(var G=0;G<T;G++)W[m+G]=z[U+G];else if(4==h)for(G=0;G<T;G++)W[m+(G>>1)]|=z[U+G]<<4-4*(1&G);else if(2==h)for(G=0;G<T;G++)W[m+(G>>2)]|=z[U+G]<<6-2*(3&G);else if(1==h)for(G=0;G<T;G++)W[m+(G>>3)]|=z[U+G]<<7-1*(7&G)}N=W,c=3,O=1}else if(0==v&&1==y.length){W=new Uint8Array(T*I*3);var V=T*I;for(m=0;m<V;m++){var H,q=4*m;W[H=3*m]=N[q],W[H+1]=N[q+1],W[H+2]=N[q+2]}N=W,c=2,O=3,L=3*T}k.img=N,k.bpl=L,k.bpp=O}return{ctype:c,depth:h,plte:w,frames:y}},In.encode.framize=function(t,e,n,i,r,o){for(var s=[],a=0;a<t.length;a++){var l,u=new Uint8Array(t[a]),c=new Uint32Array(u.buffer),h=0,d=0,f=e,p=n,g=i?1:0;if(0!=a){for(var m=o||i||1==a||0!=s[a-2].dispose?1:2,v=0,y=1e9,b=0;b<m;b++){for(var w=new Uint8Array(t[a-1-b]),D=new Uint32Array(t[a-1-b]),A=e,x=n,C=-1,S=-1,F=0;F<n;F++)for(var E=0;E<e;E++){c[B=F*e+E]!=D[B]&&(E<A&&(A=E),E>C&&(C=E),F<x&&(x=F),F>S&&(S=F))}-1==C&&(A=x=C=S=0),r&&(1==(1&A)&&A--,1==(1&x)&&x--);var k=(C-A+1)*(S-x+1);k<y&&(y=k,v=b,h=A,d=x,f=C-A+1,p=S-x+1)}w=new Uint8Array(t[a-1-v]);1==v&&(s[a-1].dispose=2),l=new Uint8Array(f*p*4),In._copyTile(w,e,n,l,f,p,-h,-d,0),1==(g=In._copyTile(u,e,n,l,f,p,-h,-d,3)?1:0)?In.encode._prepareDiff(u,e,n,l,{x:h,y:d,width:f,height:p}):In._copyTile(u,e,n,l,f,p,-h,-d,0)}else l=u.slice(0);s.push({rect:{x:h,y:d,width:f,height:p},img:l,blend:g,dispose:0})}if(i)for(a=0;a<s.length;a++){if(1!=(I=s[a]).blend){var M=I.rect,T=s[a-1].rect,P=Math.min(M.x,T.x),_=Math.min(M.y,T.y),R={x:P,y:_,width:Math.max(M.x+M.width,T.x+T.width)-P,height:Math.max(M.y+M.height,T.y+T.height)-_};s[a-1].dispose=1,a-1!=0&&In.encode._updateFrame(t,e,n,s,a-1,R,r),In.encode._updateFrame(t,e,n,s,a,R,r)}}if(1!=t.length)for(var B=0;B<s.length;B++){var I;(I=s[B]).rect.width*I.rect.height}return s},In.encode._updateFrame=function(t,e,n,i,r,o,s){for(var a=Uint8Array,l=Uint32Array,u=new a(t[r-1]),c=new l(t[r-1]),h=r+1<t.length?new a(t[r+1]):null,d=new a(t[r]),f=new l(d.buffer),p=e,g=n,m=-1,v=-1,y=0;y<o.height;y++)for(var b=0;b<o.width;b++){var w=o.x+b,D=o.y+y,A=D*e+w,x=f[A];0==x||0==i[r-1].dispose&&c[A]==x&&(null==h||0!=h[4*A+3])||(w<p&&(p=w),w>m&&(m=w),D<g&&(g=D),D>v&&(v=D))}-1==m&&(p=g=m=v=0),s&&(1==(1&p)&&p--,1==(1&g)&&g--),o={x:p,y:g,width:m-p+1,height:v-g+1};var C=i[r];C.rect=o,C.blend=1,C.img=new Uint8Array(o.width*o.height*4),0==i[r-1].dispose?(In._copyTile(u,e,n,C.img,o.width,o.height,-o.x,-o.y,0),In.encode._prepareDiff(d,e,n,C.img,o)):In._copyTile(d,e,n,C.img,o.width,o.height,-o.x,-o.y,0)},In.encode._prepareDiff=function(t,e,n,i,r){In._copyTile(t,e,n,i,r.width,r.height,-r.x,-r.y,2)},In.encode._filterZero=function(t,e,n,i,r,o,s){var a,l=[],u=[0,1,2,3,4];-1!=o?u=[o]:(e*i>5e5||1==n)&&(u=[0]),s&&(a={level:0});for(var c=s&&null!=UZIP?UZIP:nt(),h=0;h<u.length;h++){for(var d=0;d<e;d++)In.encode._filterLine(r,t,d,i,n,u[h]);l.push(c.deflate(r,a))}var f,p=1e9;for(h=0;h<l.length;h++)l[h].length<p&&(f=h,p=l[h].length);return l[f]},In.encode._filterLine=function(t,e,n,i,r,o){var s=n*i,a=s+n,l=In.decode._paeth;if(t[a]=o,a++,0==o)if(i<500)for(var u=0;u<i;u++)t[a+u]=e[s+u];else t.set(new Uint8Array(e.buffer,s,i),a);else if(1==o){for(u=0;u<r;u++)t[a+u]=e[s+u];for(u=r;u<i;u++)t[a+u]=e[s+u]-e[s+u-r]+256&255}else if(0==n){for(u=0;u<r;u++)t[a+u]=e[s+u];if(2==o)for(u=r;u<i;u++)t[a+u]=e[s+u];if(3==o)for(u=r;u<i;u++)t[a+u]=e[s+u]-(e[s+u-r]>>1)+256&255;if(4==o)for(u=r;u<i;u++)t[a+u]=e[s+u]-l(e[s+u-r],0,0)+256&255}else{if(2==o)for(u=0;u<i;u++)t[a+u]=e[s+u]+256-e[s+u-i]&255;if(3==o){for(u=0;u<r;u++)t[a+u]=e[s+u]+256-(e[s+u-i]>>1)&255;for(u=r;u<i;u++)t[a+u]=e[s+u]+256-(e[s+u-i]+e[s+u-r]>>1)&255}if(4==o){for(u=0;u<r;u++)t[a+u]=e[s+u]+256-l(0,e[s+u-i],0)&255;for(u=r;u<i;u++)t[a+u]=e[s+u]+256-l(e[s+u-r],e[s+u-i],e[s+u-r-i])&255}}},In.crc={table:function(){for(var t=new Uint32Array(256),e=0;e<256;e++){for(var n=e,i=0;i<8;i++)1&n?n=3988292384^n>>>1:n>>>=1;t[e]=n}return t}(),update:function(t,e,n,i){for(var r=0;r<i;r++)t=In.crc.table[255&(t^e[n+r])]^t>>>8;return t},crc:function(t,e,n){return 4294967295^In.crc.update(4294967295,t,e,n)}},In.quantize=function(t,e){for(var n=new Uint8Array(t),i=n.slice(0),r=new Uint32Array(i.buffer),o=In.quantize.getKDtree(i,e),s=o[0],a=o[1],l=(In.quantize.planeDst,n),u=r,c=l.length,h=new Uint8Array(n.length>>2),d=0;d<c;d+=4){var f=l[d]*(1/255),p=l[d+1]*(1/255),g=l[d+2]*(1/255),m=l[d+3]*(1/255),v=In.quantize.getNearest(s,f,p,g,m);h[d>>2]=v.ind,u[d>>2]=v.est.rgba}return{abuf:i.buffer,inds:h,plte:a}},In.quantize.getKDtree=function(t,e,n){null==n&&(n=1e-4);var i=new Uint32Array(t.buffer),r={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=In.quantize.stats(t,r.i0,r.i1),r.est=In.quantize.estats(r.bst);for(var o=[r];o.length<e;){for(var s=0,a=0,l=0;l<o.length;l++)o[l].est.L>s&&(s=o[l].est.L,a=l);if(s<n)break;var u=o[a],c=In.quantize.splitPixels(t,i,u.i0,u.i1,u.est.e,u.est.eMq255);if(u.i0>=c||u.i1<=c)u.est.L=0;else{var h={i0:u.i0,i1:c,bst:null,est:null,tdst:0,left:null,right:null};h.bst=In.quantize.stats(t,h.i0,h.i1),h.est=In.quantize.estats(h.bst);var d={i0:c,i1:u.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:u.bst.N-h.bst.N};for(l=0;l<16;l++)d.bst.R[l]=u.bst.R[l]-h.bst.R[l];for(l=0;l<4;l++)d.bst.m[l]=u.bst.m[l]-h.bst.m[l];d.est=In.quantize.estats(d.bst),u.left=h,u.right=d,o[a]=h,o.push(d)}}o.sort(function(t,e){return e.bst.N-t.bst.N});for(l=0;l<o.length;l++)o[l].ind=l;return[r,o]},In.quantize.getNearest=function(t,e,n,i,r){if(null==t.left)return t.tdst=In.quantize.dist(t.est.q,e,n,i,r),t;var o=In.quantize.planeDst(t.est,e,n,i,r),s=t.left,a=t.right;o>0&&(s=t.right,a=t.left);var l=In.quantize.getNearest(s,e,n,i,r);if(l.tdst<=o*o)return l;var u=In.quantize.getNearest(a,e,n,i,r);return u.tdst<l.tdst?u:l},In.quantize.planeDst=function(t,e,n,i,r){var o=t.e;return o[0]*e+o[1]*n+o[2]*i+o[3]*r-t.eMq},In.quantize.dist=function(t,e,n,i,r){var o=e-t[0],s=n-t[1],a=i-t[2],l=r-t[3];return o*o+s*s+a*a+l*l},In.quantize.splitPixels=function(t,e,n,i,r,o){var s=In.quantize.vecDot;i-=4;for(;n<i;){for(;s(t,n,r)<=o;)n+=4;for(;s(t,i,r)>o;)i-=4;if(n>=i)break;var a=e[n>>2];e[n>>2]=e[i>>2],e[i>>2]=a,n+=4,i-=4}for(;s(t,n,r)>o;)n-=4;return n+4},In.quantize.vecDot=function(t,e,n){return t[e]*n[0]+t[e+1]*n[1]+t[e+2]*n[2]+t[e+3]*n[3]},In.quantize.stats=function(t,e,n){for(var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],o=n-e>>2,s=e;s<n;s+=4){var a=t[s]*(1/255),l=t[s+1]*(1/255),u=t[s+2]*(1/255),c=t[s+3]*(1/255);r[0]+=a,r[1]+=l,r[2]+=u,r[3]+=c,i[0]+=a*a,i[1]+=a*l,i[2]+=a*u,i[3]+=a*c,i[5]+=l*l,i[6]+=l*u,i[7]+=l*c,i[10]+=u*u,i[11]+=u*c,i[15]+=c*c}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:r,N:o}},In.quantize.estats=function(t){var e=t.R,n=t.m,i=t.N,r=n[0],o=n[1],s=n[2],a=n[3],l=0==i?0:1/i,u=[e[0]-r*r*l,e[1]-r*o*l,e[2]-r*s*l,e[3]-r*a*l,e[4]-o*r*l,e[5]-o*o*l,e[6]-o*s*l,e[7]-o*a*l,e[8]-s*r*l,e[9]-s*o*l,e[10]-s*s*l,e[11]-s*a*l,e[12]-a*r*l,e[13]-a*o*l,e[14]-a*s*l,e[15]-a*a*l],c=u,h=In.M4,d=[.5,.5,.5,.5],f=0,p=0;if(0!=i)for(var g=0;g<10&&(d=h.multVec(c,d),p=Math.sqrt(h.dot(d,d)),d=h.sml(1/p,d),!(Math.abs(p-f)<1e-9));g++)f=p;var m=[r*l,o*l,s*l,a*l];return{Cov:u,q:m,e:d,L:f,eMq255:h.dot(h.sml(255,m),d),eMq:h.dot(d,m),rgba:(Math.round(255*m[3])<<24|Math.round(255*m[2])<<16|Math.round(255*m[1])<<8|Math.round(255*m[0]))>>>0}},In.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]]}},In.encode.concatRGBA=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].byteLength;var i=new Uint8Array(e),r=0;for(n=0;n<t.length;n++){for(var o=new Uint8Array(t[n]),s=o.length,a=0;a<s;a+=4){var l=o[a],u=o[a+1],c=o[a+2],h=o[a+3];0==h&&(l=u=c=0),i[r+a]=l,i[r+a+1]=u,i[r+a+2]=c,i[r+a+3]=h}r+=s}return i.buffer};const Nn=In;var Ln;!function(t){t.Greyscale="Greyscale",t.Truecolour="Truecolour",t.IndexedColour="IndexedColour",t.GreyscaleWithAlpha="GreyscaleWithAlpha",t.TruecolourWithAlpha="TruecolourWithAlpha"}(Ln||(Ln={}));var On=function(){function t(t){var e=Nn.decode(t),n=Nn.toRGBA8(e);if(n.length>1)throw new Error("Animated PNGs are not supported");var i=function(t){for(var e=Math.floor(t.length/4),n=new Uint8Array(3*e),i=new Uint8Array(1*e),r=0,o=0,s=0;r<t.length;)n[o++]=t[r++],n[o++]=t[r++],n[o++]=t[r++],i[s++]=t[r++];return{rgbChannel:n,alphaChannel:i}}(new Uint8Array(n[0])),r=i.rgbChannel,o=i.alphaChannel;this.rgbChannel=r,o.some(function(t){return t<255})&&(this.alphaChannel=o),this.type=function(t){if(0===t)return Ln.Greyscale;if(2===t)return Ln.Truecolour;if(3===t)return Ln.IndexedColour;if(4===t)return Ln.GreyscaleWithAlpha;if(6===t)return Ln.TruecolourWithAlpha;throw new Error("Unknown color type: "+t)}(e.ctype),this.width=e.width,this.height=e.height,this.bitsPerComponent=8}return t.load=function(e){return new t(e)},t}();const Wn=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 s(this,void 0,void 0,function(){return a(this,function(n){return[2,new t(On.load(e))]})})},t.prototype.embedIntoContext=function(t,e){return s(this,void 0,void 0,function(){var n,i;return a(this,function(r){return n=this.embedAlphaChannel(t),i=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:n}),e?(t.assign(e,i),[2,e]):[2,t.register(i)]})})},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}();const zn=function(){function t(t,e,n){this.bytes=t,this.start=e||0,this.pos=this.start,this.end=e&&n?e+n: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 n=this.bytes,i=this.pos,r=this.end;if(t){var o=i+t;o>r&&(o=r),this.pos=o;s=n.subarray(i,o);return e?new Uint8ClampedArray(s):s}var s=n.subarray(i,r);return e?new Uint8ClampedArray(s):s},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var n=this.getBytes(t,e);return this.pos-=n.length,n},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,n){return new t(this.bytes,e,n)},t.prototype.decode=function(){return this.bytes},t}();var jn=new Uint8Array(0);const Un=function(){function t(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=jn,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){var n;void 0===e&&(e=!1);var i=this.pos;if(t){for(this.ensureBuffer(i+t),n=i+t;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;n>r&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}this.pos=n;var o=this.buffer.subarray(i,n);return!e||o instanceof Uint8ClampedArray?o:new Uint8ClampedArray(o)},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var n=this.getBytes(t,e);return this.pos-=n.length,n},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 n=t+e;this.bufferLength<=n&&!this.eof;)this.readBlock();return new zn(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 Lt(this.constructor.name,"readBlock")},t.prototype.ensureBuffer=function(t){var e=this.buffer;if(t<=e.byteLength)return e;for(var n=this.minBufferLength;n<t;)n*=2;var i=new Uint8Array(n);return i.set(e),this.buffer=i},t}();var Gn=function(t){return 32===t||9===t||13===t||10===t},Vn=function(t){function e(e,n){var i=t.call(this,n)||this;return i.stream=e,i.input=new Uint8Array(5),n&&(n*=.8),i}return r(e,t),e.prototype.readBlock=function(){for(var t=this.stream,e=t.getByte();Gn(e);)e=t.getByte();if(-1!==e&&126!==e){var n,i,r=this.bufferLength;if(122===e){for(n=this.ensureBuffer(r+4),i=0;i<4;++i)n[r+i]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=e,i=1;i<5;++i){for(e=t.getByte();Gn(e);)e=t.getByte();if(o[i]=e,-1===e||126===e)break}if(n=this.ensureBuffer(r+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)o[i]=117;this.eof=!0}var s=0;for(i=0;i<5;++i)s=85*s+(o[i]-33);for(i=3;i>=0;--i)n[r+i]=255&s,s>>=8}}else this.eof=!0},e}(Un);const Hn=Vn;var qn=function(t){function e(e,n){var i=t.call(this,n)||this;return i.stream=e,i.firstDigit=-1,n&&(n*=.5),i}return r(e,t),e.prototype.readBlock=function(){var t=this.stream.getBytes(8e3);if(t.length){for(var e=t.length+1>>1,n=this.ensureBuffer(this.bufferLength+e),i=this.bufferLength,r=this.firstDigit,o=0,s=t.length;o<s;o++){var a=t[o],l=void 0;if(a>=48&&a<=57)l=15&a;else{if(!(a>=65&&a<=70||a>=97&&a<=102)){if(62===a){this.eof=!0;break}continue}l=9+(15&a)}r<0?r=l:(n[i++]=r<<4|l,r=-1)}r>=0&&this.eof&&(n[i++]=r<<4,r=-1),this.firstDigit=r,this.bufferLength=i}else this.eof=!0},e}(Un);const Xn=qn;var Kn=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Yn=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]),Zn=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]),Qn=[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],Jn=[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],$n=function(t){function e(e,n){var i=t.call(this,n)||this;i.stream=e;var r=e.getByte(),o=e.getByte();if(-1===r||-1===o)throw new Error("Invalid header in flate stream: "+r+", "+o);if(8!==(15&r))throw new Error("Unknown compression method in flate stream: "+r+", "+o);if(((r<<8)+o)%31!==0)throw new Error("Bad FCHECK in flate stream: "+r+", "+o);if(32&o)throw new Error("FDICT bit set in flate stream: "+r+", "+o);return i.codeSize=0,i.codeBuf=0,i}return r(e,t),e.prototype.readBlock=function(){var t,e,n=this.stream,i=this.getBits(3);if(1&i&&(this.eof=!0),0!==(i>>=1)){var r,o;if(1===i)r=Qn,o=Jn;else{if(2!==i)throw new Error("Unknown block type in flate stream");var s=this.getBits(5)+257,a=this.getBits(5)+1,l=this.getBits(4)+4,u=new Uint8Array(Kn.length),c=void 0;for(c=0;c<l;++c)u[Kn[c]]=this.getBits(3);var h=this.generateHuffmanTable(u);e=0,c=0;for(var d=s+a,f=new Uint8Array(d),p=void 0,g=void 0,m=void 0;c<d;){var v=this.getCode(h);if(16===v)p=2,g=3,m=e;else if(17===v)p=3,g=3,m=e=0;else{if(18!==v){f[c++]=e=v;continue}p=7,g=11,m=e=0}for(var y=this.getBits(p)+g;y-- >0;)f[c++]=m}r=this.generateHuffmanTable(f.subarray(0,s)),o=this.generateHuffmanTable(f.subarray(s,d))}for(var b=(t=this.buffer)?t.length:0,w=this.bufferLength;;){var D=this.getCode(r);if(D<256)w+1>=b&&(b=(t=this.ensureBuffer(w+1)).length),t[w++]=D;else{if(256===D)return void(this.bufferLength=w);var A=(D=Yn[D-=257])>>16;A>0&&(A=this.getBits(A)),e=(65535&D)+A,D=this.getCode(o),(A=(D=Zn[D])>>16)>0&&(A=this.getBits(A));var x=(65535&D)+A;w+e>=b&&(b=(t=this.ensureBuffer(w+e)).length);for(var C=0;C<e;++C,++w)t[w]=t[w-x]}}}else{var S=void 0;if(-1===(S=n.getByte()))throw new Error("Bad block header in flate stream");var F=S;if(-1===(S=n.getByte()))throw new Error("Bad block header in flate stream");if(F|=S<<8,-1===(S=n.getByte()))throw new Error("Bad block header in flate stream");var E=S;if(-1===(S=n.getByte()))throw new Error("Bad block header in flate stream");if((E|=S<<8)!==(65535&~F)&&(0!==F||0!==E))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var k=this.bufferLength;t=this.ensureBuffer(k+F);var M=k+F;if(this.bufferLength=M,0===F)-1===n.peekByte()&&(this.eof=!0);else for(var T=k;T<M;++T){if(-1===(S=n.getByte())){this.eof=!0;break}t[T]=S}}},e.prototype.getBits=function(t){for(var e,n=this.stream,i=this.codeSize,r=this.codeBuf;i<t;){if(-1===(e=n.getByte()))throw new Error("Bad encoding in flate stream");r|=e<<i,i+=8}return e=r&(1<<t)-1,this.codeBuf=r>>t,this.codeSize=i-=t,e},e.prototype.getCode=function(t){for(var e,n=this.stream,i=t[0],r=t[1],o=this.codeSize,s=this.codeBuf;o<r&&-1!==(e=n.getByte());)s|=e<<o,o+=8;var a=i[s&(1<<r)-1];"number"===typeof i&&console.log("FLATE:",a);var l=a>>16,u=65535&a;if(l<1||o<l)throw new Error("Bad encoding in flate stream");return this.codeBuf=s>>l,this.codeSize=o-l,u},e.prototype.generateHuffmanTable=function(t){var e,n=t.length,i=0;for(e=0;e<n;++e)t[e]>i&&(i=t[e]);for(var r=1<<i,o=new Int32Array(r),s=1,a=0,l=2;s<=i;++s,a<<=1,l<<=1)for(var u=0;u<n;++u)if(t[u]===s){var c=0,h=a;for(e=0;e<s;++e)c=c<<1|1&h,h>>=1;for(e=c;e<r;e+=l)o[e]=s<<16|u;++a}return[o,i]},e}(Un);const ti=$n;var ei=function(t){function e(e,n,i){var r=t.call(this,n)||this;r.stream=e,r.cachedData=0,r.bitsCached=0;for(var o=4096,s={earlyChange:i,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(o),dictionaryLengths:new Uint16Array(o),dictionaryPrevCodes:new Uint16Array(o),currentSequence:new Uint8Array(o),currentSequenceLength:0},a=0;a<256;++a)s.dictionaryValues[a]=a,s.dictionaryLengths[a]=1;return r.lzwState=s,r}return r(e,t),e.prototype.readBlock=function(){var t,e,n,i=1024,r=this.lzwState;if(r){var o=r.earlyChange,s=r.nextCode,a=r.dictionaryValues,l=r.dictionaryLengths,u=r.dictionaryPrevCodes,c=r.codeLength,h=r.prevCode,d=r.currentSequence,f=r.currentSequenceLength,p=0,g=this.bufferLength,m=this.ensureBuffer(this.bufferLength+i);for(t=0;t<512;t++){var v=this.readBits(c),y=f>0;if(!v||v<256)d[0]=v,f=1;else{if(!(v>=258)){if(256===v){c=9,s=258,f=0;continue}this.eof=!0,delete this.lzwState;break}if(v<s)for(e=(f=l[v])-1,n=v;e>=0;e--)d[e]=a[n],n=u[n];else d[f++]=d[0]}if(y&&(u[s]=h,l[s]=l[h]+1,a[s]=d[0],c=++s+o&s+o-1?c:0|Math.min(Math.log(s+o)/.6931471805599453+1,12)),h=v,i<(p+=f)){do{i+=512}while(i<p);m=this.ensureBuffer(this.bufferLength+i)}for(e=0;e<f;e++)m[g++]=d[e]}r.nextCode=s,r.codeLength=c,r.prevCode=h,r.currentSequenceLength=f,this.bufferLength=g}},e.prototype.readBits=function(t){for(var e=this.bitsCached,n=this.cachedData;e<t;){var i=this.stream.getByte();if(-1===i)return this.eof=!0,null;n=n<<8|i,e+=8}return this.bitsCached=e-=t,this.cachedData=n,n>>>e&(1<<t)-1},e}(Un);const ni=ei;var ii=function(t){function e(e,n){var i=t.call(this,n)||this;return i.stream=e,i}return r(e,t),e.prototype.readBlock=function(){var t=this.stream.getBytes(2);if(!t||t.length<2||128===t[0])this.eof=!0;else{var e,n=this.bufferLength,i=t[0];if(i<128){if((e=this.ensureBuffer(n+i+1))[n++]=t[1],i>0){var r=this.stream.getBytes(i);e.set(r,n),n+=i}}else{i=257-i;var o=t[1];e=this.ensureBuffer(n+i+1);for(var s=0;s<i;s++)e[n++]=o}this.bufferLength=n}},e}(Un);const ri=ii;var oi=function(t,e,n){if(e===Ee.of("FlateDecode"))return new ti(t);if(e===Ee.of("LZWDecode")){var i=1;if(n instanceof Te){var r=n.lookup(Ee.of("EarlyChange"));r instanceof fe&&(i=r.asNumber())}return new ni(t,void 0,i)}if(e===Ee.of("ASCII85Decode"))return new Hn(t);if(e===Ee.of("ASCIIHexDecode"))return new Xn(t);if(e===Ee.of("RunLengthDecode"))return new ri(t);throw new zt(e.asString())},si=function(t){var e=t.dict,n=t.contents,i=new zn(n),r=e.lookup(Ee.of("Filter")),o=e.lookup(Ee.of("DecodeParms"));if(r instanceof Ee)i=oi(i,r,o);else if(r instanceof ge)for(var s=0,a=r.size();s<a;s++)i=oi(i,r.lookup(s,Ee),o&&o.lookupMaybe(s,Te));else if(r)throw new Wt([Ee,ge],r);return i},ai=function(){function t(t,e,n){this.page=t;var i=null!==e&&void 0!==e?e:function(t){var e=t.MediaBox();return{left:0,bottom:0,right:e.lookup(2,fe).asNumber()-e.lookup(0,fe).asNumber(),top:e.lookup(3,fe).asNumber()-e.lookup(1,fe).asNumber()}}(t);this.width=i.right-i.left,this.height=i.top-i.bottom,this.boundingBox=i,this.transformationMatrix=null!==n&&void 0!==n?n:function(t){return[1,0,0,1,-t.left,-t.bottom]}(i)}return t.for=function(e,n,i){return s(this,void 0,void 0,function(){return a(this,function(r){return[2,new t(e,n,i)]})})},t.prototype.embedIntoContext=function(t,e){return s(this,void 0,void 0,function(){var n,i,r,o,s,l,u,c,h,d;return a(this,function(a){if(n=this.page.normalizedEntries(),i=n.Contents,r=n.Resources,!i)throw new Ut;return o=this.decodeContents(i),s=this.boundingBox,l=s.left,u=s.bottom,c=s.right,h=s.top,d=t.flateStream(o,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[l,u,c,h],Matrix:this.transformationMatrix,Resources:r}),e?(t.assign(e,d),[2,e]):[2,t.register(d)]})})},t.prototype.decodeContents=function(t){for(var e=Uint8Array.of(ce.Newline),n=[],i=0,r=t.size();i<r;i++){var o=t.lookup(i,_e),s=void 0;if(o instanceof Re)s=si(o).decode();else{if(!(o instanceof Ge))throw new Gt(o);s=o.getUnencodedContents()}n.push(s,e)}return I.apply(void 0,n)},t}();const li=ai;var ui,ci,hi,di,fi=function(t,e){if(void 0!==t)return e[t]};!function(t){t.UseNone="UseNone",t.UseOutlines="UseOutlines",t.UseThumbs="UseThumbs",t.UseOC="UseOC"}(ui||(ui={})),function(t){t.L2R="L2R",t.R2L="R2L"}(ci||(ci={})),function(t){t.None="None",t.AppDefault="AppDefault"}(hi||(hi={})),function(t){t.Simplex="Simplex",t.DuplexFlipShortEdge="DuplexFlipShortEdge",t.DuplexFlipLongEdge="DuplexFlipLongEdge"}(di||(di={}));var pi=function(){function t(t){this.dict=t}return t.prototype.lookupBool=function(t){var e=this.dict.lookup(Ee.of(t));if(e instanceof ve)return e},t.prototype.lookupName=function(t){var e=this.dict.lookup(Ee.of(t));if(e instanceof Ee)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(Ee.of("PrintPageRange"));if(t instanceof ge)return t},t.prototype.NumCopies=function(){var t=this.dict.lookup(Ee.of("NumCopies"));if(t instanceof fe)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,n=null===(t=this.NonFullScreenPageMode())||void 0===t?void 0:t.decodeText();return null!==(e=fi(n,ui))&&void 0!==e?e:ui.UseNone},t.prototype.getReadingDirection=function(){var t,e,n=null===(t=this.Direction())||void 0===t?void 0:t.decodeText();return null!==(e=fi(n,ci))&&void 0!==e?e:ci.L2R},t.prototype.getPrintScaling=function(){var t,e,n=null===(t=this.PrintScaling())||void 0===t?void 0:t.decodeText();return null!==(e=fi(n,hi))&&void 0!==e?e:hi.AppDefault},t.prototype.getDuplex=function(){var t,e=null===(t=this.Duplex())||void 0===t?void 0:t.decodeText();return fi(e,di)},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=[],n=0;n<t.size();n+=2){var i=t.lookup(n,fe).asNumber(),r=t.lookup(n+1,fe).asNumber();e.push({start:i,end:r})}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(Ee.of("HideToolbar"),e)},t.prototype.setHideMenubar=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("HideMenubar"),e)},t.prototype.setHideWindowUI=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("HideWindowUI"),e)},t.prototype.setFitWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("FitWindow"),e)},t.prototype.setCenterWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("CenterWindow"),e)},t.prototype.setDisplayDocTitle=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("DisplayDocTitle"),e)},t.prototype.setNonFullScreenPageMode=function(t){Dt(t,"nonFullScreenPageMode",ui);var e=Ee.of(t);this.dict.set(Ee.of("NonFullScreenPageMode"),e)},t.prototype.setReadingDirection=function(t){Dt(t,"readingDirection",ci);var e=Ee.of(t);this.dict.set(Ee.of("Direction"),e)},t.prototype.setPrintScaling=function(t){Dt(t,"printScaling",hi);var e=Ee.of(t);this.dict.set(Ee.of("PrintScaling"),e)},t.prototype.setDuplex=function(t){Dt(t,"duplex",di);var e=Ee.of(t);this.dict.set(Ee.of("Duplex"),e)},t.prototype.setPickTrayByPDFSize=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("PickTrayByPDFSize"),e)},t.prototype.setPrintPageRange=function(t){Array.isArray(t)||(t=[t]);for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n].start),e.push(t[n].end);Et(e,"printPageRange",["number"]);var r=this.dict.context.obj(e);this.dict.set(Ee.of("PrintPageRange"),r)},t.prototype.setNumCopies=function(t){kt(t,"numCopies",1,Number.MAX_VALUE),function(t,e){if(!Number.isInteger(t))throw new Error(bt(e)+" must be an integer, but was actually "+t)}(t,"numCopies");var e=this.dict.context.obj(t);this.dict.set(Ee.of("NumCopies"),e)},t.fromDict=function(e){return new t(e)},t.create=function(e){return new t(e.obj({}))},t}();const gi=pi;var mi=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,vi=function(){function t(t,e){this.dict=t,this.ref=e}return t.prototype.T=function(){return this.dict.lookupMaybe(Ee.of("T"),Cn,gn)},t.prototype.Ff=function(){var t=this.getInheritableAttribute(Ee.of("Ff"));return this.dict.context.lookupMaybe(t,fe)},t.prototype.V=function(){var t=this.getInheritableAttribute(Ee.of("V"));return this.dict.context.lookup(t)},t.prototype.Kids=function(){return this.dict.lookupMaybe(Ee.of("Kids"),ge)},t.prototype.DA=function(){var t=this.dict.lookup(Ee.of("DA"));if(t instanceof Cn||t instanceof gn)return t},t.prototype.setKids=function(t){this.dict.set(Ee.of("Kids"),this.dict.context.obj(t))},t.prototype.getParent=function(){var e=this.dict.get(Ee.of("Parent"));if(e instanceof Ne)return new t(this.dict.lookup(Ee.of("Parent"),Te),e)},t.prototype.setParent=function(t){t?this.dict.set(Ee.of("Parent"),t):this.dict.delete(Ee.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(Ee.of("T"),gn.fromText(t)):this.dict.delete(Ee.of("T"))},t.prototype.setDefaultAppearance=function(t){this.dict.set(Ee.of("DA"),Cn.of(t))},t.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof gn?t.decodeText():null===t||void 0===t?void 0:t.asString()},t.prototype.setFontSize=function(t){var e,n=null!==(e=this.getFullyQualifiedName())&&void 0!==e?e:"",i=this.getDefaultAppearance();if(!i)throw new Jt(n);var r=_(i,mi);if(!r.match)throw new $t(n);var o=i.slice(0,r.pos-r.match[0].length),s=r.pos<=i.length?i.slice(r.pos):"",a=o+" /"+r.match[1]+" "+t+" Tf "+s;this.setDefaultAppearance(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(Ee.of("Ff"),fe.of(t))},t.prototype.hasFlag=function(t){return 0!==(this.getFlags()&t)},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(n){e||(e=n.dict.get(t))}),e},t.prototype.ascend=function(t){t(this);var e=this.getParent();e&&e.ascend(t)},t}();const yi=vi;const bi=function(){function t(t){this.dict=t}return t.prototype.W=function(){var t=this.dict.lookup(Ee.of("W"));if(t instanceof fe)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(Ee.of("W"),e)},t.fromDict=function(e){return new t(e)},t}();var wi=function(){function t(t){this.dict=t}return t.prototype.Rect=function(){return this.dict.lookup(Ee.of("Rect"),ge)},t.prototype.AP=function(){return this.dict.lookupMaybe(Ee.of("AP"),Te)},t.prototype.F=function(){var t=this.dict.lookup(Ee.of("F"));return this.dict.context.lookupMaybe(t,fe)},t.prototype.getRectangle=function(){var t,e=this.Rect();return null!==(t=null===e||void 0===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,n=t.y,i=t.width,r=t.height,o=this.dict.context.obj([e,n,e+i,n+r]);this.dict.set(Ee.of("Rect"),o)},t.prototype.getAppearanceState=function(){var t=this.dict.lookup(Ee.of("AS"));if(t instanceof Ee)return t},t.prototype.setAppearanceState=function(t){this.dict.set(Ee.of("AS"),t)},t.prototype.setAppearances=function(t){this.dict.set(Ee.of("AP"),t)},t.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(Ee.of("AP"),t)),t},t.prototype.getNormalAppearance=function(){var t=this.ensureAP().get(Ee.of("N"));if(t instanceof Ne||t instanceof Te)return t;throw new Error("Unexpected N type: "+(null===t||void 0===t?void 0:t.constructor.name))},t.prototype.setNormalAppearance=function(t){this.ensureAP().set(Ee.of("N"),t)},t.prototype.setRolloverAppearance=function(t){this.ensureAP().set(Ee.of("R"),t)},t.prototype.setDownAppearance=function(t){this.ensureAP().set(Ee.of("D"),t)},t.prototype.removeRolloverAppearance=function(){var t=this.AP();null===t||void 0===t||t.delete(Ee.of("R"))},t.prototype.removeDownAppearance=function(){var t=this.AP();null===t||void 0===t||t.delete(Ee.of("D"))},t.prototype.getAppearances=function(){var t=this.AP();if(t)return{normal:t.lookup(Ee.of("N"),Te,_e),rollover:t.lookupMaybe(Ee.of("R"),Te,_e),down:t.lookupMaybe(Ee.of("D"),Te,_e)}},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(Ee.of("F"),fe.of(t))},t.prototype.hasFlag=function(t){return 0!==(this.getFlags()&t)},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}();const Di=wi;var Ai=function(){function t(t){this.dict=t}return t.prototype.R=function(){var t=this.dict.lookup(Ee.of("R"));if(t instanceof fe)return t},t.prototype.BC=function(){var t=this.dict.lookup(Ee.of("BC"));if(t instanceof ge)return t},t.prototype.BG=function(){var t=this.dict.lookup(Ee.of("BG"));if(t instanceof ge)return t},t.prototype.CA=function(){var t=this.dict.lookup(Ee.of("CA"));if(t instanceof gn||t instanceof Cn)return t},t.prototype.RC=function(){var t=this.dict.lookup(Ee.of("RC"));if(t instanceof gn||t instanceof Cn)return t},t.prototype.AC=function(){var t=this.dict.lookup(Ee.of("AC"));if(t instanceof gn||t instanceof Cn)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=[],n=0,i=null===t||void 0===t?void 0:t.size();n<i;n++){var r=t.get(n);r instanceof fe&&e.push(r.asNumber())}return e}},t.prototype.getBackgroundColor=function(){var t=this.BG();if(t){for(var e=[],n=0,i=null===t||void 0===t?void 0:t.size();n<i;n++){var r=t.get(n);r instanceof fe&&e.push(r.asNumber())}return e}},t.prototype.getCaptions=function(){var t=this.CA(),e=this.RC(),n=this.AC();return{normal:null===t||void 0===t?void 0:t.decodeText(),rollover:null===e||void 0===e?void 0:e.decodeText(),down:null===n||void 0===n?void 0:n.decodeText()}},t.prototype.setRotation=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("R"),e)},t.prototype.setBorderColor=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("BC"),e)},t.prototype.setBackgroundColor=function(t){var e=this.dict.context.obj(t);this.dict.set(Ee.of("BG"),e)},t.prototype.setCaptions=function(t){var e=gn.fromText(t.normal);if(this.dict.set(Ee.of("CA"),e),t.rollover){var n=gn.fromText(t.rollover);this.dict.set(Ee.of("RC"),n)}else this.dict.delete(Ee.of("RC"));if(t.down){var i=gn.fromText(t.down);this.dict.set(Ee.of("AC"),i)}else this.dict.delete(Ee.of("AC"))},t.fromDict=function(e){return new t(e)},t}();const xi=Ai;var Ci=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.MK=function(){var t=this.dict.lookup(Ee.of("MK"));if(t instanceof Te)return t},e.prototype.BS=function(){var t=this.dict.lookup(Ee.of("BS"));if(t instanceof Te)return t},e.prototype.DA=function(){var t=this.dict.lookup(Ee.of("DA"));if(t instanceof Cn||t instanceof gn)return t},e.prototype.P=function(){var t=this.dict.get(Ee.of("P"));if(t instanceof Ne)return t},e.prototype.setP=function(t){this.dict.set(Ee.of("P"),t)},e.prototype.setDefaultAppearance=function(t){this.dict.set(Ee.of("DA"),Cn.of(t))},e.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof gn?t.decodeText():null===t||void 0===t?void 0:t.asString()},e.prototype.getAppearanceCharacteristics=function(){var t=this.MK();if(t)return xi.fromDict(t)},e.prototype.getOrCreateAppearanceCharacteristics=function(){var t=this.MK();if(t)return xi.fromDict(t);var e=xi.fromDict(this.dict.context.obj({}));return this.dict.set(Ee.of("MK"),e.dict),e},e.prototype.getBorderStyle=function(){var t=this.BS();if(t)return bi.fromDict(t)},e.prototype.getOrCreateBorderStyle=function(){var t=this.BS();if(t)return bi.fromDict(t);var e=bi.fromDict(this.dict.context.obj({}));return this.dict.set(Ee.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 Te)for(var n=e.keys(),i=0,r=n.length;i<r;i++){var o=n[i];if(o!==Ee.of("Off"))return o}},e.fromDict=function(t){return new e(t)},e.create=function(t,n){return new e(t.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:n}))},e}(Di);const Si=Ci;var Fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.FT=function(){var t=this.getInheritableAttribute(Ee.of("FT"));return this.dict.context.lookup(t,Ee)},e.prototype.getWidgets=function(){var t=this.Kids();if(!t)return[Si.fromDict(this.dict)];for(var e=new Array(t.size()),n=0,i=t.size();n<i;n++){var r=t.lookup(n,Te);e[n]=Si.fromDict(r)}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 Yt(t,0,e.size());e.remove(t)}else{if(0!==t)throw new Yt(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(Ee.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,n){return new e(t,n)},e}(yi);const Ei=Fi;var ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.Opt=function(){return this.dict.lookupMaybe(Ee.of("Opt"),Cn,gn,ge)},e.prototype.setOpt=function(t){this.dict.set(Ee.of("Opt"),this.dict.context.obj(t))},e.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof Cn||t instanceof gn)return[t];for(var e=[],n=0,i=t.size();n<i;n++){var r=t.lookup(n);(r instanceof Cn||r instanceof gn)&&e.push(r)}return e}},e.prototype.removeExportValue=function(t){var e=this.Opt();if(e)if(e instanceof Cn||e instanceof gn){if(0!==t)throw new Yt(t,0,0);this.setOpt([])}else{if(t<0||t>e.size())throw new Yt(t,0,e.size());e.remove(t)}},e.prototype.normalizeExportValues=function(){for(var t,e,n,i,r=null!==(t=this.getExportValues())&&void 0!==t?t:[],o=[],s=this.getWidgets(),a=0,l=s.length;a<l;a++){var u=s[a],c=null!==(e=r[a])&&void 0!==e?e:gn.fromText(null!==(i=null===(n=u.getOnValue())||void 0===n?void 0:n.decodeText())&&void 0!==i?i:"");o.push(c)}this.setOpt(o)},e.prototype.addOpt=function(t,e){var n;this.normalizeExportValues();var i,r=t.decodeText();if(e)for(var o=null!==(n=this.getExportValues())&&void 0!==n?n:[],s=0,a=o.length;s<a;s++){o[s].decodeText()===r&&(i=s)}var l=this.Opt();return l.push(t),null!==i&&void 0!==i?i:l.size()-1},e.prototype.addWidgetWithOpt=function(t,e,n){var i=this.addOpt(e,n),r=Ee.of(String(i));return this.addWidget(t),r},e}(Ei);const Mi=ki;var Ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setValue=function(t){var e;if(t!==(null!==(e=this.getOnValue())&&void 0!==e?e:Ee.of("Yes"))&&t!==Ee.of("Off"))throw new Zt;this.dict.set(Ee.of("V"),t);for(var n=this.getWidgets(),i=0,r=n.length;i<r;i++){var o=n[i],s=o.getOnValue()===t?t:Ee.of("Off");o.setAppearanceState(s)}},e.prototype.getValue=function(){var t=this.V();return t instanceof Ee?t:Ee.of("Off")},e.prototype.getOnValue=function(){var t=this.getWidgets()[0];return null===t||void 0===t?void 0:t.getOnValue()},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Btn",Kids:[]});return new e(n,t.register(n))},e}(Mi);const Pi=Ti;var _i,Ri,Bi,Ii,Ni=function(t){return 1<<t};!function(t){t[t.ReadOnly=Ni(0)]="ReadOnly",t[t.Required=Ni(1)]="Required",t[t.NoExport=Ni(2)]="NoExport"}(_i||(_i={})),function(t){t[t.NoToggleToOff=Ni(14)]="NoToggleToOff",t[t.Radio=Ni(15)]="Radio",t[t.PushButton=Ni(16)]="PushButton",t[t.RadiosInUnison=Ni(25)]="RadiosInUnison"}(Ri||(Ri={})),function(t){t[t.Multiline=Ni(12)]="Multiline",t[t.Password=Ni(13)]="Password",t[t.FileSelect=Ni(20)]="FileSelect",t[t.DoNotSpellCheck=Ni(22)]="DoNotSpellCheck",t[t.DoNotScroll=Ni(23)]="DoNotScroll",t[t.Comb=Ni(24)]="Comb",t[t.RichText=Ni(25)]="RichText"}(Bi||(Bi={})),function(t){t[t.Combo=Ni(17)]="Combo",t[t.Edit=Ni(18)]="Edit",t[t.Sort=Ni(19)]="Sort",t[t.MultiSelect=Ni(21)]="MultiSelect",t[t.DoNotSpellCheck=Ni(22)]="DoNotSpellCheck",t[t.CommitOnSelChange=Ni(26)]="CommitOnSelChange"}(Ii||(Ii={}));var Li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setValues=function(t){if(this.hasFlag(Ii.Combo)&&!this.hasFlag(Ii.Edit)&&!this.valuesAreValid(t))throw new Zt;if(0===t.length&&this.dict.delete(Ee.of("V")),1===t.length&&this.dict.set(Ee.of("V"),t[0]),t.length>1){if(!this.hasFlag(Ii.MultiSelect))throw new Qt;this.dict.set(Ee.of("V"),this.dict.context.obj(t))}this.updateSelectedIndices(t)},e.prototype.valuesAreValid=function(t){for(var e=this.getOptions(),n=function(n,i){var r=t[n].decodeText();if(!e.find(function(t){return r===(t.display||t.value).decodeText()}))return{value:!1}},i=0,r=t.length;i<r;i++){var o=n(i);if("object"===typeof o)return o.value}return!0},e.prototype.updateSelectedIndices=function(t){if(t.length>1){for(var e=new Array(t.length),n=this.getOptions(),i=function(i,r){var o=t[i].decodeText();e[i]=n.findIndex(function(t){return o===(t.display||t.value).decodeText()})},r=0,o=t.length;r<o;r++)i(r);this.dict.set(Ee.of("I"),this.dict.context.obj(e.sort()))}else this.dict.delete(Ee.of("I"))},e.prototype.getValues=function(){var t=this.V();if(t instanceof Cn||t instanceof gn)return[t];if(t instanceof ge){for(var e=[],n=0,i=t.size();n<i;n++){var r=t.lookup(n);(r instanceof Cn||r instanceof gn)&&e.push(r)}return e}return[]},e.prototype.Opt=function(){return this.dict.lookupMaybe(Ee.of("Opt"),Cn,gn,ge)},e.prototype.setOptions=function(t){for(var e=new Array(t.length),n=0,i=t.length;n<i;n++){var r=t[n],o=r.value,s=r.display;e[n]=this.dict.context.obj([o,s||o])}this.dict.set(Ee.of("Opt"),this.dict.context.obj(e))},e.prototype.getOptions=function(){var t=this.Opt();if(t instanceof Cn||t instanceof gn)return[{value:t,display:t}];if(t instanceof ge){for(var e=[],n=0,i=t.size();n<i;n++){var r=t.lookup(n);if((r instanceof Cn||r instanceof gn)&&e.push({value:r,display:r}),r instanceof ge&&r.size()>0){var o=r.lookup(0,Cn,gn),s=r.lookupMaybe(1,Cn,gn);e.push({value:o,display:s||o})}}return e}return[]},e}(Ei);const Oi=Li;const Wi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Ch",Ff:Ii.Combo,Kids:[]});return new e(n,t.register(n))},e}(Oi);const zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.addField=function(t){var e=this.normalizedEntries().Kids;null===e||void 0===e||e.push(t)},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([]),this.dict.set(Ee.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({});return new e(n,t.register(n))},e}(yi);const ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.fromDict=function(t,n){return new e(t,n)},e}(Ei);const Ui=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.MaxLen=function(){var t=this.dict.lookup(Ee.of("MaxLen"));if(t instanceof fe)return t},e.prototype.Q=function(){var t=this.dict.lookup(Ee.of("Q"));if(t instanceof fe)return t},e.prototype.setMaxLength=function(t){this.dict.set(Ee.of("MaxLen"),fe.of(t))},e.prototype.removeMaxLength=function(){this.dict.delete(Ee.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(Ee.of("Q"),fe.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(Ee.of("V"),t)},e.prototype.removeValue=function(){this.dict.delete(Ee.of("V"))},e.prototype.getValue=function(){var t=this.V();if(t instanceof Cn||t instanceof gn)return t},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Tx",Kids:[]});return new e(n,t.register(n))},e}(Ei);const Gi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Btn",Ff:Ri.PushButton,Kids:[]});return new e(n,t.register(n))},e}(Mi);var Vi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setValue=function(t){if(!this.getOnValues().includes(t)&&t!==Ee.of("Off"))throw new Zt;this.dict.set(Ee.of("V"),t);for(var e=this.getWidgets(),n=0,i=e.length;n<i;n++){var r=e[n],o=r.getOnValue()===t?t:Ee.of("Off");r.setAppearanceState(o)}},e.prototype.getValue=function(){var t=this.V();return t instanceof Ee?t:Ee.of("Off")},e.prototype.getOnValues=function(){for(var t=this.getWidgets(),e=[],n=0,i=t.length;n<i;n++){var r=t[n].getOnValue();r&&e.push(r)}return e},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Btn",Ff:Ri.Radio,Kids:[]});return new e(n,t.register(n))},e}(Mi);const Hi=Vi;const qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Ch",Kids:[]});return new e(n,t.register(n))},e}(Oi);var Xi=function(t){if(!t)return[];for(var e=[],n=0,i=t.size();n<i;n++){var r=t.get(n),o=t.lookup(n);r instanceof Ne&&o instanceof Te&&e.push([Ki(o,r),r])}return e},Ki=function(t,e){return Yi(t)?zi.fromDict(t,e):Zi(t,e)},Yi=function(t){var e=t.lookup(Ee.of("Kids"));if(e instanceof ge)for(var n=0,i=e.size();n<i;n++){var r=e.lookup(n);if(r instanceof Te&&r.has(Ee.of("T")))return!0}return!1},Zi=function(t,e){var n=tr(t,Ee.of("FT")),i=t.context.lookup(n,Ee);return i===Ee.of("Btn")?Qi(t,e):i===Ee.of("Ch")?Ji(t,e):i===Ee.of("Tx")?Ui.fromDict(t,e):i===Ee.of("Sig")?ji.fromDict(t,e):Ei.fromDict(t,e)},Qi=function(t,e){var n,i=tr(t,Ee.of("Ff")),r=t.context.lookupMaybe(i,fe),o=null!==(n=null===r||void 0===r?void 0:r.asNumber())&&void 0!==n?n:0;return $i(o,Ri.PushButton)?Gi.fromDict(t,e):$i(o,Ri.Radio)?Hi.fromDict(t,e):Pi.fromDict(t,e)},Ji=function(t,e){var n,i=tr(t,Ee.of("Ff")),r=t.context.lookupMaybe(i,fe),o=null!==(n=null===r||void 0===r?void 0:r.asNumber())&&void 0!==n?n:0;return $i(o,Ii.Combo)?Wi.fromDict(t,e):qi.fromDict(t,e)},$i=function(t,e){return 0!==(t&e)},tr=function(t,e){var n;return er(t,function(t){n||(n=t.get(e))}),n},er=function(t,e){e(t);var n=t.lookupMaybe(Ee.of("Parent"),Te);n&&er(n,e)},nr=function(){function t(t){this.dict=t}return t.prototype.Fields=function(){var t=this.dict.lookup(Ee.of("Fields"));if(t instanceof ge)return t},t.prototype.getFields=function(){for(var t=this.normalizedEntries().Fields,e=new Array(t.size()),n=0,i=t.size();n<i;n++){var r=t.get(n),o=t.lookup(n,Te);e[n]=[Ki(o,r),r]}return e},t.prototype.getAllFields=function(){var t=[],e=function(n){if(n)for(var i=0,r=n.length;i<r;i++){var o=n[i];t.push(o);var s=o[0];s instanceof zi&&e(Xi(s.Kids()))}};return e(this.getFields()),t},t.prototype.addField=function(t){var e=this.normalizedEntries().Fields;null===e||void 0===e||e.push(t)},t.prototype.removeField=function(t){var e=t.getParent(),n=void 0===e?this.normalizedEntries().Fields:e.Kids(),i=null===n||void 0===n?void 0:n.indexOf(t.ref);if(void 0===n||void 0===i)throw new Error("Tried to remove inexistent field "+t.getFullyQualifiedName());n.remove(i),void 0!==e&&0===n.size()&&this.removeField(e)},t.prototype.normalizedEntries=function(){var t=this.Fields();return t||(t=this.dict.context.obj([]),this.dict.set(Ee.of("Fields"),t)),{Fields:t}},t.fromDict=function(e){return new t(e)},t.create=function(e){return new t(e.obj({Fields:[]}))},t}();const ir=nr;const rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.Pages=function(){return this.lookup(Ee.of("Pages"),Te)},e.prototype.AcroForm=function(){return this.lookupMaybe(Ee.of("AcroForm"),Te)},e.prototype.getAcroForm=function(){var t=this.AcroForm();if(t)return ir.fromDict(t)},e.prototype.getOrCreateAcroForm=function(){var t=this.getAcroForm();if(!t){t=ir.create(this.context);var e=this.context.register(t.dict);this.set(Ee.of("AcroForm"),e)}return t},e.prototype.ViewerPreferences=function(){return this.lookupMaybe(Ee.of("ViewerPreferences"),Te)},e.prototype.getViewerPreferences=function(){var t=this.ViewerPreferences();if(t)return gi.fromDict(t)},e.prototype.getOrCreateViewerPreferences=function(){var t=this.getViewerPreferences();if(!t){t=gi.create(this.context);var e=this.context.register(t.dict);this.set(Ee.of("ViewerPreferences"),e)}return t},e.prototype.insertLeafNode=function(t,e){var n=this.get(Ee.of("Pages"));return this.Pages().insertLeafNode(t,e)||n},e.prototype.removeLeafNode=function(t){this.Pages().removeLeafNode(t)},e.withContextAndPages=function(t,n){var i=new Map;return i.set(Ee.of("Type"),Ee.of("Catalog")),i.set(Ee.of("Pages"),n),new e(i,t)},e.fromMapWithContext=function(t,n){return new e(t,n)},e}(Te);var or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.Parent=function(){return this.lookup(Ee.of("Parent"))},e.prototype.Kids=function(){return this.lookup(Ee.of("Kids"),ge)},e.prototype.Count=function(){return this.lookup(Ee.of("Count"),fe)},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,n){var i=this.Kids(),r=this.Count().asNumber();if(n>r)throw new Xt(n,r);for(var o=n,s=0,a=i.size();s<a;s++){if(0===o)return void this.insertLeafKid(s,t);var l=i.get(s),u=this.context.lookup(l);if(u instanceof e){if(u.Count().asNumber()>o)return u.insertLeafNode(t,o)||l;o-=u.Count().asNumber()}u instanceof Ye&&(o-=1)}if(0!==o)throw new Kt(n,"insertLeafNode");this.insertLeafKid(i.size(),t)},e.prototype.removeLeafNode=function(t,n){void 0===n&&(n=!0);var i=this.Kids(),r=this.Count().asNumber();if(t>=r)throw new Xt(t,r);for(var o=t,s=0,a=i.size();s<a;s++){var l=i.get(s),u=this.context.lookup(l);if(u instanceof e){if(u.Count().asNumber()>o)return u.removeLeafNode(o,n),void(n&&0===u.Kids().size()&&i.remove(s));o-=u.Count().asNumber()}if(u instanceof Ye){if(0===o)return void this.removeKid(s);o-=1}}throw new Kt(t,"removeLeafNode")},e.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},e.prototype.traverse=function(t){for(var n=this.Kids(),i=0,r=n.size();i<r;i++){var o=n.get(i),s=this.context.lookup(o);s instanceof e&&s.traverse(t),t(s,o)}},e.prototype.insertLeafKid=function(t,e){var n=this.Kids();this.ascend(function(t){var e=t.Count().asNumber()+1;t.set(Ee.of("Count"),fe.of(e))}),n.insert(t,e)},e.prototype.removeKid=function(t){var e=this.Kids();e.lookup(t)instanceof Ye&&this.ascend(function(t){var e=t.Count().asNumber()-1;t.set(Ee.of("Count"),fe.of(e))}),e.remove(t)},e.withContext=function(t,n){var i=new Map;return i.set(Ee.of("Type"),Ee.of("Pages")),i.set(Ee.of("Kids"),t.obj([])),i.set(Ee.of("Count"),t.obj(0)),n&&i.set(Ee.of("Parent"),n),new e(i,t)},e.fromMapWithContext=function(t,n){return new e(t,n)},e}(Te);const sr=or;var ar=new Uint8Array(256);ar[ce.Zero]=1,ar[ce.One]=1,ar[ce.Two]=1,ar[ce.Three]=1,ar[ce.Four]=1,ar[ce.Five]=1,ar[ce.Six]=1,ar[ce.Seven]=1,ar[ce.Eight]=1,ar[ce.Nine]=1;var lr=new Uint8Array(256);lr[ce.Period]=1,lr[ce.Plus]=1,lr[ce.Minus]=1;for(var ur=new Uint8Array(256),cr=0;cr<256;cr++)ur[cr]=ar[cr]||lr[cr]?1:0;var hr=ce.Newline,dr=ce.CarriageReturn,fr=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();){var e=this.bytes.peek();if(!ar[e])break;t+=b(this.bytes.next())}var n=Number(t);if(!t||!isFinite(n))throw new te(this.bytes.position(),t);return n},t.prototype.parseRawNumber=function(){for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(!ur[e])break;if(t+=b(this.bytes.next()),e===ce.Period)break}for(;!this.bytes.done();){e=this.bytes.peek();if(!ar[e])break;t+=b(this.bytes.next())}var n=Number(t);if(!t||!isFinite(n))throw new te(this.bytes.position(),t);if(n>Number.MAX_SAFE_INTEGER){if(this.capNumbers){var i="Parsed number that is too large for some PDF readers: "+t+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(i),Number.MAX_SAFE_INTEGER}i="Parsed number that is too large for some PDF readers: "+t+", not capping.";console.warn(i)}return n},t.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&be[this.bytes.peek()];)this.bytes.next()},t.prototype.skipLine=function(){for(;!this.bytes.done();){var t=this.bytes.peek();if(t===hr||t===dr)return;this.bytes.next()}},t.prototype.skipComment=function(){if(this.bytes.peek()!==ce.Percent)return!1;for(;!this.bytes.done();){var t=this.bytes.peek();if(t===hr||t===dr)return!0;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(),n=0,i=t.length;n<i;n++)if(this.bytes.done()||this.bytes.next()!==t[n])return this.bytes.moveTo(e),!1;return!0},t}();const pr=fr;const gr=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===ce.Newline?(this.line+=1,this.column=0):this.column+=1,t},t.prototype.assertNext=function(t){if(this.peek()!==t)throw new ne(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(si(e).decode())},t}();var mr=ce.Space,vr=ce.CarriageReturn,yr=ce.Newline,br=[ce.s,ce.t,ce.r,ce.e,ce.a,ce.m],wr=[ce.e,ce.n,ce.d,ce.s,ce.t,ce.r,ce.e,ce.a,ce.m],Dr={header:[ce.Percent,ce.P,ce.D,ce.F,ce.Dash],eof:[ce.Percent,ce.Percent,ce.E,ce.O,ce.F],obj:[ce.o,ce.b,ce.j],endobj:[ce.e,ce.n,ce.d,ce.o,ce.b,ce.j],xref:[ce.x,ce.r,ce.e,ce.f],trailer:[ce.t,ce.r,ce.a,ce.i,ce.l,ce.e,ce.r],startxref:[ce.s,ce.t,ce.a,ce.r,ce.t,ce.x,ce.r,ce.e,ce.f],true:[ce.t,ce.r,ce.u,ce.e],false:[ce.f,ce.a,ce.l,ce.s,ce.e],null:[ce.n,ce.u,ce.l,ce.l],stream:br,streamEOF1:l(br,[mr,vr,yr]),streamEOF2:l(br,[vr,yr]),streamEOF3:l(br,[vr]),streamEOF4:l(br,[yr]),endstream:wr,EOF1endstream:l([vr,yr],wr),EOF2endstream:l([vr],wr),EOF3endstream:l([yr],wr)};const Ar=function(t){function e(e,n,i){void 0===i&&(i=!1);var r=t.call(this,e,i)||this;return r.context=n,r}return r(e,t),e.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Dr.true))return ve.True;if(this.matchKeyword(Dr.false))return ve.False;if(this.matchKeyword(Dr.null))return ke;var t=this.bytes.peek();if(t===ce.LessThan&&this.bytes.peekAhead(1)===ce.LessThan)return this.parseDictOrStream();if(t===ce.LessThan)return this.parseHexString();if(t===ce.LeftParen)return this.parseString();if(t===ce.ForwardSlash)return this.parseName();if(t===ce.LeftSquareBracket)return this.parseArray();if(ur[t])return this.parseNumberOrRef();throw new ie(this.bytes.position(),t)},e.prototype.parseNumberOrRef=function(){var t=this.parseRawNumber();this.skipWhitespaceAndComments();var e=this.bytes.offset();if(ar[this.bytes.peek()]){var n=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===ce.R)return this.bytes.assertNext(ce.R),Ne.of(t,n)}return this.bytes.moveTo(e),fe.of(t)},e.prototype.parseHexString=function(){var t="";for(this.bytes.assertNext(ce.LessThan);!this.bytes.done()&&this.bytes.peek()!==ce.GreaterThan;)t+=b(this.bytes.next());return this.bytes.assertNext(ce.GreaterThan),gn.of(t)},e.prototype.parseString=function(){for(var t=0,e=!1,n="";!this.bytes.done();){var i=this.bytes.next();if(n+=b(i),e||(i===ce.LeftParen&&(t+=1),i===ce.RightParen&&(t-=1)),i===ce.BackSlash?e=!e:e&&(e=!1),0===t)return Cn.of(n.substring(1,n.length-1))}throw new se(this.bytes.position())},e.prototype.parseName=function(){this.bytes.assertNext(ce.ForwardSlash);for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(be[e]||ye[e])break;t+=b(e),this.bytes.next()}return Ee.of(t)},e.prototype.parseArray=function(){this.bytes.assertNext(ce.LeftSquareBracket),this.skipWhitespaceAndComments();for(var t=ge.withContext(this.context);this.bytes.peek()!==ce.RightSquareBracket;){var e=this.parseObject();t.push(e),this.skipWhitespaceAndComments()}return this.bytes.assertNext(ce.RightSquareBracket),t},e.prototype.parseDict=function(){this.bytes.assertNext(ce.LessThan),this.bytes.assertNext(ce.LessThan),this.skipWhitespaceAndComments();for(var t=new Map;!this.bytes.done()&&this.bytes.peek()!==ce.GreaterThan&&this.bytes.peekAhead(1)!==ce.GreaterThan;){var e=this.parseName(),n=this.parseObject();t.set(e,n),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(ce.GreaterThan),this.bytes.assertNext(ce.GreaterThan);var i=t.get(Ee.of("Type"));return i===Ee.of("Catalog")?rr.fromMapWithContext(t,this.context):i===Ee.of("Pages")?sr.fromMapWithContext(t,this.context):i===Ee.of("Page")?Ye.fromMapWithContext(t,this.context):Te.fromMapWithContext(t,this.context)},e.prototype.parseDictOrStream=function(){var t=this.bytes.position(),e=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Dr.streamEOF1)&&!this.matchKeyword(Dr.streamEOF2)&&!this.matchKeyword(Dr.streamEOF3)&&!this.matchKeyword(Dr.streamEOF4)&&!this.matchKeyword(Dr.stream))return e;var n,i=this.bytes.offset(),r=e.get(Ee.of("Length"));r instanceof fe?(n=i+r.asNumber(),this.bytes.moveTo(n),this.skipWhitespaceAndComments(),this.matchKeyword(Dr.endstream)||(this.bytes.moveTo(i),n=this.findEndOfStreamFallback(t))):n=this.findEndOfStreamFallback(t);var o=this.bytes.slice(i,n);return Re.of(e,o)},e.prototype.findEndOfStreamFallback=function(t){for(var e=1,n=this.bytes.offset();!this.bytes.done()&&(n=this.bytes.offset(),this.matchKeyword(Dr.stream)?e+=1:this.matchKeyword(Dr.EOF1endstream)||this.matchKeyword(Dr.EOF2endstream)||this.matchKeyword(Dr.EOF3endstream)||this.matchKeyword(Dr.endstream)?e-=1:this.bytes.next(),0!==e););if(0!==e)throw new oe(t);return n},e.forBytes=function(t,n,i){return new e(gr.of(t),n,i)},e.forByteStream=function(t,n,i){return void 0===i&&(i=!1),new e(t,n,i)},e}(pr);var xr=function(t){function e(e,n){var i=t.call(this,gr.fromPDFRawStream(e),e.dict.context)||this,r=e.dict;return i.alreadyParsed=!1,i.shouldWaitForTick=n||function(){return!1},i.firstOffset=r.lookup(Ee.of("First"),fe).asNumber(),i.objectCount=r.lookup(Ee.of("N"),fe).asNumber(),i}return r(e,t),e.prototype.parseIntoContext=function(){return s(this,void 0,void 0,function(){var t,e,n,i,r,o,s,l;return a(this,function(a){switch(a.label){case 0:if(this.alreadyParsed)throw new jt("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,t=this.parseOffsetsAndObjectNumbers(),e=0,n=t.length,a.label=1;case 1:return e<n?(i=t[e],r=i.objectNumber,o=i.offset,this.bytes.moveTo(this.firstOffset+o),s=this.parseObject(),l=Ne.of(r,0),this.context.assign(l,s),this.shouldWaitForTick()?[4,z()]:[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},e.prototype.parseOffsetsAndObjectNumbers=function(){for(var t=[],e=0,n=this.objectCount;e<n;e++){this.skipWhitespaceAndComments();var i=this.parseRawInt();this.skipWhitespaceAndComments();var r=this.parseRawInt();t.push({objectNumber:i,offset:r})}return t},e.forStream=function(t,n){return new e(t,n)},e}(Ar);const Cr=xr;var Sr=function(){function t(t){this.alreadyParsed=!1,this.dict=t.dict,this.bytes=gr.fromPDFRawStream(t),this.context=this.dict.context;var e=this.dict.lookup(Ee.of("Size"),fe),n=this.dict.lookup(Ee.of("Index"));if(n instanceof ge){this.subsections=[];for(var i=0,r=n.size();i<r;i+=2){var o=n.lookup(i+0,fe).asNumber(),s=n.lookup(i+1,fe).asNumber();this.subsections.push({firstObjectNumber:o,length:s})}}else this.subsections=[{firstObjectNumber:0,length:e.asNumber()}];var a=this.dict.lookup(Ee.of("W"),ge);this.byteWidths=[-1,-1,-1];for(i=0,r=a.size();i<r;i++)this.byteWidths[i]=a.lookup(i,fe).asNumber()}return t.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new jt("PDFXRefStreamParser","parseIntoContext");return this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(Ee.of("Root")),Encrypt:this.dict.get(Ee.of("Encrypt")),Info:this.dict.get(Ee.of("Info")),ID:this.dict.get(Ee.of("ID"))},this.parseEntries()},t.prototype.parseEntries=function(){for(var t=[],e=this.byteWidths,n=e[0],i=e[1],r=e[2],o=0,s=this.subsections.length;o<s;o++)for(var a=this.subsections[o],l=a.firstObjectNumber,u=a.length,c=0;c<u;c++){for(var h=0,d=0,f=n;d<f;d++)h=h<<8|this.bytes.next();var p=0;for(d=0,f=i;d<f;d++)p=p<<8|this.bytes.next();var g=0;for(d=0,f=r;d<f;d++)g=g<<8|this.bytes.next();0===n&&(h=1);var m=l+c,v={ref:Ne.of(m,g),offset:p,deleted:0===h,inObjectStream:2===h};t.push(v)}return t},t.forStream=function(e){return new t(e)},t}();const Fr=Sr;var Er=function(t){function e(e,n,i,r){void 0===n&&(n=1/0),void 0===i&&(i=!1),void 0===r&&(r=!1);var o=t.call(this,gr.of(e),Xe.create(),r)||this;return o.alreadyParsed=!1,o.parsedObjects=0,o.shouldWaitForTick=function(){return o.parsedObjects+=1,o.parsedObjects%o.objectsPerTick===0},o.objectsPerTick=n,o.throwOnInvalidObject=i,o}return r(e,t),e.prototype.parseDocument=function(){return s(this,void 0,void 0,function(){var t,e;return a(this,function(n){switch(n.label){case 0:if(this.alreadyParsed)throw new jt("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),n.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(n.sent(),(e=this.bytes.offset())===t)throw new ae(this.bytes.position());return t=e,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(Ne.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(Ne.of(0))),[2,this.context]}})})},e.prototype.maybeRecoverRoot=function(){var t=function(t){return t instanceof Te&&t.lookup(Ee.of("Type"))===Ee.of("Catalog")};if(!t(this.context.lookup(this.context.trailerInfo.Root)))for(var e=this.context.enumerateIndirectObjects(),n=0,i=e.length;n<i;n++){var r=e[n],o=r[0];t(r[1])&&(this.context.trailerInfo.Root=o)}},e.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(Dr.header)){var t=this.parseRawInt();this.bytes.assertNext(ce.Period);var e=this.parseRawInt(),n=he.forVersion(t,e);return this.skipBinaryHeaderComment(),n}this.bytes.next()}throw new le(this.bytes.position())},e.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var t=this.parseRawInt();this.skipWhitespaceAndComments();var e=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Dr.obj))throw new ue(this.bytes.position(),Dr.obj);return Ne.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 s(this,void 0,void 0,function(){var t,e;return a(this,function(n){switch(n.label){case 0:return t=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),e=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(Dr.endobj),e instanceof Re&&e.dict.lookup(Ee.of("Type"))===Ee.of("ObjStm")?[4,Cr.forStream(e,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return n.sent(),[3,3];case 2:e instanceof Re&&e.dict.lookup(Ee.of("Type"))===Ee.of("XRef")?Fr.forStream(e).parseIntoContext():this.context.assign(t,e),n.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 new Error(e);console.warn(e);var n=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+n),this.skipWhitespaceAndComments();for(var i=this.bytes.offset(),r=!0;!this.bytes.done()&&(this.matchKeyword(Dr.endobj)&&(r=!1),r);)this.bytes.next();if(r)throw new re(t);var o=this.bytes.offset()-Dr.endobj.length,s=ln.of(this.bytes.slice(i,o));return this.context.assign(n,s),n},e.prototype.parseIndirectObjects=function(){return s(this,void 0,void 0,function(){var t;return a(this,function(e){switch(e.label){case 0:this.skipWhitespaceAndComments(),e.label=1;case 1:if(this.bytes.done()||!ar[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:return this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()?[4,z()]:[3,7];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(Dr.xref)){this.skipWhitespaceAndComments();for(var t=-1,e=$e.createEmpty();!this.bytes.done()&&ar[this.bytes.peek()];){var n=this.parseRawInt();this.skipWhitespaceAndComments();var i=this.parseRawInt();this.skipWhitespaceAndComments();var r=this.bytes.peek();if(r===ce.n||r===ce.f){var o=Ne.of(t,i);this.bytes.next()===ce.n?e.addEntry(o,n):e.addDeletedEntry(o,n),t+=1}else t=n;this.skipWhitespaceAndComments()}return e}},e.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Dr.trailer)){this.skipWhitespaceAndComments();var t=this.parseDict(),e=this.context;e.trailerInfo={Root:t.get(Ee.of("Root"))||e.trailerInfo.Root,Encrypt:t.get(Ee.of("Encrypt"))||e.trailerInfo.Encrypt,Info:t.get(Ee.of("Info"))||e.trailerInfo.Info,ID:t.get(Ee.of("ID"))||e.trailerInfo.ID}}},e.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Dr.startxref)){this.skipWhitespaceAndComments();var t=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(Dr.eof),this.skipWhitespaceAndComments(),this.matchKeyword(Dr.eof),this.skipWhitespaceAndComments(),tn.forLastCrossRefSectionOffset(t)}},e.prototype.parseDocumentSection=function(){return s(this,void 0,void 0,function(){return a(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>=ce.Space&&e<=ce.Tilde&&(this.matchKeyword(Dr.xref)||this.matchKeyword(Dr.trailer)||this.matchKeyword(Dr.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(e){this.bytes.next(),this.skipWhitespaceAndComments()}},e.forBytesWithOptions=function(t,n,i,r){return new e(t,n,i,r)},e}(Ar);const kr=Er;var Mr,Tr=function(t){return 1<<t};!function(t){t[t.Invisible=Tr(0)]="Invisible",t[t.Hidden=Tr(1)]="Hidden",t[t.Print=Tr(2)]="Print",t[t.NoZoom=Tr(3)]="NoZoom",t[t.NoRotate=Tr(4)]="NoRotate",t[t.NoView=Tr(5)]="NoView",t[t.ReadOnly=Tr(6)]="ReadOnly",t[t.Locked=Tr(7)]="Locked",t[t.ToggleNoView=Tr(8)]="ToggleNoView",t[t.LockedContents=Tr(9)]="LockedContents"}(Mr||(Mr={}));var Pr,_r=function(t){return t instanceof Ee?t:Ee.of(t)},Rr=function(t){return t instanceof fe?t:fe.of(t)},Br=function(t){return t instanceof fe?t.asNumber():t};!function(t){t.Degrees="degrees",t.Radians="radians"}(Pr||(Pr={}));var Ir,Nr=function(t){return St(t,"degreeAngle",["number"]),{type:Pr.Degrees,angle:t}},Lr=Pr.Radians,Or=Pr.Degrees,Wr=function(t){return t*Math.PI/180},zr=function(t){return t.type===Lr?t.angle:t.type===Or?Wr(t.angle):tt("Invalid rotation: "+JSON.stringify(t))},jr=function(t){return t.type===Lr?180*t.angle/Math.PI:t.type===Or?t.angle:tt("Invalid rotation: "+JSON.stringify(t))},Ur=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},Gr=function(t,e){void 0===e&&(e=0);var n=Ur(e);return 90===n||270===n?{width:t.height,height:t.width}:{width:t.width,height:t.height}},Vr=function(){return Oe.of(ze.ClipNonZero)},Hr=Math.cos,qr=Math.sin,Xr=Math.tan,Kr=function(t,e,n,i,r,o){return Oe.of(ze.ConcatTransformationMatrix,[Rr(t),Rr(e),Rr(n),Rr(i),Rr(r),Rr(o)])},Yr=function(t,e){return Kr(1,0,0,1,t,e)},Zr=function(t,e){return Kr(t,0,0,e,0,0)},Qr=function(t){return Kr(Hr(Br(t)),qr(Br(t)),-qr(Br(t)),Hr(Br(t)),0,0)},Jr=function(t){return Qr(Wr(Br(t)))},$r=function(t,e){return Kr(1,Xr(Br(t)),Xr(Br(e)),1,0,0)},to=function(t,e){return Oe.of(ze.SetLineDashPattern,["["+t.map(Rr).join(" ")+"]",Rr(e)])};!function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Projecting=2]="Projecting"}(Ir||(Ir={}));var eo,no=function(t){return Oe.of(ze.SetLineCapStyle,[Rr(t)])};!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(eo||(eo={}));var io,ro=function(t){return Oe.of(ze.SetGraphicsStateParams,[_r(t)])},oo=function(){return Oe.of(ze.PushGraphicsState)},so=function(){return Oe.of(ze.PopGraphicsState)},ao=function(t){return Oe.of(ze.SetLineWidth,[Rr(t)])},lo=function(t,e,n,i,r,o){return Oe.of(ze.AppendBezierCurve,[Rr(t),Rr(e),Rr(n),Rr(i),Rr(r),Rr(o)])},uo=function(t,e,n,i){return Oe.of(ze.CurveToReplicateInitialPoint,[Rr(t),Rr(e),Rr(n),Rr(i)])},co=function(){return Oe.of(ze.ClosePath)},ho=function(t,e){return Oe.of(ze.MoveTo,[Rr(t),Rr(e)])},fo=function(t,e){return Oe.of(ze.LineTo,[Rr(t),Rr(e)])},po=function(){return Oe.of(ze.StrokePath)},go=function(){return Oe.of(ze.FillNonZero)},mo=function(){return Oe.of(ze.FillNonZeroAndStroke)},vo=function(){return Oe.of(ze.EndPath)},yo=function(){return Oe.of(ze.NextLine)},bo=function(t){return Oe.of(ze.ShowText,[t])},wo=function(){return Oe.of(ze.BeginText)},Do=function(){return Oe.of(ze.EndText)},Ao=function(t,e){return Oe.of(ze.SetFontAndSize,[_r(t),Rr(e)])};!function(t){t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t[t.FillAndOutline=2]="FillAndOutline",t[t.Invisible=3]="Invisible",t[t.FillAndClip=4]="FillAndClip",t[t.OutlineAndClip=5]="OutlineAndClip",t[t.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",t[t.Clip=7]="Clip"}(io||(io={}));var xo,Co=function(t,e,n,i,r){return o=Hr(Br(t)),s=qr(Br(t))+Xr(Br(e)),a=-qr(Br(t))+Xr(Br(n)),l=Hr(Br(t)),u=i,c=r,Oe.of(ze.SetTextMatrix,[Rr(o),Rr(s),Rr(a),Rr(l),Rr(u),Rr(c)]);var o,s,a,l,u,c},So=function(t){return Oe.of(ze.DrawObject,[_r(t)])},Fo=function(t){return Oe.of(ze.BeginMarkedContent,[_r(t)])},Eo=function(){return Oe.of(ze.EndMarkedContent)};!function(t){t.Grayscale="Grayscale",t.RGB="RGB",t.CMYK="CMYK"}(xo||(xo={}));var ko,Mo=function(t){return kt(t,"gray",0,1),{type:xo.Grayscale,gray:t}},To=function(t,e,n){return kt(t,"red",0,1),kt(e,"green",0,1),kt(n,"blue",0,1),{type:xo.RGB,red:t,green:e,blue:n}},Po=function(t,e,n,i){return kt(t,"cyan",0,1),kt(e,"magenta",0,1),kt(n,"yellow",0,1),kt(i,"key",0,1),{type:xo.CMYK,cyan:t,magenta:e,yellow:n,key:i}},_o=xo.Grayscale,Ro=xo.RGB,Bo=xo.CMYK,Io=function(t){return t.type===_o?(l=t.gray,Oe.of(ze.NonStrokingColorGray,[Rr(l)])):t.type===Ro?(o=t.red,s=t.green,a=t.blue,Oe.of(ze.NonStrokingColorRgb,[Rr(o),Rr(s),Rr(a)])):t.type===Bo?(e=t.cyan,n=t.magenta,i=t.yellow,r=t.key,Oe.of(ze.NonStrokingColorCmyk,[Rr(e),Rr(n),Rr(i),Rr(r)])):tt("Invalid color: "+JSON.stringify(t));var e,n,i,r,o,s,a,l},No=function(t){return t.type===_o?(l=t.gray,Oe.of(ze.StrokingColorGray,[Rr(l)])):t.type===Ro?(o=t.red,s=t.green,a=t.blue,Oe.of(ze.StrokingColorRgb,[Rr(o),Rr(s),Rr(a)])):t.type===Bo?(e=t.cyan,n=t.magenta,i=t.yellow,r=t.key,Oe.of(ze.StrokingColorCmyk,[Rr(e),Rr(n),Rr(i),Rr(r)])):tt("Invalid color: "+JSON.stringify(t));var e,n,i,r,o,s,a,l},Lo=function(t,e){return void 0===e&&(e=1),1===(null===t||void 0===t?void 0:t.length)?Mo(t[0]*e):3===(null===t||void 0===t?void 0:t.length)?To(t[0]*e,t[1]*e,t[2]*e):4===(null===t||void 0===t?void 0:t.length)?Po(t[0]*e,t[1]*e,t[2]*e,t[3]*e):void 0},Oo=function(t){return t.type===_o?[t.gray]:t.type===Ro?[t.red,t.green,t.blue]:t.type===Bo?[t.cyan,t.magenta,t.yellow,t.key]:tt("Invalid color: "+JSON.stringify(t))},Wo=0,zo=0,jo=0,Uo=0,Go=0,Vo=0,Ho=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]]),qo={M:function(t){return Wo=t[0],zo=t[1],jo=Uo=null,Go=Wo,Vo=zo,ho(Wo,zo)},m:function(t){return Wo+=t[0],zo+=t[1],jo=Uo=null,Go=Wo,Vo=zo,ho(Wo,zo)},C:function(t){return Wo=t[4],zo=t[5],jo=t[2],Uo=t[3],lo(t[0],t[1],t[2],t[3],t[4],t[5])},c:function(t){var e=lo(t[0]+Wo,t[1]+zo,t[2]+Wo,t[3]+zo,t[4]+Wo,t[5]+zo);return jo=Wo+t[2],Uo=zo+t[3],Wo+=t[4],zo+=t[5],e},S:function(t){null!==jo&&null!==Uo||(jo=Wo,Uo=zo);var e=lo(Wo-(jo-Wo),zo-(Uo-zo),t[0],t[1],t[2],t[3]);return jo=t[0],Uo=t[1],Wo=t[2],zo=t[3],e},s:function(t){null!==jo&&null!==Uo||(jo=Wo,Uo=zo);var e=lo(Wo-(jo-Wo),zo-(Uo-zo),Wo+t[0],zo+t[1],Wo+t[2],zo+t[3]);return jo=Wo+t[0],Uo=zo+t[1],Wo+=t[2],zo+=t[3],e},Q:function(t){return jo=t[0],Uo=t[1],Wo=t[2],zo=t[3],uo(t[0],t[1],Wo,zo)},q:function(t){var e=uo(t[0]+Wo,t[1]+zo,t[2]+Wo,t[3]+zo);return jo=Wo+t[0],Uo=zo+t[1],Wo+=t[2],zo+=t[3],e},T:function(t){null===jo||null===Uo?(jo=Wo,Uo=zo):(jo=Wo-(jo-Wo),Uo=zo-(Uo-zo));var e=uo(jo,Uo,t[0],t[1]);return jo=Wo-(jo-Wo),Uo=zo-(Uo-zo),Wo=t[0],zo=t[1],e},t:function(t){null===jo||null===Uo?(jo=Wo,Uo=zo):(jo=Wo-(jo-Wo),Uo=zo-(Uo-zo));var e=uo(jo,Uo,Wo+t[0],zo+t[1]);return Wo+=t[0],zo+=t[1],e},A:function(t){var e=Xo(Wo,zo,t);return Wo=t[5],zo=t[6],e},a:function(t){t[5]+=Wo,t[6]+=zo;var e=Xo(Wo,zo,t);return Wo=t[5],zo=t[6],e},L:function(t){return Wo=t[0],zo=t[1],jo=Uo=null,fo(Wo,zo)},l:function(t){return Wo+=t[0],zo+=t[1],jo=Uo=null,fo(Wo,zo)},H:function(t){return Wo=t[0],jo=Uo=null,fo(Wo,zo)},h:function(t){return Wo+=t[0],jo=Uo=null,fo(Wo,zo)},V:function(t){return zo=t[0],jo=Uo=null,fo(Wo,zo)},v:function(t){return zo+=t[0],jo=Uo=null,fo(Wo,zo)},Z:function(){var t=co();return Wo=Go,zo=Vo,t},z:function(){var t=co();return Wo=Go,zo=Vo,t}},Xo=function(t,e,n){for(var i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],l=n[5],u=n[6],c=[],h=0,d=Ko(l,u,i,r,s,a,o,t,e);h<d.length;h++){var f=d[h],p=Yo.apply(void 0,f);c.push(lo.apply(void 0,p))}return c},Ko=function(t,e,n,i,r,o,s,a,l){var u=s*(Math.PI/180),c=Math.sin(u),h=Math.cos(u);n=Math.abs(n),i=Math.abs(i);var d=(jo=h*(a-t)*.5+c*(l-e)*.5)*jo/(n*n)+(Uo=h*(l-e)*.5-c*(a-t)*.5)*Uo/(i*i);d>1&&(n*=d=Math.sqrt(d),i*=d);var f=h/n,p=c/n,g=-c/i,m=h/i,v=f*a+p*l,y=g*a+m*l,b=f*t+p*e,w=g*t+m*e,D=1/((b-v)*(b-v)+(w-y)*(w-y))-.25;D<0&&(D=0);var A=Math.sqrt(D);o===r&&(A=-A);var x=.5*(v+b)-A*(w-y),C=.5*(y+w)+A*(b-v),S=Math.atan2(y-C,v-x),F=Math.atan2(w-C,b-x)-S;F<0&&1===o?F+=2*Math.PI:F>0&&0===o&&(F-=2*Math.PI);for(var E=Math.ceil(Math.abs(F/(.5*Math.PI+.001))),k=[],M=0;M<E;M++){var T=S+M*F/E,P=S+(M+1)*F/E;k[M]=[x,C,T,P,n,i,c,h]}return k},Yo=function(t,e,n,i,r,o,s,a){var l=a*r,u=-s*o,c=s*r,h=a*o,d=.5*(i-n),f=8/3*Math.sin(.5*d)*Math.sin(.5*d)/Math.sin(d),p=t+Math.cos(n)-f*Math.sin(n),g=e+Math.sin(n)+f*Math.cos(n),m=t+Math.cos(i),v=e+Math.sin(i),y=m+f*Math.sin(i),b=v-f*Math.cos(i);return[l*p+u*g,c*p+h*g,l*y+u*b,c*y+h*b,l*m+u*v,c*m+h*v]},Zo=function(t){return function(t){Wo=zo=jo=Uo=Go=Vo=0;for(var e=[],n=0;n<t.length;n++){var i=t[n];if(i.cmd&&"function"===typeof qo[i.cmd]){var r=qo[i.cmd](i.args);Array.isArray(r)?e=e.concat(r):e.push(r)}}return e}(function(t){for(var e,n=[],i=[],r="",o=!1,s=0,a=0,l=t;a<l.length;a++){var u=l[a];if(Ho.has(u))s=Ho.get(u),e&&(r.length>0&&(i[i.length]=+r),n[n.length]={cmd:e,args:i},i=[],r="",o=!1),e=u;else if([" ",","].includes(u)||"-"===u&&r.length>0&&"e"!==r[r.length-1]||"."===u&&o){if(0===r.length)continue;i.length===s?(n[n.length]={cmd:e,args:i},i=[+r],"M"===e&&(e="L"),"m"===e&&(e="l")):i[i.length]=+r,o="."===u,r=["-","."].includes(u)?u:""}else r+=u,"."===u&&(o=!0)}return r.length>0&&(i.length===s?(n[n.length]={cmd:e,args:i},i=[+r],"M"===e&&(e="L"),"m"===e&&(e="l")):i[i.length]=+r),n[n.length]={cmd:e,args:i},n}(t))},Qo=function(t,e){return[oo(),e.graphicsState&&ro(e.graphicsState),Yr(e.x,e.y),Qr(zr(e.rotate)),Zr(e.width,e.height),$r(zr(e.xSkew),zr(e.ySkew)),So(t),so()].filter(Boolean)},Jo=function(t){var e,n;return[oo(),t.graphicsState&&ro(t.graphicsState),t.color&&Io(t.color),t.borderColor&&No(t.borderColor),ao(t.borderWidth),t.borderLineCap&&no(t.borderLineCap),to(null!==(e=t.borderDashArray)&&void 0!==e?e:[],null!==(n=t.borderDashPhase)&&void 0!==n?n:0),Yr(t.x,t.y),Qr(zr(t.rotate)),$r(zr(t.xSkew),zr(t.ySkew)),ho(0,0),fo(0,t.height),fo(t.width,t.height),fo(t.width,0),co(),t.color&&t.borderWidth?mo():t.color?go():t.borderColor?po():co(),so()].filter(Boolean)},$o=(Math.sqrt(2)-1)/3*4,ts=function(t){var e,n,i;return l([oo(),t.graphicsState&&ro(t.graphicsState),t.color&&Io(t.color),t.borderColor&&No(t.borderColor),ao(t.borderWidth),t.borderLineCap&&no(t.borderLineCap),to(null!==(e=t.borderDashArray)&&void 0!==e?e:[],null!==(n=t.borderDashPhase)&&void 0!==n?n:0)],void 0===t.rotate?function(t){var e=Br(t.x),n=Br(t.y),i=Br(t.xScale),r=Br(t.yScale),o=i*$o,s=r*$o,a=(e-=i)+2*i,l=(n-=r)+2*r,u=e+i,c=n+r;return[oo(),ho(e,c),lo(e,c-s,u-o,n,u,n),lo(u+o,n,a,c-s,a,c),lo(a,c+s,u+o,l,u,l),lo(u-o,l,e,c+s,e,c),so()]}({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale}):function(t){var e=Br(t.x),n=Br(t.y),i=Br(t.xScale),r=Br(t.yScale),o=-i,s=-r,a=i*$o,l=r*$o,u=o+2*i,c=s+2*r,h=o+i,d=s+r;return[Yr(e,n),Qr(zr(t.rotate)),ho(o,d),lo(o,d-l,h-a,s,h,s),lo(h+a,s,u,d-l,u,d),lo(u,d+l,h+a,c,h,c),lo(h-a,c,o,d+l,o,d)]}({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale,rotate:null!==(i=t.rotate)&&void 0!==i?i:Nr(0)}),[t.color&&t.borderWidth?mo():t.color?go():t.borderColor?po():co(),so()]).filter(Boolean)},es=function(t){return 0===t.rotation?[Yr(0,0),Jr(0)]:90===t.rotation?[Yr(t.width,0),Jr(90)]:180===t.rotation?[Yr(t.width,t.height),Jr(180)]:270===t.rotation?[Yr(0,t.height),Jr(270)]:[]},ns=function(t){var e=Jo({x:t.x,y:t.y,width:t.width,height:t.height,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)});if(!t.filled)return e;var n=Br(t.width),i=Br(t.height),r=function(t){var e=Br(t.size),n=-.25,i=-.49,r=-.675,o=.3995/.965+i;return[oo(),t.color&&No(t.color),ao(t.thickness),Yr(t.x,t.y),ho(r*e,o*e),fo(n*e,i*e),fo(.69*e,.475*e),po(),so()].filter(Boolean)}({x:n/2,y:i/2,size:Math.min(n,i)/2,thickness:t.thickness,color:t.markColor});return l([oo()],e,r,[so()])},is=function(t){var e=Br(t.width),n=Br(t.height),i=Math.min(e,n)/2,r=ts({x:t.x,y:t.y,xScale:i,yScale:i,color:t.color,borderColor:t.borderColor,borderWidth:t.borderWidth});if(!t.filled)return r;var o=ts({x:t.x,y:t.y,xScale:.45*i,yScale:.45*i,color:t.dotColor,borderColor:void 0,borderWidth:0});return l([oo()],r,o,[so()])},rs=function(t){var e=Br(t.x),n=Br(t.y),i=Br(t.width),r=Br(t.height),o=Jo({x:e,y:n,width:i,height:r,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)}),s=os(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)});return l([oo()],o,s,[so()])},os=function(t,e){for(var n=[wo(),Io(e.color),Ao(e.font,e.size)],i=0,r=t.length;i<r;i++){var o=t[i],s=o.encoded,a=o.x,l=o.y;n.push(Co(zr(e.rotate),zr(e.xSkew),zr(e.ySkew),a,l),bo(s))}return n.push(Do()),n},ss=function(t){var e=Br(t.x),n=Br(t.y),i=Br(t.width),r=Br(t.height),o=Br(t.borderWidth),s=Br(t.padding),a=e+o/2+s,u=n+o/2+s,c=i-2*(o/2+s),h=r-2*(o/2+s),d=[ho(a,u),fo(a,u+h),fo(a+c,u+h),fo(a+c,u),co(),Vr(),vo()],f=Jo({x:e,y:n,width:i,height:r,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)}),p=os(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)}),g=l([Fo("Tx"),oo()],p,[so(),Eo()]);return l([oo()],f,d,g,[so()])},as=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 r(e,t),e}(Error),ls=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 r(e,t),e}(Error),us=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 r(e,t),e}(Error),cs=function(t){function e(){return t.call(this,"PDFDocument has no pages so `PDFDocument.removePage` cannot be called")||this}return r(e,t),e}(Error),hs=function(t){function e(e){var n='PDFDocument has no form field with the name "'+e+'"';return t.call(this,n)||this}return r(e,t),e}(Error),ds=function(t){function e(e,n,i){var r,o,s='Expected field "'+e+'" to be of type '+(null===n||void 0===n?void 0:n.name)+", but it is actually of type "+(null!==(o=null===(r=null===i||void 0===i?void 0:i.constructor)||void 0===r?void 0:r.name)&&void 0!==o?o:i);return t.call(this,s)||this}return r(e,t),e}(Error),fs=(function(t){function e(e){var n='Failed to select check box due to missing onValue: "'+e+'"';return t.call(this,n)||this}r(e,t)}(Error),function(t){function e(e){var n='A field already exists with the specified name: "'+e+'"';return t.call(this,n)||this}return r(e,t),e}(Error)),ps=function(t){function e(e){var n='Field name contains invalid component: "'+e+'"';return t.call(this,n)||this}return r(e,t),e}(Error),gs=(function(t){function e(e){var n='A non-terminal field already exists with the specified name: "'+e+'"';return t.call(this,n)||this}r(e,t)}(Error),function(t){function e(e){var n="Reading rich text fields is not supported: Attempted to read rich text field: "+e;return t.call(this,n)||this}return r(e,t),e}(Error)),ms=function(t){function e(e,n){var i="Failed to layout combed text as lineLength="+e+" is greater than cellCount="+n;return t.call(this,i)||this}return r(e,t),e}(Error),vs=function(t){function e(e,n,i){var r="Attempted to set text with length="+e+" for TextField with maxLength="+n+" and name="+i;return t.call(this,r)||this}return r(e,t),e}(Error),ys=function(t){function e(e,n,i){var r="Attempted to set maxLength="+n+", which is less than "+e+", the length of this field's current value (name="+i+")";return t.call(this,r)||this}return r(e,t),e}(Error);!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(ko||(ko={}));var bs=function(t,e,n,i){void 0===i&&(i=!1);for(var r=4;r<500;){for(var o=0,s=0,a=t.length;s<a;s++){o+=1;for(var l=t[s].split(" "),u=n.width,c=0,h=l.length;c<h;c++){var d=c===h-1?l[c]:l[c]+" ",f=e.widthOfTextAtSize(d,r);(u-=f)<=0&&(o+=1,u=n.width-f)}}if(!i&&o>t.length)return r-1;var p=e.heightAtSize(r);if((p+.2*p)*o>Math.abs(n.height))return r-1;r+=1}return r},ws=function(t,e,n,i){for(var r=n.width/i,o=n.height,s=4,a=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=k(t,n),o=r[0],s=r[1];e.push(o),n+=s}return e}(t);s<500;){for(var l=0,u=a.length;l<u;l++){var c=a[l];if(e.widthOfTextAtSize(c,s)>.75*r)return s-1}if(e.heightAtSize(s,{descender:!1})>o)return s-1;s+=1}return s},Ds=function(t){for(var e=t.length;e>0;e--)if(/\s/.test(t[e]))return e},As=function(t,e,n,i){for(var r,o=t.length;o>0;){var s=t.substring(0,o),a=n.encodeText(s),l=n.widthOfTextAtSize(s,i);if(l<e)return{line:s,encoded:a,width:l,remainder:t.substring(o)||void 0};o=null!==(r=Ds(s))&&void 0!==r?r:0}return{line:t,encoded:n.encodeText(t),width:n.widthOfTextAtSize(t,i),remainder:void 0}},xs=function(t,e){var n=e.alignment,i=e.fontSize,r=e.font,o=e.bounds,s=F(x(t));void 0!==i&&0!==i||(i=bs(s,r,o,!0));for(var a=r.heightAtSize(i),l=a+.2*a,u=[],c=o.x,h=o.y,d=o.x+o.width,f=o.y+o.height,p=o.y+o.height,g=0,m=s.length;g<m;g++)for(var v=s[g];void 0!==v;){var y=As(v,o.width,r,i),b=y.line,w=y.encoded,D=y.width,A=y.remainder,C=n===ko.Left?o.x:n===ko.Center?o.x+o.width/2-D/2:n===ko.Right?o.x+o.width-D:o.x;C<c&&(c=C),(p-=l)<h&&(h=p),C+D>d&&(d=C+D),p+a>f&&(f=p+a),u.push({text:b,encoded:w,width:D,height:a,x:C,y:p}),v=null===A||void 0===A?void 0:A.trim()}return{fontSize:i,lineHeight:l,lines:u,bounds:{x:c,y:h,width:d-c,height:f-h}}},Cs=function(t,e){var n=e.alignment,i=e.fontSize,r=e.font,o=e.bounds,s=E(x(t));void 0!==i&&0!==i||(i=bs([s],r,o));var a=r.encodeText(s),l=r.widthOfTextAtSize(s,i),u=r.heightAtSize(i,{descender:!1}),c=n===ko.Left?o.x:n===ko.Center?o.x+o.width/2-l/2:n===ko.Right?o.x+o.width-l:o.x,h=o.y+(o.height/2-u/2);return{fontSize:i,line:{text:s,encoded:a,width:l,height:u,x:c,y:h},bounds:{x:c,y:h,width:l,height:u}}},Ss=function(t){return"normal"in t?t:{normal:t}},Fs=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,Es=function(t){var e,n,i=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",r=null!==(n=_(i,Fs).match)&&void 0!==n?n:[],o=Number(r[2]);return isFinite(o)?o:void 0},ks=/(\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)/,Ms=function(t){var e,n=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",i=_(n,ks).match,r=null!==i&&void 0!==i?i:[],o=r[1],s=r[2],a=r[3],l=r[4],u=r[5];return"g"===u&&o?Mo(Number(o)):"rg"===u&&o&&s&&a?To(Number(o),Number(s),Number(a)):"k"===u&&o&&s&&a&&l?Po(Number(o),Number(s),Number(a),Number(l)):void 0},Ts=function(t,e,n,i){var r;void 0===i&&(i=0);var o=[Io(e).toString(),Ao(null!==(r=null===n||void 0===n?void 0:n.name)&&void 0!==r?r:"dummy__noop",i).toString()].join("\n");t.setDefaultAppearance(o)},Ps=function(t,e){var n,i,r,s=Ms(e),a=Ms(t.acroField),u=e.getRectangle(),c=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),d=null!==(n=null===h||void 0===h?void 0:h.getWidth())&&void 0!==n?n:0,f=Ur(null===c||void 0===c?void 0:c.getRotation()),p=Gr(u,f),g=p.width,m=p.height,v=es(o(o({},u),{rotation:f})),y=To(0,0,0),b=null!==(i=Lo(null===c||void 0===c?void 0:c.getBorderColor()))&&void 0!==i?i:y,w=Lo(null===c||void 0===c?void 0:c.getBackgroundColor()),D=Lo(null===c||void 0===c?void 0:c.getBackgroundColor(),.8),A=null!==(r=null!==s&&void 0!==s?s:a)&&void 0!==r?r:y;Ts(s?e:t.acroField,A);var x={x:0+d/2,y:0+d/2,width:g-d,height:m-d,thickness:1.5,borderWidth:d,borderColor:b,markColor:A};return{normal:{on:l(v,ns(o(o({},x),{color:w,filled:!0}))),off:l(v,ns(o(o({},x),{color:w,filled:!1})))},down:{on:l(v,ns(o(o({},x),{color:D,filled:!0}))),off:l(v,ns(o(o({},x),{color:D,filled:!1})))}}},_s=function(t,e){var n,i,r,s=Ms(e),a=Ms(t.acroField),u=e.getRectangle(),c=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),d=null!==(n=null===h||void 0===h?void 0:h.getWidth())&&void 0!==n?n:0,f=Ur(null===c||void 0===c?void 0:c.getRotation()),p=Gr(u,f),g=p.width,m=p.height,v=es(o(o({},u),{rotation:f})),y=To(0,0,0),b=null!==(i=Lo(null===c||void 0===c?void 0:c.getBorderColor()))&&void 0!==i?i:y,w=Lo(null===c||void 0===c?void 0:c.getBackgroundColor()),D=Lo(null===c||void 0===c?void 0:c.getBackgroundColor(),.8),A=null!==(r=null!==s&&void 0!==s?s:a)&&void 0!==r?r:y;Ts(s?e:t.acroField,A);var x={x:g/2,y:m/2,width:g-d,height:m-d,borderWidth:d,borderColor:b,dotColor:A};return{normal:{on:l(v,is(o(o({},x),{color:w,filled:!0}))),off:l(v,is(o(o({},x),{color:w,filled:!1})))},down:{on:l(v,is(o(o({},x),{color:D,filled:!0}))),off:l(v,is(o(o({},x),{color:D,filled:!1})))}}},Rs=function(t,e,n){var i,r,s,a,u,c=Ms(e),h=Ms(t.acroField),d=Es(e),f=Es(t.acroField),p=e.getRectangle(),g=e.getAppearanceCharacteristics(),m=e.getBorderStyle(),v=null===g||void 0===g?void 0:g.getCaptions(),y=null!==(i=null===v||void 0===v?void 0:v.normal)&&void 0!==i?i:"",b=null!==(s=null!==(r=null===v||void 0===v?void 0:v.down)&&void 0!==r?r:y)&&void 0!==s?s:"",w=null!==(a=null===m||void 0===m?void 0:m.getWidth())&&void 0!==a?a:0,D=Ur(null===g||void 0===g?void 0:g.getRotation()),A=Gr(p,D),x=A.width,C=A.height,S=es(o(o({},p),{rotation:D})),F=To(0,0,0),E=Lo(null===g||void 0===g?void 0:g.getBorderColor()),k=Lo(null===g||void 0===g?void 0:g.getBackgroundColor()),M=Lo(null===g||void 0===g?void 0:g.getBackgroundColor(),.8),T={x:w,y:w,width:x-2*w,height:C-2*w},P=Cs(y,{alignment:ko.Center,fontSize:null!==d&&void 0!==d?d:f,font:n,bounds:T}),_=Cs(b,{alignment:ko.Center,fontSize:null!==d&&void 0!==d?d:f,font:n,bounds:T}),R=Math.min(P.fontSize,_.fontSize),B=null!==(u=null!==c&&void 0!==c?c:h)&&void 0!==u?u:F;Ts(c||void 0!==d?e:t.acroField,B,n,R);var I={x:0+w/2,y:0+w/2,width:x-w,height:C-w,borderWidth:w,borderColor:E,textColor:B,font:n.name,fontSize:R};return{normal:l(S,rs(o(o({},I),{color:k,textLines:[P.line]}))),down:l(S,rs(o(o({},I),{color:M,textLines:[_.line]})))}},Bs=function(t,e,n){var i,r,s,a,u,c,h=Ms(e),d=Ms(t.acroField),f=Es(e),p=Es(t.acroField),g=e.getRectangle(),m=e.getAppearanceCharacteristics(),v=e.getBorderStyle(),y=null!==(i=t.getText())&&void 0!==i?i:"",b=null!==(r=null===v||void 0===v?void 0:v.getWidth())&&void 0!==r?r:0,w=Ur(null===m||void 0===m?void 0:m.getRotation()),D=Gr(g,w),A=D.width,C=D.height,S=es(o(o({},g),{rotation:w})),F=To(0,0,0),M=Lo(null===m||void 0===m?void 0:m.getBorderColor()),T=Lo(null===m||void 0===m?void 0:m.getBackgroundColor()),P=t.isCombed()?0:1,_={x:b+P,y:b+P,width:A-2*(b+P),height:C-2*(b+P)};if(t.isMultiline())u=(R=xs(y,{alignment:t.getAlignment(),fontSize:null!==f&&void 0!==f?f:p,font:n,bounds:_})).lines,c=R.fontSize;else if(t.isCombed()){var R=function(t,e){var n=e.fontSize,i=e.font,r=e.bounds,o=e.cellCount,s=E(x(t));if(s.length>o)throw new ms(s.length,o);void 0!==n&&0!==n||(n=ws(s,i,r,o));for(var a=r.width/o,l=i.heightAtSize(n,{descender:!1}),u=r.y+(r.height/2-l/2),c=[],h=r.x,d=r.y,f=r.x+r.width,p=r.y+r.height,g=0,m=0;g<o;){var v=k(s,m),y=v[0],b=v[1],w=i.encodeText(y),D=i.widthOfTextAtSize(y,n),A=r.x+(a*g+a/2)-D/2;A<h&&(h=A),u<d&&(d=u),A+D>f&&(f=A+D),u+l>p&&(p=u+l),c.push({text:s,encoded:w,width:D,height:l,x:A,y:u}),g+=1,m+=b}return{fontSize:n,cells:c,bounds:{x:h,y:d,width:f-h,height:p-d}}}(y,{fontSize:null!==f&&void 0!==f?f:p,font:n,bounds:_,cellCount:null!==(s=t.getMaxLength())&&void 0!==s?s:0});u=R.cells,c=R.fontSize}else{u=[(R=Cs(y,{alignment:t.getAlignment(),fontSize:null!==f&&void 0!==f?f:p,font:n,bounds:_})).line],c=R.fontSize}var B=null!==(a=null!==h&&void 0!==h?h:d)&&void 0!==a?a:F;Ts(h||void 0!==f?e:t.acroField,B,n,c);var I={x:0+b/2,y:0+b/2,width:A-b,height:C-b,borderWidth:null!==b&&void 0!==b?b:0,borderColor:M,textColor:B,font:n.name,fontSize:c,color:T,textLines:u,padding:P};return l(S,ss(I))},Is=function(t,e,n){var i,r,s,a=Ms(e),u=Ms(t.acroField),c=Es(e),h=Es(t.acroField),d=e.getRectangle(),f=e.getAppearanceCharacteristics(),p=e.getBorderStyle(),g=null!==(i=t.getSelected()[0])&&void 0!==i?i:"",m=null!==(r=null===p||void 0===p?void 0:p.getWidth())&&void 0!==r?r:0,v=Ur(null===f||void 0===f?void 0:f.getRotation()),y=Gr(d,v),b=y.width,w=y.height,D=es(o(o({},d),{rotation:v})),A=To(0,0,0),x=Lo(null===f||void 0===f?void 0:f.getBorderColor()),C=Lo(null===f||void 0===f?void 0:f.getBackgroundColor()),S={x:m+1,y:m+1,width:b-2*(m+1),height:w-2*(m+1)},F=Cs(g,{alignment:ko.Left,fontSize:null!==c&&void 0!==c?c:h,font:n,bounds:S}),E=F.line,k=F.fontSize,M=null!==(s=null!==a&&void 0!==a?a:u)&&void 0!==s?s:A;Ts(a||void 0!==c?e:t.acroField,M,n,k);var T={x:0+m/2,y:0+m/2,width:b-m,height:w-m,borderWidth:null!==m&&void 0!==m?m:0,borderColor:x,textColor:M,font:n.name,fontSize:k,color:C,textLines:[E],padding:1};return l(D,ss(T))},Ns=function(t,e,n){var i,r,s=Ms(e),a=Ms(t.acroField),u=Es(e),c=Es(t.acroField),h=e.getRectangle(),d=e.getAppearanceCharacteristics(),f=e.getBorderStyle(),p=null!==(i=null===f||void 0===f?void 0:f.getWidth())&&void 0!==i?i:0,g=Ur(null===d||void 0===d?void 0:d.getRotation()),m=Gr(h,g),v=m.width,y=m.height,b=es(o(o({},h),{rotation:g})),w=To(0,0,0),D=Lo(null===d||void 0===d?void 0:d.getBorderColor()),A=Lo(null===d||void 0===d?void 0:d.getBackgroundColor()),x=t.getOptions(),C=t.getSelected();t.isSorted()&&x.sort();for(var S="",F=0,E=x.length;F<E;F++)S+=x[F],F<E-1&&(S+="\n");var k={x:p+1,y:p+1,width:v-2*(p+1),height:y-2*(p+1)},M=xs(S,{alignment:ko.Left,fontSize:null!==u&&void 0!==u?u:c,font:n,bounds:k}),T=M.lines,P=M.fontSize,_=M.lineHeight,R=[];for(F=0,E=T.length;F<E;F++){var B=T[F];C.includes(B.text)&&R.push(F)}var I=To(.6,193/255,218/255),N=null!==(r=null!==s&&void 0!==s?s:a)&&void 0!==r?r:w;return Ts(s||void 0!==u?e:t.acroField,N,n,P),l(b,function(t){for(var e=Br(t.x),n=Br(t.y),i=Br(t.width),r=Br(t.height),o=Br(t.lineHeight),s=Br(t.borderWidth),a=Br(t.padding),u=e+s/2+a,c=n+s/2+a,h=i-2*(s/2+a),d=r-2*(s/2+a),f=[ho(u,c),fo(u,c+d),fo(u+h,c+d),fo(u+h,c),co(),Vr(),vo()],p=Jo({x:e,y:n,width:i,height:r,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)}),g=[],m=0,v=t.selectedLines.length;m<v;m++){var y=t.textLines[t.selectedLines[m]];g.push.apply(g,Jo({x:y.x-a,y:y.y-(o-y.height)/2,width:i-s,height:y.height+(o-y.height)/2,borderWidth:0,color:t.selectedColor,borderColor:void 0,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)}))}var b=os(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)}),w=l([Fo("Tx"),oo()],b,[so(),Eo()]);return l([oo()],p,g,f,w,[so()])}({x:0+p/2,y:0+p/2,width:v-p,height:y-p,borderWidth:null!==p&&void 0!==p?p:0,borderColor:D,textColor:N,font:n.name,fontSize:P,color:A,textLines:T,lineHeight:_,selectedColor:I,selectedLines:R,padding:1}))};const Ls=function(){function t(t,e,n){this.alreadyEmbedded=!1,St(t,"ref",[[Ne,"PDFRef"]]),St(e,"doc",[[pa,"PDFDocument"]]),St(n,"embedder",[[li,"PDFPageEmbedder"]]),this.ref=t,this.doc=e,this.width=n.width,this.height=n.height,this.embedder=n}return t.prototype.scale=function(t){return St(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return s(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return this.alreadyEmbedded?[3,2]:[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,n,i){return new t(e,n,i)},t}();const Os=function(){function t(t,e,n){this.modified=!0,St(t,"ref",[[Ne,"PDFRef"]]),St(e,"doc",[[pa,"PDFDocument"]]),St(n,"embedder",[[Fn,"CustomFontEmbedder"],[vn,"StandardFontEmbedder"]]),this.ref=t,this.doc=e,this.name=n.fontName,this.embedder=n}return t.prototype.encodeText=function(t){return St(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)},t.prototype.widthOfTextAtSize=function(t,e){return St(t,"text",["string"]),St(e,"size",["number"]),this.embedder.widthOfTextAtSize(t,e)},t.prototype.heightAtSize=function(t,e){var n;return St(t,"size",["number"]),Ft(null===e||void 0===e?void 0:e.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:null===(n=null===e||void 0===e?void 0:e.descender)||void 0===n||n})},t.prototype.sizeAtHeight=function(t){return St(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)},t.prototype.getCharacterSet=function(){return this.embedder instanceof vn?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},t.prototype.embed=function(){return s(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:t.sent(),this.modified=!1,t.label=2;case 2:return[2]}})})},t.of=function(e,n,i){return new t(e,n,i)},t}();var Ws=function(){function t(t,e,n){St(t,"ref",[[Ne,"PDFRef"]]),St(e,"doc",[[pa,"PDFDocument"]]),St(n,"embedder",[[Bn,"JpegEmbedder"],[Wn,"PngEmbedder"]]),this.ref=t,this.doc=e,this.width=n.width,this.height=n.height,this.embedder=n}return t.prototype.scale=function(t){return St(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},t.prototype.scaleToFit=function(t,e){St(t,"width",["number"]),St(e,"height",["number"]);var n=t/this.width,i=e/this.height,r=Math.min(n,i);return this.scale(r)},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return s(this,void 0,void 0,function(){var t,e,n;return a(this,function(i){switch(i.label){case 0:return this.embedder?(this.embedTask||(e=(t=this).doc,n=t.ref,this.embedTask=this.embedder.embedIntoContext(e.context,n)),[4,this.embedTask]):[2];case 1:return i.sent(),this.embedder=void 0,[2]}})})},t.of=function(e,n,i){return new t(e,n,i)},t}();const zs=Ws;var js;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(js||(js={}));var Us=function(t){Ft(null===t||void 0===t?void 0:t.x,"options.x",["number"]),Ft(null===t||void 0===t?void 0:t.y,"options.y",["number"]),Ft(null===t||void 0===t?void 0:t.width,"options.width",["number"]),Ft(null===t||void 0===t?void 0:t.height,"options.height",["number"]),Ft(null===t||void 0===t?void 0:t.textColor,"options.textColor",[[Object,"Color"]]),Ft(null===t||void 0===t?void 0:t.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),Ft(null===t||void 0===t?void 0:t.borderColor,"options.borderColor",[[Object,"Color"]]),Ft(null===t||void 0===t?void 0:t.borderWidth,"options.borderWidth",["number"]),Ft(null===t||void 0===t?void 0:t.rotate,"options.rotate",[[Object,"Rotation"]])},Gs=function(){function t(t,e,n){St(t,"acroField",[[Ei,"PDFAcroTerminal"]]),St(e,"ref",[[Ne,"PDFRef"]]),St(n,"doc",[[pa,"PDFDocument"]]),this.acroField=t,this.ref=e,this.doc=n}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(_i.ReadOnly)},t.prototype.enableReadOnly=function(){this.acroField.setFlagTo(_i.ReadOnly,!0)},t.prototype.disableReadOnly=function(){this.acroField.setFlagTo(_i.ReadOnly,!1)},t.prototype.isRequired=function(){return this.acroField.hasFlag(_i.Required)},t.prototype.enableRequired=function(){this.acroField.setFlagTo(_i.Required,!0)},t.prototype.disableRequired=function(){this.acroField.setFlagTo(_i.Required,!1)},t.prototype.isExported=function(){return!this.acroField.hasFlag(_i.NoExport)},t.prototype.enableExporting=function(){this.acroField.setFlagTo(_i.NoExport,!1)},t.prototype.disableExporting=function(){this.acroField.setFlagTo(_i.NoExport,!0)},t.prototype.needsAppearancesUpdate=function(){throw new Lt(this.constructor.name,"needsAppearancesUpdate")},t.prototype.defaultUpdateAppearances=function(t){throw new Lt(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,n=t.textColor,i=t.backgroundColor,r=t.borderColor,o=t.borderWidth,s=jr(t.rotate),a=t.caption,l=t.x,u=t.y,c=t.width+o,h=t.height+o,d=Boolean(t.hidden),f=t.page;Tt(s,"degreesAngle",90);var p=Si.create(this.doc.context,this.ref),g=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0);var i=t.x,r=t.y,o=t.width,s=t.height,a=Ur(n),l=e/2;return 0===a?{x:i-l,y:r-l,width:o,height:s}:90===a?{x:i-s+l,y:r-l,width:s,height:o}:180===a?{x:i-o+l,y:r-s+l,width:o,height:s}:270===a?{x:i-l,y:r-o+l,width:s,height:o}:{x:i-l,y:r-l,width:o,height:s}}({x:l,y:u,width:c,height:h},o,s);p.setRectangle(g),f&&p.setP(f);var m=p.getOrCreateAppearanceCharacteristics();i&&m.setBackgroundColor(Oo(i)),m.setRotation(s),a&&m.setCaptions({normal:a}),r&&m.setBorderColor(Oo(r));var v=p.getOrCreateBorderStyle();if(void 0!==o&&v.setWidth(o),p.setFlagTo(Mr.Print,!0),p.setFlagTo(Mr.Hidden,d),p.setFlagTo(Mr.Invisible,!1),n){var y=(null!==(e=this.acroField.getDefaultAppearance())&&void 0!==e?e:"")+"\n"+Io(n).toString();this.acroField.setDefaultAppearance(y)}return p},t.prototype.updateWidgetAppearanceWithFont=function(t,e,n){var i=n.normal,r=n.rollover,o=n.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,i,e),rollover:r&&this.createAppearanceStream(t,r,e),down:o&&this.createAppearanceStream(t,o,e)})},t.prototype.updateOnOffWidgetAppearance=function(t,e,n){var i=n.normal,r=n.rollover,o=n.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,i,e),rollover:r&&this.createAppearanceDict(t,r,e),down:o&&this.createAppearanceDict(t,o,e)})},t.prototype.updateWidgetAppearances=function(t,e){var n=e.normal,i=e.rollover,r=e.down;t.setNormalAppearance(n),i?t.setRolloverAppearance(i):t.removeRolloverAppearance(),r?t.setDownAppearance(r):t.removeDownAppearance()},t.prototype.createAppearanceStream=function(t,e,n){var i,r=this.acroField.dict.context,o=t.getRectangle(),s=o.width,a=o.height,l=n&&{Font:(i={},i[n.name]=n.ref,i)},u=r.formXObject(e,{Resources:l,BBox:r.obj([0,0,s,a]),Matrix:r.obj([1,0,0,1,0,0])});return r.register(u)},t.prototype.createImageAppearanceStream=function(t,e,n){var i,r,s=this.acroField.dict.context,a=t.getRectangle(),u=t.getAppearanceCharacteristics(),c=t.getBorderStyle(),h=null!==(r=null===c||void 0===c?void 0:c.getWidth())&&void 0!==r?r:0,d=Ur(null===u||void 0===u?void 0:u.getRotation()),f=es(o(o({},a),{rotation:d})),p=Gr(a,d),g=e.scaleToFit(p.width-2*h,p.height-2*h),m={x:h,y:h,width:g.width,height:g.height,rotate:Nr(0),xSkew:Nr(0),ySkew:Nr(0)};n===js.Center?(m.x+=(p.width-2*h)/2-g.width/2,m.y+=(p.height-2*h)/2-g.height/2):n===js.Right&&(m.x=p.width-h-g.width,m.y=p.height-h-g.height);var v=this.doc.context.addRandomSuffix("Image",10),y=l(f,Qo(v,m)),b={XObject:(i={},i[v]=e.ref,i)},w=s.formXObject(y,{Resources:b,BBox:s.obj([0,0,a.width,a.height]),Matrix:s.obj([1,0,0,1,0,0])});return s.register(w)},t.prototype.createAppearanceDict=function(t,e,n){var i=this.acroField.dict.context,r=this.createAppearanceStream(t,e.on),o=this.createAppearanceStream(t,e.off),s=i.obj({});return s.set(n,r),s.set(Ee.of("Off"),o),s},t}();const Vs=Gs;var Hs=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return St(e,"acroCheckBox",[[Pi,"PDFAcroCheckBox"]]),r.acroField=e,r}return r(e,t),e.prototype.check=function(){var t,e=null!==(t=this.acroField.getOnValue())&&void 0!==t?t:Ee.of("Yes");this.markAsDirty(),this.acroField.setValue(e)},e.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(Ee.of("Off"))},e.prototype.isChecked=function(){var t=this.acroField.getOnValue();return!!t&&t===this.acroField.getValue()},e.prototype.addToPage=function(t,e){var n,i,r,o,s,a;St(t,"page",[[ya,"PDFPage"]]),Us(e),e||(e={}),"textColor"in e||(e.textColor=To(0,0,0)),"backgroundColor"in e||(e.backgroundColor=To(1,1,1)),"borderColor"in e||(e.borderColor=To(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var l=this.createWidget({x:null!==(n=e.x)&&void 0!==n?n:0,y:null!==(i=e.y)&&void 0!==i?i:0,width:null!==(r=e.width)&&void 0!==r?r:50,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Nr(0),hidden:e.hidden,page:t.ref}),u=this.doc.context.register(l.dict);this.acroField.addWidget(u),l.setAppearanceState(Ee.of("Off")),this.updateWidgetAppearance(l,Ee.of("Yes")),t.node.addAnnot(u)},e.prototype.needsAppearancesUpdate=function(){for(var t,e=this.acroField.getWidgets(),n=0,i=e.length;n<i;n++){var r=e[n],o=r.getAppearanceState(),s=null===(t=r.getAppearances())||void 0===t?void 0:t.normal;if(!(s instanceof Te))return!0;if(o&&!s.has(o))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(t){var e;Ft(t,"provider",[Function]);for(var n=this.acroField.getWidgets(),i=0,r=n.length;i<r;i++){var o=n[i],s=null!==(e=o.getOnValue())&&void 0!==e?e:Ee.of("Yes");s&&this.updateWidgetAppearance(o,s,t)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,n){var i=Ss((null!==n&&void 0!==n?n:Ps)(this,t));this.updateOnOffWidgetAppearance(t,e,i)},e.of=function(t,n,i){return new e(t,n,i)},e}(Vs);const qs=Hs;var Xs=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return St(e,"acroComboBox",[[Wi,"PDFAcroComboBox"]]),r.acroField=e,r}return r(e,t),e.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=new Array(t.length),n=0,i=e.length;n<i;n++){var r=t[n],o=r.display,s=r.value;e[n]=(null!==o&&void 0!==o?o:s).decodeText()}return e},e.prototype.getSelected=function(){for(var t=this.acroField.getValues(),e=new Array(t.length),n=0,i=t.length;n<i;n++)e[n]=t[n].decodeText();return e},e.prototype.setOptions=function(t){St(t,"options",[Array]);for(var e=new Array(t.length),n=0,i=t.length;n<i;n++)e[n]={value:gn.fromText(t[n])};this.acroField.setOptions(e)},e.prototype.addOptions=function(t){St(t,"options",["string",Array]);for(var e=Array.isArray(t)?t:[t],n=this.acroField.getOptions(),i=new Array(e.length),r=0,o=e.length;r<o;r++)i[r]={value:gn.fromText(e[r])};this.acroField.setOptions(n.concat(i))},e.prototype.select=function(t,e){void 0===e&&(e=!1),St(t,"options",["string",Array]),St(e,"merge",["boolean"]);var n=Array.isArray(t)?t:[t],i=this.getOptions();n.find(function(t){return!i.includes(t)})&&this.enableEditing(),this.markAsDirty(),(n.length>1||1===n.length&&e)&&this.enableMultiselect();for(var r=new Array(n.length),o=0,s=n.length;o<s;o++)r[o]=gn.fromText(n[o]);if(e){var a=this.acroField.getValues();this.acroField.setValues(a.concat(r))}else this.acroField.setValues(r)},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},e.prototype.setFontSize=function(t){Pt(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isEditable=function(){return this.acroField.hasFlag(Ii.Edit)},e.prototype.enableEditing=function(){this.acroField.setFlagTo(Ii.Edit,!0)},e.prototype.disableEditing=function(){this.acroField.setFlagTo(Ii.Edit,!1)},e.prototype.isSorted=function(){return this.acroField.hasFlag(Ii.Sort)},e.prototype.enableSorting=function(){this.acroField.setFlagTo(Ii.Sort,!0)},e.prototype.disableSorting=function(){this.acroField.setFlagTo(Ii.Sort,!1)},e.prototype.isMultiselect=function(){return this.acroField.hasFlag(Ii.MultiSelect)},e.prototype.enableMultiselect=function(){this.acroField.setFlagTo(Ii.MultiSelect,!0)},e.prototype.disableMultiselect=function(){this.acroField.setFlagTo(Ii.MultiSelect,!1)},e.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(Ii.DoNotSpellCheck)},e.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(Ii.DoNotSpellCheck,!1)},e.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(Ii.DoNotSpellCheck,!0)},e.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(Ii.CommitOnSelChange)},e.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(Ii.CommitOnSelChange,!0)},e.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(Ii.CommitOnSelChange,!1)},e.prototype.addToPage=function(t,e){var n,i,r,o,s,a,l;St(t,"page",[[ya,"PDFPage"]]),Us(e),e||(e={}),"textColor"in e||(e.textColor=To(0,0,0)),"backgroundColor"in e||(e.backgroundColor=To(1,1,1)),"borderColor"in e||(e.borderColor=To(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var u=this.createWidget({x:null!==(n=e.x)&&void 0!==n?n:0,y:null!==(i=e.y)&&void 0!==i?i:0,width:null!==(r=e.width)&&void 0!==r?r:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Nr(0),hidden:e.hidden,page:t.ref}),c=this.doc.context.register(u.dict);this.acroField.addWidget(c);var h=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(u,h),t.node.addAnnot(c)},e.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),n=0,i=e.length;n<i;n++){if(!((null===(t=e[n].getAppearances())||void 0===t?void 0:t.normal)instanceof _e))return!0}return!1},e.prototype.defaultUpdateAppearances=function(t){St(t,"font",[[Os,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){St(t,"font",[[Os,"PDFFont"]]),Ft(e,"provider",[Function]);for(var n=this.acroField.getWidgets(),i=0,r=n.length;i<r;i++){var o=n[i];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,n){var i=Ss((null!==n&&void 0!==n?n:Is)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,i)},e.of=function(t,n,i){return new e(t,n,i)},e}(Vs);const Ks=Xs;var Ys=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return St(e,"acroListBox",[[qi,"PDFAcroListBox"]]),r.acroField=e,r}return r(e,t),e.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=new Array(t.length),n=0,i=e.length;n<i;n++){var r=t[n],o=r.display,s=r.value;e[n]=(null!==o&&void 0!==o?o:s).decodeText()}return e},e.prototype.getSelected=function(){for(var t=this.acroField.getValues(),e=new Array(t.length),n=0,i=t.length;n<i;n++)e[n]=t[n].decodeText();return e},e.prototype.setOptions=function(t){St(t,"options",[Array]),this.markAsDirty();for(var e=new Array(t.length),n=0,i=t.length;n<i;n++)e[n]={value:gn.fromText(t[n])};this.acroField.setOptions(e)},e.prototype.addOptions=function(t){St(t,"options",["string",Array]),this.markAsDirty();for(var e=Array.isArray(t)?t:[t],n=this.acroField.getOptions(),i=new Array(e.length),r=0,o=e.length;r<o;r++)i[r]={value:gn.fromText(e[r])};this.acroField.setOptions(n.concat(i))},e.prototype.select=function(t,e){void 0===e&&(e=!1),St(t,"options",["string",Array]),St(e,"merge",["boolean"]);var n=Array.isArray(t)?t:[t];!function(t,e,n){Array.isArray(n)||(n=gt(n));for(var i=0,r=t.length;i<r;i++)Dt(t[i],e,n)}(n,"option",this.getOptions()),this.markAsDirty(),(n.length>1||1===n.length&&e)&&this.enableMultiselect();for(var i=new Array(n.length),r=0,o=n.length;r<o;r++)i[r]=gn.fromText(n[r]);if(e){var s=this.acroField.getValues();this.acroField.setValues(s.concat(i))}else this.acroField.setValues(i)},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},e.prototype.setFontSize=function(t){Pt(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isSorted=function(){return this.acroField.hasFlag(Ii.Sort)},e.prototype.enableSorting=function(){this.acroField.setFlagTo(Ii.Sort,!0)},e.prototype.disableSorting=function(){this.acroField.setFlagTo(Ii.Sort,!1)},e.prototype.isMultiselect=function(){return this.acroField.hasFlag(Ii.MultiSelect)},e.prototype.enableMultiselect=function(){this.acroField.setFlagTo(Ii.MultiSelect,!0)},e.prototype.disableMultiselect=function(){this.acroField.setFlagTo(Ii.MultiSelect,!1)},e.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(Ii.CommitOnSelChange)},e.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(Ii.CommitOnSelChange,!0)},e.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(Ii.CommitOnSelChange,!1)},e.prototype.addToPage=function(t,e){var n,i,r,o,s,a,l;St(t,"page",[[ya,"PDFPage"]]),Us(e),e||(e={}),"textColor"in e||(e.textColor=To(0,0,0)),"backgroundColor"in e||(e.backgroundColor=To(1,1,1)),"borderColor"in e||(e.borderColor=To(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var u=this.createWidget({x:null!==(n=e.x)&&void 0!==n?n:0,y:null!==(i=e.y)&&void 0!==i?i:0,width:null!==(r=e.width)&&void 0!==r?r:200,height:null!==(o=e.height)&&void 0!==o?o:100,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Nr(0),hidden:e.hidden,page:t.ref}),c=this.doc.context.register(u.dict);this.acroField.addWidget(c);var h=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(u,h),t.node.addAnnot(c)},e.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),n=0,i=e.length;n<i;n++){if(!((null===(t=e[n].getAppearances())||void 0===t?void 0:t.normal)instanceof _e))return!0}return!1},e.prototype.defaultUpdateAppearances=function(t){St(t,"font",[[Os,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){St(t,"font",[[Os,"PDFFont"]]),Ft(e,"provider",[Function]);for(var n=this.acroField.getWidgets(),i=0,r=n.length;i<r;i++){var o=n[i];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,n){var i=Ss((null!==n&&void 0!==n?n:Ns)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,i)},e.of=function(t,n,i){return new e(t,n,i)},e}(Vs);const Zs=Ys;var Qs=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return St(e,"acroRadioButton",[[Hi,"PDFAcroRadioButton"]]),r.acroField=e,r}return r(e,t),e.prototype.getOptions=function(){var t=this.acroField.getExportValues();if(t){for(var e=new Array(t.length),n=0,i=t.length;n<i;n++)e[n]=t[n].decodeText();return e}var r=this.acroField.getOnValues(),o=new Array(r.length);for(n=0,i=o.length;n<i;n++)o[n]=r[n].decodeText();return o},e.prototype.getSelected=function(){var t=this.acroField.getValue();if(t!==Ee.of("Off")){var e=this.acroField.getExportValues();if(e)for(var n=this.acroField.getOnValues(),i=0,r=n.length;i<r;i++)if(n[i]===t)return e[i].decodeText();return t.decodeText()}},e.prototype.select=function(t){St(t,"option",["string"]);var e=this.getOptions();Dt(t,"option",e),this.markAsDirty();var n=this.acroField.getOnValues(),i=this.acroField.getExportValues();if(i)for(var r=0,o=i.length;r<o;r++)i[r].decodeText()===t&&this.acroField.setValue(n[r]);else for(r=0,o=n.length;r<o;r++){var s=n[r];s.decodeText()===t&&this.acroField.setValue(s)}},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(Ee.of("Off"))},e.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(Ri.NoToggleToOff)},e.prototype.enableOffToggling=function(){this.acroField.setFlagTo(Ri.NoToggleToOff,!1)},e.prototype.disableOffToggling=function(){this.acroField.setFlagTo(Ri.NoToggleToOff,!0)},e.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(Ri.RadiosInUnison)},e.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(Ri.RadiosInUnison,!1)},e.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(Ri.RadiosInUnison,!0)},e.prototype.addOptionToPage=function(t,e,n){var i,r,o,s,a,l,u,c,h;St(t,"option",["string"]),St(e,"page",[[ya,"PDFPage"]]),Us(n);var d=this.createWidget({x:null!==(i=null===n||void 0===n?void 0:n.x)&&void 0!==i?i:0,y:null!==(r=null===n||void 0===n?void 0:n.y)&&void 0!==r?r:0,width:null!==(o=null===n||void 0===n?void 0:n.width)&&void 0!==o?o:50,height:null!==(s=null===n||void 0===n?void 0:n.height)&&void 0!==s?s:50,textColor:null!==(a=null===n||void 0===n?void 0:n.textColor)&&void 0!==a?a:To(0,0,0),backgroundColor:null!==(l=null===n||void 0===n?void 0:n.backgroundColor)&&void 0!==l?l:To(1,1,1),borderColor:null!==(u=null===n||void 0===n?void 0:n.borderColor)&&void 0!==u?u:To(0,0,0),borderWidth:null!==(c=null===n||void 0===n?void 0:n.borderWidth)&&void 0!==c?c:1,rotate:null!==(h=null===n||void 0===n?void 0:n.rotate)&&void 0!==h?h:Nr(0),hidden:null===n||void 0===n?void 0:n.hidden,page:e.ref}),f=this.doc.context.register(d.dict),p=this.acroField.addWidgetWithOpt(f,gn.fromText(t),!this.isMutuallyExclusive());d.setAppearanceState(Ee.of("Off")),this.updateWidgetAppearance(d,p),e.node.addAnnot(f)},e.prototype.needsAppearancesUpdate=function(){for(var t,e=this.acroField.getWidgets(),n=0,i=e.length;n<i;n++){var r=e[n],o=r.getAppearanceState(),s=null===(t=r.getAppearances())||void 0===t?void 0:t.normal;if(!(s instanceof Te))return!0;if(o&&!s.has(o))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(t){Ft(t,"provider",[Function]);for(var e=this.acroField.getWidgets(),n=0,i=e.length;n<i;n++){var r=e[n],o=r.getOnValue();o&&this.updateWidgetAppearance(r,o,t)}},e.prototype.updateWidgetAppearance=function(t,e,n){var i=Ss((null!==n&&void 0!==n?n:_s)(this,t));this.updateOnOffWidgetAppearance(t,e,i)},e.of=function(t,n,i){return new e(t,n,i)},e}(Vs);const Js=Qs;const $s=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return St(e,"acroSignature",[[ji,"PDFAcroSignature"]]),r.acroField=e,r}return r(e,t),e.prototype.needsAppearancesUpdate=function(){return!1},e.of=function(t,n,i){return new e(t,n,i)},e}(Vs);var ta=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return St(e,"acroText",[[Ui,"PDFAcroText"]]),r.acroField=e,r}return r(e,t),e.prototype.getText=function(){var t=this.acroField.getValue();if(!t&&this.isRichFormatted())throw new gs(this.getName());return null===t||void 0===t?void 0:t.decodeText()},e.prototype.setText=function(t){Ft(t,"text",["string"]);var e=this.getMaxLength();if(void 0!==e&&t&&t.length>e)throw new vs(t.length,e,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(gn.fromText(t)):this.acroField.removeValue()},e.prototype.getAlignment=function(){var t=this.acroField.getQuadding();return 0===t?ko.Left:1===t?ko.Center:2===t?ko.Right:ko.Left},e.prototype.setAlignment=function(t){Dt(t,"alignment",ko),this.markAsDirty(),this.acroField.setQuadding(t)},e.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},e.prototype.setMaxLength=function(t){if(Mt(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 ys(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(),n=e===ko.Center?js.Center:e===ko.Right?js.Right:js.Left,i=this.acroField.getWidgets(),r=0,o=i.length;r<o;r++){var s=i[r],a=this.createImageAppearanceStream(s,t,n);this.updateWidgetAppearances(s,{normal:a})}this.markAsClean()},e.prototype.setFontSize=function(t){Pt(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isMultiline=function(){return this.acroField.hasFlag(Bi.Multiline)},e.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(Bi.Multiline,!0)},e.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(Bi.Multiline,!1)},e.prototype.isPassword=function(){return this.acroField.hasFlag(Bi.Password)},e.prototype.enablePassword=function(){this.acroField.setFlagTo(Bi.Password,!0)},e.prototype.disablePassword=function(){this.acroField.setFlagTo(Bi.Password,!1)},e.prototype.isFileSelector=function(){return this.acroField.hasFlag(Bi.FileSelect)},e.prototype.enableFileSelection=function(){this.acroField.setFlagTo(Bi.FileSelect,!0)},e.prototype.disableFileSelection=function(){this.acroField.setFlagTo(Bi.FileSelect,!1)},e.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(Bi.DoNotSpellCheck)},e.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(Bi.DoNotSpellCheck,!1)},e.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(Bi.DoNotSpellCheck,!0)},e.prototype.isScrollable=function(){return!this.acroField.hasFlag(Bi.DoNotScroll)},e.prototype.enableScrolling=function(){this.acroField.setFlagTo(Bi.DoNotScroll,!1)},e.prototype.disableScrolling=function(){this.acroField.setFlagTo(Bi.DoNotScroll,!0)},e.prototype.isCombed=function(){return this.acroField.hasFlag(Bi.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()},e.prototype.enableCombing=function(){if(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(Bi.Comb,!0)},e.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(Bi.Comb,!1)},e.prototype.isRichFormatted=function(){return this.acroField.hasFlag(Bi.RichText)},e.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(Bi.RichText,!0)},e.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(Bi.RichText,!1)},e.prototype.addToPage=function(t,e){var n,i,r,o,s,a,l;St(t,"page",[[ya,"PDFPage"]]),Us(e),e||(e={}),"textColor"in e||(e.textColor=To(0,0,0)),"backgroundColor"in e||(e.backgroundColor=To(1,1,1)),"borderColor"in e||(e.borderColor=To(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var u=this.createWidget({x:null!==(n=e.x)&&void 0!==n?n:0,y:null!==(i=e.y)&&void 0!==i?i:0,width:null!==(r=e.width)&&void 0!==r?r:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Nr(0),hidden:e.hidden,page:t.ref}),c=this.doc.context.register(u.dict);this.acroField.addWidget(c);var h=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(u,h),t.node.addAnnot(c)},e.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),n=0,i=e.length;n<i;n++){if(!((null===(t=e[n].getAppearances())||void 0===t?void 0:t.normal)instanceof _e))return!0}return!1},e.prototype.defaultUpdateAppearances=function(t){St(t,"font",[[Os,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){St(t,"font",[[Os,"PDFFont"]]),Ft(e,"provider",[Function]);for(var n=this.acroField.getWidgets(),i=0,r=n.length;i<r;i++){var o=n[i];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,n){var i=Ss((null!==n&&void 0!==n?n:Bs)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,i)},e.of=function(t,n,i){return new e(t,n,i)},e}(Vs);const ea=ta;var na;!function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.HelveticaBold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"}(na||(na={}));var ia=function(){function t(t,e){var n=this;this.embedDefaultFont=function(){return n.doc.embedStandardFont(na.Helvetica)},St(t,"acroForm",[[ir,"PDFAcroForm"]]),St(e,"doc",[[pa,"PDFDocument"]]),this.acroForm=t,this.doc=e,this.dirtyFields=new Set,this.defaultFontCache=It.populatedBy(this.embedDefaultFont)}return t.prototype.hasXFA=function(){return this.acroForm.dict.has(Ee.of("XFA"))},t.prototype.deleteXFA=function(){this.acroForm.dict.delete(Ee.of("XFA"))},t.prototype.getFields=function(){for(var t=this.acroForm.getAllFields(),e=[],n=0,i=t.length;n<i;n++){var r=t[n],o=r[0],s=r[1],a=sa(o,s,this.doc);a&&e.push(a)}return e},t.prototype.getFieldMaybe=function(t){St(t,"name",["string"]);for(var e=this.getFields(),n=0,i=e.length;n<i;n++){var r=e[n];if(r.getName()===t)return r}},t.prototype.getField=function(t){St(t,"name",["string"]);var e=this.getFieldMaybe(t);if(e)return e;throw new hs(t)},t.prototype.getButton=function(t){St(t,"name",["string"]);var e=this.getField(t);if(e instanceof wa)return e;throw new ds(t,wa,e)},t.prototype.getCheckBox=function(t){St(t,"name",["string"]);var e=this.getField(t);if(e instanceof qs)return e;throw new ds(t,qs,e)},t.prototype.getDropdown=function(t){St(t,"name",["string"]);var e=this.getField(t);if(e instanceof Ks)return e;throw new ds(t,Ks,e)},t.prototype.getOptionList=function(t){St(t,"name",["string"]);var e=this.getField(t);if(e instanceof Zs)return e;throw new ds(t,Zs,e)},t.prototype.getRadioGroup=function(t){St(t,"name",["string"]);var e=this.getField(t);if(e instanceof Js)return e;throw new ds(t,Js,e)},t.prototype.getSignature=function(t){St(t,"name",["string"]);var e=this.getField(t);if(e instanceof $s)return e;throw new ds(t,$s,e)},t.prototype.getTextField=function(t){St(t,"name",["string"]);var e=this.getField(t);if(e instanceof ea)return e;throw new ds(t,ea,e)},t.prototype.createButton=function(t){St(t,"name",["string"]);var e=aa(t),n=this.findOrCreateNonTerminals(e.nonTerminal),i=Gi.create(this.doc.context);return i.setPartialName(e.terminal),la(n,[i,i.ref],e.terminal),wa.of(i,i.ref,this.doc)},t.prototype.createCheckBox=function(t){St(t,"name",["string"]);var e=aa(t),n=this.findOrCreateNonTerminals(e.nonTerminal),i=Pi.create(this.doc.context);return i.setPartialName(e.terminal),la(n,[i,i.ref],e.terminal),qs.of(i,i.ref,this.doc)},t.prototype.createDropdown=function(t){St(t,"name",["string"]);var e=aa(t),n=this.findOrCreateNonTerminals(e.nonTerminal),i=Wi.create(this.doc.context);return i.setPartialName(e.terminal),la(n,[i,i.ref],e.terminal),Ks.of(i,i.ref,this.doc)},t.prototype.createOptionList=function(t){St(t,"name",["string"]);var e=aa(t),n=this.findOrCreateNonTerminals(e.nonTerminal),i=qi.create(this.doc.context);return i.setPartialName(e.terminal),la(n,[i,i.ref],e.terminal),Zs.of(i,i.ref,this.doc)},t.prototype.createRadioGroup=function(t){St(t,"name",["string"]);var e=aa(t),n=this.findOrCreateNonTerminals(e.nonTerminal),i=Hi.create(this.doc.context);return i.setPartialName(e.terminal),la(n,[i,i.ref],e.terminal),Js.of(i,i.ref,this.doc)},t.prototype.createTextField=function(t){St(t,"name",["string"]);var e=aa(t),n=this.findOrCreateNonTerminals(e.nonTerminal),i=Ui.create(this.doc.context);return i.setPartialName(e.terminal),la(n,[i,i.ref],e.terminal),ea.of(i,i.ref,this.doc)},t.prototype.flatten=function(t){void 0===t&&(t={updateFieldAppearances:!0}),t.updateFieldAppearances&&this.updateFieldAppearances();for(var e=this.getFields(),n=0,i=e.length;n<i;n++){for(var r=e[n],s=r.acroField.getWidgets(),a=0,u=s.length;a<u;a++){var c=s[a],h=this.findWidgetPage(c),d=this.findWidgetAppearanceRef(r,c),f=h.node.newXObject("FlatWidget",d),p=c.getRectangle(),g=l([oo(),Yr(p.x,p.y)],es(o(o({},p),{rotation:0})),[So(f),so()]).filter(Boolean);h.pushOperators.apply(h,g)}this.removeField(r)}},t.prototype.removeField=function(t){for(var e=t.acroField.getWidgets(),n=new Set,i=0,r=e.length;i<r;i++){var o=e[i],s=this.findWidgetAppearanceRef(t,o),a=this.findWidgetPage(o);n.add(a),a.node.removeAnnot(s)}n.forEach(function(e){return e.node.removeAnnot(t.ref)}),this.acroForm.removeField(t.acroField);for(var l=t.acroField.normalizedEntries().Kids,u=l.size(),c=0;c<u;c++){var h=l.get(c);h instanceof Ne&&this.doc.context.delete(h)}this.doc.context.delete(t.ref)},t.prototype.updateFieldAppearances=function(t){Ft(t,"font",[[Os,"PDFFont"]]),t=null!==t&&void 0!==t?t:this.getDefaultFont();for(var e=this.getFields(),n=0,i=e.length;n<i;n++){var r=e[n];r.needsAppearancesUpdate()&&r.defaultUpdateAppearances(t)}},t.prototype.markFieldAsDirty=function(t){Ft(t,"fieldRef",[[Ne,"PDFRef"]]),this.dirtyFields.add(t)},t.prototype.markFieldAsClean=function(t){Ft(t,"fieldRef",[[Ne,"PDFRef"]]),this.dirtyFields.delete(t)},t.prototype.fieldIsDirty=function(t){return Ft(t,"fieldRef",[[Ne,"PDFRef"]]),this.dirtyFields.has(t)},t.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},t.prototype.findWidgetPage=function(t){var e=t.P(),n=this.doc.getPages().find(function(t){return t.ref===e});if(void 0===n){var i=this.doc.context.getObjectRef(t.dict);if(void 0===i)throw new Error("Could not find PDFRef for PDFObject");if(void 0===(n=this.doc.findPageForAnnotationRef(i)))throw new Error("Could not find page for PDFRef "+i)}return n},t.prototype.findWidgetAppearanceRef=function(t,e){var n,i=e.getNormalAppearance();if(i instanceof Te&&(t instanceof qs||t instanceof Js)){var r=t.acroField.getValue(),o=null!==(n=i.get(r))&&void 0!==n?n:i.get(Ee.of("Off"));o instanceof Ne&&(i=o)}if(!(i instanceof Ne)){var s=t.getName();throw new Error("Failed to extract appearance ref for: "+s)}return i},t.prototype.findOrCreateNonTerminals=function(t){for(var e=[this.acroForm],n=0,i=t.length;n<i;n++){var r=t[n];if(!r)throw new ps(r);var o=e[0],s=e[1],a=this.findNonTerminal(r,o);if(a)e=a;else{var l=zi.create(this.doc.context);l.setPartialName(r),l.setParent(s);var u=this.doc.context.register(l.dict);o.addField(u),e=[l,u]}}return e},t.prototype.findNonTerminal=function(t,e){for(var n=e instanceof ir?this.acroForm.getFields():Xi(e.Kids()),i=0,r=n.length;i<r;i++){var o=n[i],s=o[0],a=o[1];if(s.getPartialName()===t){if(s instanceof zi)return[s,a];throw new fs(t)}}},t.of=function(e,n){return new t(e,n)},t}();const ra=ia;var oa,sa=function(t,e,n){return t instanceof Gi?wa.of(t,e,n):t instanceof Pi?qs.of(t,e,n):t instanceof Wi?Ks.of(t,e,n):t instanceof qi?Zs.of(t,e,n):t instanceof Ui?ea.of(t,e,n):t instanceof Hi?Js.of(t,e,n):t instanceof ji?$s.of(t,e,n):void 0},aa=function(t){if(0===t.length)throw new Error("PDF field names must not be empty strings");for(var e=t.split("."),n=0,i=e.length;n<i;n++)if(""===e[n])throw new 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]}},la=function(t,e,n){for(var i=t[0],r=t[1],o=e[0],s=e[1],a=i.normalizedEntries(),l=(Xi("Kids"in a?a.Kids:a.Fields)),u=0,c=l.length;u<c;u++)if(l[u][0].getPartialName()===n)throw new fs(n);i.addField(s),o.setParent(r)},ua={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],Executive:[521.86,756],Folio:[612,936],Legal:[612,1008],Letter:[612,792],Tabloid:[792,1224]};!function(t){t[t.Fastest=1/0]="Fastest",t[t.Fast=1500]="Fast",t[t.Medium=500]="Medium",t[t.Slow=100]="Slow"}(oa||(oa={}));const ca=function(){function t(t,e,n){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=n}return t.prototype.embed=function(){return s(this,void 0,void 0,function(){var t,e,n,i;return a(this,function(r){switch(r.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t=r.sent(),this.doc.catalog.has(Ee.of("Names"))||this.doc.catalog.set(Ee.of("Names"),this.doc.context.obj({})),(e=this.doc.catalog.lookup(Ee.of("Names"),Te)).has(Ee.of("EmbeddedFiles"))||e.set(Ee.of("EmbeddedFiles"),this.doc.context.obj({})),(n=e.lookup(Ee.of("EmbeddedFiles"),Te)).has(Ee.of("Names"))||n.set(Ee.of("Names"),this.doc.context.obj([])),(i=n.lookup(Ee.of("Names"),ge)).push(gn.fromText(this.embedder.fileName)),i.push(t),this.doc.catalog.has(Ee.of("AF"))||this.doc.catalog.set(Ee.of("AF"),this.doc.context.obj([])),this.doc.catalog.lookup(Ee.of("AF"),ge).push(t),this.alreadyEmbedded=!0,r.label=2;case 2:return[2]}})})},t.of=function(e,n,i){return new t(e,n,i)},t}();const ha=function(){function t(t,e,n){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=n}return t.prototype.embed=function(){return s(this,void 0,void 0,function(){var t,e,n,i,r,o,s;return a(this,function(a){switch(a.label){case 0:return this.alreadyEmbedded?[3,2]:(t=this.doc,e=t.catalog,n=t.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:i=a.sent(),e.has(Ee.of("Names"))||e.set(Ee.of("Names"),n.obj({})),(r=e.lookup(Ee.of("Names"),Te)).has(Ee.of("JavaScript"))||r.set(Ee.of("JavaScript"),n.obj({})),(o=r.lookup(Ee.of("JavaScript"),Te)).has(Ee.of("Names"))||o.set(Ee.of("Names"),n.obj([])),(s=o.lookup(Ee.of("Names"),ge)).push(gn.fromText(this.embedder.scriptName)),s.push(i),this.alreadyEmbedded=!0,a.label=2;case 2:return[2]}})})},t.of=function(e,n,i){return new t(e,n,i)},t}();const da=function(){function t(t,e){this.script=t,this.scriptName=e}return t.for=function(e,n){return new t(e,n)},t.prototype.embedIntoContext=function(t,e){return s(this,void 0,void 0,function(){var n;return a(this,function(i){return n=t.obj({Type:"Action",S:"JavaScript",JS:gn.fromText(this.script)}),e?(t.assign(e,n),[2,e]):[2,t.register(n)]})})},t}();var fa=function(){function t(t,e,n){var i=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var t=[];return i.catalog.Pages().traverse(function(e,n){if(e instanceof Ye){var r=i.pageMap.get(e);r||(r=ya.of(e,n,i),i.pageMap.set(e,r)),t.push(r)}}),t},this.getOrCreateForm=function(){var t=i.catalog.getOrCreateAcroForm();return ra.of(t,i)},St(t,"context",[[Xe,"PDFContext"]]),St(e,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=It.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=It.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!e&&this.isEncrypted)throw new as;n&&this.updateInfoDict()}return t.load=function(e,n){return void 0===n&&(n={}),s(this,void 0,void 0,function(){var i,r,o,s,l,u,c,h,d,f,p;return a(this,function(a){switch(a.label){case 0:return i=n.ignoreEncryption,r=void 0!==i&&i,o=n.parseSpeed,s=void 0===o?oa.Slow:o,l=n.throwOnInvalidObject,u=void 0!==l&&l,c=n.updateMetadata,h=void 0===c||c,d=n.capNumbers,f=void 0!==d&&d,St(e,"pdf",["string",Uint8Array,ArrayBuffer]),St(r,"ignoreEncryption",["boolean"]),St(s,"parseSpeed",["number"]),St(u,"throwOnInvalidObject",["boolean"]),p=W(e),[4,kr.forBytesWithOptions(p,s,u,f).parseDocument()];case 1:return[2,new t(a.sent(),r,h)]}})})},t.create=function(e){return void 0===e&&(e={}),s(this,void 0,void 0,function(){var n,i,r,o,s,l;return a(this,function(a){return n=e.updateMetadata,i=void 0===n||n,r=Xe.create(),o=sr.withContext(r),s=r.register(o),l=rr.withContextAndPages(r,s),r.trailerInfo.Root=r.register(l),[2,new t(r,!1,i)]})})},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(Ee.Title);if(t)return ga(t),t.decodeText()},t.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(Ee.Author);if(t)return ga(t),t.decodeText()},t.prototype.getSubject=function(){var t=this.getInfoDict().lookup(Ee.Subject);if(t)return ga(t),t.decodeText()},t.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(Ee.Keywords);if(t)return ga(t),t.decodeText()},t.prototype.getCreator=function(){var t=this.getInfoDict().lookup(Ee.Creator);if(t)return ga(t),t.decodeText()},t.prototype.getProducer=function(){var t=this.getInfoDict().lookup(Ee.Producer);if(t)return ga(t),t.decodeText()},t.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(Ee.CreationDate);if(t)return ga(t),t.decodeDate()},t.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(Ee.ModDate);if(t)return ga(t),t.decodeDate()},t.prototype.setTitle=function(t,e){St(t,"title",["string"]);var n=Ee.of("Title");(this.getInfoDict().set(n,gn.fromText(t)),null===e||void 0===e?void 0:e.showInWindowTitleBar)&&this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)},t.prototype.setAuthor=function(t){St(t,"author",["string"]);var e=Ee.of("Author");this.getInfoDict().set(e,gn.fromText(t))},t.prototype.setSubject=function(t){St(t,"author",["string"]);var e=Ee.of("Subject");this.getInfoDict().set(e,gn.fromText(t))},t.prototype.setKeywords=function(t){St(t,"keywords",[Array]);var e=Ee.of("Keywords");this.getInfoDict().set(e,gn.fromText(t.join(" ")))},t.prototype.setCreator=function(t){St(t,"creator",["string"]);var e=Ee.of("Creator");this.getInfoDict().set(e,gn.fromText(t))},t.prototype.setProducer=function(t){St(t,"creator",["string"]);var e=Ee.of("Producer");this.getInfoDict().set(e,gn.fromText(t))},t.prototype.setLanguage=function(t){St(t,"language",["string"]);var e=Ee.of("Lang");this.catalog.set(e,Cn.of(t))},t.prototype.setCreationDate=function(t){St(t,"creationDate",[[Date,"Date"]]);var e=Ee.of("CreationDate");this.getInfoDict().set(e,Cn.fromDate(t))},t.prototype.setModificationDate=function(t){St(t,"modificationDate",[[Date,"Date"]]);var e=Ee.of("ModDate");this.getInfoDict().set(e,Cn.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 kt(t,"index",0,e.length-1),e[t]},t.prototype.getPageIndices=function(){return function(t,e){for(var n=new Array(e-t),i=0,r=n.length;i<r;i++)n[i]=t+i;return n}(0,this.getPageCount())},t.prototype.removePage=function(t){var e=this.getPageCount();if(0===this.pageCount)throw new cs;kt(t,"index",0,e-1),this.catalog.removeLeafNode(t),this.pageCount=e-1},t.prototype.addPage=function(t){return St(t,"page",["undefined",[ya,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)},t.prototype.insertPage=function(t,e){var n=this.getPageCount();if(kt(t,"index",0,n),St(e,"page",["undefined",[ya,"PDFPage"],Array]),!e||Array.isArray(e)){var i=Array.isArray(e)?e:ua.A4;(e=ya.create(this)).setSize.apply(e,i)}else if(e.doc!==this)throw new us;var r=this.catalog.insertLeafNode(e.ref,t);return e.node.setParent(r),this.pageMap.set(e.node,e),this.pageCache.invalidate(),this.pageCount=n+1,e},t.prototype.copyPages=function(e,n){return s(this,void 0,void 0,function(){var i,r,o,s,l,u,c,h;return a(this,function(a){switch(a.label){case 0:return St(e,"srcDoc",[[t,"PDFDocument"]]),St(n,"indices",[Array]),[4,e.flush()];case 1:for(a.sent(),i=Qe.for(e.context,this.context),r=e.getPages(),o=new Array(n.length),s=0,l=n.length;s<l;s++)u=r[n[s]],c=i.copy(u.node),h=this.context.register(c),o[s]=ya.of(c,h,this);return[2,o]}})})},t.prototype.copy=function(){return s(this,void 0,void 0,function(){var e,n,i,r;return a(this,function(o){switch(o.label){case 0:return[4,t.create()];case 1:return[4,(e=o.sent()).copyPages(this,this.getPageIndices())];case 2:for(n=o.sent(),i=0,r=n.length;i<r;i++)e.addPage(n[i]);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){St(t,"name",["string"]),St(e,"script",["string"]);var n=da.for(e,t),i=this.context.nextRef(),r=ha.of(i,this,n);this.javaScripts.push(r)},t.prototype.attach=function(t,e,n){return void 0===n&&(n={}),s(this,void 0,void 0,function(){var i,r,o,s;return a(this,function(a){return St(t,"attachment",["string",Uint8Array,ArrayBuffer]),St(e,"name",["string"]),Ft(n.mimeType,"mimeType",["string"]),Ft(n.description,"description",["string"]),Ft(n.creationDate,"options.creationDate",[Date]),Ft(n.modificationDate,"options.modificationDate",[Date]),At(n.afRelationship,"options.afRelationship",Mn),i=W(t),r=Tn.for(i,e,n),o=this.context.nextRef(),s=ca.of(o,this,r),this.embeddedFiles.push(s),[2]})})},t.prototype.embedFont=function(t,e){return void 0===e&&(e={}),s(this,void 0,void 0,function(){var n,i,r,o,s,l,u,c,h,d;return a(this,function(a){switch(a.label){case 0:return n=e.subset,i=void 0!==n&&n,r=e.customName,o=e.features,St(t,"font",["string",Uint8Array,ArrayBuffer]),St(i,"subset",["boolean"]),vt(t)?(s=vn.for(t,r),[3,7]):[3,1];case 1:return(f=t)instanceof Uint8Array||f instanceof ArrayBuffer||"string"===typeof f?(l=W(t),u=this.assertFontkit(),i?[4,kn.for(u,l,r,o)]:[3,3]):[3,6];case 2:return c=a.sent(),[3,5];case 3:return[4,Fn.for(u,l,r,o)];case 4:c=a.sent(),a.label=5;case 5:return s=c,[3,7];case 6:throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");case 7:return h=this.context.nextRef(),d=Os.of(h,this,s),this.fonts.push(d),[2,d]}var f})})},t.prototype.embedStandardFont=function(t,e){if(St(t,"font",["string"]),!vt(t))throw new TypeError("`font` must be one of type `StandardFonts`");var n=vn.for(t,e),i=this.context.nextRef(),r=Os.of(i,this,n);return this.fonts.push(r),r},t.prototype.embedJpg=function(t){return s(this,void 0,void 0,function(){var e,n,i,r;return a(this,function(o){switch(o.label){case 0:return St(t,"jpg",["string",Uint8Array,ArrayBuffer]),e=W(t),[4,Bn.for(e)];case 1:return n=o.sent(),i=this.context.nextRef(),r=zs.of(i,this,n),this.images.push(r),[2,r]}})})},t.prototype.embedPng=function(t){return s(this,void 0,void 0,function(){var e,n,i,r;return a(this,function(o){switch(o.label){case 0:return St(t,"png",["string",Uint8Array,ArrayBuffer]),e=W(t),[4,Wn.for(e)];case 1:return n=o.sent(),i=this.context.nextRef(),r=zs.of(i,this,n),this.images.push(r),[2,r]}})})},t.prototype.embedPdf=function(e,n){return void 0===n&&(n=[0]),s(this,void 0,void 0,function(){var i,r;return a(this,function(o){switch(o.label){case 0:return St(e,"pdf",["string",Uint8Array,ArrayBuffer,[t,"PDFDocument"]]),St(n,"indices",[Array]),e instanceof t?(i=e,[3,3]):[3,1];case 1:return[4,t.load(e)];case 2:i=o.sent(),o.label=3;case 3:return r=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i<r;i++)n[i]=t[e[i]];return n}(i.getPages(),n),[2,this.embedPages(r)]}})})},t.prototype.embedPage=function(t,e,n){return s(this,void 0,void 0,function(){return a(this,function(i){switch(i.label){case 0:return St(t,"page",[[ya,"PDFPage"]]),[4,this.embedPages([t],[e],[n])];case 1:return[2,i.sent()[0]]}})})},t.prototype.embedPages=function(t,e,n){return void 0===e&&(e=[]),void 0===n&&(n=[]),s(this,void 0,void 0,function(){var i,r,o,s,l,u,c,h,d,f,p,g,m;return a(this,function(a){switch(a.label){case 0:if(0===t.length)return[2,[]];for(u=0,c=t.length-1;u<c;u++)if(i=t[u],r=t[u+1],i.node.context!==r.node.context)throw new Vt;o=t[0].node.context,s=o===this.context?function(t){return t}:Qe.for(o,this.context).copy,l=new Array(t.length),u=0,c=t.length,a.label=1;case 1:return u<c?(h=s(t[u].node),d=e[u],f=n[u],[4,li.for(h,d,f)]):[3,4];case 2:p=a.sent(),g=this.context.nextRef(),l[u]=Ls.of(g,this,p),a.label=3;case 3:return u++,[3,1];case 4:return(m=this.embeddedPages).push.apply(m,l),[2,l]}})})},t.prototype.flush=function(){return s(this,void 0,void 0,function(){return a(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={}),s(this,void 0,void 0,function(){var e,n,i,r,o,s,l,u,c;return a(this,function(a){switch(a.label){case 0:return e=t.useObjectStreams,n=void 0===e||e,i=t.addDefaultPage,r=void 0===i||i,o=t.objectsPerTick,s=void 0===o?50:o,l=t.updateFieldAppearances,u=void 0===l||l,St(n,"useObjectStreams",["boolean"]),St(r,"addDefaultPage",["boolean"]),St(s,"objectsPerTick",["number"]),St(u,"updateFieldAppearances",["boolean"]),r&&0===this.getPageCount()&&this.addPage(),u&&(c=this.formCache.getValue())&&c.updateFieldAppearances(),[4,this.flush()];case 1:return a.sent(),[2,(n?fn:sn).forContext(this.context,s).serializeToBuffer()]}})})},t.prototype.saveAsBase64=function(t){return void 0===t&&(t={}),s(this,void 0,void 0,function(){var e,n,i,r,o;return a(this,function(s){switch(s.label){case 0:return e=t.dataUri,n=void 0!==e&&e,i=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}(t,["dataUri"]),St(n,"dataUri",["boolean"]),[4,this.save(i)];case 1:return r=s.sent(),o=function(t){for(var e="",n=t.length,i=0;i<n;i+=3)e+=u[t[i]>>2],e+=u[(3&t[i])<<4|t[i+1]>>4],e+=u[(15&t[i+1])<<2|t[i+2]>>6],e+=u[63&t[i+2]];return n%3===2?e=e.substring(0,e.length-1)+"=":n%3===1&&(e=e.substring(0,e.length-2)+"=="),e}(r),[2,n?"data:application/pdf;base64,"+o:o]}})})},t.prototype.findPageForAnnotationRef=function(t){for(var e=this.getPages(),n=0,i=e.length;n<i;n++){var r=e[n],o=r.node.Annots();if(void 0!==(null===o||void 0===o?void 0:o.indexOf(t)))return r}},t.prototype.embedAll=function(t){return s(this,void 0,void 0,function(){var e,n;return a(this,function(i){switch(i.label){case 0:e=0,n=t.length,i.label=1;case 1:return e<n?[4,t[e].embed()]:[3,4];case 2:i.sent(),i.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,n=this.getInfoDict();this.setProducer(t),this.setModificationDate(e),n.get(Ee.of("Creator"))||this.setCreator(t),n.get(Ee.of("CreationDate"))||this.setCreationDate(e)},t.prototype.getInfoDict=function(){var t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof Te)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 ls;return this.fontkit},t}();const pa=fa;function ga(t){if(!(t instanceof gn)&&!(t instanceof Cn))throw new Wt([gn,Cn],t)}var ma;!function(t){t.Normal="Normal",t.Multiply="Multiply",t.Screen="Screen",t.Overlay="Overlay",t.Darken="Darken",t.Lighten="Lighten",t.ColorDodge="ColorDodge",t.ColorBurn="ColorBurn",t.HardLight="HardLight",t.SoftLight="SoftLight",t.Difference="Difference",t.Exclusion="Exclusion"}(ma||(ma={}));var va=function(){function t(t,e,n){this.fontSize=24,this.fontColor=To(0,0,0),this.lineHeight=24,this.x=0,this.y=0,St(t,"leafNode",[[Ye,"PDFPageLeaf"]]),St(e,"ref",[[Ne,"PDFRef"]]),St(n,"doc",[[pa,"PDFDocument"]]),this.node=t,this.ref=e,this.doc=n}return t.prototype.setRotation=function(t){var e=jr(t);Tt(e,"degreesAngle",90),this.node.set(Ee.of("Rotate"),this.doc.context.obj(e))},t.prototype.getRotation=function(){var t=this.node.Rotate();return Nr(t?t.asNumber():0)},t.prototype.setSize=function(t,e){St(t,"width",["number"]),St(e,"height",["number"]);var n=this.getMediaBox();this.setMediaBox(n.x,n.y,t,e);var i=this.getCropBox(),r=this.getBleedBox(),o=this.getTrimBox(),s=this.getArtBox(),a=this.node.CropBox(),l=this.node.BleedBox(),u=this.node.TrimBox(),c=this.node.ArtBox();a&&yt(i,n)&&this.setCropBox(n.x,n.y,t,e),l&&yt(r,n)&&this.setBleedBox(n.x,n.y,t,e),u&&yt(o,n)&&this.setTrimBox(n.x,n.y,t,e),c&&yt(s,n)&&this.setArtBox(n.x,n.y,t,e)},t.prototype.setWidth=function(t){St(t,"width",["number"]),this.setSize(t,this.getSize().height)},t.prototype.setHeight=function(t){St(t,"height",["number"]),this.setSize(this.getSize().width,t)},t.prototype.setMediaBox=function(t,e,n,i){St(t,"x",["number"]),St(e,"y",["number"]),St(n,"width",["number"]),St(i,"height",["number"]);var r=this.doc.context.obj([t,e,t+n,e+i]);this.node.set(Ee.MediaBox,r)},t.prototype.setCropBox=function(t,e,n,i){St(t,"x",["number"]),St(e,"y",["number"]),St(n,"width",["number"]),St(i,"height",["number"]);var r=this.doc.context.obj([t,e,t+n,e+i]);this.node.set(Ee.CropBox,r)},t.prototype.setBleedBox=function(t,e,n,i){St(t,"x",["number"]),St(e,"y",["number"]),St(n,"width",["number"]),St(i,"height",["number"]);var r=this.doc.context.obj([t,e,t+n,e+i]);this.node.set(Ee.BleedBox,r)},t.prototype.setTrimBox=function(t,e,n,i){St(t,"x",["number"]),St(e,"y",["number"]),St(n,"width",["number"]),St(i,"height",["number"]);var r=this.doc.context.obj([t,e,t+n,e+i]);this.node.set(Ee.TrimBox,r)},t.prototype.setArtBox=function(t,e,n,i){St(t,"x",["number"]),St(e,"y",["number"]),St(n,"width",["number"]),St(i,"height",["number"]);var r=this.doc.context.obj([t,e,t+n,e+i]);this.node.set(Ee.ArtBox,r)},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?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?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?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?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.translateContent=function(t,e){St(t,"x",["number"]),St(e,"y",["number"]),this.node.normalize(),this.getContentStream();var n=this.createContentStream(oo(),Yr(t,e)),i=this.doc.context.register(n),r=this.createContentStream(so()),o=this.doc.context.register(r);this.node.wrapContentStreams(i,o)},t.prototype.scale=function(t,e){St(t,"x",["number"]),St(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){St(t,"x",["number"]),St(e,"y",["number"]),this.node.normalize(),this.getContentStream();var n=this.createContentStream(oo(),Zr(t,e)),i=this.doc.context.register(n),r=this.createContentStream(so()),o=this.doc.context.register(r);this.node.wrapContentStreams(i,o)},t.prototype.scaleAnnotations=function(t,e){St(t,"x",["number"]),St(e,"y",["number"]);var n=this.node.Annots();if(n)for(var i=0;i<n.size();i++){var r=n.lookup(i);r instanceof Te&&this.scaleAnnot(r,t,e)}},t.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},t.prototype.setFont=function(t){St(t,"font",[[Os,"PDFFont"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},t.prototype.setFontSize=function(t){St(t,"fontSize",["number"]),this.fontSize=t},t.prototype.setFontColor=function(t){St(t,"fontColor",[[Object,"Color"]]),this.fontColor=t},t.prototype.setLineHeight=function(t){St(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){St(t,"x",["number"]),St(e,"y",["number"]),this.x=t,this.y=e},t.prototype.moveDown=function(t){St(t,"yDecrease",["number"]),this.y-=t},t.prototype.moveUp=function(t){St(t,"yIncrease",["number"]),this.y+=t},t.prototype.moveLeft=function(t){St(t,"xDecrease",["number"]),this.x-=t},t.prototype.moveRight=function(t){St(t,"xIncrease",["number"]),this.x+=t},t.prototype.pushOperators=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Et(t,"operator",[[Oe,"PDFOperator"]]);var n=this.getContentStream();n.push.apply(n,t)},t.prototype.drawText=function(t,e){var n,i,r,o,s,a,l;void 0===e&&(e={}),St(t,"text",["string"]),Ft(e.color,"options.color",[[Object,"Color"]]),Mt(e.opacity,"opacity.opacity",0,1),Ft(e.font,"options.font",[[Os,"PDFFont"]]),Ft(e.size,"options.size",["number"]),Ft(e.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Ft(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),Ft(e.x,"options.x",["number"]),Ft(e.y,"options.y",["number"]),Ft(e.lineHeight,"options.lineHeight",["number"]),Ft(e.maxWidth,"options.maxWidth",["number"]),Ft(e.wordBreaks,"options.wordBreaks",[Array]),At(e.blendMode,"options.blendMode",ma);for(var u=this.setOrEmbedFont(e.font),c=u.oldFont,h=u.newFont,d=u.newFontKey,f=e.size||this.fontSize,p=e.wordBreaks||this.doc.defaultWordBreaks,g=void 0===e.maxWidth?F(x(t)):M(t,p,e.maxWidth,function(t){return h.widthOfTextAtSize(t,f)}),m=new Array(g.length),v=0,y=g.length;v<y;v++)m[v]=h.encodeText(g[v]);var b=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),w=this.getContentStream();w.push.apply(w,function(t,e){for(var n,i=[oo(),e.graphicsState&&ro(e.graphicsState),wo(),Io(e.color),Ao(e.font,e.size),(n=e.lineHeight,Oe.of(ze.SetTextLineHeight,[Rr(n)])),Co(zr(e.rotate),zr(e.xSkew),zr(e.ySkew),e.x,e.y)].filter(Boolean),r=0,o=t.length;r<o;r++)i.push(bo(t[r]),yo());return i.push(Do(),so()),i}(m,{color:null!==(n=e.color)&&void 0!==n?n:this.fontColor,font:d,size:f,rotate:null!==(i=e.rotate)&&void 0!==i?i:Nr(0),xSkew:null!==(r=e.xSkew)&&void 0!==r?r:Nr(0),ySkew:null!==(o=e.ySkew)&&void 0!==o?o:Nr(0),x:null!==(s=e.x)&&void 0!==s?s:this.x,y:null!==(a=e.y)&&void 0!==a?a:this.y,lineHeight:null!==(l=e.lineHeight)&&void 0!==l?l:this.lineHeight,graphicsState:b})),e.font&&(c?this.setFont(c):this.resetFont())},t.prototype.drawImage=function(t,e){var n,i,r,o,s,a,l;void 0===e&&(e={}),St(t,"image",[[zs,"PDFImage"]]),Ft(e.x,"options.x",["number"]),Ft(e.y,"options.y",["number"]),Ft(e.width,"options.width",["number"]),Ft(e.height,"options.height",["number"]),Ft(e.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Ft(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),Mt(e.opacity,"opacity.opacity",0,1),At(e.blendMode,"options.blendMode",ma);var u=this.node.newXObject("Image",t.ref),c=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),h=this.getContentStream();h.push.apply(h,Qo(u,{x:null!==(n=e.x)&&void 0!==n?n:this.x,y:null!==(i=e.y)&&void 0!==i?i:this.y,width:null!==(r=e.width)&&void 0!==r?r:t.size().width,height:null!==(o=e.height)&&void 0!==o?o:t.size().height,rotate:null!==(s=e.rotate)&&void 0!==s?s:Nr(0),xSkew:null!==(a=e.xSkew)&&void 0!==a?a:Nr(0),ySkew:null!==(l=e.ySkew)&&void 0!==l?l:Nr(0),graphicsState:c}))},t.prototype.drawPage=function(t,e){var n,i,r,o,s;void 0===e&&(e={}),St(t,"embeddedPage",[[Ls,"PDFEmbeddedPage"]]),Ft(e.x,"options.x",["number"]),Ft(e.y,"options.y",["number"]),Ft(e.xScale,"options.xScale",["number"]),Ft(e.yScale,"options.yScale",["number"]),Ft(e.width,"options.width",["number"]),Ft(e.height,"options.height",["number"]),Ft(e.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Ft(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),Mt(e.opacity,"opacity.opacity",0,1),At(e.blendMode,"options.blendMode",ma);var a=this.node.newXObject("EmbeddedPdfPage",t.ref),l=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),u=void 0!==e.width?e.width/t.width:void 0!==e.xScale?e.xScale:1,c=void 0!==e.height?e.height/t.height:void 0!==e.yScale?e.yScale:1,h=this.getContentStream();h.push.apply(h,function(t,e){return[oo(),e.graphicsState&&ro(e.graphicsState),Yr(e.x,e.y),Qr(zr(e.rotate)),Zr(e.xScale,e.yScale),$r(zr(e.xSkew),zr(e.ySkew)),So(t),so()].filter(Boolean)}(a,{x:null!==(n=e.x)&&void 0!==n?n:this.x,y:null!==(i=e.y)&&void 0!==i?i:this.y,xScale:u,yScale:c,rotate:null!==(r=e.rotate)&&void 0!==r?r:Nr(0),xSkew:null!==(o=e.xSkew)&&void 0!==o?o:Nr(0),ySkew:null!==(s=e.ySkew)&&void 0!==s?s:Nr(0),graphicsState:l}))},t.prototype.drawSvgPath=function(t,e){var n,i,r,o,s,a,u,c,h;void 0===e&&(e={}),St(t,"path",["string"]),Ft(e.x,"options.x",["number"]),Ft(e.y,"options.y",["number"]),Ft(e.scale,"options.scale",["number"]),Ft(e.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(e.borderWidth,"options.borderWidth",["number"]),Ft(e.color,"options.color",[[Object,"Color"]]),Mt(e.opacity,"opacity.opacity",0,1),Ft(e.borderColor,"options.borderColor",[[Object,"Color"]]),Ft(e.borderDashArray,"options.borderDashArray",[Array]),Ft(e.borderDashPhase,"options.borderDashPhase",["number"]),At(e.borderLineCap,"options.borderLineCap",Ir),Mt(e.borderOpacity,"options.borderOpacity",0,1),At(e.blendMode,"options.blendMode",ma);var d=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});"color"in e||"borderColor"in e||(e.borderColor=To(0,0,0));var f=this.getContentStream();f.push.apply(f,function(t,e){var n,i,r;return l([oo(),e.graphicsState&&ro(e.graphicsState),Yr(e.x,e.y),Qr(zr(null!==(n=e.rotate)&&void 0!==n?n:Nr(0))),e.scale?Zr(e.scale,-e.scale):Zr(1,-1),e.color&&Io(e.color),e.borderColor&&No(e.borderColor),e.borderWidth&&ao(e.borderWidth),e.borderLineCap&&no(e.borderLineCap),to(null!==(i=e.borderDashArray)&&void 0!==i?i:[],null!==(r=e.borderDashPhase)&&void 0!==r?r:0)],Zo(t),[e.color&&e.borderWidth?mo():e.color?go():e.borderColor?po():co(),so()]).filter(Boolean)}(t,{x:null!==(n=e.x)&&void 0!==n?n:this.x,y:null!==(i=e.y)&&void 0!==i?i:this.y,scale:e.scale,rotate:null!==(r=e.rotate)&&void 0!==r?r:Nr(0),color:null!==(o=e.color)&&void 0!==o?o:void 0,borderColor:null!==(s=e.borderColor)&&void 0!==s?s:void 0,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,borderDashArray:null!==(u=e.borderDashArray)&&void 0!==u?u:void 0,borderDashPhase:null!==(c=e.borderDashPhase)&&void 0!==c?c:void 0,borderLineCap:null!==(h=e.borderLineCap)&&void 0!==h?h:void 0,graphicsState:d}))},t.prototype.drawLine=function(t){var e,n,i,r,o;St(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),St(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),St(t.start.x,"options.start.x",["number"]),St(t.start.y,"options.start.y",["number"]),St(t.end.x,"options.end.x",["number"]),St(t.end.y,"options.end.y",["number"]),Ft(t.thickness,"options.thickness",["number"]),Ft(t.color,"options.color",[[Object,"Color"]]),Ft(t.dashArray,"options.dashArray",[Array]),Ft(t.dashPhase,"options.dashPhase",["number"]),At(t.lineCap,"options.lineCap",Ir),Mt(t.opacity,"opacity.opacity",0,1),At(t.blendMode,"options.blendMode",ma);var s=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=To(0,0,0));var a=this.getContentStream();a.push.apply(a,function(t){var e,n;return[oo(),t.graphicsState&&ro(t.graphicsState),t.color&&No(t.color),ao(t.thickness),to(null!==(e=t.dashArray)&&void 0!==e?e:[],null!==(n=t.dashPhase)&&void 0!==n?n:0),ho(t.start.x,t.start.y),t.lineCap&&no(t.lineCap),ho(t.start.x,t.start.y),fo(t.end.x,t.end.y),po(),so()].filter(Boolean)}({start:t.start,end:t.end,thickness:null!==(e=t.thickness)&&void 0!==e?e:1,color:null!==(n=t.color)&&void 0!==n?n:void 0,dashArray:null!==(i=t.dashArray)&&void 0!==i?i:void 0,dashPhase:null!==(r=t.dashPhase)&&void 0!==r?r:void 0,lineCap:null!==(o=t.lineCap)&&void 0!==o?o:void 0,graphicsState:s}))},t.prototype.drawRectangle=function(t){var e,n,i,r,o,s,a,l,u,c,h,d,f;void 0===t&&(t={}),Ft(t.x,"options.x",["number"]),Ft(t.y,"options.y",["number"]),Ft(t.width,"options.width",["number"]),Ft(t.height,"options.height",["number"]),Ft(t.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),Ft(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),Ft(t.borderWidth,"options.borderWidth",["number"]),Ft(t.color,"options.color",[[Object,"Color"]]),Mt(t.opacity,"opacity.opacity",0,1),Ft(t.borderColor,"options.borderColor",[[Object,"Color"]]),Ft(t.borderDashArray,"options.borderDashArray",[Array]),Ft(t.borderDashPhase,"options.borderDashPhase",["number"]),At(t.borderLineCap,"options.borderLineCap",Ir),Mt(t.borderOpacity,"options.borderOpacity",0,1),At(t.blendMode,"options.blendMode",ma);var p=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=To(0,0,0));var g=this.getContentStream();g.push.apply(g,Jo({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,width:null!==(i=t.width)&&void 0!==i?i:150,height:null!==(r=t.height)&&void 0!==r?r:100,rotate:null!==(o=t.rotate)&&void 0!==o?o:Nr(0),xSkew:null!==(s=t.xSkew)&&void 0!==s?s:Nr(0),ySkew:null!==(a=t.ySkew)&&void 0!==a?a:Nr(0),borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,color:null!==(u=t.color)&&void 0!==u?u:void 0,borderColor:null!==(c=t.borderColor)&&void 0!==c?c:void 0,borderDashArray:null!==(h=t.borderDashArray)&&void 0!==h?h:void 0,borderDashPhase:null!==(d=t.borderDashPhase)&&void 0!==d?d: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;Ft(e,"size",["number"]),this.drawRectangle(o(o({},t),{width:e,height:e}))},t.prototype.drawEllipse=function(t){var e,n,i,r,o,s,a,l,u,c,h;void 0===t&&(t={}),Ft(t.x,"options.x",["number"]),Ft(t.y,"options.y",["number"]),Ft(t.xScale,"options.xScale",["number"]),Ft(t.yScale,"options.yScale",["number"]),Ft(t.rotate,"options.rotate",[[Object,"Rotation"]]),Ft(t.color,"options.color",[[Object,"Color"]]),Mt(t.opacity,"opacity.opacity",0,1),Ft(t.borderColor,"options.borderColor",[[Object,"Color"]]),Mt(t.borderOpacity,"options.borderOpacity",0,1),Ft(t.borderWidth,"options.borderWidth",["number"]),Ft(t.borderDashArray,"options.borderDashArray",[Array]),Ft(t.borderDashPhase,"options.borderDashPhase",["number"]),At(t.borderLineCap,"options.borderLineCap",Ir),At(t.blendMode,"options.blendMode",ma);var d=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=To(0,0,0));var f=this.getContentStream();f.push.apply(f,ts({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,xScale:null!==(i=t.xScale)&&void 0!==i?i:100,yScale:null!==(r=t.yScale)&&void 0!==r?r:100,rotate:null!==(o=t.rotate)&&void 0!==o?o:void 0,color:null!==(s=t.color)&&void 0!==s?s:void 0,borderColor:null!==(a=t.borderColor)&&void 0!==a?a:void 0,borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,borderDashArray:null!==(u=t.borderDashArray)&&void 0!==u?u:void 0,borderDashPhase:null!==(c=t.borderDashPhase)&&void 0!==c?c:void 0,borderLineCap:null!==(h=t.borderLineCap)&&void 0!==h?h:void 0,graphicsState:d}))},t.prototype.drawCircle=function(t){void 0===t&&(t={});var e=t.size,n=void 0===e?100:e;Ft(n,"size",["number"]),this.drawEllipse(o(o({},t),{xScale:n,yScale:n}))},t.prototype.setOrEmbedFont=function(t){var e=this.font,n=this.fontKey;return t?this.setFont(t):this.getFont(),{oldFont:e,oldFontKey:n,newFont:this.font,newFontKey:this.fontKey}},t.prototype.getFont=function(){if(!this.font||!this.fontKey){var t=this.doc.embedStandardFont(na.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 n=this.doc.context.obj({});return Ge.of(n,t)},t.prototype.maybeEmbedGraphicsState=function(t){var e=t.opacity,n=t.borderOpacity,i=t.blendMode;if(void 0!==e||void 0!==n||void 0!==i){var r=this.doc.context.obj({Type:"ExtGState",ca:e,CA:n,BM:i});return this.node.newExtGState("GS",r)}},t.prototype.scaleAnnot=function(t,e,n){for(var i=["RD","CL","Vertices","QuadPoints","L","Rect"],r=0,o=i.length;r<o;r++){var s=t.lookup(Ee.of(i[r]));s instanceof ge&&s.scalePDFNumbers(e,n)}var a=t.lookup(Ee.of("InkList"));if(a instanceof ge)for(r=0,o=a.size();r<o;r++){var l=a.lookup(r);l instanceof ge&&l.scalePDFNumbers(e,n)}},t.of=function(e,n,i){return new t(e,n,i)},t.create=function(e){St(e,"doc",[[pa,"PDFDocument"]]);var n=Ne.of(-1),i=Ye.withContextAndParent(e.context,n);return new t(i,e.context.register(i),e)},t}();const ya=va;var ba=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return St(e,"acroButton",[[Gi,"PDFAcroPushButton"]]),r.acroField=e,r}return r(e,t),e.prototype.setImage=function(t,e){void 0===e&&(e=js.Center);for(var n=this.acroField.getWidgets(),i=0,r=n.length;i<r;i++){var o=n[i],s=this.createImageAppearanceStream(o,t,e);this.updateWidgetAppearances(o,{normal:s})}this.markAsClean()},e.prototype.setFontSize=function(t){Pt(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.addToPage=function(t,e,n){var i,r,o,s,a,l,u,c,h,d,f;Ft(t,"text",["string"]),Ft(e,"page",[[ya,"PDFPage"]]),Us(n);var p=this.createWidget({x:(null!==(i=null===n||void 0===n?void 0:n.x)&&void 0!==i?i:0)-(null!==(r=null===n||void 0===n?void 0:n.borderWidth)&&void 0!==r?r:0)/2,y:(null!==(o=null===n||void 0===n?void 0:n.y)&&void 0!==o?o:0)-(null!==(s=null===n||void 0===n?void 0:n.borderWidth)&&void 0!==s?s:0)/2,width:null!==(a=null===n||void 0===n?void 0:n.width)&&void 0!==a?a:100,height:null!==(l=null===n||void 0===n?void 0:n.height)&&void 0!==l?l:50,textColor:null!==(u=null===n||void 0===n?void 0:n.textColor)&&void 0!==u?u:To(0,0,0),backgroundColor:null!==(c=null===n||void 0===n?void 0:n.backgroundColor)&&void 0!==c?c:To(.75,.75,.75),borderColor:null===n||void 0===n?void 0:n.borderColor,borderWidth:null!==(h=null===n||void 0===n?void 0:n.borderWidth)&&void 0!==h?h:0,rotate:null!==(d=null===n||void 0===n?void 0:n.rotate)&&void 0!==d?d:Nr(0),caption:t,hidden:null===n||void 0===n?void 0:n.hidden,page:e.ref}),g=this.doc.context.register(p.dict);this.acroField.addWidget(g);var m=null!==(f=null===n||void 0===n?void 0:n.font)&&void 0!==f?f:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(p,m),e.node.addAnnot(g)},e.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),n=0,i=e.length;n<i;n++){if(!((null===(t=e[n].getAppearances())||void 0===t?void 0:t.normal)instanceof _e))return!0}return!1},e.prototype.defaultUpdateAppearances=function(t){St(t,"font",[[Os,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){St(t,"font",[[Os,"PDFFont"]]),Ft(e,"provider",[Function]);for(var n=this.acroField.getWidgets(),i=0,r=n.length;i<r;i++){var o=n[i];this.updateWidgetAppearance(o,t,e)}},e.prototype.updateWidgetAppearance=function(t,e,n){var i=Ss((null!==n&&void 0!==n?n:Rs)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,i)},e.of=function(t,n,i){return new e(t,n,i)},e}(Vs);const wa=ba},93375:(t,e,n)=>{var i=n(36382);t.exports=function(){return i.Date.now()}},95600:(t,e,n)=>{var i=n(2316),r=n(93375),o=n(2899),s=Math.max,a=Math.min;t.exports=function(t,e,n){var l,u,c,h,d,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,i=u;return l=u=void 0,p=e,h=t.apply(i,n)}function b(t){var n=t-f;return void 0===f||n>=e||n<0||m&&t-p>=c}function w(){var t=r();if(b(t))return D(t);d=setTimeout(w,function(t){var n=e-(t-f);return m?a(n,c-(t-p)):n}(t))}function D(t){return d=void 0,v&&l?y(t):(l=u=void 0,h)}function A(){var t=r(),n=b(t);if(l=arguments,u=this,f=t,n){if(void 0===d)return function(t){return p=t,d=setTimeout(w,e),g?y(t):h}(f);if(m)return clearTimeout(d),d=setTimeout(w,e),y(f)}return void 0===d&&(d=setTimeout(w,e)),h}return e=o(e)||0,i(n)&&(g=!!n.leading,c=(m="maxWait"in n)?s(o(n.maxWait)||0,e):c,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=u=d=void 0},A.flush=function(){return void 0===d?h:D(r())},A}},97039:(t,e,n)=>{"use strict";t.exports=n(84088)},98129:t=>{"use strict";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"}},98771:(t,e,n)=>{var i=n(95600),r=n(2316);t.exports=function(t,e,n){var o=!0,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return r(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),i(t,e,{leading:o,maxWait:e,trailing:s})}},99635:(t,e,n)=>{var i=n(49266),r=n(3654),o=n(39789),s=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?r(t):o(t)}}}]);
3
+ //# sourceMappingURL=989.5fbcdcdb.chunk.js.map