From a287ff708d7bb625a3d25692cea825f2d6085503 Mon Sep 17 00:00:00 2001 From: Anand Panchbhai Date: Thu, 29 Feb 2024 01:37:59 +0530 Subject: [PATCH] Push the floater --- asset-manifest.json | 16 +-- index.html | 2 +- logy/asset-manifest.json | 13 +-- logy/index.html | 2 +- .../{main.a0028aca.css => main.1cc2dbc3.css} | 4 +- logy/static/css/main.1cc2dbc3.css.map | 1 + logy/static/css/main.a0028aca.css.map | 1 - .../js/{main.d24ee7d7.js => main.bc37fad5.js} | 6 +- ...CENSE.txt => main.bc37fad5.js.LICENSE.txt} | 0 logy/static/js/main.bc37fad5.js.map | 1 + logy/static/js/main.d24ee7d7.js.map | 1 - ...t2902.b11f6c9a8ba09eea2fa685c8f1041316.svg | 102 ++++++++++++++++++ robots.txt | 3 + 13 files changed, 131 insertions(+), 21 deletions(-) rename logy/static/css/{main.a0028aca.css => main.1cc2dbc3.css} (87%) create mode 100644 logy/static/css/main.1cc2dbc3.css.map delete mode 100644 logy/static/css/main.a0028aca.css.map rename logy/static/js/{main.d24ee7d7.js => main.bc37fad5.js} (98%) rename logy/static/js/{main.d24ee7d7.js.LICENSE.txt => main.bc37fad5.js.LICENSE.txt} (100%) create mode 100644 logy/static/js/main.bc37fad5.js.map delete mode 100644 logy/static/js/main.d24ee7d7.js.map create mode 100644 logy/static/media/bot2902.b11f6c9a8ba09eea2fa685c8f1041316.svg create mode 100644 robots.txt diff --git a/asset-manifest.json b/asset-manifest.json index 1c6ef3f..feb119b 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.css": "/logy/static/css/main.fecee6f3.css", - "main.js": "/logy/static/js/main.5a8bcee2.js", + "main.css": "/logy/static/css/main.1cc2dbc3.css", + "main.js": "/logy/static/js/main.bc37fad5.js", "static/media/logyanim.gif": "/logy/static/media/logyanim.723301ae925492376c3a.gif", "static/media/Nivedita Tiwari.png": "/logy/static/media/Nivedita Tiwari.e19aea7d2a9a124d1bd8.png", "static/media/Vinay Khobragade.png": "/logy/static/media/Vinay Khobragade.1146a1a13a76af787b36.png", @@ -18,7 +18,10 @@ "static/media/blog3.png": "/logy/static/media/blog3.19df27a365f1cfd03b96.png", "static/media/K - DISC logo.png": "/logy/static/media/K - DISC logo.ab80ebee99a4811032d5.png", "static/media/Apollo sugar clinic.png": "/logy/static/media/Apollo sugar clinic.7385d25865e2cf8f26b8.png", + "static/media/vidisha1.pdf": "/logy/static/media/vidisha1.271ee3dcc9e9ee324350.pdf", + "static/media/LogyAI Terms & Conditions.pdf": "/logy/static/media/LogyAI Terms & Conditions.641bc859e38400167f19.pdf", "static/media/edexlive.png": "/logy/static/media/edexlive.c3da54407309aa1c8488.png", + "static/media/nigeria1.pdf": "/logy/static/media/nigeria1.2f8fc189d1b99c7bb2cd.pdf", "static/media/blog4.png": "/logy/static/media/blog4.a91066c9715d49c745dd.png", "static/media/Pristyn Care.png": "/logy/static/media/Pristyn Care.ef89f29cc445cbade5a0.png", "static/media/DOT.png": "/logy/static/media/DOT.34ecdc580b7566701b65.png", @@ -39,6 +42,7 @@ "static/media/colgate2.png": "/logy/static/media/colgate2.d81d8703503df22aa3fe.png", "static/media/Colgate-Logo.png": "/logy/static/media/Colgate-Logo.073e60ed6bbfbba77c08.png", "static/media/pristynWhiteBg.png": "/logy/static/media/pristynWhiteBg.9bcce75b772a2f8dcb61.png", + "static/media/bot2902.svg": "/logy/static/media/bot2902.b11f6c9a8ba09eea2fa685c8f1041316.svg", "static/media/iigp.png": "/logy/static/media/iigp.c42185ddb17f2e14f231.png", "static/media/BIRAC.png": "/logy/static/media/BIRAC.ec0b97631575a526d297.png", "static/media/nimr.png": "/logy/static/media/nimr.8424298bbd08e9edc069.png", @@ -56,11 +60,11 @@ "static/media/eyeIcon.svg": "/logy/static/media/eyeIcon.df5a302f908b90b6a142224daac06112.svg", "static/media/fb.svg": "/logy/static/media/fb.0d8c9b7c6d7d4c2dc53f119eeba7347e.svg", "static/media/scans.svg": "/logy/static/media/scans.829779fea8b5e7ad110bd851e844a523.svg", - "main.fecee6f3.css.map": "/logy/static/css/main.fecee6f3.css.map", - "main.5a8bcee2.js.map": "/logy/static/js/main.5a8bcee2.js.map" + "main.1cc2dbc3.css.map": "/logy/static/css/main.1cc2dbc3.css.map", + "main.bc37fad5.js.map": "/logy/static/js/main.bc37fad5.js.map" }, "entrypoints": [ - "static/css/main.fecee6f3.css", - "static/js/main.5a8bcee2.js" + "static/css/main.1cc2dbc3.css", + "static/js/main.bc37fad5.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index ab437a3..17e5d35 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Logy.AI
\ No newline at end of file +Logy.AI
\ No newline at end of file diff --git a/logy/asset-manifest.json b/logy/asset-manifest.json index dadd3fe..feb119b 100644 --- a/logy/asset-manifest.json +++ b/logy/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.css": "/logy/static/css/main.a0028aca.css", - "main.js": "/logy/static/js/main.d24ee7d7.js", + "main.css": "/logy/static/css/main.1cc2dbc3.css", + "main.js": "/logy/static/js/main.bc37fad5.js", "static/media/logyanim.gif": "/logy/static/media/logyanim.723301ae925492376c3a.gif", "static/media/Nivedita Tiwari.png": "/logy/static/media/Nivedita Tiwari.e19aea7d2a9a124d1bd8.png", "static/media/Vinay Khobragade.png": "/logy/static/media/Vinay Khobragade.1146a1a13a76af787b36.png", @@ -42,6 +42,7 @@ "static/media/colgate2.png": "/logy/static/media/colgate2.d81d8703503df22aa3fe.png", "static/media/Colgate-Logo.png": "/logy/static/media/Colgate-Logo.073e60ed6bbfbba77c08.png", "static/media/pristynWhiteBg.png": "/logy/static/media/pristynWhiteBg.9bcce75b772a2f8dcb61.png", + "static/media/bot2902.svg": "/logy/static/media/bot2902.b11f6c9a8ba09eea2fa685c8f1041316.svg", "static/media/iigp.png": "/logy/static/media/iigp.c42185ddb17f2e14f231.png", "static/media/BIRAC.png": "/logy/static/media/BIRAC.ec0b97631575a526d297.png", "static/media/nimr.png": "/logy/static/media/nimr.8424298bbd08e9edc069.png", @@ -59,11 +60,11 @@ "static/media/eyeIcon.svg": "/logy/static/media/eyeIcon.df5a302f908b90b6a142224daac06112.svg", "static/media/fb.svg": "/logy/static/media/fb.0d8c9b7c6d7d4c2dc53f119eeba7347e.svg", "static/media/scans.svg": "/logy/static/media/scans.829779fea8b5e7ad110bd851e844a523.svg", - "main.a0028aca.css.map": "/logy/static/css/main.a0028aca.css.map", - "main.d24ee7d7.js.map": "/logy/static/js/main.d24ee7d7.js.map" + "main.1cc2dbc3.css.map": "/logy/static/css/main.1cc2dbc3.css.map", + "main.bc37fad5.js.map": "/logy/static/js/main.bc37fad5.js.map" }, "entrypoints": [ - "static/css/main.a0028aca.css", - "static/js/main.d24ee7d7.js" + "static/css/main.1cc2dbc3.css", + "static/js/main.bc37fad5.js" ] } \ No newline at end of file diff --git a/logy/index.html b/logy/index.html index ab437a3..17e5d35 100644 --- a/logy/index.html +++ b/logy/index.html @@ -1 +1 @@ -Logy.AI
\ No newline at end of file +Logy.AI
\ No newline at end of file diff --git a/logy/static/css/main.a0028aca.css b/logy/static/css/main.1cc2dbc3.css similarity index 87% rename from logy/static/css/main.a0028aca.css rename to logy/static/css/main.1cc2dbc3.css index 380d1f9..3484588 100644 --- a/logy/static/css/main.a0028aca.css +++ b/logy/static/css/main.1cc2dbc3.css @@ -1,2 +1,2 @@ -.clientsmq{overflow:hidden;padding-left:0}.marquee1 .marquee--inner{-webkit-animation:marquee 24s linear infinite;animation:marquee 24s linear infinite;display:block;position:absolute;width:200%}.marquee1 .marquee--inner img{width:90px}.marquee2 .marquee--inner{-webkit-animation:marquee-alt 16s linear infinite;animation:marquee-alt 16s linear infinite;display:block;position:absolute;width:130%}.marquee2 .marquee--inner img{width:90px}@-webkit-keyframes marquee{0%{left:20%}to{left:-130%}}@keyframes marquee{0%{left:20%}to{left:-130%}}@-webkit-keyframes marquee-alt{0%{left:30%}to{left:-100%}}@keyframes marquee-alt{0%{left:30%}to{left:-100%}}.marquee1,.marquee2{box-sizing:border-box;height:240px;margin-bottom:20px;overflow:hidden;position:relative;width:100%}.marquee--inner:hover{-webkit-animation-play-state:paused;animation-play-state:paused}.span{float:left;width:50%}.client-box1 img{align-self:center}.client-box1{display:flex;height:200px;text-align:center;vertical-align:middle;width:100%}@media screen and (max-width:600px){.marquee1{box-sizing:border-box;height:170px;margin-bottom:20px;overflow:hidden;position:relative;width:150%}.marquee1 .marquee--inner{-webkit-animation:marqueex 24s linear infinite;animation:marqueex 24s linear infinite;width:300%}.marquee1 .marquee--inner img{width:150px!important}.marquee2{box-sizing:border-box;height:170px;margin-bottom:20px;overflow:hidden;position:relative;width:150%}.marquee2 .marquee--inner{-webkit-animation:marqueex 24s linear infinite;animation:marqueex 24s linear infinite;width:300%}.marquee2 .marquee--inner img{width:150px!important}.clientMob{padding:5%!important}@-webkit-keyframes marqueex{0%{left:50%}to{left:-280%}}@keyframes marqueex{0%{left:50%}to{left:-280%}}}*,html{font-family:Poppins,sans-serif!important}.bg-gradient-logy{background-image:linear-gradient(98.24deg,#49b5fd,#3559fa)}.blueSemiCircle{background:linear-gradient(98.24deg,#49b5fd,#3559fa);border-radius:100px 100px 0 0;height:36px;margin-left:auto;margin-right:auto;width:72px}#pdf-controls,#pdf-page-info{display:none}#pdf-page-wrapper{margin-top:0}#header-bar{display:none}@media screen and (max-width:600px){.phone-hidden{display:none}}.testimonialblock{padding:1rem;width:25%}@media screen and (max-width:600px){.testimonialblock{width:100%}.investorText{display:none}}.stats{padding:.6rem;width:25%}.bg-gradient-blue{color:#3b82f6}@media screen and (max-width:600px){.stats{width:100%}}.highl{background:#3b83f62d;color:rgba(0,0,0,.842)}:root{--react-pdf-annotation-layer:1;--annotation-unfocused-field-background:url('data:image/svg+xml;charset=utf-8,');--input-focus-border-color:Highlight;--input-focus-outline:1px solid Canvas;--input-unfocused-border-color:transparent;--input-disabled-border-color:transparent;--input-hover-border-color:#000;--link-outline:none}@media screen and (forced-colors:active){:root{--input-focus-border-color:CanvasText;--input-unfocused-border-color:ActiveText;--input-disabled-border-color:GrayText;--input-hover-border-color:Highlight;--link-outline:1.5px solid LinkText}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation :is(input,textarea):required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{left:0;pointer-events:none;position:absolute;top:0;-webkit-transform-origin:0 0;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{-webkit-transform:rotate(270deg) translateX(-100%);transform:rotate(270deg) translateX(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{-webkit-transform:rotate(180deg) translate(-100%,-100%);transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{-webkit-transform:rotate(90deg) translateY(-100%);transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{height:100%;position:absolute;width:100%}.annotationLayer section{box-sizing:border-box;margin:0;pointer-events:auto;position:absolute;text-align:left;text-align:initial;-webkit-transform-origin:0 0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:none;outline:var(--link-outline)}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{font-size:1em;height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{background:#ff0;box-shadow:0 2px 10px #ff0;opacity:.2}.annotationLayer .textAnnotation img{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .textWidgetAnnotation :is(input,textarea){background-image:url('data:image/svg+xml;charset=utf-8,');background-image:var(--annotation-unfocused-field-background);border:2px solid transparent;border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px*var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation :is(input,textarea):required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled]{background:none;border:2px solid transparent;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation :is(input,textarea):hover{border:2px solid #000;border:2px solid var(--input-hover-border-color)}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation :is(input,textarea):hover{border-radius:2px}.annotationLayer .choiceWidgetAnnotation select:focus,.annotationLayer .textWidgetAnnotation :is(input,textarea):focus{background:none;border:2px solid Highlight;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:1px solid Canvas;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-color:initial;background-image:none}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid Highlight;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:1px solid Canvas;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid Highlight;border:2px solid var(--input-focus-border-color);outline:1px solid Canvas;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{font-size:calc(9px*var(--scale-factor));min-width:calc(180px*var(--scale-factor));pointer-events:none;position:absolute;width:100%}.annotationLayer .popup{word-wrap:break-word;background-color:#ff9;border-radius:calc(2px*var(--scale-factor));box-shadow:0 calc(2px*var(--scale-factor)) calc(5px*var(--scale-factor)) #888;cursor:pointer;font:message-box;margin-left:calc(5px*var(--scale-factor));max-width:calc(180px*var(--scale-factor));padding:calc(6px*var(--scale-factor));pointer-events:auto;position:absolute;white-space:normal}.annotationLayer .popup>*{font-size:calc(9px*var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px*var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid #333;margin-top:calc(2px*var(--scale-factor));padding-top:calc(2px*var(--scale-factor))}.annotationLayer .richText>*{font-size:calc(9px*var(--scale-factor));white-space:pre-wrap}.annotationLayer .caretAnnotation,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .fileAttachmentAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .highlightAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .lineAnnotation svg line,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .squareAnnotation svg rect,.annotationLayer .squigglyAnnotation,.annotationLayer .stampAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .underlineAnnotation{cursor:pointer}.annotationLayer section svg{height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer .annotationTextContent{color:transparent;height:100%;opacity:0;pointer-events:none;position:absolute;-webkit-user-select:none;user-select:none;width:100%}.annotationLayer .annotationTextContent span{display:inline-block;width:100%}:root{--react-pdf-text-layer:1;--highlight-bg-color:#b400aa;--highlight-selected-bg-color:#006400}@media screen and (forced-colors:active){:root{--highlight-bg-color:Highlight;--highlight-selected-bg-color:ButtonText}}[data-main-rotation="90"]{-webkit-transform:rotate(90deg) translateY(-100%);transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{-webkit-transform:rotate(180deg) translate(-100%,-100%);transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{-webkit-transform:rotate(270deg) translateX(-100%);transform:rotate(270deg) translateX(-100%)}.textLayer{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;inset:0;line-height:1;overflow:hidden;position:absolute;text-align:left;text-align:initial;-webkit-transform-origin:0 0;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;cursor:text;margin:0;position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0;white-space:pre}.textLayer span.markedContent{height:0;top:0}.textLayer .highlight{background-color:#b400aa;background-color:var(--highlight-bg-color);border-radius:4px;margin:-1px;padding:1px}.textLayer .highlight.appended{position:static}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:#006400;background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{cursor:default;display:block;inset:100% 0 0;position:absolute;-webkit-user-select:none;user-select:none;z-index:-1}.textLayer .endOfContent.active{top:0} -/*# sourceMappingURL=main.a0028aca.css.map*/ \ No newline at end of file +.clientsmq{overflow:hidden;padding-left:0}.marquee1 .marquee--inner{-webkit-animation:marquee 24s linear infinite;animation:marquee 24s linear infinite;display:block;position:absolute;width:200%}.marquee1 .marquee--inner img{width:90px}.marquee2 .marquee--inner{-webkit-animation:marquee-alt 16s linear infinite;animation:marquee-alt 16s linear infinite;display:block;position:absolute;width:130%}.marquee2 .marquee--inner img{width:90px}@-webkit-keyframes marquee{0%{left:20%}to{left:-130%}}@keyframes marquee{0%{left:20%}to{left:-130%}}@-webkit-keyframes marquee-alt{0%{left:30%}to{left:-100%}}@keyframes marquee-alt{0%{left:30%}to{left:-100%}}.marquee1,.marquee2{box-sizing:border-box;height:240px;margin-bottom:20px;overflow:hidden;position:relative;width:100%}.marquee--inner:hover{-webkit-animation-play-state:paused;animation-play-state:paused}.span{float:left;width:50%}.client-box1 img{align-self:center}.client-box1{display:flex;height:200px;text-align:center;vertical-align:middle;width:100%}@media screen and (max-width:600px){.marquee1{box-sizing:border-box;height:170px;margin-bottom:20px;overflow:hidden;position:relative;width:150%}.marquee1 .marquee--inner{-webkit-animation:marqueex 24s linear infinite;animation:marqueex 24s linear infinite;width:300%}.marquee1 .marquee--inner img{width:150px!important}.marquee2{box-sizing:border-box;height:170px;margin-bottom:20px;overflow:hidden;position:relative;width:150%}.marquee2 .marquee--inner{-webkit-animation:marqueex 24s linear infinite;animation:marqueex 24s linear infinite;width:300%}.marquee2 .marquee--inner img{width:150px!important}.clientMob{padding:5%!important}@-webkit-keyframes marqueex{0%{left:50%}to{left:-280%}}@keyframes marqueex{0%{left:50%}to{left:-280%}}}*,html{font-family:Poppins,sans-serif!important}.bg-gradient-logy{background-image:linear-gradient(98.24deg,#49b5fd,#3559fa)}.blueSemiCircle{background:linear-gradient(98.24deg,#49b5fd,#3559fa);border-radius:100px 100px 0 0;height:36px;margin-left:auto;margin-right:auto;width:72px}#pdf-controls,#pdf-page-info{display:none}#pdf-page-wrapper{margin-top:0}#header-bar{display:none}@media screen and (max-width:600px){.phone-hidden{display:none}}.testimonialblock{padding:1rem;width:25%}@media screen and (max-width:600px){.testimonialblock{width:100%}.investorText{display:none}}.stats{padding:.6rem;width:25%}.bg-gradient-blue{color:#3b82f6}@media screen and (max-width:600px){.stats{width:100%}}.highl{background:#3b83f62d;color:rgba(0,0,0,.842)}:root{--react-pdf-annotation-layer:1;--annotation-unfocused-field-background:url('data:image/svg+xml;charset=utf-8,');--input-focus-border-color:Highlight;--input-focus-outline:1px solid Canvas;--input-unfocused-border-color:transparent;--input-disabled-border-color:transparent;--input-hover-border-color:#000;--link-outline:none}@media screen and (forced-colors:active){:root{--input-focus-border-color:CanvasText;--input-unfocused-border-color:ActiveText;--input-disabled-border-color:GrayText;--input-hover-border-color:Highlight;--link-outline:1.5px solid LinkText}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation :is(input,textarea):required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{left:0;pointer-events:none;position:absolute;top:0;-webkit-transform-origin:0 0;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{-webkit-transform:rotate(270deg) translateX(-100%);transform:rotate(270deg) translateX(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{-webkit-transform:rotate(180deg) translate(-100%,-100%);transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{-webkit-transform:rotate(90deg) translateY(-100%);transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{height:100%;position:absolute;width:100%}.annotationLayer section{box-sizing:border-box;margin:0;pointer-events:auto;position:absolute;text-align:left;text-align:initial;-webkit-transform-origin:0 0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:none;outline:var(--link-outline)}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{font-size:1em;height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{background:#ff0;box-shadow:0 2px 10px #ff0;opacity:.2}.annotationLayer .textAnnotation img{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .textWidgetAnnotation :is(input,textarea){background-image:url('data:image/svg+xml;charset=utf-8,');background-image:var(--annotation-unfocused-field-background);border:2px solid transparent;border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px*var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation :is(input,textarea):required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled]{background:none;border:2px solid transparent;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation :is(input,textarea):hover{border:2px solid #000;border:2px solid var(--input-hover-border-color)}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation :is(input,textarea):hover{border-radius:2px}.annotationLayer .choiceWidgetAnnotation select:focus,.annotationLayer .textWidgetAnnotation :is(input,textarea):focus{background:none;border:2px solid Highlight;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:1px solid Canvas;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-color:initial;background-image:none}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid Highlight;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:1px solid Canvas;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid Highlight;border:2px solid var(--input-focus-border-color);outline:1px solid Canvas;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{font-size:calc(9px*var(--scale-factor));min-width:calc(180px*var(--scale-factor));pointer-events:none;position:absolute;width:100%}.annotationLayer .popup{word-wrap:break-word;background-color:#ff9;border-radius:calc(2px*var(--scale-factor));box-shadow:0 calc(2px*var(--scale-factor)) calc(5px*var(--scale-factor)) #888;cursor:pointer;font:message-box;margin-left:calc(5px*var(--scale-factor));max-width:calc(180px*var(--scale-factor));padding:calc(6px*var(--scale-factor));pointer-events:auto;position:absolute;white-space:normal}.annotationLayer .popup>*{font-size:calc(9px*var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px*var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid #333;margin-top:calc(2px*var(--scale-factor));padding-top:calc(2px*var(--scale-factor))}.annotationLayer .richText>*{font-size:calc(9px*var(--scale-factor));white-space:pre-wrap}.annotationLayer .caretAnnotation,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .fileAttachmentAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .highlightAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .lineAnnotation svg line,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .squareAnnotation svg rect,.annotationLayer .squigglyAnnotation,.annotationLayer .stampAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .underlineAnnotation{cursor:pointer}.annotationLayer section svg{height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer .annotationTextContent{color:transparent;height:100%;opacity:0;pointer-events:none;position:absolute;-webkit-user-select:none;user-select:none;width:100%}.annotationLayer .annotationTextContent span{display:inline-block;width:100%}:root{--react-pdf-text-layer:1;--highlight-bg-color:#b400aa;--highlight-selected-bg-color:#006400}@media screen and (forced-colors:active){:root{--highlight-bg-color:Highlight;--highlight-selected-bg-color:ButtonText}}[data-main-rotation="90"]{-webkit-transform:rotate(90deg) translateY(-100%);transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{-webkit-transform:rotate(180deg) translate(-100%,-100%);transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{-webkit-transform:rotate(270deg) translateX(-100%);transform:rotate(270deg) translateX(-100%)}.textLayer{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;inset:0;line-height:1;overflow:hidden;position:absolute;text-align:left;text-align:initial;-webkit-transform-origin:0 0;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;cursor:text;margin:0;position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0;white-space:pre}.textLayer span.markedContent{height:0;top:0}.textLayer .highlight{background-color:#b400aa;background-color:var(--highlight-bg-color);border-radius:4px;margin:-1px;padding:1px}.textLayer .highlight.appended{position:static}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:#006400;background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{cursor:default;display:block;inset:100% 0 0;position:absolute;-webkit-user-select:none;user-select:none;z-index:-1}.textLayer .endOfContent.active{top:0}#floaterHolder{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:expand;animation-name:expand;height:120px;position:fixed;right:40px;top:60vh;width:120px}#text{left:20.5px;top:19px;width:160px}#text,#whiteBg{border-radius:8px;position:absolute}#whiteBg{background:#fff;height:74px;left:12px;top:11px;width:73px;z-index:-10}#blurBg{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:hsla(0,0%,87%,.3);border-radius:16px;height:96px;position:fixed;width:97px;z-index:-10}#scan{-webkit-animation:animate 4s infinite;animation:animate 4s infinite;background:linear-gradient(180deg,rgba(103,210,223,.25),rgba(103,210,223,.125) 85.42%,rgba(103,210,223,.25));border-bottom:1px solid #0c50a3;border-radius:8px 8px 0 0;height:40px;left:12px;top:11px;width:73px;z-index:100}#scan,#touch{position:absolute}#touch{-webkit-animation:expand 2s infinite;animation:expand 2s infinite;-webkit-transform:translatey(0);transform:translatey(0)}@-webkit-keyframes animate{0%{height:10px}50%{height:74px}to{height:10px}}@keyframes animate{0%{height:10px}50%{height:74px}to{height:10px}}@-webkit-keyframes expand{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes expand{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}to{-webkit-transform:scale(1);transform:scale(1)}}@media screen and (max-width:600px){#floaterInstructions{display:none}#floaterHolder{height:100px;right:40px;top:68vh;width:100px}} +/*# sourceMappingURL=main.1cc2dbc3.css.map*/ \ No newline at end of file diff --git a/logy/static/css/main.1cc2dbc3.css.map b/logy/static/css/main.1cc2dbc3.css.map new file mode 100644 index 0000000..50c3126 --- /dev/null +++ b/logy/static/css/main.1cc2dbc3.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.1cc2dbc3.css","mappings":"AACI,WACI,eAAgB,CAChB,cACJ,CACA,0BAII,6CAAuC,CAAvC,qCAAuC,CAHvC,aAAc,CAEd,iBAAkB,CADlB,UAGF,CACF,8BACI,UACF,CACF,0BAII,iDAA2C,CAA3C,yCAA2C,CAH3C,aAAc,CAEd,iBAAkB,CADlB,UAGF,CACF,8BACI,UACF,CACA,2BACE,GAAK,QAAW,CAChB,GAAO,UAAa,CACtB,CAHA,mBACE,GAAK,QAAW,CAChB,GAAO,UAAa,CACtB,CACA,+BACE,GAAK,QAAU,CACf,GAAO,UAAa,CACtB,CAHA,uBACE,GAAK,QAAU,CACf,GAAO,UAAa,CACtB,CAUA,oBAIE,qBAAsB,CAHtB,YAAa,CAKb,kBAAmB,CAHnB,eAAgB,CAEhB,iBAAkB,CAHlB,UAKF,CACA,sBACE,mCAA4B,CAA5B,2BACF,CACA,MACE,UAAW,CACX,SACF,CACA,iBAEE,iBACJ,CACA,aAKI,YAAa,CAHb,YAAa,CAEb,iBAAkB,CADlB,qBAAsB,CAFtB,UAKJ,CACA,oCAEE,UAII,qBAAsB,CAHtB,YAAa,CAKb,kBAAmB,CAHnB,eAAgB,CAEhB,iBAAkB,CAHlB,UAKF,CACA,0BAEE,8CAAwC,CAAxC,sCAAwC,CADxC,UAEF,CACA,8BACE,qBACF,CACF,UAII,qBAAsB,CAHtB,YAAa,CAKb,kBAAmB,CAHnB,eAAgB,CAEhB,iBAAkB,CAHlB,UAKF,CACA,0BAEE,8CAAwC,CAAxC,sCAAwC,CADxC,UAEF,CACA,8BACE,qBACF,CACA,WACE,oBACF,CACA,4BACE,GAAK,QAAW,CAChB,GAAO,UAAa,CACtB,CAHA,oBACE,GAAK,QAAW,CAChB,GAAO,UAAa,CACtB,CACF,CCzGN,OACE,wCACF,CACA,kBACI,0DACF,CACF,gBAGI,oDAA+D,CAG/D,6BAA8B,CAJ9B,WAAY,CAGZ,gBAAiB,CADjB,iBAAkB,CAHlB,UAMJ,CAIA,6BACE,YACF,CACA,kBACE,YACF,CACA,YACE,YACF,CACA,oCACE,cACE,YACF,CACF,CC9BA,kBAEI,YAAa,CADb,SAEJ,CACA,oCACI,kBACI,UACJ,CACA,cACI,YACJ,CACJ,CCXA,OAEI,aAAe,CADf,SAEJ,CACA,kBACI,aACJ,CACA,oCACI,OACI,UACJ,CACJ,CCXA,OACI,oBAAqB,CACrB,sBACJ,CCYA,MACE,8BAA+B,CAC/B,qNAA+N,CAC/N,oCAAqC,CACrC,sCAAuC,CACvC,0CAA2C,CAC3C,yCAA0C,CAC1C,+BAAiC,CACjC,mBACF,CAEA,yCACE,MACE,qCAAsC,CACtC,yCAA0C,CAC1C,sCAAuC,CACvC,oCAAqC,CACrC,mCACF,CACA,gNAGE,gCACF,CAEA,uCACE,oCAA6B,CAA7B,4BACF,CACF,CAEA,iBAGE,MAAO,CACP,mBAAoB,CAHpB,iBAAkB,CAClB,KAAM,CAGN,4BAAqB,CAArB,oBAAqB,CACrB,SACF,CAEA,oDACE,kDAA2C,CAA3C,0CACF,CACA,qDACE,uDAAiD,CAAjD,+CACF,CACA,qDACE,iDAA0C,CAA1C,yCACF,CAEA,wBAGE,WAAY,CAFZ,iBAAkB,CAClB,UAEF,CAEA,yBAIE,qBAAsB,CACtB,QAAS,CAFT,mBAAoB,CAFpB,iBAAkB,CAClB,eAAmB,CAAnB,kBAAmB,CAInB,4BAAqB,CAArB,oBACF,CAEA,iCACE,YAA4B,CAA5B,2BACF,CAEA,2EAEE,aAAc,CAId,WAAY,CAFZ,MAAO,CAHP,iBAAkB,CAElB,KAAM,CAEN,UAEF,CAEA,iFAEE,eAAgC,CAChC,0BAA2C,CAF3C,UAGF,CAEA,qCAEE,cAAe,CAEf,WAAY,CAEZ,MAAO,CALP,iBAAkB,CAIlB,KAAM,CAFN,UAIF,CAEA,qLAGE,8LAA8D,CAA9D,6DAA8D,CAC9D,4BAAqD,CAArD,oDAAqD,CACrD,qBAAsB,CACtB,6CAAgD,CAChD,WAAY,CACZ,QAAS,CACT,kBAAmB,CACnB,UACF,CAEA,gNAGE,uBACF,CAEA,uDACE,SACF,CAEA,2DACE,iBACF,CAEA,gDACE,WACF,CAEA,mNAGE,eAAgB,CAChB,4BAAoD,CAApD,mDAAoD,CACpD,kBACF,CAEA,uMAGE,qBAAiD,CAAjD,gDACF,CACA,qLAGE,iBACF,CAEA,uHAEE,eAAgB,CAChB,0BAAiD,CAAjD,gDAAiD,CACjD,iBAAkB,CAClB,wBAAmC,CAAnC,kCACF,CAEA,2EAEE,wBAA6B,CAD7B,qBAEF,CAEA,yDACE,0BAAiD,CAAjD,gDAAiD,CACjD,iBAAkB,CAClB,wBAAmC,CAAnC,kCACF,CAEA,4DACE,0BAAiD,CAAjD,gDAAiD,CACjD,wBAAmC,CAAnC,kCACF,CAEA,uNAGE,2BAA4B,CAC5B,UAAW,CACX,aAAc,CACd,iBACF,CAEA,6IAEE,UAAW,CACX,QAAS,CACT,SACF,CAEA,uEACE,+BAAwB,CAAxB,uBACF,CAEA,sEACE,gCAAyB,CAAzB,wBACF,CAEA,0EACE,iBAAkB,CAClB,UAAW,CACX,QAAS,CACT,OAAQ,CACR,SACF,CAEA,kDACE,qBAAsB,CACtB,gBAAiB,CACjB,eACF,CAEA,wDAOE,UACF,CAEA,0EACE,uBAAgB,CAAhB,eACF,CAEA,mCACE,WAAY,CACZ,UACF,CAEA,6DACE,iBACF,CAEA,+BAEE,uCAA0C,CAE1C,yCAA4C,CAC5C,mBAAoB,CAJpB,iBAAkB,CAElB,UAGF,CAEA,wBAYE,oBAAqB,CATrB,qBAAwC,CAGxC,2CAA8C,CAF9C,6EACwB,CAIxB,cAAe,CACf,gBAAiB,CAFjB,yCAA4C,CAN5C,yCAA4C,CAK5C,qCAAwC,CAMxC,mBAAoB,CAZpB,iBAAkB,CAUlB,kBAGF,CAEA,0BACE,uCACF,CAEA,2BACE,oBACF,CAEA,4BACE,oBAAqB,CACrB,yCACF,CAEA,+BACE,yBAAyC,CACzC,wCAA2C,CAC3C,yCACF,CAEA,6BAEE,uCAA0C,CAD1C,oBAEF,CAEA,+jBAcE,cACF,CAEA,6BAGE,WAAY,CAEZ,MAAO,CAJP,iBAAkB,CAGlB,KAAM,CAFN,UAIF,CAEA,wCAKE,iBAAkB,CAFlB,WAAY,CACZ,SAAU,CAGV,mBAAoB,CANpB,iBAAkB,CAKlB,wBAAiB,CAAjB,gBAAiB,CAJjB,UAMF,CAEA,6CAEE,oBAAqB,CADrB,UAEF,CCzTA,MACE,wBAAyB,CACzB,4BAA0C,CAC1C,qCACF,CAEA,yCACE,MACE,8BAA+B,CAC/B,wCACF,CACF,CAEA,0BACE,iDAA0C,CAA1C,yCACF,CACA,2BACE,uDAAiD,CAAjD,+CACF,CACA,2BACE,kDAA2C,CAA3C,0CACF,CAEA,WAME,6BAAsB,CAAtB,0BAAsB,CAAtB,qBAAsB,CACtB,wBAAyB,CAJzB,OAAQ,CAER,aAAc,CADd,eAAgB,CAHhB,iBAAkB,CAClB,eAAmB,CAAnB,kBAAmB,CAMnB,4BAAqB,CAArB,oBAAqB,CACrB,SACF,CAEA,wBACE,iBAAkB,CAGlB,WAAY,CACZ,QAAS,CAHT,iBAAkB,CAIlB,4BAAqB,CAArB,oBAAqB,CAHrB,eAIF,CAIA,8BAEE,QAAS,CADT,KAEF,CAEA,sBAGE,wBAA2C,CAA3C,0CAA2C,CAC3C,iBAAkB,CAHlB,WAAY,CACZ,WAGF,CAEA,+BACE,eACF,CAEA,4BACE,yBACF,CAEA,0BACE,yBACF,CAEA,6BACE,eACF,CAEA,+BACE,wBAAoD,CAApD,mDACF,CAGA,yBACE,sBACF,CAEA,yBAKE,cAAe,CAJf,aAAc,CAEd,cAAe,CADf,iBAAkB,CAIlB,wBAAiB,CAAjB,gBAAiB,CAFjB,UAGF,CAEA,gCACE,KACF,CC7GA,eAOI,6BAAsB,CAAtB,qBAAsB,CACtB,0CAAiC,CAAjC,kCAAiC,CAFjC,6BAAsB,CAAtB,qBAAsB,CAFtB,YAAa,CAHb,cAAe,CAEf,UAAW,CADX,QAAS,CAGT,WAIJ,CACA,MAGI,WAAY,CACZ,QAAS,CAFT,WAIJ,CACA,eAFI,iBAAkB,CAJlB,iBAeJ,CATA,SAMI,eAAmB,CAHnB,WAAY,CACZ,SAAU,CACV,QAAS,CAHT,UAAW,CAMX,WACJ,CACA,QAKI,iCAA0B,CAA1B,yBAA0B,CAD1B,4BAAoC,CAEpC,kBAAmB,CAHnB,WAAY,CAFZ,cAAe,CACf,UAAW,CAKX,WACJ,CACA,MAUI,qCAA8B,CAA9B,6BAA8B,CAR9B,4GAAoI,CAOpI,+BAAgC,CADhC,yBAA0B,CAL1B,WAAY,CAGZ,SAAU,CADV,QAAS,CADT,UAAW,CAGX,WAIJ,CACA,aAXI,iBAeJ,CAJA,OAGI,oCAA6B,CAA7B,4BAA6B,CAD7B,+BAAwB,CAAxB,uBAEJ,CACA,2BACI,GACI,WACJ,CACA,IACI,WACJ,CACA,GACI,WACJ,CACJ,CAVA,mBACI,GACI,WACJ,CACA,IACI,WACJ,CACA,GACI,WACJ,CACJ,CACA,0BACI,GACI,0BAAmB,CAAnB,kBACJ,CACA,IACI,4BAAqB,CAArB,oBACJ,CACA,GACI,0BAAmB,CAAnB,kBACJ,CACJ,CAVA,kBACI,GACI,0BAAmB,CAAnB,kBACJ,CACA,IACI,4BAAqB,CAArB,oBACJ,CACA,GACI,0BAAmB,CAAnB,kBACJ,CACJ,CACA,oCACA,qBACI,YACJ,CACA,eAGI,YAAa,CADb,UAAW,CADX,QAAS,CAGT,WACJ,CACA","sources":["assets/css/clients.css","assets/css/app.css","assets/css/aboutus.css","assets/css/oral.css","assets/css/cs.css","../node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css","../node_modules/react-pdf/dist/esm/Page/TextLayer.css","assets/floater/floater.css"],"sourcesContent":["\r\n .clientsmq{\r\n overflow: hidden;\r\n padding-left: 0;\r\n }\r\n .marquee1 .marquee--inner {\r\n display: block;\r\n width: 200%;\r\n position: absolute;\r\n animation: marquee 24s linear infinite ;\r\n }\r\n .marquee1 .marquee--inner img{\r\n width: 90px;\r\n }\r\n .marquee2 .marquee--inner {\r\n display: block;\r\n width: 130%;\r\n position: absolute;\r\n animation: marquee-alt 16s linear infinite ;\r\n }\r\n .marquee2 .marquee--inner img{\r\n width: 90px;\r\n }\r\n @keyframes marquee {\r\n 0% { left: 20%; }\r\n 100% { left: -130%; }\r\n }\r\n @keyframes marquee-alt {\r\n 0% { left:30%; }\r\n 100% { left: -100%; }\r\n }\r\n \r\n .marquee1 {\r\n height: 240px;\r\n width: 100%;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n position: relative;\r\n margin-bottom: 20px;\r\n }\r\n .marquee2 {\r\n height: 240px;\r\n width: 100%;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n position: relative;\r\n margin-bottom: 20px;\r\n }\r\n .marquee--inner:hover {\r\n animation-play-state: paused;\r\n }\r\n .span {\r\n float: left;\r\n width: 50%;\r\n }\r\n .client-box1 img{\r\n \r\n align-self: center;\r\n }\r\n .client-box1{\r\n width: 100%;\r\n height: 200px;\r\n vertical-align: middle;\r\n text-align: center;\r\n display: flex;\r\n }\r\n @media screen and (max-width:600px){\r\n \r\n .marquee1 {\r\n height: 170px;\r\n width: 150%;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n position: relative;\r\n margin-bottom: 20px;\r\n }\r\n .marquee1 .marquee--inner{\r\n width: 300%;\r\n animation: marqueex 24s linear infinite ;\r\n }\r\n .marquee1 .marquee--inner img{\r\n width: 150px !important;\r\n }\r\n .marquee2 {\r\n height: 170px;\r\n width: 150%;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n position: relative;\r\n margin-bottom: 20px;\r\n }\r\n .marquee2 .marquee--inner{\r\n width: 300%;\r\n animation: marqueex 24s linear infinite ;\r\n }\r\n .marquee2 .marquee--inner img{\r\n width: 150px !important;\r\n }\r\n .clientMob{\r\n padding: 5% !important;\r\n }\r\n @keyframes marqueex {\r\n 0% { left: 50%; }\r\n 100% { left: -280%; }\r\n }\r\n }","*,html{\r\n font-family: 'Poppins', sans-serif !important;\r\n}\r\n.bg-gradient-logy {\r\n background-image: linear-gradient(98.24deg, #49b5fd 0%, #3559fa 100%);\r\n }\r\n.blueSemiCircle{\r\n width: 72px;\r\n height: 36px;\r\n background: linear-gradient(98.24deg, #49b5fd 0%, #3559fa 100%);;\r\n margin-right: auto;\r\n margin-left: auto;\r\n border-radius: 100px 100px 0 0;\r\n}\r\n#pdf-controls{\r\n display: none;\r\n}\r\n#pdf-page-info{\r\n display: none;\r\n}\r\n#pdf-page-wrapper{\r\n margin-top: 0;\r\n}\r\n#header-bar{\r\n display: none;\r\n}\r\n@media screen and (max-width:600px){\r\n .phone-hidden{\r\n display: none;\r\n }\r\n}\r\n",".testimonialblock{\r\n width: 25%;\r\n padding: 1rem;\r\n}\r\n@media screen and (max-width:600px){\r\n .testimonialblock{\r\n width: 100%;\r\n }\r\n .investorText{\r\n display: none;\r\n }\r\n}",".stats{\r\n width: 25%;\r\n padding: 0.6rem;\r\n}\r\n.bg-gradient-blue{\r\n color: #3b82f6;\r\n}\r\n@media screen and (max-width:600px){\r\n .stats{\r\n width: 100%;\r\n }\r\n}",".highl{\r\n background: #3b83f62d;\r\n color: rgba(0, 0, 0, 0.842);\r\n}","/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n:root {\n --react-pdf-annotation-layer: 1;\n --annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,\");\n --input-focus-border-color: Highlight;\n --input-focus-outline: 1px solid Canvas;\n --input-unfocused-border-color: transparent;\n --input-disabled-border-color: transparent;\n --input-hover-border-color: black;\n --link-outline: none;\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --input-focus-border-color: CanvasText;\n --input-unfocused-border-color: ActiveText;\n --input-disabled-border-color: GrayText;\n --input-hover-border-color: Highlight;\n --link-outline: 1.5px solid LinkText;\n }\n .annotationLayer .textWidgetAnnotation :is(input, textarea):required,\n .annotationLayer .choiceWidgetAnnotation select:required,\n .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required {\n outline: 1.5px solid selectedItem;\n }\n\n .annotationLayer .linkAnnotation:hover {\n backdrop-filter: invert(100%);\n }\n}\n\n.annotationLayer {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n transform-origin: 0 0;\n z-index: 3;\n}\n\n.annotationLayer[data-main-rotation='90'] .norotate {\n transform: rotate(270deg) translateX(-100%);\n}\n.annotationLayer[data-main-rotation='180'] .norotate {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n.annotationLayer[data-main-rotation='270'] .norotate {\n transform: rotate(90deg) translateY(-100%);\n}\n\n.annotationLayer canvas {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer section {\n position: absolute;\n text-align: initial;\n pointer-events: auto;\n box-sizing: border-box;\n margin: 0;\n transform-origin: 0 0;\n}\n\n.annotationLayer .linkAnnotation {\n outline: var(--link-outline);\n}\n\n.annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {\n position: absolute;\n font-size: 1em;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a:hover {\n opacity: 0.2;\n background: rgba(255, 255, 0, 1);\n box-shadow: 0 2px 10px rgba(255, 255, 0, 1);\n}\n\n.annotationLayer .textAnnotation img {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea),\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {\n background-image: var(--annotation-unfocused-field-background);\n border: 2px solid var(--input-unfocused-border-color);\n box-sizing: border-box;\n font: calc(9px * var(--scale-factor)) sans-serif;\n height: 100%;\n margin: 0;\n vertical-align: top;\n width: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):required,\n.annotationLayer .choiceWidgetAnnotation select:required,\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required {\n outline: 1.5px solid red;\n}\n\n.annotationLayer .choiceWidgetAnnotation select option {\n padding: 0;\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n border-radius: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation textarea {\n resize: none;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input[disabled] {\n background: none;\n border: 2px solid var(--input-disabled-border-color);\n cursor: not-allowed;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:hover {\n border: 2px solid var(--input-hover-border-color);\n}\n.annotationLayer .textWidgetAnnotation :is(input, textarea):hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover {\n border-radius: 2px;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n background: none;\n border: 2px solid var(--input-focus-border-color);\n border-radius: 2px;\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {\n background-image: none;\n background-color: transparent;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox :focus {\n border: 2px solid var(--input-focus-border-color);\n border-radius: 2px;\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton :focus {\n border: 2px solid var(--input-focus-border-color);\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {\n background-color: CanvasText;\n content: '';\n display: block;\n position: absolute;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {\n height: 80%;\n left: 45%;\n width: 1px;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before {\n transform: rotate(45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {\n transform: rotate(-45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {\n border-radius: 50%;\n height: 50%;\n left: 30%;\n top: 20%;\n width: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb {\n font-family: monospace;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n /*\n * Letter spacing is placed on the right side of each character. Hence, the\n * letter spacing of the last character may be placed outside the visible\n * area, causing horizontal scrolling. We avoid this by extending the width\n * when the element has focus and revert this when it loses focus.\n */\n width: 103%;\n}\n\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {\n appearance: none;\n}\n\n.annotationLayer .popupTriggerArea {\n height: 100%;\n width: 100%;\n}\n\n.annotationLayer .fileAttachmentAnnotation .popupTriggerArea {\n position: absolute;\n}\n\n.annotationLayer .popupWrapper {\n position: absolute;\n font-size: calc(9px * var(--scale-factor));\n width: 100%;\n min-width: calc(180px * var(--scale-factor));\n pointer-events: none;\n}\n\n.annotationLayer .popup {\n position: absolute;\n max-width: calc(180px * var(--scale-factor));\n background-color: rgba(255, 255, 153, 1);\n box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))\n rgba(136, 136, 136, 1);\n border-radius: calc(2px * var(--scale-factor));\n padding: calc(6px * var(--scale-factor));\n margin-left: calc(5px * var(--scale-factor));\n cursor: pointer;\n font: message-box;\n white-space: normal;\n word-wrap: break-word;\n pointer-events: auto;\n}\n\n.annotationLayer .popup > * {\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .popup h1 {\n display: inline-block;\n}\n\n.annotationLayer .popupDate {\n display: inline-block;\n margin-left: calc(5px * var(--scale-factor));\n}\n\n.annotationLayer .popupContent {\n border-top: 1px solid rgba(51, 51, 51, 1);\n margin-top: calc(2px * var(--scale-factor));\n padding-top: calc(2px * var(--scale-factor));\n}\n\n.annotationLayer .richText > * {\n white-space: pre-wrap;\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .freeTextAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .squareAnnotation svg rect,\n.annotationLayer .circleAnnotation svg ellipse,\n.annotationLayer .polylineAnnotation svg polyline,\n.annotationLayer .polygonAnnotation svg polygon,\n.annotationLayer .caretAnnotation,\n.annotationLayer .inkAnnotation svg polyline,\n.annotationLayer .stampAnnotation,\n.annotationLayer .fileAttachmentAnnotation {\n cursor: pointer;\n}\n\n.annotationLayer section svg {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n\n.annotationLayer .annotationTextContent {\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 0;\n color: transparent;\n user-select: none;\n pointer-events: none;\n}\n\n.annotationLayer .annotationTextContent span {\n width: 100%;\n display: inline-block;\n}\n","/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n:root {\n --react-pdf-text-layer: 1;\n --highlight-bg-color: rgba(180, 0, 170, 1);\n --highlight-selected-bg-color: rgba(0, 100, 0, 1);\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --highlight-bg-color: Highlight;\n --highlight-selected-bg-color: ButtonText;\n }\n}\n\n[data-main-rotation='90'] {\n transform: rotate(90deg) translateY(-100%);\n}\n[data-main-rotation='180'] {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n[data-main-rotation='270'] {\n transform: rotate(270deg) translateX(-100%);\n}\n\n.textLayer {\n position: absolute;\n text-align: initial;\n inset: 0;\n overflow: hidden;\n line-height: 1;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n z-index: 2;\n}\n\n.textLayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n margin: 0;\n transform-origin: 0 0;\n}\n\n/* Only necessary in Google Chrome, see issue 14205, and most unfortunately\n * the problem doesn't show up in \"text\" reference tests. */\n.textLayer span.markedContent {\n top: 0;\n height: 0;\n}\n\n.textLayer .highlight {\n margin: -1px;\n padding: 1px;\n background-color: var(--highlight-bg-color);\n border-radius: 4px;\n}\n\n.textLayer .highlight.appended {\n position: initial;\n}\n\n.textLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.textLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.textLayer .highlight.middle {\n border-radius: 0;\n}\n\n.textLayer .highlight.selected {\n background-color: var(--highlight-selected-bg-color);\n}\n\n/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */\n.textLayer br::selection {\n background: transparent;\n}\n\n.textLayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: -1;\n cursor: default;\n user-select: none;\n}\n\n.textLayer .endOfContent.active {\n top: 0;\n}\n","#floaterHolder{\r\n position: fixed;\r\n top: 60vh;\r\n right: 40px;\r\n height: 120px;\r\n width: 120px;\r\n animation-name: expand;\r\n animation-duration: 2s;\r\n animation-iteration-count:infinite\r\n}\r\n#text{\r\n position: absolute;\r\n width: 160px;\r\n left: 20.5px;\r\n top: 19px;\r\n border-radius: 8px;\r\n}\r\n#whiteBg{\r\n position: absolute;\r\n width: 73px;\r\n height: 74px;\r\n left: 12px;\r\n top: 11px;\r\n background: #ffffff;\r\n border-radius: 8px;\r\n z-index: -10;\r\n}\r\n#blurBg{\r\n position: fixed;\r\n width: 97px;\r\n height: 96px;\r\n background: rgba(222, 222, 222, 0.3);\r\n backdrop-filter: blur(6px);\r\n border-radius: 16px;\r\n z-index: -10;\r\n}\r\n#scan{\r\n position: absolute;\r\n background: linear-gradient(180deg, rgba(103, 210, 223, 0.25) 0%, rgba(103, 210, 223, 0.125) 85.42%, rgba(103, 210, 223, 0.25) 100%);\r\n height: 40px;\r\n width: 73px;\r\n top: 11px;\r\n left: 12px;\r\n z-index: 100;\r\n border-radius: 8px 8px 0 0;\r\n border-bottom: solid 1px #0C50A3;\r\n animation: animate 4s infinite;\r\n}\r\n#touch{\r\n position: absolute;\r\n transform: translatey(0);\r\n animation: expand 2s infinite;\r\n}\r\n@keyframes animate {\r\n 0%{\r\n height: 10px;\r\n }\r\n 50%{\r\n height: 74px;\r\n }\r\n 100%{\r\n height: 10px;\r\n }\r\n}\r\n@keyframes expand {\r\n 0%{\r\n transform: scale(1);\r\n }\r\n 50%{\r\n transform: scale(1.1);\r\n }\r\n 100%{\r\n transform: scale(1);\r\n }\r\n}\r\n@media screen and (max-width: 600px) {\r\n#floaterInstructions{\r\n display: none;\r\n}\r\n#floaterHolder{\r\n top: 68vh;\r\n right: 40px;\r\n height: 100px;\r\n width: 100px\r\n}\r\n}"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/logy/static/css/main.a0028aca.css.map b/logy/static/css/main.a0028aca.css.map deleted file mode 100644 index 3d199a8..0000000 --- a/logy/static/css/main.a0028aca.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/css/main.a0028aca.css","mappings":"AACI,WACI,eAAgB,CAChB,cACJ,CACA,0BAII,6CAAuC,CAAvC,qCAAuC,CAHvC,aAAc,CAEd,iBAAkB,CADlB,UAGF,CACF,8BACI,UACF,CACF,0BAII,iDAA2C,CAA3C,yCAA2C,CAH3C,aAAc,CAEd,iBAAkB,CADlB,UAGF,CACF,8BACI,UACF,CACA,2BACE,GAAK,QAAW,CAChB,GAAO,UAAa,CACtB,CAHA,mBACE,GAAK,QAAW,CAChB,GAAO,UAAa,CACtB,CACA,+BACE,GAAK,QAAU,CACf,GAAO,UAAa,CACtB,CAHA,uBACE,GAAK,QAAU,CACf,GAAO,UAAa,CACtB,CAUA,oBAIE,qBAAsB,CAHtB,YAAa,CAKb,kBAAmB,CAHnB,eAAgB,CAEhB,iBAAkB,CAHlB,UAKF,CACA,sBACE,mCAA4B,CAA5B,2BACF,CACA,MACE,UAAW,CACX,SACF,CACA,iBAEE,iBACJ,CACA,aAKI,YAAa,CAHb,YAAa,CAEb,iBAAkB,CADlB,qBAAsB,CAFtB,UAKJ,CACA,oCAEE,UAII,qBAAsB,CAHtB,YAAa,CAKb,kBAAmB,CAHnB,eAAgB,CAEhB,iBAAkB,CAHlB,UAKF,CACA,0BAEE,8CAAwC,CAAxC,sCAAwC,CADxC,UAEF,CACA,8BACE,qBACF,CACF,UAII,qBAAsB,CAHtB,YAAa,CAKb,kBAAmB,CAHnB,eAAgB,CAEhB,iBAAkB,CAHlB,UAKF,CACA,0BAEE,8CAAwC,CAAxC,sCAAwC,CADxC,UAEF,CACA,8BACE,qBACF,CACA,WACE,oBACF,CACA,4BACE,GAAK,QAAW,CAChB,GAAO,UAAa,CACtB,CAHA,oBACE,GAAK,QAAW,CAChB,GAAO,UAAa,CACtB,CACF,CCzGN,OACE,wCACF,CACA,kBACI,0DACF,CACF,gBAGI,oDAA+D,CAG/D,6BAA8B,CAJ9B,WAAY,CAGZ,gBAAiB,CADjB,iBAAkB,CAHlB,UAMJ,CAIA,6BACE,YACF,CACA,kBACE,YACF,CACA,YACE,YACF,CACA,oCACE,cACE,YACF,CACF,CC9BA,kBAEI,YAAa,CADb,SAEJ,CACA,oCACI,kBACI,UACJ,CACA,cACI,YACJ,CACJ,CCXA,OAEI,aAAe,CADf,SAEJ,CACA,kBACI,aACJ,CACA,oCACI,OACI,UACJ,CACJ,CCXA,OACI,oBAAqB,CACrB,sBACJ,CCYA,MACE,8BAA+B,CAC/B,qNAA+N,CAC/N,oCAAqC,CACrC,sCAAuC,CACvC,0CAA2C,CAC3C,yCAA0C,CAC1C,+BAAiC,CACjC,mBACF,CAEA,yCACE,MACE,qCAAsC,CACtC,yCAA0C,CAC1C,sCAAuC,CACvC,oCAAqC,CACrC,mCACF,CACA,gNAGE,gCACF,CAEA,uCACE,oCAA6B,CAA7B,4BACF,CACF,CAEA,iBAGE,MAAO,CACP,mBAAoB,CAHpB,iBAAkB,CAClB,KAAM,CAGN,4BAAqB,CAArB,oBAAqB,CACrB,SACF,CAEA,oDACE,kDAA2C,CAA3C,0CACF,CACA,qDACE,uDAAiD,CAAjD,+CACF,CACA,qDACE,iDAA0C,CAA1C,yCACF,CAEA,wBAGE,WAAY,CAFZ,iBAAkB,CAClB,UAEF,CAEA,yBAIE,qBAAsB,CACtB,QAAS,CAFT,mBAAoB,CAFpB,iBAAkB,CAClB,eAAmB,CAAnB,kBAAmB,CAInB,4BAAqB,CAArB,oBACF,CAEA,iCACE,YAA4B,CAA5B,2BACF,CAEA,2EAEE,aAAc,CAId,WAAY,CAFZ,MAAO,CAHP,iBAAkB,CAElB,KAAM,CAEN,UAEF,CAEA,iFAEE,eAAgC,CAChC,0BAA2C,CAF3C,UAGF,CAEA,qCAEE,cAAe,CAEf,WAAY,CAEZ,MAAO,CALP,iBAAkB,CAIlB,KAAM,CAFN,UAIF,CAEA,qLAGE,8LAA8D,CAA9D,6DAA8D,CAC9D,4BAAqD,CAArD,oDAAqD,CACrD,qBAAsB,CACtB,6CAAgD,CAChD,WAAY,CACZ,QAAS,CACT,kBAAmB,CACnB,UACF,CAEA,gNAGE,uBACF,CAEA,uDACE,SACF,CAEA,2DACE,iBACF,CAEA,gDACE,WACF,CAEA,mNAGE,eAAgB,CAChB,4BAAoD,CAApD,mDAAoD,CACpD,kBACF,CAEA,uMAGE,qBAAiD,CAAjD,gDACF,CACA,qLAGE,iBACF,CAEA,uHAEE,eAAgB,CAChB,0BAAiD,CAAjD,gDAAiD,CACjD,iBAAkB,CAClB,wBAAmC,CAAnC,kCACF,CAEA,2EAEE,wBAA6B,CAD7B,qBAEF,CAEA,yDACE,0BAAiD,CAAjD,gDAAiD,CACjD,iBAAkB,CAClB,wBAAmC,CAAnC,kCACF,CAEA,4DACE,0BAAiD,CAAjD,gDAAiD,CACjD,wBAAmC,CAAnC,kCACF,CAEA,uNAGE,2BAA4B,CAC5B,UAAW,CACX,aAAc,CACd,iBACF,CAEA,6IAEE,UAAW,CACX,QAAS,CACT,SACF,CAEA,uEACE,+BAAwB,CAAxB,uBACF,CAEA,sEACE,gCAAyB,CAAzB,wBACF,CAEA,0EACE,iBAAkB,CAClB,UAAW,CACX,QAAS,CACT,OAAQ,CACR,SACF,CAEA,kDACE,qBAAsB,CACtB,gBAAiB,CACjB,eACF,CAEA,wDAOE,UACF,CAEA,0EACE,uBAAgB,CAAhB,eACF,CAEA,mCACE,WAAY,CACZ,UACF,CAEA,6DACE,iBACF,CAEA,+BAEE,uCAA0C,CAE1C,yCAA4C,CAC5C,mBAAoB,CAJpB,iBAAkB,CAElB,UAGF,CAEA,wBAYE,oBAAqB,CATrB,qBAAwC,CAGxC,2CAA8C,CAF9C,6EACwB,CAIxB,cAAe,CACf,gBAAiB,CAFjB,yCAA4C,CAN5C,yCAA4C,CAK5C,qCAAwC,CAMxC,mBAAoB,CAZpB,iBAAkB,CAUlB,kBAGF,CAEA,0BACE,uCACF,CAEA,2BACE,oBACF,CAEA,4BACE,oBAAqB,CACrB,yCACF,CAEA,+BACE,yBAAyC,CACzC,wCAA2C,CAC3C,yCACF,CAEA,6BAEE,uCAA0C,CAD1C,oBAEF,CAEA,+jBAcE,cACF,CAEA,6BAGE,WAAY,CAEZ,MAAO,CAJP,iBAAkB,CAGlB,KAAM,CAFN,UAIF,CAEA,wCAKE,iBAAkB,CAFlB,WAAY,CACZ,SAAU,CAGV,mBAAoB,CANpB,iBAAkB,CAKlB,wBAAiB,CAAjB,gBAAiB,CAJjB,UAMF,CAEA,6CAEE,oBAAqB,CADrB,UAEF,CCzTA,MACE,wBAAyB,CACzB,4BAA0C,CAC1C,qCACF,CAEA,yCACE,MACE,8BAA+B,CAC/B,wCACF,CACF,CAEA,0BACE,iDAA0C,CAA1C,yCACF,CACA,2BACE,uDAAiD,CAAjD,+CACF,CACA,2BACE,kDAA2C,CAA3C,0CACF,CAEA,WAME,6BAAsB,CAAtB,0BAAsB,CAAtB,qBAAsB,CACtB,wBAAyB,CAJzB,OAAQ,CAER,aAAc,CADd,eAAgB,CAHhB,iBAAkB,CAClB,eAAmB,CAAnB,kBAAmB,CAMnB,4BAAqB,CAArB,oBAAqB,CACrB,SACF,CAEA,wBACE,iBAAkB,CAGlB,WAAY,CACZ,QAAS,CAHT,iBAAkB,CAIlB,4BAAqB,CAArB,oBAAqB,CAHrB,eAIF,CAIA,8BAEE,QAAS,CADT,KAEF,CAEA,sBAGE,wBAA2C,CAA3C,0CAA2C,CAC3C,iBAAkB,CAHlB,WAAY,CACZ,WAGF,CAEA,+BACE,eACF,CAEA,4BACE,yBACF,CAEA,0BACE,yBACF,CAEA,6BACE,eACF,CAEA,+BACE,wBAAoD,CAApD,mDACF,CAGA,yBACE,sBACF,CAEA,yBAKE,cAAe,CAJf,aAAc,CAEd,cAAe,CADf,iBAAkB,CAIlB,wBAAiB,CAAjB,gBAAiB,CAFjB,UAGF,CAEA,gCACE,KACF","sources":["assets/css/clients.css","assets/css/app.css","assets/css/aboutus.css","assets/css/oral.css","assets/css/cs.css","../node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css","../node_modules/react-pdf/dist/esm/Page/TextLayer.css"],"sourcesContent":["\r\n .clientsmq{\r\n overflow: hidden;\r\n padding-left: 0;\r\n }\r\n .marquee1 .marquee--inner {\r\n display: block;\r\n width: 200%;\r\n position: absolute;\r\n animation: marquee 24s linear infinite ;\r\n }\r\n .marquee1 .marquee--inner img{\r\n width: 90px;\r\n }\r\n .marquee2 .marquee--inner {\r\n display: block;\r\n width: 130%;\r\n position: absolute;\r\n animation: marquee-alt 16s linear infinite ;\r\n }\r\n .marquee2 .marquee--inner img{\r\n width: 90px;\r\n }\r\n @keyframes marquee {\r\n 0% { left: 20%; }\r\n 100% { left: -130%; }\r\n }\r\n @keyframes marquee-alt {\r\n 0% { left:30%; }\r\n 100% { left: -100%; }\r\n }\r\n \r\n .marquee1 {\r\n height: 240px;\r\n width: 100%;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n position: relative;\r\n margin-bottom: 20px;\r\n }\r\n .marquee2 {\r\n height: 240px;\r\n width: 100%;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n position: relative;\r\n margin-bottom: 20px;\r\n }\r\n .marquee--inner:hover {\r\n animation-play-state: paused;\r\n }\r\n .span {\r\n float: left;\r\n width: 50%;\r\n }\r\n .client-box1 img{\r\n \r\n align-self: center;\r\n }\r\n .client-box1{\r\n width: 100%;\r\n height: 200px;\r\n vertical-align: middle;\r\n text-align: center;\r\n display: flex;\r\n }\r\n @media screen and (max-width:600px){\r\n \r\n .marquee1 {\r\n height: 170px;\r\n width: 150%;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n position: relative;\r\n margin-bottom: 20px;\r\n }\r\n .marquee1 .marquee--inner{\r\n width: 300%;\r\n animation: marqueex 24s linear infinite ;\r\n }\r\n .marquee1 .marquee--inner img{\r\n width: 150px !important;\r\n }\r\n .marquee2 {\r\n height: 170px;\r\n width: 150%;\r\n overflow: hidden;\r\n box-sizing: border-box;\r\n position: relative;\r\n margin-bottom: 20px;\r\n }\r\n .marquee2 .marquee--inner{\r\n width: 300%;\r\n animation: marqueex 24s linear infinite ;\r\n }\r\n .marquee2 .marquee--inner img{\r\n width: 150px !important;\r\n }\r\n .clientMob{\r\n padding: 5% !important;\r\n }\r\n @keyframes marqueex {\r\n 0% { left: 50%; }\r\n 100% { left: -280%; }\r\n }\r\n }","*,html{\r\n font-family: 'Poppins', sans-serif !important;\r\n}\r\n.bg-gradient-logy {\r\n background-image: linear-gradient(98.24deg, #49b5fd 0%, #3559fa 100%);\r\n }\r\n.blueSemiCircle{\r\n width: 72px;\r\n height: 36px;\r\n background: linear-gradient(98.24deg, #49b5fd 0%, #3559fa 100%);;\r\n margin-right: auto;\r\n margin-left: auto;\r\n border-radius: 100px 100px 0 0;\r\n}\r\n#pdf-controls{\r\n display: none;\r\n}\r\n#pdf-page-info{\r\n display: none;\r\n}\r\n#pdf-page-wrapper{\r\n margin-top: 0;\r\n}\r\n#header-bar{\r\n display: none;\r\n}\r\n@media screen and (max-width:600px){\r\n .phone-hidden{\r\n display: none;\r\n }\r\n}\r\n",".testimonialblock{\r\n width: 25%;\r\n padding: 1rem;\r\n}\r\n@media screen and (max-width:600px){\r\n .testimonialblock{\r\n width: 100%;\r\n }\r\n .investorText{\r\n display: none;\r\n }\r\n}",".stats{\r\n width: 25%;\r\n padding: 0.6rem;\r\n}\r\n.bg-gradient-blue{\r\n color: #3b82f6;\r\n}\r\n@media screen and (max-width:600px){\r\n .stats{\r\n width: 100%;\r\n }\r\n}",".highl{\r\n background: #3b83f62d;\r\n color: rgba(0, 0, 0, 0.842);\r\n}","/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n:root {\n --react-pdf-annotation-layer: 1;\n --annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,\");\n --input-focus-border-color: Highlight;\n --input-focus-outline: 1px solid Canvas;\n --input-unfocused-border-color: transparent;\n --input-disabled-border-color: transparent;\n --input-hover-border-color: black;\n --link-outline: none;\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --input-focus-border-color: CanvasText;\n --input-unfocused-border-color: ActiveText;\n --input-disabled-border-color: GrayText;\n --input-hover-border-color: Highlight;\n --link-outline: 1.5px solid LinkText;\n }\n .annotationLayer .textWidgetAnnotation :is(input, textarea):required,\n .annotationLayer .choiceWidgetAnnotation select:required,\n .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required {\n outline: 1.5px solid selectedItem;\n }\n\n .annotationLayer .linkAnnotation:hover {\n backdrop-filter: invert(100%);\n }\n}\n\n.annotationLayer {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n transform-origin: 0 0;\n z-index: 3;\n}\n\n.annotationLayer[data-main-rotation='90'] .norotate {\n transform: rotate(270deg) translateX(-100%);\n}\n.annotationLayer[data-main-rotation='180'] .norotate {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n.annotationLayer[data-main-rotation='270'] .norotate {\n transform: rotate(90deg) translateY(-100%);\n}\n\n.annotationLayer canvas {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer section {\n position: absolute;\n text-align: initial;\n pointer-events: auto;\n box-sizing: border-box;\n margin: 0;\n transform-origin: 0 0;\n}\n\n.annotationLayer .linkAnnotation {\n outline: var(--link-outline);\n}\n\n.annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {\n position: absolute;\n font-size: 1em;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a:hover {\n opacity: 0.2;\n background: rgba(255, 255, 0, 1);\n box-shadow: 0 2px 10px rgba(255, 255, 0, 1);\n}\n\n.annotationLayer .textAnnotation img {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea),\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {\n background-image: var(--annotation-unfocused-field-background);\n border: 2px solid var(--input-unfocused-border-color);\n box-sizing: border-box;\n font: calc(9px * var(--scale-factor)) sans-serif;\n height: 100%;\n margin: 0;\n vertical-align: top;\n width: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):required,\n.annotationLayer .choiceWidgetAnnotation select:required,\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required {\n outline: 1.5px solid red;\n}\n\n.annotationLayer .choiceWidgetAnnotation select option {\n padding: 0;\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n border-radius: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation textarea {\n resize: none;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input[disabled] {\n background: none;\n border: 2px solid var(--input-disabled-border-color);\n cursor: not-allowed;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:hover {\n border: 2px solid var(--input-hover-border-color);\n}\n.annotationLayer .textWidgetAnnotation :is(input, textarea):hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover {\n border-radius: 2px;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n background: none;\n border: 2px solid var(--input-focus-border-color);\n border-radius: 2px;\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {\n background-image: none;\n background-color: transparent;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox :focus {\n border: 2px solid var(--input-focus-border-color);\n border-radius: 2px;\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton :focus {\n border: 2px solid var(--input-focus-border-color);\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {\n background-color: CanvasText;\n content: '';\n display: block;\n position: absolute;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {\n height: 80%;\n left: 45%;\n width: 1px;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before {\n transform: rotate(45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {\n transform: rotate(-45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {\n border-radius: 50%;\n height: 50%;\n left: 30%;\n top: 20%;\n width: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb {\n font-family: monospace;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n /*\n * Letter spacing is placed on the right side of each character. Hence, the\n * letter spacing of the last character may be placed outside the visible\n * area, causing horizontal scrolling. We avoid this by extending the width\n * when the element has focus and revert this when it loses focus.\n */\n width: 103%;\n}\n\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {\n appearance: none;\n}\n\n.annotationLayer .popupTriggerArea {\n height: 100%;\n width: 100%;\n}\n\n.annotationLayer .fileAttachmentAnnotation .popupTriggerArea {\n position: absolute;\n}\n\n.annotationLayer .popupWrapper {\n position: absolute;\n font-size: calc(9px * var(--scale-factor));\n width: 100%;\n min-width: calc(180px * var(--scale-factor));\n pointer-events: none;\n}\n\n.annotationLayer .popup {\n position: absolute;\n max-width: calc(180px * var(--scale-factor));\n background-color: rgba(255, 255, 153, 1);\n box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))\n rgba(136, 136, 136, 1);\n border-radius: calc(2px * var(--scale-factor));\n padding: calc(6px * var(--scale-factor));\n margin-left: calc(5px * var(--scale-factor));\n cursor: pointer;\n font: message-box;\n white-space: normal;\n word-wrap: break-word;\n pointer-events: auto;\n}\n\n.annotationLayer .popup > * {\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .popup h1 {\n display: inline-block;\n}\n\n.annotationLayer .popupDate {\n display: inline-block;\n margin-left: calc(5px * var(--scale-factor));\n}\n\n.annotationLayer .popupContent {\n border-top: 1px solid rgba(51, 51, 51, 1);\n margin-top: calc(2px * var(--scale-factor));\n padding-top: calc(2px * var(--scale-factor));\n}\n\n.annotationLayer .richText > * {\n white-space: pre-wrap;\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .freeTextAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .squareAnnotation svg rect,\n.annotationLayer .circleAnnotation svg ellipse,\n.annotationLayer .polylineAnnotation svg polyline,\n.annotationLayer .polygonAnnotation svg polygon,\n.annotationLayer .caretAnnotation,\n.annotationLayer .inkAnnotation svg polyline,\n.annotationLayer .stampAnnotation,\n.annotationLayer .fileAttachmentAnnotation {\n cursor: pointer;\n}\n\n.annotationLayer section svg {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n\n.annotationLayer .annotationTextContent {\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 0;\n color: transparent;\n user-select: none;\n pointer-events: none;\n}\n\n.annotationLayer .annotationTextContent span {\n width: 100%;\n display: inline-block;\n}\n","/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n:root {\n --react-pdf-text-layer: 1;\n --highlight-bg-color: rgba(180, 0, 170, 1);\n --highlight-selected-bg-color: rgba(0, 100, 0, 1);\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --highlight-bg-color: Highlight;\n --highlight-selected-bg-color: ButtonText;\n }\n}\n\n[data-main-rotation='90'] {\n transform: rotate(90deg) translateY(-100%);\n}\n[data-main-rotation='180'] {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n[data-main-rotation='270'] {\n transform: rotate(270deg) translateX(-100%);\n}\n\n.textLayer {\n position: absolute;\n text-align: initial;\n inset: 0;\n overflow: hidden;\n line-height: 1;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n z-index: 2;\n}\n\n.textLayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n margin: 0;\n transform-origin: 0 0;\n}\n\n/* Only necessary in Google Chrome, see issue 14205, and most unfortunately\n * the problem doesn't show up in \"text\" reference tests. */\n.textLayer span.markedContent {\n top: 0;\n height: 0;\n}\n\n.textLayer .highlight {\n margin: -1px;\n padding: 1px;\n background-color: var(--highlight-bg-color);\n border-radius: 4px;\n}\n\n.textLayer .highlight.appended {\n position: initial;\n}\n\n.textLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.textLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.textLayer .highlight.middle {\n border-radius: 0;\n}\n\n.textLayer .highlight.selected {\n background-color: var(--highlight-selected-bg-color);\n}\n\n/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */\n.textLayer br::selection {\n background: transparent;\n}\n\n.textLayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: -1;\n cursor: default;\n user-select: none;\n}\n\n.textLayer .endOfContent.active {\n top: 0;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/logy/static/js/main.d24ee7d7.js b/logy/static/js/main.bc37fad5.js similarity index 98% rename from logy/static/js/main.d24ee7d7.js rename to logy/static/js/main.bc37fad5.js index 0aa6750..34cb81e 100644 --- a/logy/static/js/main.d24ee7d7.js +++ b/logy/static/js/main.bc37fad5.js @@ -1,3 +1,3 @@ -/*! For license information please see main.d24ee7d7.js.LICENSE.txt */ -(function(){var __webpack_modules__={2176:function(e){"use strict";e.exports=function(e,t,n,r,a,i,s,l){if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,s,l],u=0;(o=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}},1025:function(e,t){var n,r,a;r=[],n=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,a={},i=0,s={parse:function(n,r){var l=(r=r||{}).dynamicTyping||!1;if(_(l)&&(r.dynamicTypingFunction=l,l={}),r.dynamicTyping=l,r.transform=!!_(r.transform)&&r.transform,r.worker&&s.WORKERS_SUPPORTED){var o=function(){if(!s.WORKERS_SUPPORTED)return!1;var n,r,l=(n=t.URL||t.webkitURL||null,r=e.toString(),s.BLOB_URL||(s.BLOB_URL=n.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))),o=new t.Worker(l);return o.onmessage=m,o.id=i++,a[o.id]=o}();return o.userStep=r.step,o.userChunk=r.chunk,o.userComplete=r.complete,o.userError=r.error,r.step=_(r.step),r.chunk=_(r.chunk),r.complete=_(r.complete),r.error=_(r.error),delete r.worker,void o.postMessage({input:n,config:r,workerId:o.id})}var f=null;return s.NODE_STREAM_INPUT,"string"==typeof n?(n=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(n),f=r.download?new c(r):new d(r)):!0===n.readable&&_(n.read)&&_(n.on)?f=new h(r):(t.File&&n instanceof File||n instanceof Object)&&(f=new u(r)),f.stream(n)},unparse:function(e,t){var n=!1,r=!0,a=",",i="\r\n",l='"',o=l+l,c=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(a=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(l=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+l),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var h=new RegExp(p(l),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,c);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function f(e,t,n){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var l=Array.isArray(e)&&0=this._config.preview;if(r)t.postMessage({results:l,workerId:s.WORKER_ID,finished:c});else if(_(this._config.chunk)&&!n){if(this._config.chunk(l,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);l=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(l.data),this._completeResults.errors=this._completeResults.errors.concat(l.errors),this._completeResults.meta=l.meta),this._completed||!c||!_(this._config.complete)||l&&l.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||l&&l.meta.paused||this._nextChunk(),l}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.RemoteChunkSize),o.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var a=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+a)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function u(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=s.LocalChunkSize),o.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;o.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function h(e){o.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){o.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){o.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=b((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=b((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=b((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=b((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,n,r,a=Math.pow(2,53),i=-a,l=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,u=0,d=0,h=!1,f=!1,m=[],g={data:[],errors:[],meta:{}};if(_(e.step)){var y=e.step;e.step=function(t){if(g=t,k())w();else{if(w(),0===g.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(g.data=g.data[0],y(g,c))}}}function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function w(){return g&&r&&(P("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(g.data=g.data.filter((function(e){return!b(e)}))),k()&&function(){if(g)if(Array.isArray(g.data[0])){for(var t=0;k()&&t=m.length?"__parsed_extra":m[r]),e.transform&&(s=e.transform(s,i)),s=S(i,s),"__parsed_extra"===i?(a[i]=a[i]||[],a[i].push(s)):a[i]=s}return e.header&&(r>m.length?P("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+r,d+n):r=r.length/2?"\r\n":"\r"}(a,o)),r=!1,e.delimiter)_(e.delimiter)&&(e.delimiter=e.delimiter(a),g.meta.delimiter=e.delimiter);else{var c=function(t,n,r,a,i){var l,o,c,u;i=i||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var d=0;d=l)return V(!0)}else for(G=u,u++;;){if(-1===(G=s.indexOf(t,G+1)))return f||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:u}),U();if(G===v-1)return U(s.substring(u,G).replace(D,t));if(t!==c||s[G+1]!==c){if(t===c||0===G||s[G-1]!==c){-1!==O&&O=l)return V(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:u}),G++}}else G++}return U();function H(e){b.push(e),S=u}function W(e){var t=0;if(-1!==e){var n=s.substring(G+1,e);n&&""===n.trim()&&(t=n.length)}return t}function U(e){return f||(void 0===e&&(e=s.substring(u)),k.push(e),u=v,H(k),x&&X()),V()}function q(e){u=e,H(k),k=[],L=s.indexOf(r,u)}function V(e){return{data:b,errors:w,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:S+(h||0)}}}function X(){i(V()),b=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function m(e){var t=e.data,n=a[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){r=!0,g(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(_(n.userStep)){for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){var r=e.match(/\./g);(null===r||void 0===r?void 0:r.length)>=2&&(e="http://".concat(e))}if(n.tryConvertEncoding)try{e=w(e)}catch(i){}}var a=t?new URL(e,t):new URL(e);if(function(e){switch(null===e||void 0===e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch(s){}return null},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){var e,t;if("undefined"!==typeof crypto&&"function"===typeof(null===(e=crypto)||void 0===e?void 0:e.randomUUID))return crypto.randomUUID();var n=new Uint8Array(32);if("undefined"!==typeof crypto&&"function"===typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(n);else for(var r=0;r<32;r++)n[r]=Math.floor(255*Math.random());return m(n)},t.getVerbosityLevel=function(){return a},t.info=function(e){a>=r.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.byteLength)},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=g,t.stringToPDFString=function(e){var t;if(e[0]>="\xef"&&("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t))try{var n=new TextDecoder(t,{fatal:!0}),r=g(e);return n.decode(r)}catch(c){i('stringToPDFString: "'.concat(c,'".'))}for(var a=[],s=0,l=e.length;s=r.WARNINGS&&console.log("Warning: ".concat(e))}function s(e){throw new Error(e)}function l(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}var o=function(){function e(t,n){this.constructor===e&&s("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=o;var c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,"PasswordException")).code=r,a}return _createClass(n)}(o);t.PasswordException=c;var u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,"UnknownErrorException")).details=r,a}return _createClass(n)}(o);t.UnknownErrorException=u;var d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,"InvalidPDFException")}return _createClass(n)}(o);t.InvalidPDFException=d;var h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,"MissingPDFException")}return _createClass(n)}(o);t.MissingPDFException=h;var f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,"UnexpectedResponseException")).status=r,a}return _createClass(n)}(o);t.UnexpectedResponseException=f;var p=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,"FormatError")}return _createClass(n)}(o);t.FormatError=p;var v=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,"AbortException")}return _createClass(n)}(o);function m(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||s("Invalid argument for bytesToString");var t=e.length,n=8192;if(te[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(e,t){var n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;var a=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return a>i?null:[n,a,r,i]}},{key:"bezierBoundingBox",value:function(e,t,n,r,a,i,s,l){for(var o,c,u,d,h,f,p,v,m=[],g=[[],[]],y=0;y<2;++y)if(0===y?(c=6*e-12*n+6*a,o=-3*e+9*n-9*a+3*s,u=3*n-3*e):(c=6*t-12*r+6*i,o=-3*t+9*r-9*i+3*l,u=3*r-3*t),Math.abs(o)<1e-12){if(Math.abs(c)<1e-12)continue;0<(d=-u/c)&&d<1&&m.push(d)}else p=c*c-4*u*o,v=Math.sqrt(p),p<0||(0<(h=(-c+v)/(2*o))&&h<1&&m.push(h),0<(f=(-c-v)/(2*o))&&f<1&&m.push(f));for(var x,b=m.length,_=b;b--;)x=1-(d=m[b]),g[0][b]=x*x*x*e+3*x*x*d*n+3*x*d*d*a+d*d*d*s,g[1][b]=x*x*x*t+3*x*x*d*r+3*x*d*d*i+d*d*d*l;return g[0][_]=e,g[1][_]=t,g[0][_+1]=s,g[1][_+1]=l,g[0].length=g[1].length=_+2,[Math.min.apply(Math,_toConsumableArray(g[0])),Math.min.apply(Math,_toConsumableArray(g[1])),Math.max.apply(Math,_toConsumableArray(g[0])),Math.max.apply(Math,_toConsumableArray(g[1]))]}}]),e}();t.Util=b;var _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function w(e){return decodeURIComponent(escape(e))}var k=new WeakMap,S=function(){function e(){var t=this;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,k,{writable:!0,value:!1}),this.promise=new Promise((function(e,n){t.resolve=function(n){_classPrivateFieldSet(t,k,!0),e(n)},t.reject=function(e){_classPrivateFieldSet(t,k,!0),n(e)}}))}return _createClass(e,[{key:"settled",get:function(){return _classPrivateFieldGet(this,k)}}]),e}();t.PromiseCapability=S;var P=null,C=null;t.AnnotationPrefix="pdfjs_internal_id_"},function(__unused_webpack_module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;var DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(e){var t,n;if("string"===typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!==typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");var r=new PDFDocumentLoadingTask,a=r.docId,i=e.url?getUrlProp(e.url):null,s=e.data?getDataProp(e.data):null,l=e.httpHeaders||null,o=!0===e.withCredentials,c=null!==(t=e.password)&&void 0!==t?t:null,u=e.range instanceof PDFDataRangeTransport?e.range:null,d=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE,h=e.worker instanceof PDFWorker?e.worker:null,f=e.verbosity,p="string"!==typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,v="string"===typeof e.cMapUrl?e.cMapUrl:null,m=!1!==e.cMapPacked,g=e.CMapReaderFactory||DefaultCMapReaderFactory,y="string"===typeof e.standardFontDataUrl?e.standardFontDataUrl:null,x=e.StandardFontDataFactory||DefaultStandardFontDataFactory,b=!0!==e.stopAtErrors,_=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,w=!1!==e.isEvalSupported,k="boolean"===typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,S=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,P="boolean"===typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,C=!0===e.fontExtraProperties,A=!0===e.enableXfa,j=e.ownerDocument||globalThis.document,E=!0===e.disableRange,F=!0===e.disableStream,N=!0===e.disableAutoFetch,T=!0===e.pdfBug,M=u?u.length:null!==(n=e.length)&&void 0!==n?n:NaN,I="boolean"===typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!P,R="boolean"===typeof e.useWorkerFetch?e.useWorkerFetch:g===_display_utils.DOMCMapReaderFactory&&x===_display_utils.DOMStandardFontDataFactory&&v&&y&&(0,_display_utils.isValidFetchUrl)(v,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(y,document.baseURI),O=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:j}),L=e.filterFactory||new DefaultFilterFactory({docId:a,ownerDocument:j});(0,_util.setVerbosityLevel)(f);var D={canvasFactory:O,filterFactory:L};if(R||(D.cMapReaderFactory=new g({baseUrl:v,isCompressed:m}),D.standardFontDataFactory=new x({baseUrl:y})),!h){var G={verbosity:f,port:_worker_options.GlobalWorkerOptions.workerPort};h=G.port?PDFWorker.fromPort(G):new PDFWorker(G),r._worker=h}var z={docId:a,apiVersion:"3.11.174",data:s,password:c,disableAutoFetch:N,rangeChunkSize:d,length:M,docBaseUrl:p,enableXfa:A,evaluatorOptions:{maxImageSize:_,disableFontFace:P,ignoreErrors:b,isEvalSupported:w,isOffscreenCanvasSupported:k,canvasMaxAreaInBytes:S,fontExtraProperties:C,useSystemFonts:I,cMapUrl:R?v:null,standardFontDataUrl:R?y:null}},B={ignoreErrors:b,isEvalSupported:w,disableFontFace:P,fontExtraProperties:C,enableXfa:A,ownerDocument:j,disableAutoFetch:N,pdfBug:T,styleElement:null};return h.promise.then((function(){if(r.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(h,z),t=new Promise((function(e){var t,n;u?t=new _transport_stream.PDFDataTransportStream({length:M,initialData:u.initialData,progressiveDone:u.progressiveDone,contentDispositionFilename:u.contentDispositionFilename,disableRange:E,disableStream:F},u):s||(n={url:i,length:M,httpHeaders:l,withCredentials:o,rangeChunkSize:d,disableRange:E,disableStream:F},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(n):(0,_display_utils.isValidFetchUrl)(n.url)?new _displayFetch_stream.PDFFetchStream(n):new _displayNetwork.PDFNetworkStream(n)),e(t)}));return Promise.all([e,t]).then((function(e){var t=_slicedToArray(e,2),n=t[0],i=t[1];if(r.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(a,n,h.port),l=new WorkerTransport(s,r,i,B,D);r._transport=l,s.send("Ready",null)}))})).catch(r._capability.reject),r}function _fetchDocument(e,t){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,n){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.destroyed){e.next=2;break}throw new Error("Worker was destroyed");case 2:return e.next=4,t.messageHandler.sendWithPromise("GetDocRequest",n,n.data?[n.data.buffer]:null);case 4:if(r=e.sent,!t.destroyed){e.next=7;break}throw new Error("Worker was destroyed");case 7:return e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch(t){if(_util.isNodeJS&&"string"===typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!==typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"===typeof e)return(0,_util.stringToBytes)(e);if("object"===typeof e&&!isNaN(null===e||void 0===e?void 0:e.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;var PDFDocumentLoadingTask=function(){function e(){var t,n;_classCallCheck(this,e),this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d".concat((_classStaticPrivateFieldSpecSet(e,e,_docId,(t=_classStaticPrivateFieldSpecGet(e,e,_docId),n=t++,t)),n)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}return _createClass(e,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.destroyed=!0,e.prev=1,null!==(t=this._worker)&&void 0!==t&&t.port&&(this._worker._pendingDestroy=!0),e.next=5,null===(n=this._transport)||void 0===n?void 0:n.destroy();case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),null!==(r=this._worker)&&void 0!==r&&r.port&&delete this._worker._pendingDestroy,e.t0;case 11:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()}]),e}(),_docId={writable:!0,value:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var PDFDataRangeTransport=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.length=t,this.initialData=n,this.progressiveDone=r,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e,t)}catch(a){r.e(a)}finally{r.f()}}},{key:"onDataProgress",value:function(e,t){var n=this;this._readyCapability.promise.then((function(){var r,a=_createForOfIteratorHelper(n._progressListeners);try{for(a.s();!(r=a.n()).done;)(0,r.value)(e,t)}catch(i){a.e(i)}finally{a.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var n,r=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e)}catch(a){r.e(a)}finally{r.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,n=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(n.s();!(t=n.n()).done;)(0,t.value)()}catch(r){n.e(r)}finally{n.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._pdfInfo=t,this._transport=n,Object.defineProperty(this,"getJavaScript",{value:function(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),r.getJSActions().then((function(e){if(!e)return e;var t=[];for(var n in e)t.push.apply(t,_toConsumableArray(e[n]));return t}))}})}return _createClass(e,[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"filterFactory",get:function(){return this._transport.filterFactory}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"isPureXfa",get:function(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"saveDocument",value:function(){return this._transport.saveDocument()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var _delayedCleanupTimeout=new WeakMap,_pendingCleanup=new WeakMap,_tryCleanup=new WeakSet,_abortDelayedCleanup=new WeakSet,PDFPageProxy=function(){function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),_classPrivateMethodInitSpec(this,_abortDelayedCleanup),_classPrivateMethodInitSpec(this,_tryCleanup),_classPrivateFieldInitSpec(this,_delayedCleanupTimeout,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pendingCleanup,{writable:!0,value:!1}),this._pageIndex=t,this._pageInfo=n,this._transport=r,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}return _createClass(e,[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,n=e.rotation,r=void 0===n?this.rotate:n,a=e.offsetX,i=void 0===a?0:a,s=e.offsetY,l=void 0===s?0:s,o=e.dontFlip,c=void 0!==o&&o;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:r,offsetX:i,offsetY:l,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,t=void 0===e?"display":e,n=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,n.renderingIntent)}},{key:"getJSActions",value:function(){return this._transport.getPageJSActions(this._pageIndex)}},{key:"filterFactory",get:function(){return this._transport.filterFactory}},{key:"isPureXfa",get:function(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}},{key:"getXfa",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(null===(t=this._transport._htmlForXfa)||void 0===t?void 0:t.children[this._pageIndex])||null);case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(e){var t,n,r=this,a=e.canvasContext,i=e.viewport,s=e.intent,l=void 0===s?"display":s,o=e.annotationMode,c=void 0===o?_util.AnnotationMode.ENABLE:o,u=e.transform,d=void 0===u?null:u,h=e.background,f=void 0===h?null:h,p=e.optionalContentConfigPromise,v=void 0===p?null:p,m=e.annotationCanvasMap,g=void 0===m?null:m,y=e.pageColors,x=void 0===y?null:y,b=e.printAnnotationStorage,_=void 0===b?null:b;null===(t=this._stats)||void 0===t||t.time("Overall");var w=this._transport.getRenderingIntent(l,c,_);_classPrivateFieldSet(this,_pendingCleanup,!1),_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),v||(v=this._transport.getOptionalContentConfig());var k=this._intentStates.get(w.cacheKey);k||(k=Object.create(null),this._intentStates.set(w.cacheKey,k)),k.streamReaderCancelTimeout&&(clearTimeout(k.streamReaderCancelTimeout),k.streamReaderCancelTimeout=null);var S,P=!!(w.renderingIntent&_util.RenderingIntentFlag.PRINT);k.displayReadyCapability||(k.displayReadyCapability=new _util.PromiseCapability,k.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(S=this._stats)||void 0===S||S.time("Page Request"),this._pumpOperatorList(w));var C=function(e){var t,n;k.renderTasks.delete(A),(r._maybeCleanupAfterRender||P)&&_classPrivateFieldSet(r,_pendingCleanup,!0),_classPrivateMethodGet(r,_tryCleanup,_tryCleanup2).call(r,!P),e?(A.capability.reject(e),r._abortOperatorList({intentState:k,reason:e instanceof Error?e:new Error(e)})):A.capability.resolve(),null===(t=r._stats)||void 0===t||t.timeEnd("Rendering"),null===(n=r._stats)||void 0===n||n.timeEnd("Overall")},A=new InternalRenderTask({callback:C,params:{canvasContext:a,viewport:i,transform:d,background:f},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:g,operatorList:k.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!P,pdfBug:this._pdfBug,pageColors:x});((n=k).renderTasks||(n.renderTasks=new Set)).add(A);var j=A.task;return Promise.all([k.displayReadyCapability.promise,v]).then((function(e){var t,n=_slicedToArray(e,2),a=n[0],i=n[1];r.destroyed?C():(null===(t=r._stats)||void 0===t||t.time("Rendering"),A.initializeGraphics({transparency:a,optionalContentConfig:i}),A.operatorListChanged())})).catch(C),j}},{key:"getOperatorList",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=r.intent,i=void 0===a?"display":a,s=r.annotationMode,l=void 0===s?_util.AnnotationMode.ENABLE:s,o=r.printAnnotationStorage,c=void 0===o?null:o,u=this._transport.getRenderingIntent(i,l,c,!0),d=this._intentStates.get(u.cacheKey);return d||(d=Object.create(null),this._intentStates.set(u.cacheKey,d)),d.opListReadCapability||((e=Object.create(null)).operatorListChanged=function(){d.operatorList.lastChunk&&(d.opListReadCapability.resolve(d.operatorList),d.renderTasks.delete(e))},d.opListReadCapability=new _util.PromiseCapability,((t=d).renderTasks||(t.renderTasks=new Set)).add(e),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(n=this._stats)||void 0===n||n.time("Page Request"),this._pumpOperatorList(u)),d.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.includeMarkedContent,n=void 0!==t&&t,r=e.disableNormalization,a=void 0!==r&&r;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===n,disableNormalization:!0===a},{highWaterMark:100,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((function(e){return _xfa_text.XfaText.textContent(e)}));var t=this.streamTextContent(e);return new Promise((function(e,n){var r=t.getReader(),a={items:[],styles:Object.create(null)};!function t(){r.read().then((function(n){var r,i=n.value;n.done?e(a):(Object.assign(a.styles,i.styles),(r=a.items).push.apply(r,_toConsumableArray(i.items)),t())}),n)}()}))}},{key:"getStructTree",value:function(){return this._transport.getStructTree(this._pageIndex)}},{key:"_destroy",value:function(){this.destroyed=!0;var e,t=[],n=_createForOfIteratorHelper(this._intentStates.values());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),!r.opListReadCapability){var a,i=_createForOfIteratorHelper(r.renderTasks);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.push(s.completed),s.cancel()}}catch(l){i.e(l)}finally{i.f()}}}}catch(l){n.e(l)}finally{n.f()}return this.objs.clear(),_classPrivateFieldSet(this,_pendingCleanup,!1),_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldSet(this,_pendingCleanup,!0);var t=_classPrivateMethodGet(this,_tryCleanup,_tryCleanup2).call(this,!1);return e&&t&&this._stats&&(this._stats=new _display_utils.StatTimer),t}},{key:"_startRenderPage",value:function(e,t){var n,r,a=this._intentStates.get(t);a&&(null===(n=this._stats)||void 0===n||n.timeEnd("Page Request"),null===(r=a.displayReadyCapability)||void 0===r||r.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var n=0,r=e.length;n0)return;if(r instanceof _display_utils.RenderingCancelledException){var s=RENDERING_CANCELLED_TIMEOUT;return r.extraDelay>0&&r.extraDelay<1e3&&(s+=r.extraDelay),void(n.streamReaderCancelTimeout=setTimeout((function(){n.streamReaderCancelTimeout=null,t._abortOperatorList({intentState:n,reason:r,force:!0})}),s))}}if(n.streamReader.cancel(new _util.AbortException(r.message)).catch((function(){})),n.streamReader=null,!this._transport.destroyed){var l,o=_createForOfIteratorHelper(this._intentStates);try{for(o.s();!(l=o.n()).done;){var c=_slicedToArray(l.value,2),u=c[0];if(c[1]===n){this._intentStates.delete(u);break}}}catch(d){o.e(d)}finally{o.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]),e}();function _tryCleanup2(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateMethodGet(this,_abortDelayedCleanup,_abortDelayedCleanup2).call(this),!_classPrivateFieldGet(this,_pendingCleanup)||this.destroyed)return!1;if(t)return _classPrivateFieldSet(this,_delayedCleanupTimeout,setTimeout((function(){_classPrivateFieldSet(e,_delayedCleanupTimeout,null),_classPrivateMethodGet(e,_tryCleanup,_tryCleanup2).call(e,!1)}),DELAYED_CLEANUP_TIMEOUT)),!1;var n,r=_createForOfIteratorHelper(this._intentStates.values());try{for(r.s();!(n=r.n()).done;){var a=n.value,i=a.renderTasks,s=a.operatorList;if(i.size>0||!s.lastChunk)return!1}}catch(l){r.e(l)}finally{r.f()}return this._intentStates.clear(),this.objs.clear(),_classPrivateFieldSet(this,_pendingCleanup,!1),!0}function _abortDelayedCleanup2(){_classPrivateFieldGet(this,_delayedCleanupTimeout)&&(clearTimeout(_classPrivateFieldGet(this,_delayedCleanupTimeout)),_classPrivateFieldSet(this,_delayedCleanupTimeout,null))}exports.PDFPageProxy=PDFPageProxy;var _listeners=new WeakMap,_deferred=new WeakMap,LoopbackPort=function(){function e(){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,_listeners,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,_deferred,{writable:!0,value:Promise.resolve()})}return _createClass(e,[{key:"postMessage",value:function(e,t){var n=this,r={data:structuredClone(e,t?{transfer:t}:null)};_classPrivateFieldGet(this,_deferred).then((function(){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(n,_listeners));try{for(t.s();!(e=t.n()).done;)e.value.call(n,r)}catch(a){t.e(a)}finally{t.f()}}))}},{key:"addEventListener",value:function(e,t){_classPrivateFieldGet(this,_listeners).add(t)}},{key:"removeEventListener",value:function(e,t){_classPrivateFieldGet(this,_listeners).delete(t)}},{key:"terminate",value:function(){_classPrivateFieldGet(this,_listeners).clear()}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){var _document,pdfjsFilePath=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){var n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(a){return!1}var r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){var t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};var PDFWorker=function(){function PDFWorker(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=void 0===t?null:t,r=e.port,a=void 0===r?null:r,i=e.verbosity,s=void 0===i?(0,_util.getVerbosityLevel)():i;if(_classCallCheck(this,PDFWorker),this.name=n,this.destroyed=!1,this.verbosity=s,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,a){var l;if(null!==(l=_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts))&&void 0!==l&&l.has(a))throw new Error("Cannot use more than one PDFWorker per port.");return(_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts)||_classStaticPrivateFieldSpecSet(PDFWorker,PDFWorker,_workerPorts,new WeakMap)).set(a,this),void this._initializeFromPort(a)}this._initialize()}return _createClass(PDFWorker,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}},{key:"_initialize",value:function(){var e=this;if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var t=PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,t)||(t=PDFWorkerUtil.createCDNWrapper(new URL(t,window.location).href));var n=new Worker(t),r=new _message_handler.MessageHandler("main","worker",n),a=function(){n.removeEventListener("error",i),r.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},i=function(){e._webWorker||a()};n.addEventListener("error",i),r.on("test",(function(t){n.removeEventListener("error",i),e.destroyed?a():t?(e._messageHandler=r,e._port=n,e._webWorker=n,e._readyCapability.resolve(),r.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),r.destroy(),n.terminate())})),r.on("ready",(function(t){if(n.removeEventListener("error",i),e.destroyed)a();else try{s()}catch(r){e._setupFakeWorker()}}));var s=function(){var e=new Uint8Array;r.send("test",e,[e.buffer])};return void s()}catch(l){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;e._port=n;var r="fake".concat(PDFWorkerUtil.fakeWorkerId++),a=new _message_handler.MessageHandler(r+"_worker",r,n);t.setup(a,n);var i=new _message_handler.MessageHandler(r,r+"_worker",n);e._messageHandler=i,e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})}})).catch((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null===(e=_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts))||void 0===e||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"fromPort",value:function(e){var t;if(null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");var n=null===(t=_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts))||void 0===t?void 0:t.get(e.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new PDFWorker(e)}},{key:"workerSrc",get:function(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}},{key:"_mainThreadWorkerMessageHandler",get:function(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(t){return null}}},{key:"_setupFakeWorkerGlobal",get:function get(){var _this15=this,loader=function(){var _ref15=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(){var mainWorkerMessageHandler,worker;return _regeneratorRuntime().wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:if(mainWorkerMessageHandler=_this15._mainThreadWorkerMessageHandler,!mainWorkerMessageHandler){_context3.next=3;break}return _context3.abrupt("return",mainWorkerMessageHandler);case 3:if(!_util.isNodeJS){_context3.next=6;break}return worker=eval("require")(_this15.workerSrc),_context3.abrupt("return",worker.WorkerMessageHandler);case 6:return _context3.next=8,(0,_display_utils.loadScript)(_this15.workerSrc);case 8:return _context3.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context3.stop()}}),_callee3)})));return function(){return _ref15.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}]),PDFWorker}(),_workerPorts={writable:!0,value:void 0};exports.PDFWorker=PDFWorker;var _methodPromises=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_passwordCapability=new WeakMap,_cacheSimpleMethod=new WeakSet,WorkerTransport=function(){function e(t,n,r,a,i){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,_cacheSimpleMethod),_classPrivateFieldInitSpec(this,_methodPromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_passwordCapability,{writable:!0,value:null}),this.messageHandler=t,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this._params=a,this.canvasFactory=i.canvasFactory,this.filterFactory=i.filterFactory,this.cMapReaderFactory=i.cMapReaderFactory,this.standardFontDataFactory=i.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}return _createClass(e,[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"getRenderingIntent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=_util.RenderingIntentFlag.DISPLAY,i=_annotation_storage.SerializableEmpty;switch(e){case"any":a=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":a=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:a+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:a+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:i=((a+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE)&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return r&&(a+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:a,cacheKey:"".concat(a,"_").concat(i.hash),annotationStorageSerializable:i}}},{key:"destroy",value:function(){var e,t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,null===(e=_classPrivateFieldGet(this,_passwordCapability))||void 0===e||e.reject(new Error("Worker was destroyed during onPassword callback"));var n,r=[],a=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values());try{for(a.s();!(n=a.n()).done;){var i=n.value;r.push(i._destroy())}}catch(l){a.e(l)}finally{a.f()}_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var s=this.messageHandler.sendWithPromise("Terminate",null);return r.push(s),Promise.all(r).then((function(){var e;t.commonObjs.clear(),t.fontLoader.clear(),_classPrivateFieldGet(t,_methodPromises).clear(),t.filterFactory.destroy(),null===(e=t._networkStream)||void 0===e||e.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,n=this.loadingTask;t.on("GetReader",(function(t,n){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},n.onPull=function(){e._fullReader.read().then((function(e){var t=e.value;e.done?n.close():((0,_util.assert)(t instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){n.error(e)}))},n.onCancel=function(t){e._fullReader.cancel(t),n.ready.catch((function(t){if(!e.destroyed)throw t}))}})),t.on("ReaderHeadersReady",(function(t){var r=new _util.PromiseCapability,a=e._fullReader;return a.headersReady.then((function(){var t;a.isStreamingSupported&&a.isRangeSupported||(e._lastProgress&&(null===(t=n.onProgress)||void 0===t||t.call(n,e._lastProgress)),a.onProgress=function(e){var t;null===(t=n.onProgress)||void 0===t||t.call(n,{loaded:e.loaded,total:e.total})});r.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),r.reject),r.promise})),t.on("GetRangeReader",(function(t,n){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=e._networkStream.getRangeReader(t.begin,t.end);r?(n.onPull=function(){r.read().then((function(e){var t=e.value;e.done?n.close():((0,_util.assert)(t instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){n.error(e)}))},n.onCancel=function(t){r.cancel(t),n.ready.catch((function(t){if(!e.destroyed)throw t}))}):n.close()})),t.on("GetDoc",(function(t){var r=t.pdfInfo;e._numPages=r.numPages,e._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,n._capability.resolve(new PDFDocumentProxy(r,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}n._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(_classPrivateFieldSet(e,_passwordCapability,new _util.PromiseCapability),n.onPassword)try{n.onPassword((function(t){t instanceof Error?_classPrivateFieldGet(e,_passwordCapability).reject(t):_classPrivateFieldGet(e,_passwordCapability).resolve({password:t})}),t.code)}catch(r){_classPrivateFieldGet(e,_passwordCapability).reject(r)}else _classPrivateFieldGet(e,_passwordCapability).reject(new _util.PasswordException(t.message,t.code));return _classPrivateFieldGet(e,_passwordCapability).promise})),t.on("DataLoaded",(function(t){var r;null===(r=n.onProgress)||void 0===r||r.call(n,{loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){e.destroyed||_classPrivateFieldGet(e,_pageCache).get(t.pageIndex)._startRenderPage(t.transparency,t.cacheKey)})),t.on("commonobj",(function(n){var r,a=_slicedToArray(n,3),i=a[0],s=a[1],l=a[2];if(!e.destroyed&&!e.commonObjs.has(i))switch(s){case"Font":var o=e._params;if("error"in l){var c=l.error;(0,_util.warn)("Error during font loading: ".concat(c)),e.commonObjs.resolve(i,c);break}var u=o.pdfBug&&null!==(r=globalThis.FontInspector)&&void 0!==r&&r.enabled?function(e,t){return globalThis.FontInspector.fontAdded(e,t)}:null,d=new _font_loader.FontFaceObject(l,{isEvalSupported:o.isEvalSupported,disableFontFace:o.disableFontFace,ignoreErrors:o.ignoreErrors,inspectFont:u});e.fontLoader.bind(d).catch((function(e){return t.sendWithPromise("FontFallback",{id:i})})).finally((function(){!o.fontExtraProperties&&d.data&&(d.data=null),e.commonObjs.resolve(i,d)}));break;case"FontPath":case"Image":case"Pattern":e.commonObjs.resolve(i,l);break;default:throw new Error("Got unknown common object type ".concat(s))}})),t.on("obj",(function(t){var n=_slicedToArray(t,4),r=n[0],a=n[1],i=n[2],s=n[3];if(!e.destroyed){var l=_classPrivateFieldGet(e,_pageCache).get(a);if(!l.objs.has(r))switch(i){case"Image":var o;if(l.objs.resolve(r,s),s)(s.bitmap?s.width*s.height*4:(null===(o=s.data)||void 0===o?void 0:o.length)||0)>_util.MAX_IMAGE_SIZE_TO_CACHE&&(l._maybeCleanupAfterRender=!0);break;case"Pattern":l.objs.resolve(r,s);break;default:throw new Error("Got unknown object type ".concat(i))}}})),t.on("DocProgress",(function(t){var r;e.destroyed||null===(r=n.onProgress)||void 0===r||r.call(n,{loaded:t.loaded,total:t.total})})),t.on("FetchBuiltInCMap",(function(t){return e.destroyed?Promise.reject(new Error("Worker was destroyed.")):e.cMapReaderFactory?e.cMapReaderFactory.fetch(t):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))})),t.on("FetchStandardFontData",(function(t){return e.destroyed?Promise.reject(new Error("Worker was destroyed.")):e.standardFontDataFactory?e.standardFontDataFactory.fetch(t):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))}))}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"saveDocument",value:function(){var e,t,n=this;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");var r=this.annotationStorage.serializable,a=r.map,i=r.transfers;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:a,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null},i).finally((function(){n.annotationStorage.resetModified()}))}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));var n=e-1,r=_classPrivateFieldGet(this,_pagePromises).get(n);if(r)return r;var a=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,e,t,t._params.pdfBug);return _classPrivateFieldGet(t,_pageCache).set(n,r),r}));return _classPrivateFieldGet(this,_pagePromises).set(n,a),a}},{key:"getPageIndex",value:function(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getFieldObjects",value:function(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"GetFieldObjects")}},{key:"hasJSActions",value:function(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"HasJSActions")}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getDocJSActions",value:function(){return _classPrivateMethodGet(this,_cacheSimpleMethod,_cacheSimpleMethod2).call(this,"GetDocJSActions")}},{key:"getPageJSActions",value:function(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}},{key:"getStructTree",value:function(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((function(e){return new _optional_content_config.OptionalContentConfig(e)}))}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this,t="GetMetadata",n=_classPrivateFieldGet(this,_methodPromises).get(t);if(n)return n;var r=this.messageHandler.sendWithPromise(t,null).then((function(t){var n,r,a,i;return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:null!==(n=null===(r=e._fullReader)||void 0===r?void 0:r.filename)&&void 0!==n?n:null,contentLength:null!==(a=null===(i=e._fullReader)||void 0===i?void 0:i.contentLength)&&void 0!==a?a:null}}));return _classPrivateFieldGet(this,_methodPromises).set(t,r),r}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"startCleanup",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n,r,a,i=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]&&i[0],!this.destroyed){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.messageHandler.sendWithPromise("Cleanup",null);case 5:n=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values()),e.prev=6,n.s();case 8:if((r=n.n()).done){e.next=15;break}if((a=r.value).cleanup()){e.next=13;break}throw new Error("startCleanup: Page ".concat(a.pageNumber," is currently rendering."));case 13:e.next=8;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(6),n.e(e.t0);case 20:return e.prev=20,n.f(),e.finish(20);case 23:this.commonObjs.clear(),t||this.fontLoader.clear(),_classPrivateFieldGet(this,_methodPromises).clear(),this.filterFactory.destroy(!0);case 27:case"end":return e.stop()}}),e,this,[[6,17,20,23]])})));return function(){return e.apply(this,arguments)}}()},{key:"loadingParams",get:function(){var e=this._params,t=e.disableAutoFetch,n=e.enableXfa;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t,enableXfa:n})}}]),e}();function _cacheSimpleMethod2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=_classPrivateFieldGet(this,_methodPromises).get(e);if(n)return n;var r=this.messageHandler.sendWithPromise(e,t);return _classPrivateFieldGet(this,_methodPromises).set(e,r),r}var _objs=new WeakMap,_ensureObj=new WeakSet,PDFObjects=function(){function e(){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,_ensureObj),_classPrivateFieldInitSpec(this,_objs,{writable:!0,value:Object.create(null)})}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){var n=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);return n.capability.promise.then((function(){return t(n.data)})),null}var r=_classPrivateFieldGet(this,_objs)[e];if(null===r||void 0===r||!r.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return r.data}},{key:"has",value:function(e){var t=_classPrivateFieldGet(this,_objs)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);n.data=t,n.capability.resolve()}},{key:"clear",value:function(){for(var e in _classPrivateFieldGet(this,_objs)){var t,n=_classPrivateFieldGet(this,_objs)[e].data;null===n||void 0===n||null===(t=n.bitmap)||void 0===t||t.close()}_classPrivateFieldSet(this,_objs,Object.create(null))}}]),e}();function _ensureObj2(e){var t;return(t=_classPrivateFieldGet(this,_objs))[e]||(t[e]={capability:new _util.PromiseCapability,data:null})}var _internalRenderTask=new WeakMap,RenderTask=function(){function e(t){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:!0,value:null}),_classPrivateFieldSet(this,_internalRenderTask,t),this.onContinue=null}return _createClass(e,[{key:"promise",get:function(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;_classPrivateFieldGet(this,_internalRenderTask).cancel(null,e)}},{key:"separateAnnots",get:function(){var e=_classPrivateFieldGet(this,_internalRenderTask).operatorList.separateAnnots;if(!e)return!1;var t=_classPrivateFieldGet(this,_internalRenderTask).annotationCanvasMap;return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}]),e}();exports.RenderTask=RenderTask;var InternalRenderTask=function(){function e(t){var n=t.callback,r=t.params,a=t.objs,i=t.commonObjs,s=t.annotationCanvasMap,l=t.operatorList,o=t.pageIndex,c=t.canvasFactory,u=t.filterFactory,d=t.useRequestAnimationFrame,h=void 0!==d&&d,f=t.pdfBug,p=void 0!==f&&f,v=t.pageColors,m=void 0===v?null:v;_classCallCheck(this,e),this.callback=n,this.params=r,this.objs=a,this.commonObjs=i,this.annotationCanvasMap=s,this.operatorListIdx=null,this.operatorList=l,this._pageIndex=o,this.canvasFactory=c,this.filterFactory=u,this._pdfBug=p,this.pageColors=m,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!==typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(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=r.canvasContext.canvas}return _createClass(e,[{key:"completed",get:function(){return this.capability.promise.catch((function(){}))}},{key:"initializeGraphics",value:function(t){var n,r,a=t.transparency,i=void 0!==a&&a,s=t.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(_classStaticPrivateFieldSpecGet(e,e,_canvasInUse).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.");_classStaticPrivateFieldSpecGet(e,e,_canvasInUse).add(this._canvas)}this._pdfBug&&null!==(n=globalThis.StepperManager)&&void 0!==n&&n.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var l=this.params,o=l.canvasContext,c=l.viewport,u=l.transform,d=l.background;this.gfx=new _canvas.CanvasGraphics(o,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:s},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:u,viewport:c,transparency:i,background:d}),this.operatorListIdx=0,this.graphicsReady=!0,null===(r=this.graphicsReadyCallback)||void 0===r||r.call(this)}}},{key:"cancel",value:function(){var t,n=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(),_classStaticPrivateFieldSpecGet(e,e,_canvasInUse).delete(this._canvas),this.callback(n||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),r))}},{key:"operatorListChanged",value:function(){var e;this.graphicsReady?(null===(e=this.stepper)||void 0===e||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound().catch(e._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),_classStaticPrivateFieldSpecGet(e,e,_canvasInUse).delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),e}(),_canvasInUse={writable:!0,value:new WeakSet},version="3.11.174";exports.version=version;var build="ce8716743";exports.build=build},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var r=n(1),a=n(4),i=n(8),s=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=s;var l=new WeakMap,o=new WeakMap,c=new WeakSet,u=function(){function e(){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,c),_classPrivateFieldInitSpec(this,l,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,o,{writable:!0,value:new Map}),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}return _createClass(e,[{key:"getValue",value:function(e,t){var n=_classPrivateFieldGet(this,o).get(e);return void 0===n?t:Object.assign(t,n)}},{key:"getRawValue",value:function(e){return _classPrivateFieldGet(this,o).get(e)}},{key:"remove",value:function(e){if(_classPrivateFieldGet(this,o).delete(e),0===_classPrivateFieldGet(this,o).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){var t,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,o).values());try{for(n.s();!(t=n.n()).done;)if(t.value instanceof a.AnnotationEditor)return}catch(r){n.e(r)}finally{n.f()}this.onAnnotationEditor(null)}}},{key:"setValue",value:function(e,t){var n=_classPrivateFieldGet(this,o).get(e),r=!1;if(void 0!==n)for(var i=0,s=Object.entries(t);i0?(0,r.objectFromMap)(_classPrivateFieldGet(this,o)):null}},{key:"setAll",value:function(e){for(var t=0,n=Object.entries(e);t0?{map:t,hash:n.hexdigest(),transfers:r}:s}}]),e}();function d(){_classPrivateFieldGet(this,l)||(_classPrivateFieldSet(this,l,!0),"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=u;var h=new WeakMap,f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;_classCallCheck(this,n),r=t.call(this),_classPrivateFieldInitSpec(_assertThisInitialized(r),h,{writable:!0,value:void 0});var a=e.serializable,i=a.map,s=a.hash,l=a.transfers,o=structuredClone(i,l?{transfer:l}:null);return _classPrivateFieldSet(_assertThisInitialized(r),h,{map:o,hash:s,transfers:l}),r}return _createClass(n,[{key:"print",get:function(){(0,r.unreachable)("Should not call PrintAnnotationStorage.print")}},{key:"serializable",get:function(){return _classPrivateFieldGet(this,h)}}]),n}(u);t.PrintAnnotationStorage=f},function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var a=n(5),i=n(1),s=n(6),l=new WeakMap,o=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,x=new WeakMap,b=new WeakMap,_=new WeakSet,w=new WeakSet,k=new WeakSet,S=new WeakSet,P=new WeakSet,C=new WeakSet,A=new WeakSet,j=new WeakSet,E=function(){function e(t){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,j),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,P),_classPrivateMethodInitSpec(this,S),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,_),_classPrivateFieldInitSpec(this,l,{writable:!0,value:""}),_classPrivateFieldInitSpec(this,o,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:this.focusin.bind(this)}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:this.focusout.bind(this)}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:!1}),_defineProperty(this,"_initialOptions",Object.create(null)),_defineProperty(this,"_uiManager",null),_defineProperty(this,"_focusEventsAllowed",!0),_defineProperty(this,"_l10nPromise",null),_classPrivateFieldInitSpec(this,x,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:e._zIndex++}),this.constructor===e&&(0,i.unreachable)("Cannot initialize AnnotationEditor."),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;var n=this.parent.viewport,r=n.rotation,a=n.rawDims,s=a.pageWidth,E=a.pageHeight,F=a.pageX,N=a.pageY;this.rotation=r,this.pageRotation=(360+r-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[s,E],this.pageTranslation=[F,N];var T=_slicedToArray(this.parentDimensions,2),M=T[0],I=T[1];this.x=t.x/M,this.y=t.y/I,this.isAttachedToDOM=!1,this.deleted=!1}return _createClass(e,[{key:"editorType",get:function(){return Object.getPrototypeOf(this).constructor._type}},{key:"propertiesToUpdate",get:function(){return[]}},{key:"_isDraggable",get:function(){return _classPrivateFieldGet(this,x)},set:function(e){var t;_classPrivateFieldSet(this,x,e),null===(t=this.div)||void 0===t||t.classList.toggle("draggable",e)}},{key:"center",value:function(){var e=_slicedToArray(this.pageDimensions,2),t=e[0],n=e[1];switch(this.parentRotation){case 90:this.x-=this.height*n/(2*t),this.y+=this.width*t/(2*n);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*n/(2*t),this.y-=this.width*t/(2*n);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}},{key:"addCommands",value:function(e){this._uiManager.addCommands(e)}},{key:"currentLayer",get:function(){return this._uiManager.currentLayer}},{key:"setInBackground",value:function(){this.div.style.zIndex=0}},{key:"setInForeground",value:function(){this.div.style.zIndex=_classPrivateFieldGet(this,b)}},{key:"setParent",value:function(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}},{key:"focusin",value:function(e){this._focusEventsAllowed&&(_classPrivateFieldGet(this,m)?_classPrivateFieldSet(this,m,!1):this.parent.setSelected(this))}},{key:"focusout",value:function(e){var t;if(this._focusEventsAllowed&&this.isAttachedToDOM){var n=e.relatedTarget;null!==n&&void 0!==n&&n.closest("#".concat(this.id))||(e.preventDefault(),null!==(t=this.parent)&&void 0!==t&&t.isMultipleSelection||this.commitOrRemove())}}},{key:"commitOrRemove",value:function(){this.isEmpty()?this.remove():this.commit()}},{key:"commit",value:function(){this.addToAnnotationStorage()}},{key:"addToAnnotationStorage",value:function(){this._uiManager.addToAnnotationStorage(this)}},{key:"setAt",value:function(e,t,n,r){var a=_slicedToArray(this.parentDimensions,2),i=a[0],s=a[1],l=this.screenToPageTranslation(n,r),o=_slicedToArray(l,2);n=o[0],r=o[1],this.x=(e+n)/i,this.y=(t+r)/s,this.fixAndSetPosition()}},{key:"translate",value:function(e,t){_classPrivateMethodGet(this,_,F).call(this,this.parentDimensions,e,t)}},{key:"translateInPage",value:function(e,t){_classPrivateMethodGet(this,_,F).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}},{key:"drag",value:function(e,t){var n=_slicedToArray(this.parentDimensions,2),r=n[0],a=n[1];if(this.x+=e/r,this.y+=t/a,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){var i=this.div.getBoundingClientRect(),s=i.x,l=i.y;this.parent.findNewParent(this,s,l)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}var o=this.x,c=this.y,u=_classPrivateMethodGet(this,w,N).call(this),d=_slicedToArray(u,2);o+=d[0],c+=d[1],this.div.style.left="".concat((100*o).toFixed(2),"%"),this.div.style.top="".concat((100*c).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}},{key:"fixAndSetPosition",value:function(){var e=_slicedToArray(this.pageDimensions,2),t=e[0],n=e[1],r=this.x,a=this.y,i=this.width,s=this.height;switch(i*=t,s*=n,r*=t,a*=n,this.rotation){case 0:r=Math.max(0,Math.min(t-i,r)),a=Math.max(0,Math.min(n-s,a));break;case 90:r=Math.max(0,Math.min(t-s,r)),a=Math.min(n,Math.max(i,a));break;case 180:r=Math.min(t,Math.max(i,r)),a=Math.min(n,Math.max(s,a));break;case 270:r=Math.min(t,Math.max(s,r)),a=Math.max(0,Math.min(n-i,a))}this.x=r/=t,this.y=a/=n;var l=_classPrivateMethodGet(this,w,N).call(this),o=_slicedToArray(l,2);r+=o[0],a+=o[1];var c=this.div.style;c.left="".concat((100*r).toFixed(2),"%"),c.top="".concat((100*a).toFixed(2),"%"),this.moveInDOM()}},{key:"screenToPageTranslation",value:function(t,n){return _classStaticPrivateMethodGet(e,e,T).call(e,t,n,this.parentRotation)}},{key:"pageTranslationToScreen",value:function(t,n){return _classStaticPrivateMethodGet(e,e,T).call(e,t,n,360-this.parentRotation)}},{key:"parentScale",get:function(){return this._uiManager.viewParameters.realScale}},{key:"parentRotation",get:function(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}},{key:"parentDimensions",get:function(){var e=this.parentScale,t=_slicedToArray(this.pageDimensions,2),n=t[0]*e,r=t[1]*e;return i.FeatureTest.isCSSRoundSupported?[Math.round(n),Math.round(r)]:[n,r]}},{key:"setDims",value:function(t,n){var r,a=_slicedToArray(this.parentDimensions,2),i=a[0],s=a[1];this.div.style.width="".concat((100*t/i).toFixed(2),"%"),_classPrivateFieldGet(this,h)||(this.div.style.height="".concat((100*n/s).toFixed(2),"%")),null===(r=_classPrivateFieldGet(this,c))||void 0===r||r.classList.toggle("small",t1&&void 0!==arguments[1]?arguments[1]:null;if(e._l10nPromise||(e._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((function(e){return[e,t.get(e)]})))),null!==n&&void 0!==n&&n.strings){var r,a=_createForOfIteratorHelper(n.strings);try{for(a.s();!(r=a.n()).done;){var i=r.value;e._l10nPromise.set(i,t.get(i))}}catch(l){a.e(l)}finally{a.f()}}if(-1===e._borderLineWidth){var s=getComputedStyle(document.documentElement);e._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}}},{key:"updateDefaultParams",value:function(e,t){}},{key:"defaultPropertiesToUpdate",get:function(){return[]}},{key:"isHandlingMimeForPasting",value:function(e){return!1}},{key:"paste",value:function(e,t){(0,i.unreachable)("Not implemented")}},{key:"deserialize",value:function(e,t,n){var r=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n});r.rotation=e.rotation;var a=_slicedToArray(r.pageDimensions,2),i=a[0],s=a[1],l=r.getRectInCurrentCoords(e.rect,s),o=_slicedToArray(l,4),c=o[0],u=o[1],d=o[2],h=o[3];return r.x=c/i,r.y=u/s,r.width=d/i,r.height=h/s,r}},{key:"MIN_SIZE",get:function(){return 16}}]),e}();function F(e,t,n){var r=_slicedToArray(e,2),a=r[0],i=r[1],s=this.screenToPageTranslation(t,n),l=_slicedToArray(s,2);t=l[0],n=l[1],this.x+=t/a,this.y+=n/i,this.fixAndSetPosition()}function N(){var e=_slicedToArray(this.parentDimensions,2),t=e[0],n=e[1],a=r._borderLineWidth,i=a/t,s=a/n;switch(this.rotation){case 90:return[-i,s];case 180:return[i,s];case 270:return[i,-s];default:return[-i,-s]}}function T(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function M(e){switch(e){case 90:var t=_slicedToArray(this.pageDimensions,2),n=t[0],r=t[1];return[0,-n/r,r/n,0];case 180:return[-1,0,0,-1];case 270:var a=_slicedToArray(this.pageDimensions,2),i=a[0],s=a[1];return[0,i/s,-s/i,0];default:return[1,0,0,1]}}function I(){if(!_classPrivateFieldGet(this,f)){_classPrivateFieldSet(this,f,document.createElement("div")),_classPrivateFieldGet(this,f).classList.add("resizers");var e=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(var t=0,n=e;t0&&void 0!==arguments[0]?arguments[0]:128;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,v,{writable:!0,value:[]}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:-1}),_classPrivateFieldSet(this,g,t)}return _createClass(e,[{key:"add",value:function(e){var t=e.cmd,n=e.undo,r=e.mustExec,a=e.type,i=void 0===a?NaN:a,s=e.overwriteIfSameType,l=void 0!==s&&s,o=e.keepUndo,c=void 0!==o&&o;if(r&&t(),!_classPrivateFieldGet(this,m)){var u={cmd:t,undo:n,type:i};if(-1===_classPrivateFieldGet(this,y))return _classPrivateFieldGet(this,v).length>0&&(_classPrivateFieldGet(this,v).length=0),_classPrivateFieldSet(this,y,0),void _classPrivateFieldGet(this,v).push(u);if(l&&_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,y)].type===i)return c&&(u.undo=_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,y)].undo),void(_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,y)]=u);var d=_classPrivateFieldGet(this,y)+1;d===_classPrivateFieldGet(this,g)?_classPrivateFieldGet(this,v).splice(0,1):(_classPrivateFieldSet(this,y,d),d<_classPrivateFieldGet(this,v).length&&_classPrivateFieldGet(this,v).splice(d)),_classPrivateFieldGet(this,v).push(u)}}},{key:"undo",value:function(){-1!==_classPrivateFieldGet(this,y)&&(_classPrivateFieldSet(this,m,!0),_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,y)].undo(),_classPrivateFieldSet(this,m,!1),_classPrivateFieldSet(this,y,_classPrivateFieldGet(this,y)-1))}},{key:"redo",value:function(){_classPrivateFieldGet(this,y)<_classPrivateFieldGet(this,v).length-1&&(_classPrivateFieldSet(this,y,_classPrivateFieldGet(this,y)+1),_classPrivateFieldSet(this,m,!0),_classPrivateFieldGet(this,v)[_classPrivateFieldGet(this,y)].cmd(),_classPrivateFieldSet(this,m,!1))}},{key:"hasSomethingToUndo",value:function(){return-1!==_classPrivateFieldGet(this,y)}},{key:"hasSomethingToRedo",value:function(){return _classPrivateFieldGet(this,y)<_classPrivateFieldGet(this,v).length-1}},{key:"destroy",value:function(){_classPrivateFieldSet(this,v,null)}}]),e}();t.CommandManager=x;var b=new WeakSet,_=function(){function e(t){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,b),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;var n,r=a.FeatureTest.platform.isMac,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var s,l=_slicedToArray(n.value,3),o=l[0],c=l[1],u=l[2],d=void 0===u?{}:u,h=_createForOfIteratorHelper(o);try{for(h.s();!(s=h.n()).done;){var f=s.value,p=f.startsWith("mac+");r&&p?(this.callbacks.set(f.slice(4),{callback:c,options:d}),this.allKeys.add(f.split("+").at(-1))):r||p||(this.callbacks.set(f,{callback:c,options:d}),this.allKeys.add(f.split("+").at(-1)))}}catch(v){h.e(v)}finally{h.f()}}}catch(v){i.e(v)}finally{i.f()}}return _createClass(e,[{key:"exec",value:function(e,t){if(this.allKeys.has(t.key)){var n=this.callbacks.get(_classPrivateMethodGet(this,b,w).call(this,t));if(n){var r=n.callback,a=n.options,i=a.bubbles,s=void 0!==i&&i,l=a.args,o=void 0===l?[]:l,c=a.checker,u=void 0===c?null:c;u&&!u(e,t)||(r.bind.apply(r,[e].concat(_toConsumableArray(o)))(),s||(t.stopPropagation(),t.preventDefault()))}}}}]),e}();function w(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);var t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=_;var k=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"_colors",get:function(){var e=new Map([["CanvasText",null],["Canvas",null]]);return(0,i.getColorValues)(e),(0,a.shadow)(this,"_colors",e)}},{key:"convert",value:function(t){var n=(0,i.getRGB)(t);if(!window.matchMedia("(forced-colors: active)").matches)return n;var r,a=_createForOfIteratorHelper(this._colors);try{for(a.s();!(r=a.n()).done;){var s=_slicedToArray(r.value,2),l=s[0];if(s[1].every((function(e,t){return e===n[t]})))return e._colorsMapping.get(l)}}catch(o){a.e(o)}finally{a.f()}return n}},{key:"getHexCode",value:function(e){var t,n=this._colors.get(e);return n?(t=a.Util).makeHexColor.apply(t,_toConsumableArray(n)):e}}]),e}();_defineProperty(k,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=k;var S=new WeakMap,P=new WeakMap,C=new WeakMap,A=new WeakMap,j=new WeakMap,E=new WeakMap,F=new WeakMap,N=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,R=new WeakMap,O=new WeakMap,L=new WeakMap,D=new WeakMap,G=new WeakMap,z=new WeakMap,B=new WeakMap,H=new WeakMap,W=new WeakMap,U=new WeakMap,q=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap,K=new WeakMap,J=new WeakMap,Q=new WeakMap,Z=new WeakMap,$=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakMap,ae=new WeakSet,ie=new WeakSet,se=new WeakSet,le=new WeakSet,oe=new WeakSet,ce=new WeakSet,ue=new WeakSet,de=new WeakSet,he=new WeakSet,fe=new WeakSet,pe=new WeakSet,ve=new WeakSet,me=new WeakSet,ge=function(){function e(t,n,r,s,o,c){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,me),_classPrivateMethodInitSpec(this,ve),_classPrivateMethodInitSpec(this,pe),_classPrivateMethodInitSpec(this,fe),_classPrivateMethodInitSpec(this,he),_classPrivateMethodInitSpec(this,de),_classPrivateMethodInitSpec(this,ue),_classPrivateMethodInitSpec(this,ce),_classPrivateMethodInitSpec(this,oe),_classPrivateMethodInitSpec(this,le),_classPrivateMethodInitSpec(this,se),_classPrivateMethodInitSpec(this,ie),_classPrivateMethodInitSpec(this,ae),_classPrivateFieldInitSpec(this,S,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,P,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,C,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,A,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,j,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,E,{writable:!0,value:new x}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,O,{writable:!0,value:new l}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,z,{writable:!0,value:a.AnnotationEditorType.NONE}),_classPrivateFieldInitSpec(this,B,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,H,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,W,{writable:!0,value:this.blur.bind(this)}),_classPrivateFieldInitSpec(this,U,{writable:!0,value:this.focus.bind(this)}),_classPrivateFieldInitSpec(this,q,{writable:!0,value:this.copy.bind(this)}),_classPrivateFieldInitSpec(this,V,{writable:!0,value:this.cut.bind(this)}),_classPrivateFieldInitSpec(this,X,{writable:!0,value:this.paste.bind(this)}),_classPrivateFieldInitSpec(this,Y,{writable:!0,value:this.keydown.bind(this)}),_classPrivateFieldInitSpec(this,K,{writable:!0,value:this.onEditingAction.bind(this)}),_classPrivateFieldInitSpec(this,J,{writable:!0,value:this.onPageChanging.bind(this)}),_classPrivateFieldInitSpec(this,Q,{writable:!0,value:this.onScaleChanging.bind(this)}),_classPrivateFieldInitSpec(this,Z,{writable:!0,value:this.onRotationChanging.bind(this)}),_classPrivateFieldInitSpec(this,$,{writable:!0,value:{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}}),_classPrivateFieldInitSpec(this,ee,{writable:!0,value:[0,0]}),_classPrivateFieldInitSpec(this,te,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,ne,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,re,{writable:!0,value:null}),_classPrivateFieldSet(this,ne,t),_classPrivateFieldSet(this,re,n),_classPrivateFieldSet(this,A,r),this._eventBus=s,this._eventBus._on("editingaction",_classPrivateFieldGet(this,K)),this._eventBus._on("pagechanging",_classPrivateFieldGet(this,J)),this._eventBus._on("scalechanging",_classPrivateFieldGet(this,Q)),this._eventBus._on("rotationchanging",_classPrivateFieldGet(this,Z)),_classPrivateFieldSet(this,j,o.annotationStorage),_classPrivateFieldSet(this,R,o.filterFactory),_classPrivateFieldSet(this,H,c),this.viewParameters={realScale:i.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}return _createClass(e,[{key:"destroy",value:function(){_classPrivateMethodGet(this,le,_e).call(this),_classPrivateMethodGet(this,ie,xe).call(this),this._eventBus._off("editingaction",_classPrivateFieldGet(this,K)),this._eventBus._off("pagechanging",_classPrivateFieldGet(this,J)),this._eventBus._off("scalechanging",_classPrivateFieldGet(this,Q)),this._eventBus._off("rotationchanging",_classPrivateFieldGet(this,Z));var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,C).values());try{for(t.s();!(e=t.n()).done;)e.value.destroy()}catch(n){t.e(n)}finally{t.f()}_classPrivateFieldGet(this,C).clear(),_classPrivateFieldGet(this,P).clear(),_classPrivateFieldGet(this,I).clear(),_classPrivateFieldSet(this,S,null),_classPrivateFieldGet(this,B).clear(),_classPrivateFieldGet(this,E).destroy(),_classPrivateFieldGet(this,A).destroy()}},{key:"hcmFilter",get:function(){return(0,a.shadow)(this,"hcmFilter",_classPrivateFieldGet(this,H)?_classPrivateFieldGet(this,R).addHCMFilter(_classPrivateFieldGet(this,H).foreground,_classPrivateFieldGet(this,H).background):"none")}},{key:"direction",get:function(){return(0,a.shadow)(this,"direction",getComputedStyle(_classPrivateFieldGet(this,ne)).direction)}},{key:"editAltText",value:function(e){var t;null===(t=_classPrivateFieldGet(this,A))||void 0===t||t.editAltText(this,e)}},{key:"onPageChanging",value:function(e){var t=e.pageNumber;_classPrivateFieldSet(this,F,t-1)}},{key:"focusMainContainer",value:function(){_classPrivateFieldGet(this,ne).focus()}},{key:"findParent",value:function(e,t){var n,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,C).values());try{for(r.s();!(n=r.n()).done;){var a=n.value,i=a.div.getBoundingClientRect(),s=i.x,l=i.y,o=i.width,c=i.height;if(e>=s&&e<=s+o&&t>=l&&t<=l+c)return a}}catch(u){r.e(u)}finally{r.f()}return null}},{key:"disableUserSelect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldGet(this,re).classList.toggle("noUserSelect",e)}},{key:"addShouldRescale",value:function(e){_classPrivateFieldGet(this,I).add(e)}},{key:"removeShouldRescale",value:function(e){_classPrivateFieldGet(this,I).delete(e)}},{key:"onScaleChanging",value:function(e){var t=e.scale;this.commitOrRemove(),this.viewParameters.realScale=t*i.PixelsPerInch.PDF_TO_CSS_UNITS;var n,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,I));try{for(r.s();!(n=r.n()).done;)n.value.onScaleChanging()}catch(a){r.e(a)}finally{r.f()}}},{key:"onRotationChanging",value:function(e){var t=e.pagesRotation;this.commitOrRemove(),this.viewParameters.rotation=t}},{key:"addToAnnotationStorage",value:function(e){e.isEmpty()||!_classPrivateFieldGet(this,j)||_classPrivateFieldGet(this,j).has(e.id)||_classPrivateFieldGet(this,j).setValue(e.id,e)}},{key:"blur",value:function(){if(this.hasSelection){var e,t=document.activeElement,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,B));try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.div.contains(t)){_classPrivateFieldSet(this,G,[r,t]),r._focusEventsAllowed=!1;break}}}catch(a){n.e(a)}finally{n.f()}}}},{key:"focus",value:function(){if(_classPrivateFieldGet(this,G)){var e=_classPrivateFieldGet(this,G),t=_slicedToArray(e,2),n=t[0],r=t[1];_classPrivateFieldSet(this,G,null),r.addEventListener("focusin",(function(){n._focusEventsAllowed=!0}),{once:!0}),r.focus()}}},{key:"addEditListeners",value:function(){_classPrivateMethodGet(this,se,be).call(this),_classPrivateMethodGet(this,oe,we).call(this)}},{key:"removeEditListeners",value:function(){_classPrivateMethodGet(this,le,_e).call(this),_classPrivateMethodGet(this,ce,ke).call(this)}},{key:"copy",value:function(e){var t;if(e.preventDefault(),null===(t=_classPrivateFieldGet(this,S))||void 0===t||t.commitOrRemove(),this.hasSelection){var n,r=[],a=_createForOfIteratorHelper(_classPrivateFieldGet(this,B));try{for(a.s();!(n=a.n()).done;){var i=n.value.serialize(!0);i&&r.push(i)}}catch(s){a.e(s)}finally{a.f()}0!==r.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(r))}}},{key:"cut",value:function(e){this.copy(e),this.delete()}},{key:"paste",value:function(e){var t=this;e.preventDefault();var n,r=e.clipboardData,i=_createForOfIteratorHelper(r.items);try{for(i.s();!(n=i.n()).done;){var s,l=n.value,o=_createForOfIteratorHelper(_classPrivateFieldGet(this,M));try{for(o.s();!(s=o.n()).done;){var c=s.value;if(c.isHandlingMimeForPasting(l.type))return void c.paste(l,this.currentLayer)}}catch(g){o.e(g)}finally{o.f()}}}catch(g){i.e(g)}finally{i.f()}var u=r.getData("application/pdfjs");if(u){try{u=JSON.parse(u)}catch(y){return void(0,a.warn)('paste: "'.concat(y.message,'".'))}if(Array.isArray(u)){this.unselectAll();var d=this.currentLayer;try{var h,f=[],p=_createForOfIteratorHelper(u);try{for(p.s();!(h=p.n()).done;){var v=h.value,m=d.deserialize(v);if(!m)return;f.push(m)}}catch(g){p.e(g)}finally{p.f()}this.addCommands({cmd:function(){for(var e=0,n=f;e1&&void 0!==arguments[1]?arguments[1]:null;if(_classPrivateFieldGet(this,z)!==e){if(_classPrivateFieldSet(this,z,e),e===a.AnnotationEditorType.NONE)return this.setEditingState(!1),void _classPrivateMethodGet(this,fe,Ae).call(this);this.setEditingState(!0),_classPrivateMethodGet(this,he,Ce).call(this),this.unselectAll();var n,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,C).values());try{for(r.s();!(n=r.n()).done;)n.value.updateMode(e)}catch(o){r.e(o)}finally{r.f()}if(t){var i,s=_createForOfIteratorHelper(_classPrivateFieldGet(this,P).values());try{for(s.s();!(i=s.n()).done;){var l=i.value;if(l.annotationElementId===t){this.setSelected(l),l.enterInEditMode();break}}}catch(o){s.e(o)}finally{s.f()}}}}},{key:"updateToolbar",value:function(e){e!==_classPrivateFieldGet(this,z)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}},{key:"updateParams",value:function(e,t){if(_classPrivateFieldGet(this,M))if(e!==a.AnnotationEditorParamsType.CREATE){var n,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,B));try{for(r.s();!(n=r.n()).done;)n.value.updateParams(e,t)}catch(l){r.e(l)}finally{r.f()}var i,s=_createForOfIteratorHelper(_classPrivateFieldGet(this,M));try{for(s.s();!(i=s.n()).done;)i.value.updateDefaultParams(e,t)}catch(l){s.e(l)}finally{s.f()}}else this.currentLayer.addNewEditor(e)}},{key:"enableWaiting",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateFieldGet(this,D)!==e){_classPrivateFieldSet(this,D,e);var t,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,C).values());try{for(n.s();!(t=n.n()).done;){var r=t.value;e?r.disableClick():r.enableClick(),r.div.classList.toggle("waiting",e)}}catch(a){n.e(a)}finally{n.f()}}}},{key:"getEditors",value:function(e){var t,n=[],r=_createForOfIteratorHelper(_classPrivateFieldGet(this,P).values());try{for(r.s();!(t=r.n()).done;){var a=t.value;a.pageIndex===e&&n.push(a)}}catch(i){r.e(i)}finally{r.f()}return n}},{key:"getEditor",value:function(e){return _classPrivateFieldGet(this,P).get(e)}},{key:"addEditor",value:function(e){_classPrivateFieldGet(this,P).set(e.id,e)}},{key:"removeEditor",value:function(e){var t;_classPrivateFieldGet(this,P).delete(e.id),this.unselect(e),e.annotationElementId&&_classPrivateFieldGet(this,N).has(e.annotationElementId)||null===(t=_classPrivateFieldGet(this,j))||void 0===t||t.remove(e.id)}},{key:"addDeletedAnnotationElement",value:function(e){_classPrivateFieldGet(this,N).add(e.annotationElementId),e.deleted=!0}},{key:"isDeletedAnnotationElement",value:function(e){return _classPrivateFieldGet(this,N).has(e)}},{key:"removeDeletedAnnotationElement",value:function(e){_classPrivateFieldGet(this,N).delete(e.annotationElementId),e.deleted=!1}},{key:"setActiveEditor",value:function(e){_classPrivateFieldGet(this,S)!==e&&(_classPrivateFieldSet(this,S,e),e&&_classPrivateMethodGet(this,de,Pe).call(this,e.propertiesToUpdate))}},{key:"toggleSelected",value:function(e){if(_classPrivateFieldGet(this,B).has(e))return _classPrivateFieldGet(this,B).delete(e),e.unselect(),void _classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(this,B).add(e),e.select(),_classPrivateMethodGet(this,de,Pe).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}},{key:"setSelected",value:function(e){var t,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,B));try{for(n.s();!(t=n.n()).done;){var r=t.value;r!==e&&r.unselect()}}catch(a){n.e(a)}finally{n.f()}_classPrivateFieldGet(this,B).clear(),_classPrivateFieldGet(this,B).add(e),e.select(),_classPrivateMethodGet(this,de,Pe).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}},{key:"isSelected",value:function(e){return _classPrivateFieldGet(this,B).has(e)}},{key:"unselect",value:function(e){e.unselect(),_classPrivateFieldGet(this,B).delete(e),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:this.hasSelection})}},{key:"hasSelection",get:function(){return 0!==_classPrivateFieldGet(this,B).size}},{key:"undo",value:function(){_classPrivateFieldGet(this,E).undo(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:_classPrivateFieldGet(this,E).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_classPrivateMethodGet(this,ve,Ee).call(this)})}},{key:"redo",value:function(){_classPrivateFieldGet(this,E).redo(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(this,E).hasSomethingToRedo(),isEmpty:_classPrivateMethodGet(this,ve,Ee).call(this)})}},{key:"addCommands",value:function(e){_classPrivateFieldGet(this,E).add(e),_classPrivateMethodGet(this,ue,Se).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_classPrivateMethodGet(this,ve,Ee).call(this)})}},{key:"delete",value:function(){var e=this;if(this.commitOrRemove(),this.hasSelection){var t=_toConsumableArray(_classPrivateFieldGet(this,B));this.addCommands({cmd:function(){var e,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;)e.value.remove()}catch(r){n.e(r)}finally{n.f()}},undo:function(){var n,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;_classPrivateMethodGet(e,pe,je).call(e,a)}}catch(i){r.e(i)}finally{r.f()}},mustExec:!0})}}},{key:"commitOrRemove",value:function(){var e;null===(e=_classPrivateFieldGet(this,S))||void 0===e||e.commitOrRemove()}},{key:"hasSomethingToControl",value:function(){return _classPrivateFieldGet(this,S)||this.hasSelection}},{key:"selectAll",value:function(){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,B));try{for(t.s();!(e=t.n()).done;)e.value.commit()}catch(n){t.e(n)}finally{t.f()}_classPrivateMethodGet(this,me,Fe).call(this,_classPrivateFieldGet(this,P).values())}},{key:"unselectAll",value:function(){if(_classPrivateFieldGet(this,S))_classPrivateFieldGet(this,S).commitOrRemove();else if(this.hasSelection){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,B));try{for(t.s();!(e=t.n()).done;)e.value.unselect()}catch(n){t.e(n)}finally{t.f()}_classPrivateFieldGet(this,B).clear(),_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!1})}}},{key:"translateSelectedEditors",value:function(e,t){var n=this;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),this.hasSelection){_classPrivateFieldGet(this,ee)[0]+=e,_classPrivateFieldGet(this,ee)[1]+=t;var r=_classPrivateFieldGet(this,ee),a=_slicedToArray(r,2),i=a[0],s=a[1],l=_toConsumableArray(_classPrivateFieldGet(this,B));_classPrivateFieldGet(this,te)&&clearTimeout(_classPrivateFieldGet(this,te)),_classPrivateFieldSet(this,te,setTimeout((function(){_classPrivateFieldSet(n,te,null),_classPrivateFieldGet(n,ee)[0]=_classPrivateFieldGet(n,ee)[1]=0,n.addCommands({cmd:function(){var e,t=_createForOfIteratorHelper(l);try{for(t.s();!(e=t.n()).done;){var r=e.value;_classPrivateFieldGet(n,P).has(r.id)&&r.translateInPage(i,s)}}catch(a){t.e(a)}finally{t.f()}},undo:function(){var e,t=_createForOfIteratorHelper(l);try{for(t.s();!(e=t.n()).done;){var r=e.value;_classPrivateFieldGet(n,P).has(r.id)&&r.translateInPage(-i,-s)}}catch(a){t.e(a)}finally{t.f()}},mustExec:!1})}),1e3));var o,c=_createForOfIteratorHelper(l);try{for(c.s();!(o=c.n()).done;)o.value.translateInPage(e,t)}catch(u){c.e(u)}finally{c.f()}}}},{key:"setUpDragSession",value:function(){if(this.hasSelection){this.disableUserSelect(!0),_classPrivateFieldSet(this,T,new Map);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,B));try{for(t.s();!(e=t.n()).done;){var n=e.value;_classPrivateFieldGet(this,T).set(n,{savedX:n.x,savedY:n.y,savedPageIndex:n.pageIndex,newX:0,newY:0,newPageIndex:-1})}}catch(r){t.e(r)}finally{t.f()}}}},{key:"endDragSession",value:function(){var e=this;if(!_classPrivateFieldGet(this,T))return!1;this.disableUserSelect(!1);var t=_classPrivateFieldGet(this,T);_classPrivateFieldSet(this,T,null);var n,r=!1,a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var i=_slicedToArray(n.value,2),s=i[0],l=s.x,o=s.y,c=s.pageIndex,u=i[1];u.newX=l,u.newY=o,u.newPageIndex=c,r||(r=l!==u.savedX||o!==u.savedY||c!==u.savedPageIndex)}}catch(h){a.e(h)}finally{a.f()}if(!r)return!1;var d=function(t,n,r,a){if(_classPrivateFieldGet(e,P).has(t.id)){var i=_classPrivateFieldGet(e,C).get(a);i?t._setParentAndPosition(i,n,r):(t.pageIndex=a,t.x=n,t.y=r)}};return this.addCommands({cmd:function(){var e,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),a=r[0],i=r[1],s=i.newX,l=i.newY,o=i.newPageIndex;d(a,s,l,o)}}catch(h){n.e(h)}finally{n.f()}},undo:function(){var e,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),a=r[0],i=r[1],s=i.savedX,l=i.savedY,o=i.savedPageIndex;d(a,s,l,o)}}catch(h){n.e(h)}finally{n.f()}},mustExec:!0}),!0}},{key:"dragSelectedEditors",value:function(e,t){if(_classPrivateFieldGet(this,T)){var n,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,T).keys());try{for(r.s();!(n=r.n()).done;)n.value.drag(e,t)}catch(a){r.e(a)}finally{r.f()}}}},{key:"rebuild",value:function(e){if(null===e.parent){var t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}},{key:"isActive",value:function(e){return _classPrivateFieldGet(this,S)===e}},{key:"getActive",value:function(){return _classPrivateFieldGet(this,S)}},{key:"getMode",value:function(){return _classPrivateFieldGet(this,z)}},{key:"imageManager",get:function(){return(0,a.shadow)(this,"imageManager",new h)}}],[{key:"_keyboardManager",get:function(){var t=e.prototype,n=function(e){var t=document.activeElement;return t&&_classPrivateFieldGet(e,ne).contains(t)&&e.hasSomethingToControl()},r=this.TRANSLATE_SMALL,i=this.TRANSLATE_BIG;return(0,a.shadow)(this,"_keyboardManager",new _([[["ctrl+a","mac+meta+a"],t.selectAll],[["ctrl+z","mac+meta+z"],t.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-r,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:n}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[r,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:n}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-r],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:n}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,r],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:n}]]))}}]),e}();function ye(){window.addEventListener("focus",_classPrivateFieldGet(this,U)),window.addEventListener("blur",_classPrivateFieldGet(this,W))}function xe(){window.removeEventListener("focus",_classPrivateFieldGet(this,U)),window.removeEventListener("blur",_classPrivateFieldGet(this,W))}function be(){window.addEventListener("keydown",_classPrivateFieldGet(this,Y),{capture:!0})}function _e(){window.removeEventListener("keydown",_classPrivateFieldGet(this,Y),{capture:!0})}function we(){document.addEventListener("copy",_classPrivateFieldGet(this,q)),document.addEventListener("cut",_classPrivateFieldGet(this,V)),document.addEventListener("paste",_classPrivateFieldGet(this,X))}function ke(){document.removeEventListener("copy",_classPrivateFieldGet(this,q)),document.removeEventListener("cut",_classPrivateFieldGet(this,V)),document.removeEventListener("paste",_classPrivateFieldGet(this,X))}function Se(e){var t=this;Object.entries(e).some((function(e){var n=_slicedToArray(e,2),r=n[0],a=n[1];return _classPrivateFieldGet(t,$)[r]!==a}))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(this,$),e)})}function Pe(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}function Ce(){if(!_classPrivateFieldGet(this,L)){_classPrivateFieldSet(this,L,!0);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,C).values());try{for(t.s();!(e=t.n()).done;)e.value.enable()}catch(n){t.e(n)}finally{t.f()}}}function Ae(){if(this.unselectAll(),_classPrivateFieldGet(this,L)){_classPrivateFieldSet(this,L,!1);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,C).values());try{for(t.s();!(e=t.n()).done;)e.value.disable()}catch(n){t.e(n)}finally{t.f()}}}function je(e){var t=_classPrivateFieldGet(this,C).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function Ee(){if(0===_classPrivateFieldGet(this,P).size)return!0;if(1===_classPrivateFieldGet(this,P).size){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,P).values());try{for(t.s();!(e=t.n()).done;)return e.value.isEmpty()}catch(n){t.e(n)}finally{t.f()}}return!1}function Fe(e){_classPrivateFieldGet(this,B).clear();var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.isEmpty()||(_classPrivateFieldGet(this,B).add(r),r.select())}}catch(a){n.e(a)}finally{n.f()}_classPrivateMethodGet(this,ue,Se).call(this,{hasSelectedEditor:!0})}_defineProperty(ge,"TRANSLATE_SMALL",1),_defineProperty(ge,"TRANSLATE_BIG",10),t.AnnotationEditorUIManager=ge},function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){var t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);var n,r=_createForOfIteratorHelper(e.keys());try{for(r.s();!(n=r.n()).done;){var a=n.value;t.style.color=a;var i=window.getComputedStyle(t).color;e.set(a,X(i))}}catch(s){r.e(s)}finally{r.f()}t.remove()},t.getCurrentTransform=function(e){var t=e.getTransform(),n=t.a,r=t.b,a=t.c,i=t.d,s=t.e,l=t.f;return[n,r,a,i,s,l]},t.getCurrentTransformInverse=function(e){var t=e.getTransform().invertSelf(),n=t.a,r=t.b,a=t.c,i=t.d,s=t.e,l=t.f;return[n,r,a,i,s,l]},t.getFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=e.split(/[#?]/,1);e=_slicedToArray(n,1)[0]}return e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(H(e))return(0,i.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;var n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e),a=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(a&&(a=a[0]).includes("%"))try{a=n.exec(decodeURIComponent(a))[0]}catch(s){}return a||t},t.getRGB=X,t.getXfaPageViewport=function(e,t){var n=t.scale,r=void 0===n?1:n,a=t.rotation,i=void 0===a?0:a,s=e.attributes.style,l=s.width,o=s.height,c=[0,0,parseInt(l),parseInt(o)];return new z({viewBox:c,scale:r,rotation:i})},t.isDataScheme=H,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=q,t.loadScript=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n,r){var a=document.createElement("script");a.src=e,a.onload=function(e){t&&a.remove(),n(e)},a.onerror=function(){r(new Error("Cannot load script at: ".concat(a.src)))},(document.head||document.documentElement).append(a)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof z){var a=t.rawDims,s=a.pageWidth,l=a.pageHeight,o=e.style,c=i.FeatureTest.isCSSRoundSupported,u="var(--scale-factor) * ".concat(s,"px"),d="var(--scale-factor) * ".concat(l,"px"),h=c?"round(".concat(u,", 1px)"):"calc(".concat(u,")"),f=c?"round(".concat(d,", 1px)"):"calc(".concat(d,")");n&&t.rotation%180!==0?(o.width=f,o.height=h):(o.width=h,o.height=f)}r&&e.setAttribute("data-main-rotation",t.rotation)};var a=n(7),i=n(1),s="http://www.w3.org/2000/svg",l=_createClass((function e(){_classCallCheck(this,e)}));r=l,_defineProperty(l,"CSS",96),_defineProperty(l,"PDF",72),_defineProperty(l,"PDF_TO_CSS_UNITS",r.CSS/r.PDF),t.PixelsPerInch=l;var o=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,x=new WeakMap,b=new WeakMap,_=new WeakSet,w=new WeakSet,k=new WeakSet,S=new WeakSet,P=new WeakSet,C=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=r.docId,i=r.ownerDocument,s=void 0===i?globalThis.document:i;return _classCallCheck(this,n),e=t.call(this),_classPrivateMethodInitSpec(_assertThisInitialized(e),P),_classPrivateMethodInitSpec(_assertThisInitialized(e),S),_classPrivateMethodInitSpec(_assertThisInitialized(e),k),_classPrivateMethodInitSpec(_assertThisInitialized(e),w),_classPrivateMethodInitSpec(_assertThisInitialized(e),_),_classPrivateFieldInitSpec(_assertThisInitialized(e),b,{get:j,set:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),x,{get:A,set:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),o,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),u,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),d,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),h,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),f,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),p,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),v,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),m,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),g,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(e),y,{writable:!0,value:0}),_classPrivateFieldSet(_assertThisInitialized(e),u,a),_classPrivateFieldSet(_assertThisInitialized(e),d,s),e}return _createClass(n,[{key:"addFilter",value:function(e){var t,n;if(!e)return"none";var r,a,i,s,l=_classPrivateFieldGet(this,x).get(e);if(l)return l;if(1===e.length){for(var o=e[0],c=new Array(256),d=0;d<256;d++)c[d]=o[d]/255;s=r=a=i=c.join(",")}else{for(var h=_slicedToArray(e,3),f=h[0],p=h[1],v=h[2],m=new Array(256),g=new Array(256),b=new Array(256),_=0;_<256;_++)m[_]=f[_]/255,g[_]=p[_]/255,b[_]=v[_]/255;r=m.join(","),a=g.join(","),i=b.join(","),s="".concat(r).concat(a).concat(i)}if(l=_classPrivateFieldGet(this,x).get(s))return _classPrivateFieldGet(this,x).set(e,l),l;var k="g_".concat(_classPrivateFieldGet(this,u),"_transfer_map_").concat((_classPrivateFieldSet(this,y,(t=_classPrivateFieldGet(this,y),n=t++,t)),n)),P="url(#".concat(k,")");_classPrivateFieldGet(this,x).set(e,P),_classPrivateFieldGet(this,x).set(s,P);var C=_classPrivateMethodGet(this,w,F).call(this,k);return _classPrivateMethodGet(this,S,T).call(this,r,a,i,C),P}},{key:"addHCMFilter",value:function(e,t){var n,r,a,s="".concat(e,"-").concat(t);if(_classPrivateFieldGet(this,f)===s)return _classPrivateFieldGet(this,p);if(_classPrivateFieldSet(this,f,s),_classPrivateFieldSet(this,p,"none"),null===(n=_classPrivateFieldGet(this,h))||void 0===n||n.remove(),!e||!t)return _classPrivateFieldGet(this,p);var l=_classPrivateMethodGet(this,P,M).call(this,e);e=(r=i.Util).makeHexColor.apply(r,_toConsumableArray(l));var o=_classPrivateMethodGet(this,P,M).call(this,t);if(t=(a=i.Util).makeHexColor.apply(a,_toConsumableArray(o)),_classPrivateFieldGet(this,b).style.color="","#000000"===e&&"#ffffff"===t||e===t)return _classPrivateFieldGet(this,p);for(var c=new Array(256),d=0;d<=255;d++){var m=d/255;c[d]=m<=.03928?m/12.92:Math.pow((m+.055)/1.055,2.4)}var g=c.join(","),y="g_".concat(_classPrivateFieldGet(this,u),"_hcm_filter"),x=_classPrivateFieldSet(this,v,_classPrivateMethodGet(this,w,F).call(this,y));_classPrivateMethodGet(this,S,T).call(this,g,g,g,x),_classPrivateMethodGet(this,_,E).call(this,x);var k=function(e,t){for(var n=l[e]/255,r=o[e]/255,a=new Array(t+1),i=0;i<=t;i++)a[i]=n+i/t*(r-n);return a.join(",")};return _classPrivateMethodGet(this,S,T).call(this,k(0,5),k(1,5),k(2,5),x),_classPrivateFieldSet(this,p,"url(#".concat(y,")")),_classPrivateFieldGet(this,p)}},{key:"addHighlightHCMFilter",value:function(e,t,n,r){var a,i="".concat(e,"-").concat(t,"-").concat(n,"-").concat(r);if(_classPrivateFieldGet(this,m)===i)return _classPrivateFieldGet(this,g);if(_classPrivateFieldSet(this,m,i),_classPrivateFieldSet(this,g,"none"),null===(a=_classPrivateFieldGet(this,v))||void 0===a||a.remove(),!e||!t)return _classPrivateFieldGet(this,g);var s=[e,t].map(_classPrivateMethodGet(this,P,M).bind(this)),l=_slicedToArray(s,2),o=l[0],c=l[1],d=Math.round(.2126*o[0]+.7152*o[1]+.0722*o[2]),h=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),f=[n,r].map(_classPrivateMethodGet(this,P,M).bind(this)),p=_slicedToArray(f,2),y=p[0],x=p[1];if(h0&&void 0!==arguments[0]&&arguments[0]&&(_classPrivateFieldGet(this,p)||_classPrivateFieldGet(this,g))||(_classPrivateFieldGet(this,c)&&(_classPrivateFieldGet(this,c).parentNode.parentNode.remove(),_classPrivateFieldSet(this,c,null)),_classPrivateFieldGet(this,o)&&(_classPrivateFieldGet(this,o).clear(),_classPrivateFieldSet(this,o,null)),_classPrivateFieldSet(this,y,0))}}]),n}(a.BaseFilterFactory);function A(){return _classPrivateFieldGet(this,o)||_classPrivateFieldSet(this,o,new Map)}function j(){if(!_classPrivateFieldGet(this,c)){var e=_classPrivateFieldGet(this,d).createElement("div"),t=e.style;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;var n=_classPrivateFieldGet(this,d).createElementNS(s,"svg");n.setAttribute("width",0),n.setAttribute("height",0),_classPrivateFieldSet(this,c,_classPrivateFieldGet(this,d).createElementNS(s,"defs")),e.append(n),n.append(_classPrivateFieldGet(this,c)),_classPrivateFieldGet(this,d).body.append(e)}return _classPrivateFieldGet(this,c)}function E(e){var t=_classPrivateFieldGet(this,d).createElementNS(s,"feColorMatrix");t.setAttribute("type","matrix"),t.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"),e.append(t)}function F(e){var t=_classPrivateFieldGet(this,d).createElementNS(s,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),_classPrivateFieldGet(this,b).append(t),t}function N(e,t,n){var r=_classPrivateFieldGet(this,d).createElementNS(s,t);r.setAttribute("type","discrete"),r.setAttribute("tableValues",n),e.append(r)}function T(e,t,n,r){var a=_classPrivateFieldGet(this,d).createElementNS(s,"feComponentTransfer");r.append(a),_classPrivateMethodGet(this,k,N).call(this,a,"feFuncR",e),_classPrivateMethodGet(this,k,N).call(this,a,"feFuncG",t),_classPrivateMethodGet(this,k,N).call(this,a,"feFuncB",n)}function M(e){return _classPrivateFieldGet(this,b).style.color=e,X(getComputedStyle(_classPrivateFieldGet(this,b)).getPropertyValue("color"))}t.DOMFilterFactory=C;var I=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).ownerDocument,a=void 0===r?globalThis.document:r;return _classCallCheck(this,n),(e=t.call(this))._document=a,e}return _createClass(n,[{key:"_createCanvas",value:function(e,t){var n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}]),n}(a.BaseCanvasFactory);function R(e){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n,r,a=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],!q(t,document.baseURI)){e.next=21;break}return e.next=4,fetch(t);case 4:if((r=e.sent).ok){e.next=7;break}throw new Error(r.statusText);case 7:if(!n){e.next=15;break}return e.t1=Uint8Array,e.next=11,r.arrayBuffer();case 11:e.t2=e.sent,e.t0=new e.t1(e.t2),e.next=20;break;case 15:return e.t3=i.stringToBytes,e.next=18,r.text();case 18:e.t4=e.sent,e.t0=(0,e.t3)(e.t4);case 20:return e.abrupt("return",e.t0);case 21:return e.abrupt("return",new Promise((function(e,r){var a=new XMLHttpRequest;a.open("GET",t,!0),n&&(a.responseType="arraybuffer"),a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){var t;if((200===a.status||0===a.status)&&(n&&a.response?t=new Uint8Array(a.response):!n&&a.responseText&&(t=(0,i.stringToBytes)(a.responseText)),t))return void e(t);r(new Error(a.statusText))}},a.send(null)})));case 22:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}t.DOMCanvasFactory=I;var L=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_fetchData",value:function(e,t){return R(e,this.isCompressed).then((function(e){return{cMapData:e,compressionType:t}}))}}]),n}(a.BaseCMapReaderFactory);t.DOMCMapReaderFactory=L;var D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_fetchData",value:function(e){return R(e,!0)}}]),n}(a.BaseStandardFontDataFactory);t.DOMStandardFontDataFactory=D;var G=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_createSVG",value:function(e){return document.createElementNS(s,e)}}]),n}(a.BaseSVGFactory);t.DOMSVGFactory=G;var z=function(){function e(t){var n=t.viewBox,r=t.scale,a=t.rotation,i=t.offsetX,s=void 0===i?0:i,l=t.offsetY,o=void 0===l?0:l,c=t.dontFlip,u=void 0!==c&&c;_classCallCheck(this,e),this.viewBox=n,this.scale=r,this.rotation=a,this.offsetX=s,this.offsetY=o;var d,h,f,p,v,m,g,y,x=(n[2]+n[0])/2,b=(n[3]+n[1])/2;switch((a%=360)<0&&(a+=360),a){case 180:d=-1,h=0,f=0,p=1;break;case 90:d=0,h=1,f=1,p=0;break;case 270:d=0,h=-1,f=-1,p=0;break;case 0:d=1,h=0,f=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}u&&(f=-f,p=-p),0===d?(v=Math.abs(b-n[1])*r+s,m=Math.abs(x-n[0])*r+o,g=(n[3]-n[1])*r,y=(n[2]-n[0])*r):(v=Math.abs(x-n[0])*r+s,m=Math.abs(b-n[1])*r+o,g=(n[2]-n[0])*r,y=(n[3]-n[1])*r),this.transform=[d*r,h*r,f*r,p*r,v-d*r*x-f*r*b,m-h*r*x-p*r*b],this.width=g,this.height=y}return _createClass(e,[{key:"rawDims",get:function(){var e=this.viewBox;return(0,i.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,r=void 0===n?this.scale:n,a=t.rotation,i=void 0===a?this.rotation:a,s=t.offsetX,l=void 0===s?this.offsetX:s,o=t.offsetY,c=void 0===o?this.offsetY:o,u=t.dontFlip,d=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:r,rotation:i,offsetX:l,offsetY:c,dontFlip:d})}},{key:"convertToViewportPoint",value:function(e,t){return i.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=i.Util.applyTransform([e[0],e[1]],this.transform),n=i.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return i.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=z;var B=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return _classCallCheck(this,n),(r=t.call(this,e,"RenderingCancelledException")).extraDelay=a,r}return _createClass(n)}(i.BaseException);function H(e){for(var t=e.length,n=0;n=1&&r<=12?r-1:0;var a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;var i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;var o=t[7]||"Z",c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;var u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===o?(i+=c,s+=u):"+"===o&&(i-=c,s-=u),new Date(Date.UTC(n,r,a,i,s,l))}}]),e}();function X(e){if(e.startsWith("#")){var t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((function(e){return parseInt(e)})):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((function(e){return parseInt(e)})).slice(0,3):((0,i.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.PDFDateString=V},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1),a=function(){function e(){_classCallCheck(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize BaseFilterFactory.")}return _createClass(e,[{key:"addFilter",value:function(e){return"none"}},{key:"addHCMFilter",value:function(e,t){return"none"}},{key:"addHighlightHCMFilter",value:function(e,t,n,r){return"none"}},{key:"destroy",value:function(){}}]),e}();t.BaseFilterFactory=a;var i=function(){function e(){_classCallCheck(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}return _createClass(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}},{key:"reset",value:function(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}},{key:"_createCanvas",value:function(e,t){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}]),e}();t.BaseCanvasFactory=i;var s=function(){function e(t){var n=t.baseUrl,a=void 0===n?null:n,i=t.isCompressed,s=void 0===i||i;_classCallCheck(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=a,this.isCompressed=s}return _createClass(e,[{key:"fetch",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n,a,i,s=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){e.next=5;break}throw new Error("CMap name must be specified.");case 5:return a=this.baseUrl+n+(this.isCompressed?".bcmap":""),i=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE,e.abrupt("return",this._fetchData(a,i).catch((function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"","CMap at: ").concat(a))})));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_fetchData",value:function(e,t){(0,r.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseCMapReaderFactory=s;var l=function(){function e(t){var n=t.baseUrl,a=void 0===n?null:n;_classCallCheck(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=a}return _createClass(e,[{key:"fetch",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.filename,this.baseUrl){e.next=3;break}throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');case 3:if(n){e.next=5;break}throw new Error("Font filename must be specified.");case 5:return r="".concat(this.baseUrl).concat(n),e.abrupt("return",this._fetchData(r).catch((function(e){throw new Error("Unable to load font data at: ".concat(r))})));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_fetchData",value:function(e){(0,r.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseStandardFontDataFactory=l;var o=function(){function e(){_classCallCheck(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}return _createClass(e,[{key:"create",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");var r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),n||(r.setAttribute("width","".concat(e,"px")),r.setAttribute("height","".concat(t,"px"))),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),r}},{key:"createElement",value:function(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}},{key:"_createSVG",value:function(e){(0,r.unreachable)("Abstract method `_createSVG` called.")}}]),e}();t.BaseSVGFactory=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1),a=3285377520,i=4294901760,s=65535,l=function(){function e(t){_classCallCheck(this,e),this.h1=t?4294967295&t:a,this.h2=t?4294967295&t:a}return _createClass(e,[{key:"update",value:function(e){var t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(var a=0,l=e.length;a>>8,t[n++]=255&o)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");n=(t=e.slice()).byteLength}for(var c=n>>2,u=n-4*c,d=new Uint32Array(t.buffer,0,c),h=0,f=0,p=this.h1,v=this.h2,m=3432918353,g=461845907,y=11601,x=13715,b=0;b>>17)*g&i|h*x&s)<<13|p>>>19)+3864292196:v=5*(v=(v^=f=(f=(f=(f=d[b])*m&i|f*y&s)<<15|f>>>17)*g&i|f*x&s)<<13|v>>>19)+3864292196;switch(h=0,u){case 3:h^=t[4*c+2]<<16;case 2:h^=t[4*c+1]<<8;case 1:h=(h=(h=(h^=t[4*c])*m&i|h*y&s)<<15|h>>>17)*g&i|h*x&s,1&c?p^=h:v^=h}this.h1=p,this.h2=v}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;return e=3981806797*(e^=t>>>1)&i|36045*e&s,e=444984403*(e^=(t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16)>>>1)&i|60499*e&s,((e^=(t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}]),e}();t.MurmurHash3_64=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1),a=new WeakMap,i=function(){function e(t){var n=t.ownerDocument,r=void 0===n?globalThis.document:n;t.styleElement,_classCallCheck(this,e),_classPrivateFieldInitSpec(this,a,{writable:!0,value:new Set}),this._document=r,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}return _createClass(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}},{key:"removeNativeFontFace",value:function(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}},{key:"insertRule",value:function(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));var t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}},{key:"clear",value:function(){var e,t=_createForOfIteratorHelper(this.nativeFontFaces);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._document.fonts.delete(n)}}catch(r){t.e(r)}finally{t.f()}this.nativeFontFaces.clear(),_classPrivateFieldGet(this,a).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"loadSystemFont",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n,i,s,l;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&!_classPrivateFieldGet(this,a).has(t.loadedName)){e.next=2;break}return e.abrupt("return");case 2:if((0,r.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),!this.isFontLoadingAPISupported){e.next=18;break}return n=t.loadedName,i=t.src,s=t.style,l=new FontFace(n,i,s),this.addNativeFontFace(l),e.prev=7,e.next=10,l.load();case 10:_classPrivateFieldGet(this,a).add(n),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(7),(0,r.warn)("Cannot load system font: ".concat(t.baseFontName,", installing it could help to improve PDF rendering.")),this.removeNativeFontFace(l);case 17:return e.abrupt("return");case 18:(0,r.unreachable)("Not implemented: loadSystemFont without the Font Loading API.");case 19:case"end":return e.stop()}}),e,this,[[7,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"bind",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n,a,i=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.attached||t.missingFile&&!t.systemFontInfo)){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!t.systemFontInfo){e.next=7;break}return e.next=6,this.loadSystemFont(t.systemFontInfo);case 6:case 21:return e.abrupt("return");case 7:if(!this.isFontLoadingAPISupported){e.next=22;break}if(!(n=t.createNativeFontFace())){e.next=21;break}return this.addNativeFontFace(n),e.prev=11,e.next=14,n.loaded;case 14:e.next=21;break;case 16:throw e.prev=16,e.t0=e.catch(11),(0,r.warn)("Failed to load font '".concat(n.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 22:if(!(a=t.createFontFaceRule())){e.next=29;break}if(this.insertRule(a),!this.isSyncFontLoadingSupported){e.next=27;break}return e.abrupt("return");case 27:return e.next=29,new Promise((function(e){var n=i._queueLoadingCallback(e);i._prepareFontLoadEvent(t,n)}));case 29:case"end":return e.stop()}}),e,this,[[11,16]])})));return function(t){return e.apply(this,arguments)}}()},{key:"isFontLoadingAPISupported",get:function(){var e,t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,r.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;return(r.isNodeJS||"undefined"!==typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_queueLoadingCallback",value:function(e){var t=this.loadingRequests,n={done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.length>0&&t[0].done;){var e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(n),n}},{key:"_loadTestFont",get:function(){var e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,r.shadow)(this,"_loadTestFont",e)}},{key:"_prepareFontLoadEvent",value:function(e,t){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}var i,s,l=this._document.createElement("canvas");l.width=1,l.height=1;var o=l.getContext("2d"),c=0,u="lt".concat(Date.now()).concat(this.loadTestFontId++),d=this._loadTestFont,h=1482184792,f=n(d=a(d,976,u.length,u),16);for(i=0,s=u.length-3;i30)return(0,r.warn)("Load test font never loaded."),void n();o.font="30px "+t,o.fillText(".",0,20),o.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(u,(function(){m.remove(),t.complete()}))}}]),e}();t.FontLoader=i;var s=function(){function e(t,n){var r=n.isEvalSupported,a=void 0===r||r,i=n.disableFontFace,s=void 0!==i&&i,l=n.ignoreErrors,o=void 0!==l&&l,c=n.inspectFont,u=void 0===c?null:c;for(var d in _classCallCheck(this,e),this.compiledGlyphs=Object.create(null),t)this[d]=t[d];this.isEvalSupported=!1!==a,this.disableFontFace=!0===s,this.ignoreErrors=!0===o,this._inspectFont=u}return _createClass(e,[{key:"createNativeFontFace",value:function(){var e,t;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){var n={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(n.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,n)}else t=new FontFace(this.loadedName,this.data,{});return null===(e=this._inspectFont)||void 0===e||e.call(this,this),t}},{key:"createFontFaceRule",value:function(){var e;if(!this.data||this.disableFontFace)return null;var t,n=(0,r.bytesToString)(this.data),a="url(data:".concat(this.mimetype,";base64,").concat(btoa(n),");");if(this.cssFontInfo){var i="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(i+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),t='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(i,"src:").concat(a,"}")}else t='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(a,"}");return null===(e=this._inspectFont)||void 0===e||e.call(this,this,a),t}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var n;try{n=e.get(this.loadedName+"_path_"+t)}catch(c){if(!this.ignoreErrors)throw c;return(0,r.warn)('getPathGenerator - ignoring character: "'.concat(c,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){var a,i=[],s=_createForOfIteratorHelper(n);try{for(s.s();!(a=s.n()).done;){var l=a.value,o=void 0!==l.args?l.args.join(","):"";i.push("c.",l.cmd,"(",o,");\n")}}catch(u){s.e(u)}finally{s.f()}return this.compiledGlyphs[t]=new Function("c","size",i.join(""))}return this.compiledGlyphs[t]=function(e,t){var r,a=_createForOfIteratorHelper(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;"scale"===i.cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}catch(u){a.e(u)}finally{a.f()}}}}]),e}();t.FontFaceObject=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(7),a=(n(1),function(e){return new Promise((function(t,n){__webpack_require__(172).readFile(e,(function(e,r){!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))}),i=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n)}(r.BaseFilterFactory);t.NodeFilterFactory=i;var s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_createCanvas",value:function(e,t){return __webpack_require__(3414).createCanvas(e,t)}}]),n}(r.BaseCanvasFactory);t.NodeCanvasFactory=s;var l=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_fetchData",value:function(e,t){return a(e).then((function(e){return{cMapData:e,compressionType:t}}))}}]),n}(r.BaseCMapReaderFactory);t.NodeCMapReaderFactory=l;var o=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_fetchData",value:function(e){return a(e)}}]),n}(r.BaseStandardFontDataFactory);t.NodeStandardFontDataFactory=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(1),a=n(6),i=n(12),s=n(13),l=4096,o=16,c=function(){function e(t){_classCallCheck(this,e),this.canvasFactory=t,this.cache=Object.create(null)}return _createClass(e,[{key:"getCanvas",value:function(e,t,n){var r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),r}},{key:"delete",value:function(e){delete this.cache[e]}},{key:"clear",value:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}]),e}();function u(e,t,n,r,i,s,l,o,c,u){var d=(0,a.getCurrentTransform)(e),h=_slicedToArray(d,6),f=h[0],p=h[1],v=h[2],m=h[3],g=h[4],y=h[5];if(0===p&&0===v){var x=l*f+g,b=Math.round(x),_=o*m+y,w=Math.round(_),k=(l+c)*f+g,S=Math.abs(Math.round(k)-b)||1,P=(o+u)*m+y,C=Math.abs(Math.round(P)-w)||1;return e.setTransform(Math.sign(f),0,0,Math.sign(m),b,w),e.drawImage(t,n,r,i,s,0,0,S,C),e.setTransform(f,p,v,m,g,y),[S,C]}if(0===f&&0===m){var A=o*v+g,j=Math.round(A),E=l*p+y,F=Math.round(E),N=(o+u)*v+g,T=Math.abs(Math.round(N)-j)||1,M=(l+c)*p+y,I=Math.abs(Math.round(M)-F)||1;return e.setTransform(0,Math.sign(p),Math.sign(v),0,j,F),e.drawImage(t,n,r,i,s,0,0,I,T),e.setTransform(f,p,v,m,g,y),[I,T]}return e.drawImage(t,n,r,i,s,l,o,c,u),[Math.hypot(f,p)*c,Math.hypot(v,m)*u]}var d=function(){function e(t,n){_classCallCheck(this,e),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=r.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,n])}return _createClass(e,[{key:"clone",value:function(){var e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}},{key:"updatePathMinMax",value:function(e,t,n){var a=r.Util.applyTransform([t,n],e),i=_slicedToArray(a,2);t=i[0],n=i[1],this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}},{key:"updateRectMinMax",value:function(e,t){var n=r.Util.applyTransform(t,e),a=r.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],a[0]),this.minY=Math.min(this.minY,n[1],a[1]),this.maxX=Math.max(this.maxX,n[0],a[0]),this.maxY=Math.max(this.maxY,n[1],a[1])}},{key:"updateScalingPathMinMax",value:function(e,t){r.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}},{key:"updateCurvePathMinMax",value:function(e,t,n,a,i,s,l,o,c,u){var d=r.Util.bezierBoundingBox(t,n,a,i,s,l,o,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}},{key:"getPathBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[this.minX,this.minY,this.maxX,this.maxY];if(e===i.PathType.STROKE){t||(0,r.unreachable)("Stroke bounding box must include transform.");var a=r.Util.singularValueDecompose2dScale(t),s=a[0]*this.lineWidth/2,l=a[1]*this.lineWidth/2;n[0]-=s,n[1]-=l,n[2]+=s,n[3]+=l}return n}},{key:"updateClipFromPath",value:function(){var e=r.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}},{key:"isEmptyClip",value:function(){return this.minX===1/0}},{key:"startNewPathAndClipBox",value:function(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}},{key:"getClippedPathBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}]),e}();function h(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var n,a,i,s,l,c=t.height,u=t.width,d=c%o,h=(c-d)/o,f=0===d?h:h+1,p=e.createImageData(u,o),v=0,m=t.data,g=p.data;if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var y=m.byteLength,x=new Uint32Array(g.buffer,0,g.byteLength>>2),b=x.length,_=u+7>>3,w=4294967295,k=r.FeatureTest.isLittleEndian?4278190080:255;for(a=0;a_?u:8*S-7,A=-8&C,j=0,E=0;P>=1}for(;n=h&&(l=u*(s=d)),n=0,i=l;i--;)g[n++]=m[v++],g[n++]=m[v++],g[n++]=m[v++],g[n++]=255;e.putImageData(p,0,a*o)}}}}function f(e,t){if(t.bitmap)e.drawImage(t.bitmap,0,0);else for(var n=t.height,r=t.width,a=n%o,i=(n-a)/o,l=0===a?i:i+1,c=e.createImageData(r,o),u=0,d=t.data,h=c.data,f=0;f>8,e[i-2]=e[i-2]*s+n*l>>8,e[i-1]=e[i-1]*s+r*l>>8}}}function g(e,t,n){for(var r=e.length,a=3;a>8]>>8:t[a]*i>>16}}function x(e,t,n,r){var a=r[0],i=r[1],s=r[2]-a,l=r[3]-i;0!==s&&0!==l&&(function(e,t,n,r,a,i,s,l,o,c,u){for(var d=!!i,h=d?i[0]:0,f=d?i[1]:0,p=d?i[2]:0,v="Luminosity"===a?y:g,x=Math.min(r,Math.ceil(1048576/n)),b=0;b1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}},{key:"beginDrawing",value:function(e){var t,n,r=e.transform,i=e.viewport,s=e.transparency,l=void 0!==s&&s,o=e.background,c=void 0===o?null:o,u=this.ctx.canvas.width,d=this.ctx.canvas.height,h=this.ctx.fillStyle;if(this.ctx.fillStyle=c||"#ffffff",this.ctx.fillRect(0,0,u,d),this.ctx.fillStyle=h,l){var f,p=this.cachedCanvases.getCanvas("transparent",u,d);this.compositeCtx=this.ctx,this.transparentCanvas=p.canvas,this.ctx=p.context,this.ctx.save(),(f=this.ctx).transform.apply(f,_toConsumableArray((0,a.getCurrentTransform)(this.compositeCtx)))}this.ctx.save(),v(this.ctx),r&&((n=this.ctx).transform.apply(n,_toConsumableArray(r)),this.outputScaleX=r[0],this.outputScaleY=r[0]),(t=this.ctx).transform.apply(t,_toConsumableArray(i.transform)),this.viewportScale=i.scale,this.baseTransform=(0,a.getCurrentTransform)(this.ctx)}},{key:"executeOperatorList",value:function(e,t,n,a){var i=e.argsArray,s=e.fnArray,l=t||0,o=i.length;if(o===l)return l;for(var c,u=o-l>10&&"function"===typeof n,d=u?Date.now()+15:0,h=0,f=this.commonObjs,p=this.objs;;){if(void 0!==a&&l===a.nextBreakPoint)return a.breakIt(l,n),l;if((c=s[l])!==r.OPS.dependency)this[c].apply(this,i[l]);else{var v,m=_createForOfIteratorHelper(i[l]);try{for(m.s();!(v=m.n()).done;){var g=v.value,y=g.startsWith("g_")?f:p;if(!y.has(g))return y.get(g,n),l}}catch(x){m.e(x)}finally{m.f()}}if(++l===o)return l;if(u&&++h>10){if(Date.now()>d)return n(),l;h=0}}}},{key:"endDrawing",value:function(){_classPrivateMethodGet(this,P,j).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();var e,t=_createForOfIteratorHelper(this._cachedBitmapsMap.values());try{for(t.s();!(e=t.n()).done;){var n,r=e.value,a=_createForOfIteratorHelper(r.values());try{for(a.s();!(n=a.n()).done;){var i=n.value;"undefined"!==typeof HTMLCanvasElement&&i instanceof HTMLCanvasElement&&(i.width=i.height=0)}}catch(s){a.e(s)}finally{a.f()}r.clear()}}catch(s){t.e(s)}finally{t.f()}this._cachedBitmapsMap.clear(),_classPrivateMethodGet(this,C,E).call(this)}},{key:"_scaleImage",value:function(e,t){for(var n,r,a=e.width,i=e.height,s=Math.max(Math.hypot(t[0],t[1]),1),l=Math.max(Math.hypot(t[2],t[3]),1),o=a,c=i,u="prescale1";s>2&&o>1||l>2&&c>1;){var d=o,h=c;s>2&&o>1&&(s/=o/(d=o>=16384?Math.floor(o/2)-1||1:Math.ceil(o/2))),l>2&&c>1&&(l/=c/(h=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2)),(r=(n=this.cachedCanvases.getCanvas(u,d,h)).context).clearRect(0,0,d,h),r.drawImage(e,0,0,o,c,0,0,d,h),e=n.canvas,o=d,c=h,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:o,paintHeight:c}}},{key:"_createMaskCanvas",value:function(e){var t,n,s,l,o=this.ctx,c=e.width,d=e.height,h=this.current.fillColor,p=this.current.patternFill,v=(0,a.getCurrentTransform)(o);if((e.bitmap||e.data)&&e.count>1){var m=e.bitmap||e.data.buffer;n=JSON.stringify(p?v:[v.slice(0,4),h]),(t=this._cachedBitmapsMap.get(m))||(t=new Map,this._cachedBitmapsMap.set(m,t));var g=t.get(n);if(g&&!p)return{canvas:g,offsetX:Math.round(Math.min(v[0],v[2])+v[4]),offsetY:Math.round(Math.min(v[1],v[3])+v[5])};s=g}s||f((l=this.cachedCanvases.getCanvas("maskCanvas",c,d)).context,e);var y=r.Util.transform(v,[1/c,0,0,-1/d,0,0]);y=r.Util.transform(y,[1,0,0,1,0,-d]);var x=r.Util.applyTransform([0,0],y),_=r.Util.applyTransform([c,d],y),w=r.Util.normalizeRect([x[0],x[1],_[0],_[1]]),k=Math.round(w[2]-w[0])||1,S=Math.round(w[3]-w[1])||1,P=this.cachedCanvases.getCanvas("fillCanvas",k,S),C=P.context,A=Math.min(x[0],_[0]),j=Math.min(x[1],_[1]);C.translate(-A,-j),C.transform.apply(C,_toConsumableArray(y)),s||(s=(s=this._scaleImage(l.canvas,(0,a.getCurrentTransformInverse)(C))).img,t&&p&&t.set(n,s)),C.imageSmoothingEnabled=b((0,a.getCurrentTransform)(C),e.interpolate),u(C,s,0,0,s.width,s.height,0,0,c,d),C.globalCompositeOperation="source-in";var E=r.Util.transform((0,a.getCurrentTransformInverse)(C),[1,0,0,1,-A,-j]);return C.fillStyle=p?h.getPattern(o,this,E,i.PathType.FILL):h,C.fillRect(0,0,c,d),t&&!p&&(this.cachedCanvases.delete("fillCanvas"),t.set(n,P.canvas)),{canvas:P.canvas,offsetX:Math.round(A),offsetY:Math.round(j)}}},{key:"setLineWidth",value:function(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}},{key:"setLineCap",value:function(e){this.ctx.lineCap=_[e]}},{key:"setLineJoin",value:function(e){this.ctx.lineJoin=w[e]}},{key:"setMiterLimit",value:function(e){this.ctx.miterLimit=e}},{key:"setDash",value:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var r=_slicedToArray(t.value,2),a=r[0],i=r[1];switch(a){case"LW":this.setLineWidth(i);break;case"LC":this.setLineCap(i);break;case"LJ":this.setLineJoin(i);break;case"ML":this.setMiterLimit(i);break;case"D":this.setDash(i[0],i[1]);break;case"RI":this.setRenderingIntent(i);break;case"FL":this.setFlatness(i);break;case"Font":this.setFont(i[0],i[1]);break;case"CA":this.current.strokeAlpha=i;break;case"ca":this.current.fillAlpha=i,this.ctx.globalAlpha=i;break;case"BM":this.ctx.globalCompositeOperation=i;break;case"SMask":this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i)}}}catch(s){n.e(s)}finally{n.f()}}},{key:"inSMaskMode",get:function(){return!!this.suspendedCtx}},{key:"checkSMaskState",value:function(){var e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}},{key:"beginSMaskMode",value:function(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");var e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(n,e,t);this.suspendedCtx=this.ctx,this.ctx=r.context;var i=this.ctx;i.setTransform.apply(i,_toConsumableArray((0,a.getCurrentTransform)(this.suspendedCtx))),p(this.suspendedCtx,i),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=function(){e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,a,i,s){t.transform(e,n,r,a,i,s),this.__originalTransform(e,n,r,a,i,s)},e.setTransform=function(e,n,r,a,i,s){t.setTransform(e,n,r,a,i,s),this.__originalSetTransform(e,n,r,a,i,s)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,a,i,s){t.bezierCurveTo(e,n,r,a,i,s),this.__originalBezierCurveTo(e,n,r,a,i,s)},e.rect=function(e,n,r,a){t.rect(e,n,r,a),this.__originalRect(e,n,r,a)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(i,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}},{key:"endSMaskMode",value:function(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),p(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}},{key:"compose",value:function(e){if(this.current.activeSMask){e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var t=this.current.activeSMask;x(this.suspendedCtx,t,this.ctx,e),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()}}},{key:"save",value:function(){this.inSMaskMode?(p(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),p(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}},{key:"transform",value:function(e,t,n,r,a,i){this.ctx.transform(e,t,n,r,a,i),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(e,t,n){for(var i,s,l=this.ctx,o=this.current,c=o.x,u=o.y,d=(0,a.getCurrentTransform)(l),h=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],f=h?n.slice(0):null,p=0,v=0,m=e.length;p0&&void 0!==arguments[0])||arguments[0],t=this.ctx,n=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof n&&null!==n&&void 0!==n&&n.getPattern?(t.save(),t.strokeStyle=n.getPattern(t,this,(0,a.getCurrentTransformInverse)(t),i.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.ctx,n=this.current.fillColor,r=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,(0,a.getCurrentTransformInverse)(t),i.PathType.FILL),r=!0);var s=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==s&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),r&&t.restore(),e&&this.consumePath(s)}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=k}},{key:"eoClip",value:function(){this.pendingClip=S}},{key:"beginText",value:function(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.setTransform.apply(t,_toConsumableArray(a.transform)),t.translate(a.x,a.y),a.addToPath(t,a.fontSize)}}catch(i){r.e(i)}finally{r.f()}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setFont",value:function(e,t){var n,a=this.commonObjs.get(e),i=this.current;if(!a)throw new Error("Can't find font for ".concat(e));if(i.fontMatrix=a.fontMatrix||r.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=a,this.current.fontSize=t,!a.isType3Font){var s=a.loadedName||"sans-serif",l=(null===(n=a.systemFontInfo)||void 0===n?void 0:n.css)||'"'.concat(s,'", ').concat(a.fallbackName),o="normal";a.black?o="900":a.bold&&(o="bold");var c=a.italic?"italic":"normal",u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font="".concat(c," ").concat(o," ").concat(u,"px ").concat(l)}}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"moveText",value:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"setTextMatrix",value:function(e,t,n,r,a,i){this.current.textMatrix=[e,t,n,r,a,i],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(e,t,n,i){var s,l=this.ctx,o=this.current,c=o.font,u=o.textRenderingMode,d=o.fontSize/o.fontSizeScale,h=u&r.TextRenderingMode.FILL_STROKE_MASK,f=!!(u&r.TextRenderingMode.ADD_TO_PATH_FLAG),p=o.patternFill&&!c.missingFile;(c.disableFontFace||f||p)&&(s=c.getPathGenerator(this.commonObjs,e)),c.disableFontFace||p?(l.save(),l.translate(t,n),l.beginPath(),s(l,d),i&&l.setTransform.apply(l,_toConsumableArray(i)),h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||l.fill(),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||l.stroke(),l.restore()):(h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||l.fillText(e,t,n),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||l.strokeText(e,t,n)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,a.getCurrentTransform)(l),x:t,y:n,fontSize:d,addToPath:s})}},{key:"isFontSubpixelAAEnabled",get:function(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,n=!1,a=3;a0&&t[a]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)}},{key:"showText",value:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var s=t.fontSize;if(0!==s){var l,o=this.ctx,c=t.fontSizeScale,u=t.charSpacing,d=t.wordSpacing,h=t.fontDirection,f=t.textHScale*h,p=e.length,v=n.vertical,m=v?1:-1,g=n.defaultVMetrics,y=s*t.fontMatrix[0],x=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;if(o.save(),o.transform.apply(o,_toConsumableArray(t.textMatrix)),o.translate(t.x,t.y+t.textRise),h>0?o.scale(f,-1):o.scale(f,1),t.patternFill){o.save();var b=t.fillColor.getPattern(o,this,(0,a.getCurrentTransformInverse)(o),i.PathType.FILL);l=(0,a.getCurrentTransform)(o),o.restore(),o.fillStyle=b}var _=t.lineWidth,w=t.textMatrixScale;if(0===w||0===_){var k=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;k!==r.TextRenderingMode.STROKE&&k!==r.TextRenderingMode.FILL_STROKE||(_=this.getSinglePixelWidth())}else _/=w;if(1!==c&&(o.scale(c,c),_/=c),o.lineWidth=_,n.isInvalidPDFjsFont){var S,P=[],C=0,A=_createForOfIteratorHelper(e);try{for(A.s();!(S=A.n()).done;){var j=S.value;P.push(j.unicode),C+=j.width}}catch(V){A.e(V)}finally{A.f()}return o.fillText(P.join(""),0,0),t.x+=C*y*f,o.restore(),void this.compose()}var E,F=0;for(E=0;E0){var H=1e3*o.measureText(I).width/s*c;if(D1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,i.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,t)),n&&(t.matrix=n),t}},{key:"shadingFill",value:function(e){if(this.contentVisible){var t=this.ctx;this.save();var n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,a.getCurrentTransformInverse)(t),i.PathType.SHADING);var s=(0,a.getCurrentTransformInverse)(t);if(s){var l=t.canvas,o=l.width,c=l.height,u=r.Util.getAxialAlignedBoundingBox([0,0,o,c],s),d=_slicedToArray(u,4),h=d[0],f=d[1],p=d[2],v=d[3];this.ctx.fillRect(h,f,p-h,v-f)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}},{key:"beginInlineImage",value:function(){(0,r.unreachable)("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){(0,r.unreachable)("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,_toConsumableArray(e)),this.baseTransform=(0,a.getCurrentTransform)(this.ctx),t)){var n=t[2]-t[0],r=t[3]-t[1];this.ctx.rect(t[0],t[1],n,r),this.current.updateRectMinMax((0,a.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(e){if(this.contentVisible){this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);var t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");var n=(0,a.getCurrentTransform)(t);if(e.matrix&&t.transform.apply(t,_toConsumableArray(e.matrix)),!e.bbox)throw new Error("Bounding box is required.");var i=r.Util.getAxialAlignedBoundingBox(e.bbox,(0,a.getCurrentTransform)(t)),s=[0,0,t.canvas.width,t.canvas.height];i=r.Util.intersect(i,s)||[0,0,0,0];var o=Math.floor(i[0]),c=Math.floor(i[1]),u=Math.max(Math.ceil(i[2])-o,1),d=Math.max(Math.ceil(i[3])-c,1),h=1,f=1;u>l&&(h=u/l,u=l),d>l&&(f=d/l,d=l),this.current.startNewPathAndClipBox([0,0,u,d]);var v="groupAt"+this.groupLevel;e.smask&&(v+="_smask_"+this.smaskCounter++%2);var m=this.cachedCanvases.getCanvas(v,u,d),g=m.context;g.scale(1/h,1/f),g.translate(-o,-c),g.transform.apply(g,_toConsumableArray(n)),e.smask?this.smaskStack.push({canvas:m.canvas,context:g,offsetX:o,offsetY:c,scaleX:h,scaleY:f,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,c),t.scale(h,f),t.save()),p(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}}},{key:"endGroup",value:function(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{var i;this.ctx.restore();var s=(0,a.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),(i=this.ctx).setTransform.apply(i,_toConsumableArray(s));var l=r.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],s);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(l)}}}},{key:"beginAnnotation",value:function(e,t,n,i,s){var l;if(_classPrivateMethodGet(this,P,j).call(this),v(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&(l=this.ctx).setTransform.apply(l,_toConsumableArray(this.baseTransform)),Array.isArray(t)&&4===t.length){var o=t[2]-t[0],c=t[3]-t[1];if(s&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=o,t[3]=c;var u=r.Util.singularValueDecompose2dScale((0,a.getCurrentTransform)(this.ctx)),h=_slicedToArray(u,2),f=h[0],p=h[1],m=this.viewportScale,g=Math.ceil(o*this.outputScaleX*m),y=Math.ceil(c*this.outputScaleY*m);this.annotationCanvas=this.canvasFactory.create(g,y);var x=this.annotationCanvas,b=x.canvas,_=x.context;this.annotationCanvasMap.set(e,b),this.annotationCanvas.savedCtx=this.ctx,this.ctx=_,this.ctx.save(),this.ctx.setTransform(f,0,0,-p,0,c*p),v(this.ctx)}else v(this.ctx),this.ctx.rect(t[0],t[1],o,c),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,_toConsumableArray(n)),this.transform.apply(this,_toConsumableArray(i))}},{key:"endAnnotation",value:function(){this.annotationCanvas&&(this.ctx.restore(),_classPrivateMethodGet(this,C,E).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}},{key:"paintImageMaskXObject",value:function(e){if(this.contentVisible){var t=e.count;(e=this.getObject(e.data,e)).count=t;var n=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function(e){var t=e.width,n=e.height;if(t>1e3||n>1e3)return null;var r,a,i,s,l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1,c=new Uint8Array(o*(n+1)),u=t+7&-8,d=new Uint8Array(u*n),h=0,f=_createForOfIteratorHelper(e.data);try{for(f.s();!(s=f.n()).done;)for(var p=s.value,v=128;v>0;)d[h++]=p&v?0:255,v>>=1}catch(C){f.e(C)}finally{f.f()}var m=0;for(0!==d[h=0]&&(c[0]=1,++m),a=1;a>2)+(d[h+1]?4:0)+(d[h-u+1]?8:0)]&&(c[i+a]=l[g],++m),h++;if(d[h-u]!==d[h]&&(c[i+a]=d[h]?2:4,++m),m>1e3)return null}for(i=r*o,0!==d[h=u*(n-1)]&&(c[i]=8,++m),a=1;a1e3)return null;var y=new Int32Array([0,o,-1,0,-o,0,0,0,1]),x=new Path2D;for(r=0;m&&r<=n;r++){for(var b=r*o,_=b+t;b<_&&!c[b];)b++;if(b!==_){x.moveTo(b%o,r);var w=b,k=c[b];do{var S=y[k];do{b+=S}while(!c[b]);var P=c[b];5!==P&&10!==P?(k=P,c[b]=0):(k=P&51*k>>4,c[b]&=k>>2|k<<2),x.lineTo(b%o,b/o|0),c[b]||--m}while(w!==b);--r}}return d=null,c=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(x),e.beginPath(),e.restore()}}(e)),r.compiled))r.compiled(n);else{var a=this._createMaskCanvas(e),i=a.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(i,a.offsetX,a.offsetY),n.restore(),this.compose()}}}},{key:"paintImageMaskXObjectRepeat",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){e=this.getObject(e.data,e);var o=this.ctx;o.save();var c=(0,a.getCurrentTransform)(o);o.transform(t,n,i,s,0,0);var u=this._createMaskCanvas(e);o.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(var d=0,h=l.length;dm?v/m:1,t=p>m?p/m:1}}this._cachedScaleForStroking[0]=e,this._cachedScaleForStroking[1]=t}return this._cachedScaleForStroking}},{key:"rescaleAndStroke",value:function(e){var t=this.ctx,n=this.current.lineWidth,r=this.getScaleForStroking(),a=_slicedToArray(r,2),i=a[0],s=a[1];if(t.lineWidth=n||1,1!==i||1!==s){var l=t.getLineDash();if(e&&t.save(),t.scale(i,s),l.length>0){var o=Math.max(i,s);t.setLineDash(l.map((function(e){return e/o}))),t.lineDashOffset/=o}t.stroke(),e&&t.restore()}else t.stroke()}},{key:"isContentVisible",value:function(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}]),e}();function j(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();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 E(){if(this.pageColors){var e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){var t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}for(var F in t.CanvasGraphics=A,r.OPS)void 0!==A.prototype[F]&&(A.prototype[r.OPS[F]]=A.prototype[F])},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new o(e);case"Mesh":return new d(e);case"Dummy":return new h}throw new Error("Unknown IR type: ".concat(e[0]))};var r=n(1),a=n(6),i={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function s(e,t){if(t){var n=t[2]-t[0],r=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],n,r),e.clip(a)}}t.PathType=i;var l=function(){function e(){_classCallCheck(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}return _createClass(e,[{key:"getPattern",value:function(){(0,r.unreachable)("Abstract method `getPattern` called.")}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._type=e[1],r._bbox=e[2],r._colorStops=e[3],r._p0=e[4],r._p1=e[5],r._r0=e[6],r._r1=e[7],r.matrix=null,r}return _createClass(n,[{key:"_createGradient",value:function(e){var t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));var n,r=_createForOfIteratorHelper(this._colorStops);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.addColorStop(a[0],a[1])}}catch(i){r.e(i)}finally{r.f()}return t}},{key:"getPattern",value:function(e,t,n,l){var o;if(l===i.STROKE||l===i.FILL){var c=t.current.getClippedPathBoundingBox(l,(0,a.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(c[2]-c[0])||1,d=Math.ceil(c[3]-c[1])||1,h=t.cachedCanvases.getCanvas("pattern",u,d,!0),f=h.context;f.clearRect(0,0,f.canvas.width,f.canvas.height),f.beginPath(),f.rect(0,0,f.canvas.width,f.canvas.height),f.translate(-c[0],-c[1]),n=r.Util.transform(n,[1,0,0,1,c[0],c[1]]),f.transform.apply(f,_toConsumableArray(t.baseTransform)),this.matrix&&f.transform.apply(f,_toConsumableArray(this.matrix)),s(f,this._bbox),f.fillStyle=this._createGradient(f),f.fill(),o=e.createPattern(h.canvas,"no-repeat");var p=new DOMMatrix(n);o.setTransform(p)}else s(e,this._bbox),o=this._createGradient(e);return o}}]),n}(l);function c(e,t,n,r,a,i,s,l){var o,c=t.coords,u=t.colors,d=e.data,h=4*e.width;c[n+1]>c[r+1]&&(o=n,n=r,r=o,o=i,i=s,s=o),c[r+1]>c[a+1]&&(o=r,r=a,a=o,o=s,s=l,l=o),c[n+1]>c[r+1]&&(o=n,n=r,r=o,o=i,i=s,s=o);var f=(c[n]+t.offsetX)*t.scaleX,p=(c[n+1]+t.offsetY)*t.scaleY,v=(c[r]+t.offsetX)*t.scaleX,m=(c[r+1]+t.offsetY)*t.scaleY,g=(c[a]+t.offsetX)*t.scaleX,y=(c[a+1]+t.offsetY)*t.scaleY;if(!(p>=y))for(var x,b,_,w,k,S,P,C,A=u[i],j=u[i+1],E=u[i+2],F=u[s],N=u[s+1],T=u[s+2],M=u[l],I=u[l+1],R=u[l+2],O=Math.round(p),L=Math.round(y),D=O;D<=L;D++){if(Dy?1:m===y?0:(m-D)/(m-y)),b=F-(F-M)*z,_=N-(N-I)*z,w=T-(T-R)*z}var B=void 0;k=f-(f-g)*(B=Dy?1:(p-D)/(p-y)),S=A-(A-M)*B,P=j-(j-I)*B,C=E-(E-R)*B;for(var H=Math.round(Math.min(x,k)),W=Math.round(Math.max(x,k)),U=h*D+4*H,q=H;q<=W;q++)(B=(x-q)/(x-k))<0?B=0:B>1&&(B=1),d[U++]=b-(b-S)*B|0,d[U++]=_-(_-P)*B|0,d[U++]=w-(w-C)*B|0,d[U++]=255}}function u(e,t,n){var r,a,i=t.coords,s=t.colors;switch(t.type){case"lattice":var l=t.verticesPerRow,o=Math.floor(i.length/l)-1,u=l-1;for(r=0;r=a?i=a:r=i/t,{scale:r,size:i}}},{key:"clipBbox",value:function(e,t,n,r,i){var s=r-t,l=i-n;e.ctx.rect(t,n,s,l),e.current.updateRectMinMax((0,a.getCurrentTransform)(e.ctx),[t,n,r,i]),e.clip(),e.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(e,t,n){var a=e.ctx,i=e.current;switch(t){case f:var s=this.ctx;a.fillStyle=s.fillStyle,a.strokeStyle=s.strokeStyle,i.fillColor=s.fillStyle,i.strokeColor=s.strokeStyle;break;case p:var l=r.Util.makeHexColor(n[0],n[1],n[2]);a.fillStyle=l,a.strokeStyle=l,i.fillColor=l,i.strokeColor=l;break;default:throw new r.FormatError("Unsupported paint type: ".concat(t))}}},{key:"getPattern",value:function(e,t,n,a){var s=n;a!==i.SHADING&&(s=r.Util.transform(s,t.baseTransform),this.matrix&&(s=r.Util.transform(s,this.matrix)));var l=this.createPatternCanvas(t),o=new DOMMatrix(s);o=(o=o.translate(l.offsetX,l.offsetY)).scale(1/l.scaleX,1/l.scaleY);var c=e.createPattern(l.canvas,"repeat");return c.setTransform(o),c}}]),e}();_defineProperty(v,"MAX_PATTERN_SIZE",3e3),t.TilingPattern=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=a,t.convertToRGBA=function(e){switch(e.kind){case r.ImageKind.GRAYSCALE_1BPP:return a(e);case r.ImageKind.RGB_24BPP:return function(e){var t=e.src,n=e.srcPos,a=void 0===n?0:n,i=e.dest,s=e.destPos,l=void 0===s?0:s,o=(e.width,e.height,0),c=t.length>>2,u=new Uint32Array(t.buffer,a,c);if(r.FeatureTest.isLittleEndian){for(;o>>24|h<<8|4278190080,i[l+2]=h>>>16|f<<16|4278190080,i[l+3]=f>>>8|4278190080}for(var p=4*o,v=t.length;p>>8|255,i[l+2]=g<<16|y>>>16|255,i[l+3]=y<<8|255}for(var x=4*o,b=t.length;x>3,g=7&s,y=t.length;i=new Uint32Array(i.buffer);for(var x=0,b=0;b1&&void 0!==arguments[1]?arguments[1]:1,l=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var o=this.desiredSize;this.desiredSize-=s,o>0&&this.desiredSize<=0&&(this.sinkCapability=new r.PromiseCapability,this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:a,stream:c,streamId:t,chunk:e},l)}},close:function(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:o,streamId:t}),delete s.streamSinks[t])},error:function(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:u,streamId:t,reason:p(e)}))},sinkCapability:new r.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(l(e.data,d))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,reason:p(e)})}))}function b(e){var t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,v=this.streamControllers[t],m=this.streamSinks[t];switch(e.stream){case f:e.success?v.startCall.resolve():v.startCall.reject(p(e.reason));break;case h:e.success?v.pullCall.resolve():v.pullCall.reject(p(e.reason));break;case d:if(!m){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,success:!0});break}m.desiredSize<=0&&e.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=m.onPull)||void 0===t?void 0:t.call(m))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,reason:p(e)})}));break;case c:if((0,r.assert)(v,"enqueue should have stream controller"),v.isClosed)break;v.controller.enqueue(e.chunk);break;case o:if((0,r.assert)(v,"close should have stream controller"),v.isClosed)break;v.isClosed=!0,v.controller.close(),_classPrivateMethodGet(this,g,_).call(this,v,t);break;case u:(0,r.assert)(v,"error should have stream controller"),v.controller.error(p(e.reason)),_classPrivateMethodGet(this,g,_).call(this,v,t);break;case l:e.success?v.cancelCall.resolve():v.cancelCall.reject(p(e.reason)),_classPrivateMethodGet(this,g,_).call(this,v,t);break;case s:if(!m)break;new Promise((function(t){var n;t(null===(n=m.onCancel)||void 0===n?void 0:n.call(m,p(e.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:l,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:l,streamId:t,reason:p(e)})})),m.sinkCapability.reject(p(e.reason)),m.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function _(e,t){return w.apply(this,arguments)}function w(){return(w=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,n){var r,a,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([null===(r=t.startCall)||void 0===r?void 0:r.promise,null===(a=t.pullCall)||void 0===a?void 0:a.promise,null===(i=t.cancelCall)||void 0===i?void 0:i.promise]);case 2:delete this.streamControllers[n];case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}t.MessageHandler=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1),a=new WeakMap,i=new WeakMap,s=function(){function e(t){var n=t.parsedData,r=t.rawData;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,a,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,i,{writable:!0,value:void 0}),_classPrivateFieldSet(this,a,n),_classPrivateFieldSet(this,i,r)}return _createClass(e,[{key:"getRaw",value:function(){return _classPrivateFieldGet(this,i)}},{key:"get",value:function(e){var t;return null!==(t=_classPrivateFieldGet(this,a).get(e))&&void 0!==t?t:null}},{key:"getAll",value:function(){return(0,r.objectFromMap)(_classPrivateFieldGet(this,a))}},{key:"has",value:function(e){return _classPrivateFieldGet(this,a).has(e)}}]),e}();t.Metadata=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1),a=n(8),i=Symbol("INTERNAL"),s=new WeakMap,l=function(){function e(t,n){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,s,{writable:!0,value:!0}),this.name=t,this.intent=n}return _createClass(e,[{key:"visible",get:function(){return _classPrivateFieldGet(this,s)}},{key:"_setVisible",value:function(e,t){e!==i&&(0,r.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(this,s,t)}}]),e}(),o=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakSet,f=function(){function e(t){if(_classCallCheck(this,e),_classPrivateMethodInitSpec(this,h),_classPrivateFieldInitSpec(this,o,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),this.name=null,this.creator=null,null!==t){this.name=t.name,this.creator=t.creator,_classPrivateFieldSet(this,d,t.order);var n,r=_createForOfIteratorHelper(t.groups);try{for(r.s();!(n=r.n()).done;){var a=n.value;_classPrivateFieldGet(this,c).set(a.id,new l(a.name,a.intent))}}catch(b){r.e(b)}finally{r.f()}if("OFF"===t.baseState){var s,f=_createForOfIteratorHelper(_classPrivateFieldGet(this,c).values());try{for(f.s();!(s=f.n()).done;)s.value._setVisible(i,!1)}catch(b){f.e(b)}finally{f.f()}}var p,v=_createForOfIteratorHelper(t.on);try{for(v.s();!(p=v.n()).done;){var m=p.value;_classPrivateFieldGet(this,c).get(m)._setVisible(i,!0)}}catch(b){v.e(b)}finally{v.f()}var g,y=_createForOfIteratorHelper(t.off);try{for(y.s();!(g=y.n()).done;){var x=g.value;_classPrivateFieldGet(this,c).get(x)._setVisible(i,!1)}}catch(b){y.e(b)}finally{y.f()}_classPrivateFieldSet(this,u,this.getHash())}}return _createClass(e,[{key:"isVisible",value:function(e){if(0===_classPrivateFieldGet(this,c).size)return!0;if(!e)return(0,r.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return _classPrivateFieldGet(this,c).has(e.id)?_classPrivateFieldGet(this,c).get(e.id).visible:((0,r.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return _classPrivateMethodGet(this,h,p).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){var t,n=_createForOfIteratorHelper(e.ids);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(!_classPrivateFieldGet(this,c).has(a))return(0,r.warn)("Optional content group not found: ".concat(a)),!0;if(_classPrivateFieldGet(this,c).get(a).visible)return!0}}catch(g){n.e(g)}finally{n.f()}return!1}if("AllOn"===e.policy){var i,s=_createForOfIteratorHelper(e.ids);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(!_classPrivateFieldGet(this,c).has(l))return(0,r.warn)("Optional content group not found: ".concat(l)),!0;if(!_classPrivateFieldGet(this,c).get(l).visible)return!1}}catch(g){s.e(g)}finally{s.f()}return!0}if("AnyOff"===e.policy){var o,u=_createForOfIteratorHelper(e.ids);try{for(u.s();!(o=u.n()).done;){var d=o.value;if(!_classPrivateFieldGet(this,c).has(d))return(0,r.warn)("Optional content group not found: ".concat(d)),!0;if(!_classPrivateFieldGet(this,c).get(d).visible)return!0}}catch(g){u.e(g)}finally{u.f()}return!1}if("AllOff"===e.policy){var f,v=_createForOfIteratorHelper(e.ids);try{for(v.s();!(f=v.n()).done;){var m=f.value;if(!_classPrivateFieldGet(this,c).has(m))return(0,r.warn)("Optional content group not found: ".concat(m)),!0;if(_classPrivateFieldGet(this,c).get(m).visible)return!1}}catch(g){v.e(g)}finally{v.f()}return!0}return(0,r.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,r.warn)("Unknown group type ".concat(e.type,".")),!0}},{key:"setVisibility",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(this,c).has(e)?(_classPrivateFieldGet(this,c).get(e)._setVisible(i,!!t),_classPrivateFieldSet(this,o,null)):(0,r.warn)("Optional content group not found: ".concat(e))}},{key:"hasInitialVisibility",get:function(){return null===_classPrivateFieldGet(this,u)||this.getHash()===_classPrivateFieldGet(this,u)}},{key:"getOrder",value:function(){return _classPrivateFieldGet(this,c).size?_classPrivateFieldGet(this,d)?_classPrivateFieldGet(this,d).slice():_toConsumableArray(_classPrivateFieldGet(this,c).keys()):null}},{key:"getGroups",value:function(){return _classPrivateFieldGet(this,c).size>0?(0,r.objectFromMap)(_classPrivateFieldGet(this,c)):null}},{key:"getGroup",value:function(e){return _classPrivateFieldGet(this,c).get(e)||null}},{key:"getHash",value:function(){if(null!==_classPrivateFieldGet(this,o))return _classPrivateFieldGet(this,o);var e,t=new a.MurmurHash3_64,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,c));try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),i=r[0],s=r[1];t.update("".concat(i,":").concat(s.visible))}}catch(l){n.e(l)}finally{n.f()}return _classPrivateFieldSet(this,o,t.hexdigest())}}]),e}();function p(e){var t=e.length;if(t<2)return!0;for(var n=e[0],a=1;a0){var v=s instanceof Uint8Array&&s.byteLength===s.buffer.byteLength?s.buffer:new Uint8Array(s).buffer;this._queuedChunks.push(v)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!p,this._isRangeSupported=!h,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){a._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){a._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){a._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){a._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return _createClass(e,[{key:"_onReceiveData",value:function(e){var t=e.begin,n=e.chunk,a=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(a):this._queuedChunks.push(a);else{var i=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(a),!0)}));(0,r.assert)(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"_onProgress",value:function(e){var t,n,r,a;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded}):null===(r=this._fullRequestReader)||void 0===r||null===(a=r.onProgress)||void 0===a||a.call(r,{loaded:e.loaded,total:e.total})}},{key:"_onProgressiveDone",value:function(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new s(this,e,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new l(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var n,r=_createForOfIteratorHelper(this._rangeReaders.slice(0));try{for(r.s();!(n=r.n()).done;)n.value.cancel(e)}catch(a){r.e(a)}finally{r.f()}this._pdfDataRangeTransport.abort()}}]),e}();t.PDFDataTransportStream=i;var s=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this._stream=t,this._done=r||!1,this._filename=(0,a.isPdfFile)(i)?i:null,this._queuedChunks=n||[],this._loaded=0;var s,l=_createForOfIteratorHelper(this._queuedChunks);try{for(l.s();!(s=l.n()).done;){var o=s.value;this._loaded+=o.byteLength}}catch(c){l.e(c)}finally{l.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return _createClass(e,[{key:"_enqueue",value:function(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return n=new r.PromiseCapability,this._requests.push(n),e.abrupt("return",n.promise);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0;var t,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]),e}(),l=function(){function e(t,n,r){_classCallCheck(this,e),this._stream=t,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return _createClass(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});var t,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=new r.PromiseCapability,this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0;var t,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),a=n(20);function i(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function s(e){var t=new Headers;for(var n in e){var r=e[n];void 0!==r&&t.append(n,r)}return t}function l(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,r.warn)("getArrayBuffer - unexpected data format: ".concat(e)),new Uint8Array(e).buffer)}var o=function(){function e(t){_classCallCheck(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"getFullReader",value:function(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new c(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new u(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var n,r=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(r.s();!(n=r.n()).done;)n.value.cancel(e)}catch(a){r.e(a)}finally{r.f()}}}]),e}();t.PDFFetchStream=o;var c=function(){function e(t){var n=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var l=t.source;this._withCredentials=l.withCredentials||!1,this._contentLength=l.length,this._headersCapability=new r.PromiseCapability,this._disableRange=l.disableRange||!1,this._rangeChunkSize=l.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!l.disableStream,this._isRangeSupported=!l.disableRange,this._headers=s(this._stream.httpHeaders);var o=l.url;fetch(o,i(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,o);n._reader=e.body.getReader(),n._headersCapability.resolve();var t=function(t){return e.headers.get(t)},i=(0,a.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),s=i.allowRangeRequests,l=i.suggestedLength;n._isRangeSupported=s,n._contentLength=l||n._contentLength,n._filename=(0,a.extractFilenameFromHeader)(t),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new r.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}return _createClass(e,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n,r,a;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(n=e.sent,r=n.value,!(a=n.done)){e.next=9;break}return e.abrupt("return",{value:r,done:a});case 9:return this._loaded+=r.byteLength,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded,total:this._contentLength}),e.abrupt("return",{value:l(r),done:!1});case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}]),e}(),u=function(){function e(t,n,l){var o=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0;var c=t.source;this._withCredentials=c.withCredentials||!1,this._readCapability=new r.PromiseCapability,this._isStreamingSupported=!c.disableStream,this._abortController=new AbortController,this._headers=s(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(l-1));var u=c.url;fetch(u,i(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,u);o._readCapability.resolve(),o._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}return _createClass(e,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n,r,a;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(n=e.sent,r=n.value,!(a=n.done)){e.next=9;break}return e.abrupt("return",{value:r,done:a});case 9:return this._loaded+=r.byteLength,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded}),e.abrupt("return",{value:l(r),done:!1});case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var n=(0,a.getFilenameFromContentDispositionHeader)(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(r){}if((0,i.isPdfFile)(n))return n}return null},t.validateRangeRequestCapabilities=function(e){var t=e.getResponseHeader,n=e.isHttp,r=e.rangeChunkSize,a=e.disableRange,i={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);return Number.isInteger(s)?(i.suggestedLength=s,s<=2*r||a||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(i.allowRangeRequests=!0),i):i},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),a=n(21),i=n(6)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,n=s("filename\\*","i").exec(e);if(n){var a=c(n=n[1]);return o(a=d(a=u(a=unescape(a))))}if(n=function(e){for(var t,n=[],r=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=r.exec(e));){var a=_slicedToArray(t,4),i=a[1],l=a[2],o=a[3];if((i=parseInt(i,10))in n){if(0===i)break}else n[i]=[l,o]}for(var d=[],h=0;h1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,e),this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&n.httpHeaders||Object.create(null),this.withCredentials=n.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}return _createClass(e,[{key:"requestRange",value:function(e,t,n){var r={begin:e,end:t};for(var a in n)r[a]=n[a];return this.request(r)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=new XMLHttpRequest,n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};for(var a in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var i=this.httpHeaders[a];void 0!==i&&t.setRequestHeader(a,i)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}},{key:"onProgress",value:function(e,t){var n,r=this.pendingRequests[e];r&&(null===(n=r.onProgress)||void 0===n||n.call(r,t))}},{key:"onStateChange",value:function(e,t){var n=this.pendingRequests[e];if(n){var a=n.xhr;if(a.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===a.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===a.status&&this.isHttp){var i;null===(i=n.onError)||void 0===i||i.call(n,a.status)}else{var s=a.status||200;if(200===s&&206===n.expectedStatus||s===n.expectedStatus){var l=function(e){var t=e.response;return"string"!==typeof t?t:(0,r.stringToBytes)(t).buffer}(a);if(206===s){var o=a.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(o);n.onDone({begin:parseInt(c[1],10),chunk:l})}else if(l)n.onDone({begin:0,chunk:l});else{var u;null===(u=n.onError)||void 0===u||u.call(n,a.status)}}else{var d;null===(d=n.onError)||void 0===d||d.call(n,a.status)}}}}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),s=function(){function e(t){_classCallCheck(this,e),this._source=t,this._manager=new i(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new l(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new o(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var n,r=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(r.s();!(n=r.n()).done;)n.value.cancel(e)}catch(a){r.e(a)}finally{r.f()}}}]),e}();t.PDFNetworkStream=s;var l=function(){function e(t,n){_classCallCheck(this,e),this._manager=t;var a={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=t.requestFull(a),this._headersReceivedCapability=new r.PromiseCapability,this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.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}return _createClass(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=function(e){return t.getResponseHeader(e)},r=(0,a.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=r.allowRangeRequests,s=r.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){var t,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0}}},{key:"_onError",value:function(e){this._storedError=(0,a.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);var t,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.reject(this._storedError)}catch(r){n.e(r)}finally{n.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return n=new r.PromiseCapability,this._requests.push(n),e.abrupt("return",n.promise);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e);var t,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),e}(),o=function(){function e(t,n,r){_classCallCheck(this,e),this._manager=t;var a={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(n,r,a),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}return _createClass(e,[{key:"_close",value:function(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}},{key:"_onDone",value:function(e){var t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;var n,r=_createForOfIteratorHelper(this._requests);try{for(r.s();!(n=r.n()).done;)n.value.resolve({value:void 0,done:!0})}catch(a){r.e(a)}finally{r.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(e){this._storedError=(0,a.createResponseStatusError)(e,this._url);var t,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.reject(this._storedError)}catch(r){n.e(r)}finally{n.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(e){var t;this.isStreamingSupported||null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(null===this._queuedChunk){e.next=6;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 6:if(!this._done){e.next=8;break}return e.abrupt("return",{value:void 0,done:!0});case 8:return n=new r.PromiseCapability,this._requests.push(n),e.abrupt("return",n.promise);case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0;var t,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(t=n.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(r){n.e(r)}finally{n.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),a=n(20),i=/^file:\/\/\/[a-zA-Z]:\//,s=function(){function e(t){_classCallCheck(this,e),this.source=t,this.url=function(e){var t=__webpack_require__(6558),n=t.parse(e);return"file:"===n.protocol||n.host?n:/^[a-z]:[/\\]/i.test(e)?t.parse("file:///".concat(e)):(n.host||(n.protocol="file:"),n)}(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"getFullReader",value:function(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new h(this):new u(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=this.isFsUrl?new f(this,e,t):new d(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var n,r=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(r.s();!(n=r.n()).done;)n.value.cancel(e)}catch(a){r.e(a)}finally{r.f()}}}]),e}();t.PDFNodeStream=s;var l=function(){function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=new r.PromiseCapability,this._headersCapability=new r.PromiseCapability}return _createClass(e,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n,a;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(n=this._readableStream.read())){e.next=10;break}return this._readCapability=new r.PromiseCapability,e.abrupt("return",this.read());case 10:return this._loaded+=n.length,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded,total:this._contentLength}),a=new Uint8Array(n).buffer,e.abrupt("return",{value:a,done:!1});case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),e}(),o=function(){function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new r.PromiseCapability;var n=t.source;this._isStreamingSupported=!n.disableStream}return _createClass(e,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,n,a;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(n=this._readableStream.read())){e.next=10;break}return this._readCapability=new r.PromiseCapability,e.abrupt("return",this.read());case 10:return this._loaded+=n.length,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded}),a=new Uint8Array(n).buffer,e.abrupt("return",{value:a,done:!1});case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}]),e}();function c(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;_classCallCheck(this,n);var s=function(t){if(404===t.statusCode){var n=new r.MissingPDFException('Missing PDF "'.concat(i._url,'".'));return i._storedError=n,void i._headersCapability.reject(n)}i._headersCapability.resolve(),i._setReadableStream(t);var s=function(e){return i._readableStream.headers[e.toLowerCase()]},l=(0,a.validateRangeRequestCapabilities)({getResponseHeader:s,isHttp:e.isHttp,rangeChunkSize:i._rangeChunkSize,disableRange:i._disableRange}),o=l.allowRangeRequests,c=l.suggestedLength;i._isRangeSupported=o,i._contentLength=c||i._contentLength,i._filename=(0,a.extractFilenameFromHeader)(s)};if((i=t.call(this,e))._request=null,"http:"===i._url.protocol){var l=__webpack_require__(2001);i._request=l.request(c(i._url,e.httpHeaders),s)}else{var o=__webpack_require__(3779);i._request=o.request(c(i._url,e.httpHeaders),s)}return i._request.on("error",(function(e){i._storedError=e,i._headersCapability.reject(e)})),i._request.end(),i}return _createClass(n)}(l),d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,i){var s;for(var l in _classCallCheck(this,n),(s=t.call(this,e))._httpHeaders={},e.httpHeaders){var o=e.httpHeaders[l];void 0!==o&&(s._httpHeaders[l]=o)}s._httpHeaders.Range="bytes=".concat(a,"-").concat(i-1);var u=function(e){if(404!==e.statusCode)s._setReadableStream(e);else{var t=new r.MissingPDFException('Missing PDF "'.concat(s._url,'".'));s._storedError=t}};if(s._request=null,"http:"===s._url.protocol){var d=__webpack_require__(2001);s._request=d.request(c(s._url,s._httpHeaders),u)}else{var h=__webpack_require__(3779);s._request=h.request(c(s._url,s._httpHeaders),u)}return s._request.on("error",(function(e){s._storedError=e})),s._request.end(),s}return _createClass(n)}(o),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var a;_classCallCheck(this,n),a=t.call(this,e);var s=decodeURIComponent(a._url.path);i.test(a._url.href)&&(s=s.replace(/^\//,""));var l=__webpack_require__(172);return l.lstat(s,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException('Missing PDF "'.concat(s,'".'))),a._storedError=e,void a._headersCapability.reject(e);a._contentLength=t.size,a._setReadableStream(l.createReadStream(s)),a._headersCapability.resolve()})),a}return _createClass(n)}(l),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a){var s;_classCallCheck(this,n),s=t.call(this,e);var l=decodeURIComponent(s._url.path);i.test(s._url.href)&&(l=l.replace(/^\//,""));var o=__webpack_require__(172);return s._setReadableStream(o.createReadStream(l,{start:r,end:a-1})),s}return _createClass(n)}(o)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(6),a=n(1),i="normal",s="normal",l="#000000",o=["butt","round","square"],c=["miter","round","bevel"],u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="data:".concat(t,";base64,"),i=0,s=e.length;i>2]+r[(3&l)<<4|o>>4]+r[i+1>6:64]+r[i+2>1&2147483647:r>>1&2147483647;t[n]=r}function s(e,n,r,a){var i=a,s=n.length;r[i]=s>>24&255,r[i+1]=s>>16&255,r[i+2]=s>>8&255,r[i+3]=255&s,r[i+=4]=255&e.charCodeAt(0),r[i+1]=255&e.charCodeAt(1),r[i+2]=255&e.charCodeAt(2),r[i+3]=255&e.charCodeAt(3),i+=4,r.set(n,i);var l=function(e,n,r){for(var a=-1,i=n;i>>8^t[s]}return-1^a}(r,a+4,i+=n.length);r[i]=l>>24&255,r[i+1]=l>>16&255,r[i+2]=l>>8&255,r[i+3]=255&l}function l(e){var t=e.length,n=65535,r=Math.ceil(t/n),a=new Uint8Array(2+t+5*r+4),i=0;a[i++]=120,a[i++]=156;for(var s=0;t>n;)a[i++]=0,a[i++]=255,a[i++]=255,a[i++]=0,a[i++]=0,a.set(e.subarray(s,s+n),i),i+=n,s+=n,t-=n;a[i++]=1,a[i++]=255&t,a[i++]=t>>8&255,a[i++]=255&~t,a[i++]=(65535&~t)>>8&255,a.set(e.subarray(s),i),i+=e.length-s;var l=function(e,t,n){for(var r=1,a=0,i=t;i>24&255,a[i++]=l>>16&255,a[i++]=l>>8&255,a[i++]=255&l,a}function o(t,n,r,i){var o,c,d,h=t.width,f=t.height,p=t.data;switch(n){case a.ImageKind.GRAYSCALE_1BPP:c=0,o=1,d=h+7>>3;break;case a.ImageKind.RGB_24BPP:c=2,o=8,d=3*h;break;case a.ImageKind.RGBA_32BPP:c=6,o=8,d=4*h;break;default:throw new Error("invalid format")}for(var v=new Uint8Array((1+d)*f),m=0,g=0,y=0;y>24&255,h>>16&255,h>>8&255,255&h,f>>24&255,f>>16&255,f>>8&255,255&f,o,c,0,0,0]),w=function(e){if(!a.isNodeJS)return l(e);try{var t=parseInt(process.versions.node)>=8?e:Buffer.from(e),n=__webpack_require__(2258).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(r){(0,a.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+r)}return l(e)}(v),k=e.length+36+_.length+w.length,S=new Uint8Array(k),P=0;return S.set(e,P),s("IHDR",_,S,P+=e.length),s("IDATA",w,S,P+=12+_.length),P+=12+w.length,s("IEND",new Uint8Array(0),S,P),u(S,"image/png",r)}return function(e,t,n){return o(e,void 0===e.kind?a.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}(),h=function(){function e(){_classCallCheck(this,e),this.fontSizeScale=1,this.fontWeight=s,this.fontSize=0,this.textMatrix=a.IDENTITY_MATRIX,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=a.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=l,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return _createClass(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}();function f(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function p(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(f(e[0])," ").concat(f(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(f(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(f(e[4])," ").concat(f(e[5]),")");return"matrix(".concat(f(e[0])," ").concat(f(e[1])," ").concat(f(e[2])," ").concat(f(e[3])," ").concat(f(e[4])," ")+"".concat(f(e[5]),")")}var v=0,m=0,g=0,y=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var s in _classCallCheck(this,e),(0,r.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new r.DOMSVGFactory,this.current=new h,this.transformMatrix=a.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!i,this._operatorIdMapping=[],a.OPS)this._operatorIdMapping[a.OPS[s]]=s}return _createClass(e,[{key:"getObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}},{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,n=e.fnArray,r=e.argsArray,i=0,s=n.length;i0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=o[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=c[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,n){this.current.strokeColor=a.Util.makeHexColor(e,t,n)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,n){this.current.fillColor=a.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport,n=t.width,r=t.height,i=a.Util.inverseTransform(this.transformMatrix),s=a.Util.getAxialAlignedBoundingBox([0,0,n,r],i),l=_slicedToArray(s,4),o=l[0],c=l[1],u=l[2],d=l[3],h=this.svgFactory.createElement("svg:rect");h.setAttributeNS(null,"x",o),h.setAttributeNS(null,"y",c),h.setAttributeNS(null,"width",u-o),h.setAttributeNS(null,"height",d-c),h.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&h.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(h)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],n=e[2],r=e[3]||a.IDENTITY_MATRIX,i=_slicedToArray(e[4],4),s=i[0],l=i[1],o=i[2],c=i[3],u=e[5],d=e[6],h=e[7],f="shading".concat(g++),p=a.Util.normalizeRect([].concat(_toConsumableArray(a.Util.applyTransform([s,l],r)),_toConsumableArray(a.Util.applyTransform([o,c],r)))),v=_slicedToArray(p,4),m=v[0],y=v[1],x=v[2],b=v[3],_=a.Util.singularValueDecompose2dScale(r),w=_slicedToArray(_,2),k=u*w[0],S=d*w[1],P=this.svgFactory.createElement("svg:pattern");P.setAttributeNS(null,"id",f),P.setAttributeNS(null,"patternUnits","userSpaceOnUse"),P.setAttributeNS(null,"width",k),P.setAttributeNS(null,"height",S),P.setAttributeNS(null,"x","".concat(m)),P.setAttributeNS(null,"y","".concat(y));var C=this.svg,A=this.transformMatrix,j=this.current.fillColor,E=this.current.strokeColor,F=this.svgFactory.create(x-m,b-y);if(this.svg=F,this.transformMatrix=r,2===h){var N,T=(N=a.Util).makeHexColor.apply(N,_toConsumableArray(t));this.current.fillColor=T,this.current.strokeColor=T}return this.executeOpTree(this.convertOpList(n)),this.svg=C,this.transformMatrix=A,this.current.fillColor=j,this.current.strokeColor=E,P.append(F.childNodes[0]),this.defs.append(P),"url(#".concat(f,")")}},{key:"_makeShadingPattern",value:function(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":var t,n="shading".concat(g++),r=e[3];switch(e[1]){case"axial":var i=e[4],s=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",i[0]),t.setAttributeNS(null,"y1",i[1]),t.setAttributeNS(null,"x2",s[0]),t.setAttributeNS(null,"y2",s[1]);break;case"radial":var l=e[4],o=e[5],c=e[6],u=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",o[0]),t.setAttributeNS(null,"cy",o[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",l[0]),t.setAttributeNS(null,"fy",l[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var d,h=_createForOfIteratorHelper(r);try{for(h.s();!(d=h.n()).done;){var f=d.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",f[0]),p.setAttributeNS(null,"stop-color",f[1]),t.append(p)}}catch(v){h.e(v)}finally{h.f()}return this.defs.append(t),"url(#".concat(n,")");case"Mesh":return(0,a.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var n,r=this.current,i=r.x,s=r.y,l=[],o=0,c=_createForOfIteratorHelper(e);try{for(c.s();!(n=c.n()).done;)switch(0|n.value){case a.OPS.rectangle:i=t[o++],s=t[o++];var u=t[o++],d=t[o++],h=i+u,p=s+d;l.push("M",f(i),f(s),"L",f(h),f(s),"L",f(h),f(p),"L",f(i),f(p),"Z");break;case a.OPS.moveTo:i=t[o++],s=t[o++],l.push("M",f(i),f(s));break;case a.OPS.lineTo:i=t[o++],s=t[o++],l.push("L",f(i),f(s));break;case a.OPS.curveTo:i=t[o+4],s=t[o+5],l.push("C",f(t[o]),f(t[o+1]),f(t[o+2]),f(t[o+3]),f(i),f(s)),o+=6;break;case a.OPS.curveTo2:l.push("C",f(i),f(s),f(t[o]),f(t[o+1]),f(t[o+2]),f(t[o+3])),i=t[o+2],s=t[o+3],o+=4;break;case a.OPS.curveTo3:i=t[o+2],s=t[o+3],l.push("C",f(t[o]),f(t[o+1]),f(i),f(s),f(i),f(s)),o+=4;break;case a.OPS.closePath:l.push("Z")}}catch(v){c.e(v)}finally{c.f()}l=l.join(" "),r.path&&e.length>0&&e[0]!==a.OPS.rectangle&&e[0]!==a.OPS.moveTo?l=r.path.getAttributeNS(null,"d")+l:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(r.path)),r.path.setAttributeNS(null,"d",l),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(i,s)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(v++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",p(this.transformMatrix));var r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(r),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;var a,i=_createForOfIteratorHelper(this.extraStack);try{for(i.s();!(a=i.n()).done;)a.value.clipGroup=null}catch(s){i.e(s)}finally{i.f()}n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var r=_slicedToArray(t.value,2),i=r[0],s=r[1];switch(i){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s);break;case"CA":this.setStrokeAlpha(s);break;case"ca":this.setFillAlpha(s);break;default:(0,a.warn)("Unimplemented graphic state operator ".concat(i))}}}catch(l){n.e(l)}finally{n.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",f(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",f(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(f).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",f(t*n.dashPhase)+"px")}},{key:"eoFill",value:function(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}},{key:"paintImageXObject",value:function(e){var t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,a.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var n=e.width,r=e.height,a=d(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",f(n)),i.setAttributeNS(null,"height",f(r)),this.current.element=i,this.clip("nonzero");var s=this.svgFactory.createElement("svg:image");s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y",f(-r)),s.setAttributeNS(null,"width",f(n)+"px"),s.setAttributeNS(null,"height",f(r)+"px"),s.setAttributeNS(null,"transform","scale(".concat(f(1/n)," ").concat(f(-1/r),")")),t?t.append(s):this._ensureTransformGroup().append(s)}},{key:"paintImageMaskXObject",value:function(e){var t=this.getObject(e.data,e);if(t.bitmap)(0,a.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");else{var n=this.current,r=t.width,i=t.height,s=n.fillColor;n.maskId="mask".concat(m++);var l=this.svgFactory.createElement("svg:mask");l.setAttributeNS(null,"id",n.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",f(r)),o.setAttributeNS(null,"height",f(i)),o.setAttributeNS(null,"fill",s),o.setAttributeNS(null,"mask","url(#".concat(n.maskId,")")),this.defs.append(l),this._ensureTransformGroup().append(o),this.paintInlineImageXObject(t,l)}}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var n=t[2]-t[0],r=t[3]-t[1],a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",f(n)),a.setAttributeNS(null,"height",f(r)),this.current.element=a,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",p(e.transform)),t.append(r),this.svg=r,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",p(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}]),e}();t.SVGGraphics=y},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;var n=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"textContent",value:function(t){var n=[],r={items:n,styles:Object.create(null)};return function t(r){var a;if(r){var i=null,s=r.name;if("#text"===s)i=r.value;else{if(!e.shouldBuildText(s))return;null!==r&&void 0!==r&&null!==(a=r.attributes)&&void 0!==a&&a.textContent?i=r.attributes.textContent:r.value&&(i=r.value)}if(null!==i&&n.push({str:i}),r.children){var l,o=_createForOfIteratorHelper(r.children);try{for(o.s();!(l=o.n()).done;)t(l.value)}catch(c){o.e(c)}finally{o.f()}}}}(t),r}},{key:"shouldBuildText",value:function(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}]),e}();t.XfaText=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,a.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);var t=e.container,n=e.viewport,r=getComputedStyle(t),i=r.getPropertyValue("visibility"),s=parseFloat(r.getPropertyValue("--scale-factor"));"visible"===i&&(!s||Math.abs(s-n.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");var l=new d(e);return l._render(),l},t.updateTextLayer=function(e){var t=e.container,n=e.viewport,r=e.textDivs,i=e.textDivProperties,s=e.isOffscreenCanvasSupported,l=e.mustRotate,c=void 0===l||l,d=e.mustRescale,h=void 0===d||d;if(c&&(0,a.setLayerDimensions)(t,{rotation:n.rotation}),h){var f,p=o(0,s),v={prevFontSize:null,prevFontFamily:null,div:null,scale:n.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:p},m=_createForOfIteratorHelper(r);try{for(m.s();!(f=m.n()).done;){var g=f.value;v.properties=i.get(g),v.div=g,u(v)}}catch(y){m.e(y)}finally{m.f()}}};var r=n(1),a=n(6),i=30,s=.8,l=new Map;function o(e,t){var n;if(t&&r.FeatureTest.isOffscreenCanvasSupported)n=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{var a=document.createElement("canvas");a.width=a.height=e,n=a.getContext("2d",{alpha:!1})}return n}function c(e,t,n){var a=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(a);var u=r.Util.transform(e._transform,t.transform),d=Math.atan2(u[1],u[0]),h=n[t.fontName];h.vertical&&(d+=Math.PI/2);var f,p,v=Math.hypot(u[2],u[3]),m=v*function(e,t){var n=l.get(e);if(n)return n;var r=o(i,t);r.font="".concat(i,"px ").concat(e);var a=r.measureText(""),c=a.fontBoundingBoxAscent,u=Math.abs(a.fontBoundingBoxDescent);if(c){var d=c/(c+u);return l.set(e,d),r.canvas.width=r.canvas.height=0,d}r.strokeStyle="red",r.clearRect(0,0,i,i),r.strokeText("g",0,0);var h=r.getImageData(0,0,i,i).data;u=0;for(var f=h.length-1-3;f>=0;f-=4)if(h[f]>0){u=Math.ceil(f/4/i);break}r.clearRect(0,0,i,i),r.strokeText("A",0,i),c=0;for(var p=0,v=(h=r.getImageData(0,0,i,i).data).length;p0){c=i-Math.floor(p/4/i);break}if(r.canvas.width=r.canvas.height=0,c){var m=c/(c+u);return l.set(e,m),m}return l.set(e,s),s}(h.fontFamily,e._isOffscreenCanvasSupported);0===d?(f=u[4],p=u[5]-m):(f=u[4]+m*Math.sin(d),p=u[5]-m*Math.cos(d));var g="calc(var(--scale-factor)*",y=a.style;e._container===e._rootContainer?(y.left="".concat((100*f/e._pageWidth).toFixed(2),"%"),y.top="".concat((100*p/e._pageHeight).toFixed(2),"%")):(y.left="".concat(g).concat(f.toFixed(2),"px)"),y.top="".concat(g).concat(p.toFixed(2),"px)")),y.fontSize="".concat(g).concat(v.toFixed(2),"px)"),y.fontFamily=h.fontFamily,c.fontSize=v,a.setAttribute("role","presentation"),a.textContent=t.str,a.dir=t.dir,e._fontInspectorEnabled&&(a.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));var x=!1;if(t.str.length>1)x=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){var b=Math.abs(t.transform[0]),_=Math.abs(t.transform[3]);b!==_&&Math.max(b,_)/Math.min(b,_)>1.5&&(x=!0)}x&&(c.canvasWidth=h.vertical?t.height:t.width),e._textDivProperties.set(a,c),e._isReadableStream&&e._layoutText(a)}function u(e){var t=e.div,n=e.scale,r=e.properties,a=e.ctx,i=e.prevFontSize,s=e.prevFontFamily,l=t.style,o="";if(0!==r.canvasWidth&&r.hasText){var c=l.fontFamily,u=r.canvasWidth,d=r.fontSize;i===d&&s===c||(a.font="".concat(d*n,"px ").concat(c),e.prevFontSize=d,e.prevFontFamily=c);var h=a.measureText(t.textContent).width;h>0&&(o="scaleX(".concat(u*n/h,")"))}0!==r.angle&&(o="rotate(".concat(r.angle,"deg) ").concat(o)),o.length>0&&(l.transform=o)}var d=function(){function e(t){var n,i=this,s=t.textContentSource,l=t.container,c=t.viewport,u=t.textDivs,d=t.textDivProperties,h=t.textContentItemsStr,f=t.isOffscreenCanvasSupported;_classCallCheck(this,e),this._textContentSource=s,this._isReadableStream=s instanceof ReadableStream,this._container=this._rootContainer=l,this._textDivs=u||[],this._textContentItemsStr=h||[],this._isOffscreenCanvasSupported=f,this._fontInspectorEnabled=!(null===(n=globalThis.FontInspector)||void 0===n||!n.enabled),this._reader=null,this._textDivProperties=d||new WeakMap,this._canceled=!1,this._capability=new r.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:c.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:o(0,f)};var p=c.rawDims,v=p.pageWidth,m=p.pageHeight,g=p.pageX,y=p.pageY;this._transform=[1,0,0,-1,-g,y+m],this._pageWidth=v,this._pageHeight=m,(0,a.setLayerDimensions)(l,c),this._capability.promise.finally((function(){i._layoutTextParams=null})).catch((function(){}))}return _createClass(e,[{key:"promise",get:function(){return this._capability.promise}},{key:"cancel",value:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")).catch((function(){})),this._reader=null),this._capability.reject(new r.AbortException("TextLayer task cancelled."))}},{key:"_processItems",value:function(e,t){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(void 0!==a.str)this._textContentItemsStr.push(a.str),c(this,a,t);else if("beginMarkedContentProps"===a.type||"beginMarkedContent"===a.type){var i=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==a.id&&this._container.setAttribute("id","".concat(a.id)),i.append(this._container)}else"endMarkedContent"===a.type&&(this._container=this._container.parentNode)}}catch(s){r.e(s)}finally{r.f()}}},{key:"_layoutText",value:function(e){var t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,u(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){var n=document.createElement("br");n.setAttribute("role","presentation"),this._container.append(n)}}},{key:"_render",value:function(){var e=this,t=new r.PromiseCapability,n=Object.create(null);if(this._isReadableStream)this._reader=this._textContentSource.getReader(),function r(){e._reader.read().then((function(a){var i=a.value;a.done?t.resolve():(Object.assign(n,i.styles),e._processItems(i.items,n),r())}),t.reject)}();else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');var a=this._textContentSource,i=a.items,s=a.styles;this._processItems(i,s),t.resolve()}t.promise.then((function(){n=null,function(e){if(!e._canceled){var t=e._textDivs,n=e._capability;if(t.length>1e5)n.resolve();else{if(!e._isReadableStream){var r,a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;e._layoutText(i)}}catch(s){a.e(s)}finally{a.f()}}n.resolve()}}}(e)}),this._capability.reject)}}]),e}();t.TextLayerRenderTask=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var r=n(1),a=n(4),i=n(28),s=n(33),l=n(6),o=n(34),c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,x=new WeakSet,b=new WeakSet,_=new WeakSet,w=new WeakSet,k=function(){function e(t){var n=t.uiManager,r=t.pageIndex,a=t.div,l=t.accessibilityManager,k=t.annotationLayer,S=t.viewport,P=t.l10n;_classCallCheck(this,e),_classPrivateMethodInitSpec(this,w),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,b),_classPrivateMethodInitSpec(this,x),_classPrivateFieldInitSpec(this,c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:this.pointerup.bind(this)}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:this.pointerdown.bind(this)}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:void 0});var C=[i.FreeTextEditor,s.InkEditor,o.StampEditor];if(!e._initialized){e._initialized=!0;var A,j=_createForOfIteratorHelper(C);try{for(j.s();!(A=j.n()).done;)A.value.initialize(P)}catch(E){j.e(E)}finally{j.f()}}n.registerEditorTypes(C),_classPrivateFieldSet(this,y,n),this.pageIndex=r,this.div=a,_classPrivateFieldSet(this,c,l),_classPrivateFieldSet(this,d,k),this.viewport=S,_classPrivateFieldGet(this,y).addLayer(this)}return _createClass(e,[{key:"isEmpty",get:function(){return 0===_classPrivateFieldGet(this,p).size}},{key:"updateToolbar",value:function(e){_classPrivateFieldGet(this,y).updateToolbar(e)}},{key:"updateMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(this,y).getMode();_classPrivateMethodGet(this,w,A).call(this),e===r.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==r.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===r.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===r.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===r.AnnotationEditorType.STAMP),this.div.hidden=!1)}},{key:"addInkEditorIfNeeded",value:function(e){if(e||_classPrivateFieldGet(this,y).getMode()===r.AnnotationEditorType.INK){if(!e){var t,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,p).values());try{for(n.s();!(t=n.n()).done;){var a=t.value;if(a.isEmpty())return void a.setInBackground()}}catch(i){n.e(i)}finally{n.f()}}_classPrivateMethodGet(this,b,P).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}}},{key:"setEditingState",value:function(e){_classPrivateFieldGet(this,y).setEditingState(e)}},{key:"addCommands",value:function(e){_classPrivateFieldGet(this,y).addCommands(e)}},{key:"enable",value:function(){this.div.style.pointerEvents="auto";var e,t=new Set,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,p).values());try{for(n.s();!(e=n.n()).done;){var r=e.value;r.enableEditing(),r.annotationElementId&&t.add(r.annotationElementId)}}catch(c){n.e(c)}finally{n.f()}if(_classPrivateFieldGet(this,d)){var a,i=_classPrivateFieldGet(this,d).getEditableAnnotations(),s=_createForOfIteratorHelper(i);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(l.hide(),!_classPrivateFieldGet(this,y).isDeletedAnnotationElement(l.data.id)&&!t.has(l.data.id)){var o=this.deserialize(l);o&&(this.addOrRebuild(o),o.enableEditing())}}}catch(c){s.e(c)}finally{s.f()}}}},{key:"disable",value:function(){_classPrivateFieldSet(this,g,!0),this.div.style.pointerEvents="none";var e,t=new Set,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,p).values());try{for(n.s();!(e=n.n()).done;){var r,a=e.value;a.disableEditing(),a.annotationElementId&&null===a.serialize()?(null===(r=this.getEditableAnnotation(a.annotationElementId))||void 0===r||r.show(),a.remove()):t.add(a.annotationElementId)}}catch(u){n.e(u)}finally{n.f()}if(_classPrivateFieldGet(this,d)){var i,s=_classPrivateFieldGet(this,d).getEditableAnnotations(),l=_createForOfIteratorHelper(s);try{for(l.s();!(i=l.n()).done;){var o=i.value,c=o.data.id;t.has(c)||_classPrivateFieldGet(this,y).isDeletedAnnotationElement(c)||o.show()}}catch(u){l.e(u)}finally{l.f()}}_classPrivateMethodGet(this,w,A).call(this),this.isEmpty&&(this.div.hidden=!0),_classPrivateFieldSet(this,g,!1)}},{key:"getEditableAnnotation",value:function(e){var t;return(null===(t=_classPrivateFieldGet(this,d))||void 0===t?void 0:t.getEditableAnnotation(e))||null}},{key:"setActiveEditor",value:function(e){_classPrivateFieldGet(this,y).getActive()!==e&&_classPrivateFieldGet(this,y).setActiveEditor(e)}},{key:"enableClick",value:function(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(this,f)),this.div.addEventListener("pointerup",_classPrivateFieldGet(this,h))}},{key:"disableClick",value:function(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(this,f)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(this,h))}},{key:"attach",value:function(e){_classPrivateFieldGet(this,p).set(e.id,e);var t=e.annotationElementId;t&&_classPrivateFieldGet(this,y).isDeletedAnnotationElement(t)&&_classPrivateFieldGet(this,y).removeDeletedAnnotationElement(e)}},{key:"detach",value:function(e){var t;_classPrivateFieldGet(this,p).delete(e.id),null===(t=_classPrivateFieldGet(this,c))||void 0===t||t.removePointerInTextLayer(e.contentDiv),!_classPrivateFieldGet(this,g)&&e.annotationElementId&&_classPrivateFieldGet(this,y).addDeletedAnnotationElement(e)}},{key:"remove",value:function(e){var t=this;this.detach(e),_classPrivateFieldGet(this,y).removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((function(){_classPrivateFieldGet(t,y).focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,_classPrivateFieldGet(this,m)||this.addInkEditorIfNeeded(!1)}},{key:"changeParent",value:function(e){var t;e.parent!==this&&(e.annotationElementId&&(_classPrivateFieldGet(this,y).addDeletedAnnotationElement(e.annotationElementId),a.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),null===(t=e.parent)||void 0===t||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}},{key:"add",value:function(e){if(this.changeParent(e),_classPrivateFieldGet(this,y).addEditor(e),this.attach(e),!e.isAttachedToDOM){var t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),_classPrivateFieldGet(this,y).addToAnnotationStorage(e)}},{key:"moveEditorInDOM",value:function(e){var t;if(e.isAttachedToDOM){var n=document.activeElement;e.div.contains(n)&&(e._focusEventsAllowed=!1,setTimeout((function(){e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(function(){e._focusEventsAllowed=!0}),{once:!0}),n.focus())}),0)),e._structTreeParentId=null===(t=_classPrivateFieldGet(this,c))||void 0===t?void 0:t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}}},{key:"addOrRebuild",value:function(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}},{key:"addUndoableEditor",value:function(e){this.addCommands({cmd:function(){return e._uiManager.rebuild(e)},undo:function(){e.remove()},mustExec:!1})}},{key:"getNextId",value:function(){return _classPrivateFieldGet(this,y).getId()}},{key:"pasteEditor",value:function(e,t){_classPrivateFieldGet(this,y).updateToolbar(e),_classPrivateFieldGet(this,y).updateMode(e);var n=_classPrivateMethodGet(this,_,C).call(this),r=n.offsetX,a=n.offsetY,i=this.getNextId(),s=_classPrivateMethodGet(this,x,S).call(this,_objectSpread({parent:this,id:i,x:r,y:a,uiManager:_classPrivateFieldGet(this,y),isCentered:!0},t));s&&this.add(s)}},{key:"deserialize",value:function(e){var t;switch(null!==(t=e.annotationType)&&void 0!==t?t:e.annotationEditorType){case r.AnnotationEditorType.FREETEXT:return i.FreeTextEditor.deserialize(e,this,_classPrivateFieldGet(this,y));case r.AnnotationEditorType.INK:return s.InkEditor.deserialize(e,this,_classPrivateFieldGet(this,y));case r.AnnotationEditorType.STAMP:return o.StampEditor.deserialize(e,this,_classPrivateFieldGet(this,y))}return null}},{key:"addNewEditor",value:function(){_classPrivateMethodGet(this,b,P).call(this,_classPrivateMethodGet(this,_,C).call(this),!0)}},{key:"setSelected",value:function(e){_classPrivateFieldGet(this,y).setSelected(e)}},{key:"toggleSelected",value:function(e){_classPrivateFieldGet(this,y).toggleSelected(e)}},{key:"isSelected",value:function(e){return _classPrivateFieldGet(this,y).isSelected(e)}},{key:"unselect",value:function(e){_classPrivateFieldGet(this,y).unselect(e)}},{key:"pointerup",value:function(e){var t=r.FeatureTest.platform.isMac;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(this,v)&&(_classPrivateFieldSet(this,v,!1),_classPrivateFieldGet(this,u)?_classPrivateFieldGet(this,y).getMode()!==r.AnnotationEditorType.STAMP?_classPrivateMethodGet(this,b,P).call(this,e,!1):_classPrivateFieldGet(this,y).unselectAll():_classPrivateFieldSet(this,u,!0))}},{key:"pointerdown",value:function(e){if(_classPrivateFieldGet(this,v))_classPrivateFieldSet(this,v,!1);else{var t=r.FeatureTest.platform.isMac;if(!(0!==e.button||e.ctrlKey&&t)&&e.target===this.div){_classPrivateFieldSet(this,v,!0);var n=_classPrivateFieldGet(this,y).getActive();_classPrivateFieldSet(this,u,!n||n.isEmpty())}}}},{key:"findNewParent",value:function(e,t,n){var r=_classPrivateFieldGet(this,y).findParent(t,n);return null!==r&&r!==this&&(r.changeParent(e),!0)}},{key:"destroy",value:function(){var e;(null===(e=_classPrivateFieldGet(this,y).getActive())||void 0===e?void 0:e.parent)===this&&(_classPrivateFieldGet(this,y).commitOrRemove(),_classPrivateFieldGet(this,y).setActiveEditor(null));var t,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,p).values());try{for(n.s();!(t=n.n()).done;){var r,a=t.value;null===(r=_classPrivateFieldGet(this,c))||void 0===r||r.removePointerInTextLayer(a.contentDiv),a.setParent(null),a.isAttachedToDOM=!1,a.div.remove()}}catch(i){n.e(i)}finally{n.f()}this.div=null,_classPrivateFieldGet(this,p).clear(),_classPrivateFieldGet(this,y).removeLayer(this)}},{key:"render",value:function(e){var t=e.viewport;this.viewport=t,(0,l.setLayerDimensions)(this.div,t);var n,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,y).getEditors(this.pageIndex));try{for(r.s();!(n=r.n()).done;){var a=n.value;this.add(a)}}catch(i){r.e(i)}finally{r.f()}this.updateMode()}},{key:"update",value:function(e){var t=e.viewport;_classPrivateFieldGet(this,y).commitOrRemove(),this.viewport=t,(0,l.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}},{key:"pageDimensions",get:function(){var e=this.viewport.rawDims;return[e.pageWidth,e.pageHeight]}}]),e}();function S(e){switch(_classPrivateFieldGet(this,y).getMode()){case r.AnnotationEditorType.FREETEXT:return new i.FreeTextEditor(e);case r.AnnotationEditorType.INK:return new s.InkEditor(e);case r.AnnotationEditorType.STAMP:return new o.StampEditor(e)}return null}function P(e,t){var n=this.getNextId(),r=_classPrivateMethodGet(this,x,S).call(this,{parent:this,id:n,x:e.offsetX,y:e.offsetY,uiManager:_classPrivateFieldGet(this,y),isCentered:t});return r&&this.add(r),r}function C(){var e=this.div.getBoundingClientRect(),t=e.x,n=e.y,r=e.width,a=e.height,i=Math.max(0,t),s=Math.max(0,n),l=(i+Math.min(window.innerWidth,t+r))/2-t,o=(s+Math.min(window.innerHeight,n+a))/2-n,c=this.viewport.rotation%180===0?[l,o]:[o,l],u=_slicedToArray(c,2);return{offsetX:u[0],offsetY:u[1]}}function A(){_classPrivateFieldSet(this,m,!0);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,p).values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.isEmpty()&&n.remove()}}catch(r){t.e(r)}finally{t.f()}_classPrivateFieldSet(this,m,!1)}_defineProperty(k,"_initialized",!1),t.AnnotationEditorLayer=k},function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var a=n(1),i=n(5),s=n(4),l=n(29),o=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakMap,m=new WeakMap,g=new WeakSet,y=new WeakSet,x=new WeakSet,b=new WeakSet,_=new WeakSet,w=new WeakSet,k=new WeakSet,S=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this,_objectSpread(_objectSpread({},e),{},{name:"freeTextEditor"})),_classPrivateMethodInitSpec(_assertThisInitialized(r),k),_classPrivateMethodInitSpec(_assertThisInitialized(r),w),_classPrivateMethodInitSpec(_assertThisInitialized(r),_),_classPrivateMethodInitSpec(_assertThisInitialized(r),b),_classPrivateMethodInitSpec(_assertThisInitialized(r),x),_classPrivateMethodInitSpec(_assertThisInitialized(r),y),_classPrivateMethodInitSpec(_assertThisInitialized(r),g),_classPrivateFieldInitSpec(_assertThisInitialized(r),o,{writable:!0,value:r.editorDivBlur.bind(_assertThisInitialized(r))}),_classPrivateFieldInitSpec(_assertThisInitialized(r),c,{writable:!0,value:r.editorDivFocus.bind(_assertThisInitialized(r))}),_classPrivateFieldInitSpec(_assertThisInitialized(r),u,{writable:!0,value:r.editorDivInput.bind(_assertThisInitialized(r))}),_classPrivateFieldInitSpec(_assertThisInitialized(r),d,{writable:!0,value:r.editorDivKeydown.bind(_assertThisInitialized(r))}),_classPrivateFieldInitSpec(_assertThisInitialized(r),h,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(r),f,{writable:!0,value:""}),_classPrivateFieldInitSpec(_assertThisInitialized(r),p,{writable:!0,value:"".concat(r.id,"-editor")}),_classPrivateFieldInitSpec(_assertThisInitialized(r),v,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(r),m,{writable:!0,value:null}),_classPrivateFieldSet(_assertThisInitialized(r),h,e.color||n._defaultColor||s.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(_assertThisInitialized(r),v,e.fontSize||n._defaultFontSize),r}return _createClass(n,[{key:"updateParams",value:function(e,t){switch(e){case a.AnnotationEditorParamsType.FREETEXT_SIZE:_classPrivateMethodGet(this,g,P).call(this,t);break;case a.AnnotationEditorParamsType.FREETEXT_COLOR:_classPrivateMethodGet(this,y,C).call(this,t)}}},{key:"propertiesToUpdate",get:function(){return[[a.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(this,v)],[a.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(this,h)]]}},{key:"_translateEmpty",value:function(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}},{key:"getInitialTranslation",value:function(){var e=this.parentScale;return[-n._internalPadding*e,-(n._internalPadding+_classPrivateFieldGet(this,v))*e]}},{key:"rebuild",value:function(){this.parent&&(_get4(_getPrototypeOf(n.prototype),"rebuild",this).call(this),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}},{key:"enableEditMode",value:function(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(a.AnnotationEditorType.FREETEXT),_get4(_getPrototypeOf(n.prototype),"enableEditMode",this).call(this),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(this,d)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(this,c)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(this,o)),this.editorDiv.addEventListener("input",_classPrivateFieldGet(this,u)))}},{key:"disableEditMode",value:function(){this.isInEditMode()&&(this.parent.setEditingState(!0),_get4(_getPrototypeOf(n.prototype),"disableEditMode",this).call(this),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",_classPrivateFieldGet(this,p)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(this,d)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(this,c)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(this,o)),this.editorDiv.removeEventListener("input",_classPrivateFieldGet(this,u)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}},{key:"focusin",value:function(e){this._focusEventsAllowed&&(_get4(_getPrototypeOf(n.prototype),"focusin",this).call(this,e),e.target!==this.editorDiv&&this.editorDiv.focus())}},{key:"onceAdded",value:function(){var e;this.width?_classPrivateMethodGet(this,k,N).call(this):(this.enableEditMode(),this.editorDiv.focus(),null!==(e=this._initialOptions)&&void 0!==e&&e.isCentered&&this.center(),this._initialOptions=null)}},{key:"isEmpty",value:function(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}},{key:"remove",value:function(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),_get4(_getPrototypeOf(n.prototype),"remove",this).call(this)}},{key:"commit",value:function(){var e=this;if(this.isInEditMode()){_get4(_getPrototypeOf(n.prototype),"commit",this).call(this),this.disableEditMode();var t=_classPrivateFieldGet(this,f),r=_classPrivateFieldSet(this,f,_classPrivateMethodGet(this,x,A).call(this).trimEnd());if(t!==r){var a=function(t){_classPrivateFieldSet(e,f,t),t?(_classPrivateMethodGet(e,_,E).call(e),e._uiManager.rebuild(e),_classPrivateMethodGet(e,b,j).call(e)):e.remove()};this.addCommands({cmd:function(){a(r)},undo:function(){a(t)},mustExec:!1}),_classPrivateMethodGet(this,b,j).call(this)}}}},{key:"shouldGetKeyboardEvents",value:function(){return this.isInEditMode()}},{key:"enterInEditMode",value:function(){this.enableEditMode(),this.editorDiv.focus()}},{key:"dblclick",value:function(e){this.enterInEditMode()}},{key:"keydown",value:function(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}},{key:"editorDivKeydown",value:function(e){n._keyboardManager.exec(this,e)}},{key:"editorDivFocus",value:function(e){this.isEditing=!0}},{key:"editorDivBlur",value:function(e){this.isEditing=!1}},{key:"editorDivInput",value:function(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}},{key:"disableEditing",value:function(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}},{key:"enableEditing",value:function(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}},{key:"render",value:function(){var e,t,r=this;if(this.div)return this.div;this.width&&(e=this.x,t=this.y),_get4(_getPrototypeOf(n.prototype),"render",this).call(this),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",_classPrivateFieldGet(this,p)),this.enableEditing(),s.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((function(e){var t;return null===(t=r.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),s.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((function(e){var t;return null===(t=r.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;var a=this.editorDiv.style;if(a.fontSize="calc(".concat(_classPrivateFieldGet(this,v),"px * var(--scale-factor))"),a.color=_classPrivateFieldGet(this,h),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,i.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){var l=_slicedToArray(this.parentDimensions,2),o=l[0],c=l[1];if(this.annotationElementId){var u=_classPrivateFieldGet(this,m).position,d=this.getInitialTranslation(),f=_slicedToArray(d,2),g=f[0],y=f[1],x=this.pageTranslationToScreen(g,y),b=_slicedToArray(x,2);g=b[0],y=b[1];var w,k,S=_slicedToArray(this.pageDimensions,2),P=S[0],C=S[1],A=_slicedToArray(this.pageTranslation,2),j=A[0],F=A[1];switch(this.rotation){case 0:w=e+(u[0]-j)/P,k=t+this.height-(u[1]-F)/C;break;case 90:w=e+(u[0]-j)/P,k=t-(u[1]-F)/C;var N=[y,-g];g=N[0],y=N[1];break;case 180:w=e-this.width+(u[0]-j)/P,k=t-(u[1]-F)/C;var T=[-g,-y];g=T[0],y=T[1];break;case 270:w=e+(u[0]-j-this.height*C)/P,k=t+(u[1]-F-this.width*P)/C;var M=[-y,g];g=M[0],y=M[1]}this.setAt(w*o,k*c,g,y)}else this.setAt(e*o,t*c,this.width*o,this.height*c);_classPrivateMethodGet(this,_,E).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}},{key:"contentDiv",get:function(){return this.editorDiv}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};var t=n._internalPadding*this.parentScale,r=this.getRect(t,t),i=s.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:_classPrivateFieldGet(this,h)),l={annotationType:a.AnnotationEditorType.FREETEXT,color:i,fontSize:_classPrivateFieldGet(this,v),value:_classPrivateFieldGet(this,f),pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?l:this.annotationElementId&&!_classPrivateMethodGet(this,w,F).call(this,l)?null:(l.id=this.annotationElementId,l)}}],[{key:"_keyboardManager",get:function(){var e=n.prototype,t=function(e){return e.isEmpty()},r=i.AnnotationEditorUIManager.TRANSLATE_SMALL,s=i.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,a.shadow)(this,"_keyboardManager",new i.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-s,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[s,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-s],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,s],checker:t}]]))}},{key:"initialize",value:function(e){s.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});var t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}},{key:"updateDefaultParams",value:function(e,t){switch(e){case a.AnnotationEditorParamsType.FREETEXT_SIZE:n._defaultFontSize=t;break;case a.AnnotationEditorParamsType.FREETEXT_COLOR:n._defaultColor=t}}},{key:"defaultPropertiesToUpdate",get:function(){return[[a.AnnotationEditorParamsType.FREETEXT_SIZE,n._defaultFontSize],[a.AnnotationEditorParamsType.FREETEXT_COLOR,n._defaultColor||s.AnnotationEditor._defaultLineColor]]}},{key:"deserialize",value:function(e,t,r){var i,s=null;if(e instanceof l.FreeTextAnnotationElement){var o=e,c=o.data,u=c.defaultAppearanceData,d=u.fontSize,p=u.fontColor,g=c.rect,y=c.rotation,x=c.id,b=o.textContent,_=o.textPosition,w=o.parent.page.pageNumber;if(!b||0===b.length)return null;s=e={annotationType:a.AnnotationEditorType.FREETEXT,color:Array.from(p),fontSize:d,value:b.join("\n"),position:_,pageIndex:w-1,rect:g,rotation:y,id:x,deleted:!1}}var k=_get4(_getPrototypeOf(n),"deserialize",this).call(this,e,t,r);return _classPrivateFieldSet(k,v,e.fontSize),_classPrivateFieldSet(k,h,(i=a.Util).makeHexColor.apply(i,_toConsumableArray(e.color))),_classPrivateFieldSet(k,f,e.value),k.annotationElementId=e.id||null,_classPrivateFieldSet(k,m,s),k}}]),n}(s.AnnotationEditor);function P(e){var t=this,n=function(e){t.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),t.translate(0,-(e-_classPrivateFieldGet(t,v))*t.parentScale),_classPrivateFieldSet(t,v,e),_classPrivateMethodGet(t,b,j).call(t)},r=_classPrivateFieldGet(this,v);this.addCommands({cmd:function(){n(e)},undo:function(){n(r)},mustExec:!0,type:a.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function C(e){var t=this,n=_classPrivateFieldGet(this,h);this.addCommands({cmd:function(){_classPrivateFieldSet(t,h,t.editorDiv.style.color=e)},undo:function(){_classPrivateFieldSet(t,h,t.editorDiv.style.color=n)},mustExec:!0,type:a.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function A(){var e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;var t,n=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.push(a.innerText.replace(/\r\n?|\n/,""))}}catch(i){r.e(i)}finally{r.f()}return n.join("\n")}function j(){var e,t=_slicedToArray(this.parentDimensions,2),n=t[0],r=t[1];if(this.isAttachedToDOM)e=this.div.getBoundingClientRect();else{var a=this.currentLayer,i=this.div,s=i.style.display;i.style.display="hidden",a.div.append(this.div),e=i.getBoundingClientRect(),i.remove(),i.style.display=s}this.rotation%180===this.parentRotation%180?(this.width=e.width/n,this.height=e.height/r):(this.width=e.height/n,this.height=e.width/r),this.fixAndSetPosition()}function E(){if(this.editorDiv.replaceChildren(),_classPrivateFieldGet(this,f)){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,f).split("\n"));try{for(t.s();!(e=t.n()).done;){var n=e.value,r=document.createElement("div");r.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(r)}}catch(a){t.e(a)}finally{t.f()}}}function F(e){var t=_classPrivateFieldGet(this,m),n=t.value,r=t.fontSize,a=t.color,i=t.rect,s=t.pageIndex;return e.value!==n||e.fontSize!==r||e.rect.some((function(e,t){return Math.abs(e-i[t])>=1}))||e.color.some((function(e,t){return e!==a[t]}))||e.pageIndex!==s}function N(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.annotationElementId)if(_classPrivateMethodGet(this,b,j).call(this),t||0!==this.width&&0!==this.height){var n=r._internalPadding*this.parentScale;_classPrivateFieldGet(this,m).rect=this.getRect(n,n)}else setTimeout((function(){return _classPrivateMethodGet(e,k,N).call(e,!0)}),0)}r=S,_defineProperty(S,"_freeTextDefaultContent",""),_defineProperty(S,"_internalPadding",0),_defineProperty(S,"_defaultColor",null),_defineProperty(S,"_defaultFontSize",10),_defineProperty(S,"_type","freetext"),t.FreeTextEditor=S},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var r=n(1),a=n(6),i=n(3),s=n(30),l=n(31),o=n(32),c=1e3,u=new WeakSet;function d(e){return{width:e[2]-e[0],height:e[3]-e[1]}}var h=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new g(e);case r.AnnotationType.TEXT:return new b(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new w(e);case"Btn":return e.data.radioButton?new P(e):e.data.checkBox?new S(e):new C(e);case"Ch":return new A(e);case"Sig":return new k(e)}return new _(e);case r.AnnotationType.POPUP:return new j(e);case r.AnnotationType.FREETEXT:return new te(e);case r.AnnotationType.LINE:return new re(e);case r.AnnotationType.SQUARE:return new ie(e);case r.AnnotationType.CIRCLE:return new le(e);case r.AnnotationType.POLYLINE:return new ce(e);case r.AnnotationType.CARET:return new de(e);case r.AnnotationType.INK:return new fe(e);case r.AnnotationType.POLYGON:return new ue(e);case r.AnnotationType.HIGHLIGHT:return new pe(e);case r.AnnotationType.UNDERLINE:return new ve(e);case r.AnnotationType.SQUIGGLY:return new me(e);case r.AnnotationType.STRIKEOUT:return new ge(e);case r.AnnotationType.STAMP:return new ye(e);case r.AnnotationType.FILEATTACHMENT:return new _e(e);default:return new p(e)}}}]),e}(),f=new WeakMap,p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.isRenderable,a=void 0!==r&&r,i=n.ignoreBorder,s=void 0!==i&&i,l=n.createQuadrilaterals,o=void 0!==l&&l;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,f,{writable:!0,value:!1}),this.isRenderable=a,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.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,a&&(this.container=this._createContainer(s)),o&&this._createQuadrilaterals()}return _createClass(e,[{key:"hasPopupData",get:function(){return e._hasPopupData(this.data)}},{key:"_createContainer",value:function(e){var t=this.data,n=this.parent,a=n.page,i=n.viewport,s=document.createElement("section");s.setAttribute("data-annotation-id",t.id),this instanceof _||(s.tabIndex=c),s.style.zIndex=this.parent.zIndex++,this.data.popupRef&&s.setAttribute("aria-haspopup","dialog"),t.noRotate&&s.classList.add("norotate");var l=i.rawDims,o=l.pageWidth,u=l.pageHeight,h=l.pageX,p=l.pageY;if(!t.rect||this instanceof j){var v=t.rotation;return t.hasOwnCanvas||0===v||this.setRotation(v,s),s}var m=d(t.rect),g=m.width,y=m.height,x=r.Util.normalizeRect([t.rect[0],a.view[3]-t.rect[1]+a.view[1],t.rect[2],a.view[3]-t.rect[3]+a.view[1]]);if(!e&&t.borderStyle.width>0){s.style.borderWidth="".concat(t.borderStyle.width,"px");var b=t.borderStyle.horizontalCornerRadius,w=t.borderStyle.verticalCornerRadius;if(b>0||w>0){var k="calc(".concat(b,"px * var(--scale-factor)) / calc(").concat(w,"px * var(--scale-factor))");s.style.borderRadius=k}else if(this instanceof P){var S="calc(".concat(g,"px * var(--scale-factor)) / calc(").concat(y,"px * var(--scale-factor))");s.style.borderRadius=S}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:s.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:s.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:s.style.borderBottomStyle="solid"}var C=t.borderColor||null;C?(_classPrivateFieldSet(this,f,!0),s.style.borderColor=r.Util.makeHexColor(0|C[0],0|C[1],0|C[2])):s.style.borderWidth=0}s.style.left="".concat(100*(x[0]-h)/o,"%"),s.style.top="".concat(100*(x[1]-p)/u,"%");var A=t.rotation;return t.hasOwnCanvas||0===A?(s.style.width="".concat(100*g/o,"%"),s.style.height="".concat(100*y/u,"%")):this.setRotation(A,s),s}},{key:"setRotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(this.data.rect){var n,r,a=this.parent.viewport.rawDims,i=a.pageWidth,s=a.pageHeight,l=d(this.data.rect),o=l.width,c=l.height;e%180===0?(n=100*o/i,r=100*c/s):(n=100*c/i,r=100*o/s),t.style.width="".concat(n,"%"),t.style.height="".concat(r,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}}},{key:"_commonActions",get:function(){var e=this,t=function(t,n,r){var a=r.detail[t],i=a[0],l=a.slice(1);r.target.style[n]=s.ColorConverters["".concat(i,"_HTML")](l),e.annotationStorage.setValue(e.data.id,_defineProperty({},n,s.ColorConverters["".concat(i,"_rgb")](l)))};return(0,r.shadow)(this,"_commonActions",{display:function(t){var n=t.detail.display,r=n%2===1;e.container.style.visibility=r?"hidden":"visible",e.annotationStorage.setValue(e.data.id,{noView:r,noPrint:1===n||2===n})},print:function(t){e.annotationStorage.setValue(e.data.id,{noPrint:!t.detail.print})},hidden:function(t){var n=t.detail.hidden;e.container.style.visibility=n?"hidden":"visible",e.annotationStorage.setValue(e.data.id,{noPrint:n,noView:n})},focus:function(e){setTimeout((function(){return e.target.focus({preventScroll:!1})}),0)},userName:function(e){e.target.title=e.detail.userName},readonly:function(e){e.target.disabled=e.detail.readonly},required:function(t){e._setRequired(t.target,t.detail.required)},bgColor:function(e){t("bgColor","backgroundColor",e)},fillColor:function(e){t("fillColor","backgroundColor",e)},fgColor:function(e){t("fgColor","color",e)},textColor:function(e){t("textColor","color",e)},borderColor:function(e){t("borderColor","borderColor",e)},strokeColor:function(e){t("strokeColor","borderColor",e)},rotation:function(t){var n=t.detail.rotation;e.setRotation(n),e.annotationStorage.setValue(e.data.id,{rotation:n})}})}},{key:"_dispatchEventFromSandbox",value:function(e,t){for(var n=this._commonActions,r=0,a=Object.keys(t.detail);r','')],this.container.classList.add("hasBorder")}var y=a-n,x=i-r,b=this.svgFactory,_=b.createElement("svg");_.classList.add("quadrilateralsContainer"),_.setAttribute("width",0),_.setAttribute("height",0);var w=b.createElement("defs");_.append(w);var k=b.createElement("clipPath"),S="clippath_".concat(this.data.id);k.setAttribute("id",S),k.setAttribute("clipPathUnits","objectBoundingBox"),w.append(k);var P,C=_createForOfIteratorHelper(e);try{for(C.s();!(P=C.n()).done;){var A,j=_slicedToArray(P.value,3),E=j[1],F=E.x,N=E.y,T=j[2],M=T.x,I=T.y,R=b.createElement("rect"),O=(M-n)/y,L=(i-N)/x,D=(F-M)/y,G=(N-I)/x;R.setAttribute("x",O),R.setAttribute("y",L),R.setAttribute("width",D),R.setAttribute("height",G),k.append(R),null===(A=p)||void 0===A||A.push(''))}}catch(z){C.e(z)}finally{C.f()}_classPrivateFieldGet(this,f)&&(p.push("')"),v.backgroundImage=p.join("")),this.container.append(_),this.container.style.clipPath="url(#".concat(S,")")}}}},{key:"_createPopup",value:function(){var e=this.container,t=this.data;e.setAttribute("aria-haspopup","dialog");var n=new j({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:"popup_".concat(t.id),rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}},{key:"render",value:function(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}},{key:"_getElementsByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(this._fieldObjects){var a=this._fieldObjects[e];if(a){var i,s=_createForOfIteratorHelper(a);try{for(s.s();!(i=s.n()).done;){var l=i.value,o=l.page,c=l.id,d=l.exportValues;if(-1!==o&&c!==t){var h="string"===typeof d?d:null,f=document.querySelector('[data-element-id="'.concat(c,'"]'));!f||u.has(f)?n.push({id:c,exportValue:h,domElement:f}):(0,r.warn)("_getElementsByName - element not allowed: ".concat(c))}}}catch(x){s.e(x)}finally{s.f()}}return n}var p,v=_createForOfIteratorHelper(document.getElementsByName(e));try{for(v.s();!(p=v.n()).done;){var m=p.value,g=m.exportValue,y=m.getAttribute("data-element-id");y!==t&&u.has(m)&&n.push({id:y,exportValue:g,domElement:m})}}catch(x){v.e(x)}finally{v.f()}return n}},{key:"show",value:function(){var e;this.container&&(this.container.hidden=!1),null===(e=this.popup)||void 0===e||e.maybeShow()}},{key:"hide",value:function(){var e;this.container&&(this.container.hidden=!0),null===(e=this.popup)||void 0===e||e.forceHide()}},{key:"getElementsToTriggerPopup",value:function(){return this.container}},{key:"addHighlightArea",value:function(){var e=this.getElementsToTriggerPopup();if(Array.isArray(e)){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;)t.value.classList.add("highlightArea")}catch(r){n.e(r)}finally{n.f()}}else e.classList.add("highlightArea")}},{key:"_editOnDoubleClick",value:function(){var e=this,t=this.annotationEditorType,n=this.data.id;this.container.addEventListener("dblclick",(function(){var r;null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("switchannotationeditormode",{source:e,mode:t,editId:n})}))}}],[{key:"_hasPopupData",value:function(e){var t=e.titleObj,n=e.contentsObj,r=e.richText;return!!(null!==t&&void 0!==t&&t.str||null!==n&&void 0!==n&&n.str||null!==r&&void 0!==r&&r.str)}}]),e}(),v=new WeakSet,m=new WeakSet,g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,n),r=t.call(this,e,{isRenderable:!0,ignoreBorder:!(null===a||void 0===a||!a.ignoreBorder),createQuadrilaterals:!0}),_classPrivateMethodInitSpec(_assertThisInitialized(r),m),_classPrivateMethodInitSpec(_assertThisInitialized(r),v),r.isTooltipOnly=e.data.isTooltipOnly,r}return _createClass(n,[{key:"render",value:function(){var e=this.data,t=this.linkService,n=document.createElement("a");n.setAttribute("data-element-id",e.id);var r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action),r=!0):e.attachment?(this._bindAttachment(n,e.attachment),r=!0):e.setOCGState?(_classPrivateMethodGet(this,m,x).call(this,n,e.setOCGState),r=!0):e.dest?(this._bindLink(n,e.dest),r=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.container.classList.add("linkAnnotation"),r&&this.container.append(n),this.container}},{key:"_bindLink",value:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.goToDestination(t),!1},(t||""===t)&&_classPrivateMethodGet(this,v,y).call(this)}},{key:"_bindNamedAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},_classPrivateMethodGet(this,v,y).call(this)}},{key:"_bindAttachment",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){var e;return null===(e=n.downloadManager)||void 0===e||e.openOrDownloadData(n.container,t.content,t.filename),!1},_classPrivateMethodGet(this,v,y).call(this)}},{key:"_bindJSAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl("");for(var r=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),a=function(){var a=s[i],l=r.get(a);if(!l)return 1;e[l]=function(){var e;return null===(e=n.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:n,detail:{id:t.id,name:a}}),!1}},i=0,s=Object.keys(t.actions);il&&(s=s.slice(0,l));var o=i.formattedValue||(null===(a=this.data.textContent)||void 0===a?void 0:a.join("\n"))||null;o&&this.data.comb&&(o=o.replaceAll(/\s+/g,""));var d,h,f={userValue:s,formattedValue:o,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((r=document.createElement("textarea")).textContent=null!==(d=o)&&void 0!==d?d:s,this.data.doNotScroll&&(r.style.overflowY="hidden")):((r=document.createElement("input")).type="text",r.setAttribute("value",null!==(h=o)&&void 0!==h?h:s),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),u.add(r),r.setAttribute("data-element-id",n),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=c,this._setRequired(r,this.data.required),l&&(r.maxLength=l),r.addEventListener("input",(function(a){t.setValue(n,{value:a.target.value}),e.setPropertyOnSiblings(r,"value",a.target.value,"value"),f.formattedValue=null})),r.addEventListener("resetform",(function(t){var n,a=null!==(n=e.data.defaultFieldValue)&&void 0!==n?n:"";r.value=f.userValue=a,f.formattedValue=null}));var p=function(e){var t=f.formattedValue;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var v;r.addEventListener("focus",(function(e){if(!f.focused){var t=e.target;f.userValue&&(t.value=f.userValue),f.lastCommittedValue=t.value,f.commitKey=1,f.focused=!0}})),r.addEventListener("updatefromsandbox",(function(r){e.showElementAndHideCanvas(r.target);var a={value:function(e){var r;f.userValue=null!==(r=e.detail.value)&&void 0!==r?r:"",t.setValue(n,{value:f.userValue.toString()}),e.target.value=f.userValue},formattedValue:function(e){var r=e.detail.formattedValue;f.formattedValue=r,null!==r&&void 0!==r&&e.target!==document.activeElement&&(e.target.value=r),t.setValue(n,{formattedValue:r})},selRange:function(e){var t;(t=e.target).setSelectionRange.apply(t,_toConsumableArray(e.detail.selRange))},charLimit:function(r){var a,i=r.detail.charLimit,s=r.target;if(0!==i){s.setAttribute("maxLength",i);var l=f.userValue;!l||l.length<=i||(l=l.slice(0,i),s.value=f.userValue=l,t.setValue(n,{value:l}),null===(a=e.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:l,willCommit:!0,commitKey:1,selStart:s.selectionStart,selEnd:s.selectionEnd}}))}else s.removeAttribute("maxLength")}};e._dispatchEventFromSandbox(a,r)})),r.addEventListener("keydown",(function(t){var r;f.commitKey=1;var a=-1;if("Escape"===t.key?a=0:"Enter"!==t.key||e.data.multiLine?"Tab"===t.key&&(f.commitKey=3):a=2,-1!==a){var i=t.target.value;f.lastCommittedValue!==i&&(f.lastCommittedValue=i,f.userValue=i,null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:i,willCommit:!0,commitKey:a,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}))}}));var m=p;p=null,r.addEventListener("blur",(function(t){if(f.focused&&t.relatedTarget){f.focused=!1;var r,a=t.target.value;f.userValue=a,f.lastCommittedValue!==a&&(null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:a,willCommit:!0,commitKey:f.commitKey,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}})),m(t)}})),null!==(v=this.data.actions)&&void 0!==v&&v.Keystroke&&r.addEventListener("beforeinput",(function(t){var r;f.lastCommittedValue=null;var a=t.data,i=t.target,s=i.value,l=i.selectionStart,o=i.selectionEnd,c=l,u=o;switch(t.inputType){case"deleteWordBackward":var d=s.substring(0,l).match(/\w*[^\w]*$/);d&&(c-=d[0].length);break;case"deleteWordForward":var h=s.substring(l).match(/^[^\w]*\w*/);h&&(u+=h[0].length);break;case"deleteContentBackward":l===o&&(c-=1);break;case"deleteContentForward":l===o&&(u+=1)}t.preventDefault(),null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:s,change:a||"",willCommit:!1,selStart:c,selEnd:u}})})),this._setEventListeners(r,f,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.value}))}if(p&&r.addEventListener("blur",p),this.data.comb){var g=(this.data.rect[2]-this.data.rect[0])/l;r.classList.add("comb"),r.style.letterSpacing="calc(".concat(g,"px * var(--scale-factor) - 1ch)")}}else(r=document.createElement("div")).textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}]),n}(_),k=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,{isRenderable:!!e.data.hasOwnCanvas})}return _createClass(n)}(_),S=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,{isRenderable:e.renderForms})}return _createClass(n,[{key:"render",value:function(){var e=this,t=this.annotationStorage,n=this.data,r=n.id,a=t.getValue(r,{value:n.exportValue===n.fieldValue}).value;"string"===typeof a&&(a="Off"!==a,t.setValue(r,{value:a})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var i=document.createElement("input");return u.add(i),i.setAttribute("data-element-id",r),i.disabled=n.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=n.fieldName,a&&i.setAttribute("checked",!0),i.setAttribute("exportValue",n.exportValue),i.tabIndex=c,i.addEventListener("change",(function(a){var i,s=a.target,l=s.name,o=s.checked,c=_createForOfIteratorHelper(e._getElementsByName(l,r));try{for(c.s();!(i=c.n()).done;){var u=i.value,d=o&&u.exportValue===n.exportValue;u.domElement&&(u.domElement.checked=d),t.setValue(u.id,{value:d})}}catch(h){c.e(h)}finally{c.f()}t.setValue(r,{value:o})})),i.addEventListener("resetform",(function(e){var t=n.defaultFieldValue||"Off";e.target.checked=t===n.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(function(n){var a={value:function(e){e.target.checked="Off"!==e.detail.value,t.setValue(r,{value:e.target.checked})}};e._dispatchEventFromSandbox(a,n)})),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.checked}))),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}]),n}(_),P=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,{isRenderable:e.renderForms})}return _createClass(n,[{key:"render",value:function(){var e=this;this.container.classList.add("buttonWidgetAnnotation","radioButton");var t=this.annotationStorage,n=this.data,r=n.id,a=t.getValue(r,{value:n.fieldValue===n.buttonValue}).value;"string"===typeof a&&(a=a!==n.buttonValue,t.setValue(r,{value:a}));var i=document.createElement("input");if(u.add(i),i.setAttribute("data-element-id",r),i.disabled=n.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=n.fieldName,a&&i.setAttribute("checked",!0),i.tabIndex=c,i.addEventListener("change",(function(n){var a,i=n.target,s=i.name,l=i.checked,o=_createForOfIteratorHelper(e._getElementsByName(s,r));try{for(o.s();!(a=o.n()).done;){var c=a.value;t.setValue(c.id,{value:!1})}}catch(u){o.e(u)}finally{o.f()}t.setValue(r,{value:l})})),i.addEventListener("resetform",(function(e){var t=n.defaultFieldValue;e.target.checked=null!==t&&void 0!==t&&t===n.buttonValue})),this.enableScripting&&this.hasJSActions){var s=n.buttonValue;i.addEventListener("updatefromsandbox",(function(n){var a={value:function(n){var a,i=s===n.detail.value,l=_createForOfIteratorHelper(e._getElementsByName(n.target.name));try{for(l.s();!(a=l.n()).done;){var o=a.value,c=i&&o.id===r;o.domElement&&(o.domElement.checked=c),t.setValue(o.id,{value:c})}}catch(u){l.e(u)}finally{l.f()}}};e._dispatchEventFromSandbox(a,n)})),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.checked}))}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}]),n}(_),C=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,{ignoreBorder:e.data.hasAppearance})}return _createClass(n,[{key:"render",value:function(){var e=this,t=_get4(_getPrototypeOf(n.prototype),"render",this).call(this);t.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(t.title=this.data.alternativeText);var r=t.lastChild;return this.enableScripting&&this.hasJSActions&&r&&(this._setDefaultPropertiesFromJS(r),r.addEventListener("updatefromsandbox",(function(t){e._dispatchEventFromSandbox({},t)}))),t}}]),n}(g),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,{isRenderable:e.renderForms})}return _createClass(n,[{key:"render",value:function(){var e=this;this.container.classList.add("choiceWidgetAnnotation");var t=this.annotationStorage,n=this.data.id,r=t.getValue(n,{value:this.data.fieldValue}),a=document.createElement("select");u.add(a),a.setAttribute("data-element-id",n),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=c;var i=this.data.combo&&this.data.options.length>0;this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",(function(t){var n,r=e.data.defaultFieldValue,i=_createForOfIteratorHelper(a.options);try{for(i.s();!(n=i.n()).done;){var s=n.value;s.selected=s.value===r}}catch(l){i.e(l)}finally{i.f()}}));var s,l=_createForOfIteratorHelper(this.data.options);try{for(l.s();!(s=l.n()).done;){var o=s.value,d=document.createElement("option");d.textContent=o.displayValue,d.value=o.exportValue,r.value.includes(o.exportValue)&&(d.setAttribute("selected",!0),i=!1),a.append(d)}}catch(g){l.e(g)}finally{l.f()}var h=null;if(i){var f=document.createElement("option");f.value=" ",f.setAttribute("hidden",!0),f.setAttribute("selected",!0),a.prepend(f),h=function(){f.remove(),a.removeEventListener("input",h),h=null},a.addEventListener("input",h)}var p=function(e){var t=e?"value":"textContent",n=a.options;return a.multiple?Array.prototype.filter.call(n,(function(e){return e.selected})).map((function(e){return e[t]})):-1===n.selectedIndex?null:n[n.selectedIndex][t]},v=p(!1),m=function(e){var t=e.target.options;return Array.prototype.map.call(t,(function(e){return{displayValue:e.textContent,exportValue:e.value}}))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",(function(r){var i={value:function(e){var r;null===(r=h)||void 0===r||r();var i,s=e.detail.value,l=new Set(Array.isArray(s)?s:[s]),o=_createForOfIteratorHelper(a.options);try{for(o.s();!(i=o.n()).done;){var c=i.value;c.selected=l.has(c.value)}}catch(g){o.e(g)}finally{o.f()}t.setValue(n,{value:p(!0)}),v=p(!1)},multipleSelection:function(e){a.multiple=!0},remove:function(e){var r=a.options,i=e.detail.remove;if(r[i].selected=!1,a.remove(i),r.length>0){var s=Array.prototype.findIndex.call(r,(function(e){return e.selected}));-1===s&&(r[0].selected=!0)}t.setValue(n,{value:p(!0),items:m(e)}),v=p(!1)},clear:function(e){for(;0!==a.length;)a.remove(0);t.setValue(n,{value:null,items:[]}),v=p(!1)},insert:function(e){var r=e.detail.insert,i=r.index,s=r.displayValue,l=r.exportValue,o=a.children[i],c=document.createElement("option");c.textContent=s,c.value=l,o?o.before(c):a.append(c),t.setValue(n,{value:p(!0),items:m(e)}),v=p(!1)},items:function(e){for(var r=e.detail.items;0!==a.length;)a.remove(0);var i,s=_createForOfIteratorHelper(r);try{for(s.s();!(i=s.n()).done;){var l=i.value,o=l.displayValue,c=l.exportValue,u=document.createElement("option");u.textContent=o,u.value=c,a.append(u)}}catch(g){s.e(g)}finally{s.f()}a.options.length>0&&(a.options[0].selected=!0),t.setValue(n,{value:p(!0),items:m(e)}),v=p(!1)},indices:function(e){var r,a=new Set(e.detail.indices),i=_createForOfIteratorHelper(e.target.options);try{for(i.s();!(r=i.n()).done;){var s=r.value;s.selected=a.has(s.index)}}catch(g){i.e(g)}finally{i.f()}t.setValue(n,{value:p(!0)}),v=p(!1)},editable:function(e){e.target.disabled=!e.detail.editable}};e._dispatchEventFromSandbox(i,r)})),a.addEventListener("input",(function(r){var a,i=p(!0);t.setValue(n,{value:i}),r.preventDefault(),null===(a=e.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:e,detail:{id:n,name:"Keystroke",value:v,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(a,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(function(e){return e.target.value}))):a.addEventListener("input",(function(e){t.setValue(n,{value:p(!0)})})),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}]),n}(_),j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;_classCallCheck(this,n);var a=e.data,i=e.elements;return(r=t.call(this,e,{isRenderable:p._hasPopupData(a)})).elements=i,r}return _createClass(n,[{key:"render",value:function(){this.container.classList.add("popupAnnotation");var e,t=new J({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,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}),n=[],a=_createForOfIteratorHelper(this.elements);try{for(a.s();!(e=a.n()).done;){var i=e.value;i.popup=t,n.push(i.data.id),i.addHighlightArea()}}catch(s){a.e(s)}finally{a.f()}return this.container.setAttribute("aria-controls",n.map((function(e){return"".concat(r.AnnotationPrefix).concat(e)})).join(",")),this.container}}]),n}(p),E=new WeakMap,F=new WeakMap,N=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,R=new WeakMap,O=new WeakMap,L=new WeakMap,D=new WeakMap,G=new WeakMap,z=new WeakMap,B=new WeakMap,H=new WeakMap,W=new WeakMap,U=new WeakMap,q=new WeakMap,V=new WeakSet,X=new WeakSet,Y=new WeakSet,K=new WeakSet,J=function(){function e(t){var n=t.container,r=t.color,i=t.elements,s=t.titleObj,l=t.modificationDate,o=t.contentsObj,c=t.richText,u=t.parent,d=t.rect,h=t.parentRect,f=t.open;_classCallCheck(this,e),_classPrivateMethodInitSpec(this,K),_classPrivateMethodInitSpec(this,Y),_classPrivateMethodInitSpec(this,X),_classPrivateMethodInitSpec(this,V),_classPrivateFieldInitSpec(this,E,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:_classPrivateMethodGet(this,V,Q).bind(this)}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:_classPrivateMethodGet(this,K,ee).bind(this)}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:_classPrivateMethodGet(this,Y,$).bind(this)}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:_classPrivateMethodGet(this,X,Z).bind(this)}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,O,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,z,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,B,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,H,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,W,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,U,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,q,{writable:!0,value:!1}),_classPrivateFieldSet(this,R,n),_classPrivateFieldSet(this,U,s),_classPrivateFieldSet(this,O,o),_classPrivateFieldSet(this,W,c),_classPrivateFieldSet(this,D,u),_classPrivateFieldSet(this,I,r),_classPrivateFieldSet(this,H,d),_classPrivateFieldSet(this,G,h),_classPrivateFieldSet(this,L,i);var p=a.PDFDateString.toDateObject(l);p&&_classPrivateFieldSet(this,E,u.l10n.get("annotation_date_string",{date:p.toLocaleDateString(),time:p.toLocaleTimeString()})),this.trigger=i.flatMap((function(e){return e.getElementsToTriggerPopup()}));var v,m=_createForOfIteratorHelper(this.trigger);try{for(m.s();!(v=m.n()).done;){var g=v.value;g.addEventListener("click",_classPrivateFieldGet(this,M)),g.addEventListener("mouseenter",_classPrivateFieldGet(this,T)),g.addEventListener("mouseleave",_classPrivateFieldGet(this,N)),g.classList.add("popupTriggerArea")}}catch(_){m.e(_)}finally{m.f()}var y,x=_createForOfIteratorHelper(i);try{for(x.s();!(y=x.n()).done;){var b;null===(b=y.value.container)||void 0===b||b.addEventListener("keydown",_classPrivateFieldGet(this,F))}}catch(_){x.e(_)}finally{x.f()}_classPrivateFieldGet(this,R).hidden=!0,f&&_classPrivateMethodGet(this,X,Z).call(this)}return _createClass(e,[{key:"render",value:function(){if(!_classPrivateFieldGet(this,B)){var e=_classPrivateFieldGet(this,D),t=e.page.view,n=e.viewport.rawDims,a=n.pageWidth,i=n.pageHeight,s=n.pageX,l=n.pageY,c=_classPrivateFieldSet(this,B,document.createElement("div"));if(c.className="popup",_classPrivateFieldGet(this,I)){var u,d,h=c.style.outlineColor=(u=r.Util).makeHexColor.apply(u,_toConsumableArray(_classPrivateFieldGet(this,I)));if(CSS.supports("background-color","color-mix(in srgb, red 30%, white)"))c.style.backgroundColor="color-mix(in srgb, ".concat(h," 30%, white)");else c.style.backgroundColor=(d=r.Util).makeHexColor.apply(d,_toConsumableArray(_classPrivateFieldGet(this,I).map((function(e){return Math.floor(.7*(255-e)+e)}))))}var f=document.createElement("span");f.className="header";var p=document.createElement("h1");f.append(p);var v=_classPrivateFieldGet(this,U);if(p.dir=v.dir,p.textContent=v.str,c.append(f),_classPrivateFieldGet(this,E)){var m=document.createElement("span");m.classList.add("popupDate"),_classPrivateFieldGet(this,E).then((function(e){m.textContent=e})),f.append(m)}var g=_classPrivateFieldGet(this,O),y=_classPrivateFieldGet(this,W);if(null===y||void 0===y||!y.str||null!==g&&void 0!==g&&g.str&&g.str!==y.str){var x=this._formatContents(g);c.append(x)}else o.XfaLayer.render({xfaHtml:y.html,intent:"richText",div:c}),c.lastChild.classList.add("richText","popupContent");var b,_=!!_classPrivateFieldGet(this,G),w=_classPrivateFieldGet(this,_?G:H),k=_createForOfIteratorHelper(_classPrivateFieldGet(this,L));try{for(k.s();!(b=k.n()).done;){var S=b.value;if(!w||null!==r.Util.intersect(S.data.rect,w)){w=S.data.rect,_=!0;break}}}catch(N){k.e(N)}finally{k.f()}var P=r.Util.normalizeRect([w[0],t[3]-w[1]+t[1],w[2],t[3]-w[3]+t[1]]),C=_?w[2]-w[0]+5:0,A=P[0]+C,j=P[1],F=_classPrivateFieldGet(this,R).style;F.left="".concat(100*(A-s)/a,"%"),F.top="".concat(100*(j-l)/i,"%"),_classPrivateFieldGet(this,R).append(c)}}},{key:"_formatContents",value:function(e){var t=e.str,n=e.dir,r=document.createElement("p");r.classList.add("popupContent"),r.dir=n;for(var a=t.split(/(?:\r\n?|\n)/),i=0,s=a.length;i0&&_classPrivateFieldGet(this,Pe).set(x.data.id,x),_=x.render(),f.hidden&&(_.style.visibility="hidden"),_classPrivateMethodGet(this,Ce,Ee).call(this,_,f.id);case 32:e.next=8;break;case 34:e.next=39;break;case 36:e.prev=36,e.t0=e.catch(6),c.e(e.t0);case 39:return e.prev=39,c.f(),e.finish(39);case 42:return _classPrivateMethodGet(this,Ae,Fe).call(this),e.next=45,this.l10n.translate(s);case 45:case"end":return e.stop()}}),e,this,[[6,36,39,42]])})));return function(t){return e.apply(this,arguments)}}()},{key:"update",value:function(e){var t=e.viewport,n=this.div;this.viewport=t,(0,a.setLayerDimensions)(n,{rotation:t.rotation}),_classPrivateMethodGet(this,Ae,Fe).call(this),n.hidden=!1}},{key:"getEditableAnnotations",value:function(){return Array.from(_classPrivateFieldGet(this,Pe).values())}},{key:"getEditableAnnotation",value:function(e){return _classPrivateFieldGet(this,Pe).get(e)}}]),e}();function Ee(e,t){var n,a=e.firstChild||e;a.id="".concat(r.AnnotationPrefix).concat(t),this.div.append(e),null===(n=_classPrivateFieldGet(this,ke))||void 0===n||n.moveElementInDOM(this.div,e,a,!1)}function Fe(){if(_classPrivateFieldGet(this,Se)){var e,t=this.div,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,Se));try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),a=r[0],i=r[1],s=t.querySelector('[data-annotation-id="'.concat(a,'"]'));if(s){var l=s.firstChild;l?"CANVAS"===l.nodeName?l.replaceWith(i):l.before(i):s.append(i)}}}catch(o){n.e(o)}finally{n.f()}_classPrivateFieldGet(this,Se).clear()}}t.AnnotationLayer=je},function(e,t){function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function r(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0;var a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"CMYK_G",value:function(e){var t=_slicedToArray(e,4),n=t[0],r=t[1],a=t[2],i=t[3];return["G",1-Math.min(1,.3*n+.59*a+.11*r+i)]}},{key:"G_CMYK",value:function(e){return["CMYK",0,0,0,1-_slicedToArray(e,1)[0]]}},{key:"G_RGB",value:function(e){var t=_slicedToArray(e,1)[0];return["RGB",t,t,t]}},{key:"G_rgb",value:function(e){var t=_slicedToArray(e,1)[0];return[t=r(t),t,t]}},{key:"G_HTML",value:function(e){var t=n(_slicedToArray(e,1)[0]);return"#".concat(t).concat(t).concat(t)}},{key:"RGB_G",value:function(e){var t=_slicedToArray(e,3);return["G",.3*t[0]+.59*t[1]+.11*t[2]]}},{key:"RGB_rgb",value:function(e){return e.map(r)}},{key:"RGB_HTML",value:function(e){return"#".concat(e.map(n).join(""))}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"T_rgb",value:function(){return[null]}},{key:"CMYK_RGB",value:function(e){var t=_slicedToArray(e,4),n=t[0],r=t[1],a=t[2],i=t[3];return["RGB",1-Math.min(1,n+i),1-Math.min(1,a+i),1-Math.min(1,r+i)]}},{key:"CMYK_rgb",value:function(e){var t=_slicedToArray(e,4),n=t[0],a=t[1],i=t[2],s=t[3];return[r(1-Math.min(1,n+s)),r(1-Math.min(1,i+s)),r(1-Math.min(1,a+s))]}},{key:"CMYK_HTML",value:function(e){var t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}},{key:"RGB_CMYK",value:function(e){var t=_slicedToArray(e,3),n=1-t[0],r=1-t[1],a=1-t[2];return["CMYK",n,r,a,Math.min(n,r,a)]}}]),e}();t.ColorConverters=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=r;var n={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing\u2026",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};function r(e,t){switch(e){case"find_match_count":e="find_match_count[".concat(1===t.total?"one":"other","]");break;case"find_match_count_limit":e="find_match_count_limit[".concat(1===t.limit?"one":"other","]")}return n[e]||""}function a(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(function(e,n){return n in t?t[n]:"{{"+n+"}}"})):e}n.print_progress_percent="{{progress}}%";var i={getLanguage:function(){return _asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","en-us");case 1:case"end":return e.stop()}}),e)})))()},getDirection:function(){return _asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","ltr");case 1:case"end":return e.stop()}}),e)})))()},get:function(e){var t=arguments;return _asyncToGenerator(_regeneratorRuntime().mark((function n(){var i,s;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.length>1&&void 0!==t[1]?t[1]:null,s=t.length>2&&void 0!==t[2]?t[2]:r(e,i),n.abrupt("return",a(s,i));case 3:case"end":return n.stop()}}),n)})))()},translate:function(e){return _asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}};t.NullL10n=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(25),a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"setupStorage",value:function(e,t,n,r,a){var i=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==i.value&&(e.textContent=i.value),"print"===a)break;e.addEventListener("input",(function(e){r.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(i.value===n.attributes.xfaOn?e.setAttribute("checked",!0):i.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===a)break;e.addEventListener("change",(function(e){r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==i.value&&e.setAttribute("value",i.value),"print"===a)break;e.addEventListener("input",(function(e){r.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==i.value){e.setAttribute("value",i.value);var s,l=_createForOfIteratorHelper(n.children);try{for(l.s();!(s=l.n()).done;){var o=s.value;o.attributes.value===i.value?o.attributes.selected=!0:o.attributes.hasOwnProperty("selected")&&delete o.attributes.selected}}catch(c){l.e(c)}finally{l.f()}}e.addEventListener("input",(function(e){var n=e.target.options,a=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:a})}))}}},{key:"setAttributes",value:function(e){var t=e.html,n=e.element,r=e.storage,a=void 0===r?null:r,i=e.intent,s=e.linkService,l=n.attributes,o=t instanceof HTMLAnchorElement;"radio"===l.type&&(l.name="".concat(l.name,"-").concat(i));for(var c=0,u=Object.entries(l);c0;){var d,h=l.at(-1),f=_slicedToArray(h,3),p=f[0],v=f[1],m=f[2];if(v+1!==p.children.length){var g=p.children[++l.at(-1)[1]];if(null!==g){var y=g.name;if("#text"!==y){var x=null!==g&&void 0!==g&&null!==(d=g.attributes)&&void 0!==d&&d.xmlns?document.createElementNS(g.attributes.xmlns,y):document.createElement(y);if(m.append(x),g.attributes&&this.setAttributes({html:x,element:g,storage:t,intent:i,linkService:n}),g.children&&g.children.length>0)l.push([g,-1,x]);else if(g.value){var b=document.createTextNode(g.value);r.XfaText.shouldBuildText(y)&&u.push(b),x.append(b)}}else{var _=document.createTextNode(g.value);u.push(_),m.append(_)}}}else l.pop()}var w,k=_createForOfIteratorHelper(o.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"));try{for(k.s();!(w=k.n()).done;)w.value.setAttribute("readOnly",!0)}catch(S){k.e(S)}finally{k.f()}return{textDivs:u}}},{key:"update",value:function(e){var t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}]),e}();t.XfaLayer=a},function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var a=n(1),i=n(4),s=n(29),l=n(6),o=n(5),c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,x=new WeakMap,b=new WeakMap,_=new WeakMap,w=new WeakMap,k=new WeakSet,S=new WeakSet,P=new WeakSet,C=new WeakSet,A=new WeakSet,j=new WeakSet,E=new WeakSet,F=new WeakSet,N=new WeakSet,T=new WeakSet,M=new WeakSet,I=new WeakSet,R=new WeakSet,O=new WeakSet,L=new WeakSet,D=new WeakSet,G=new WeakSet,z=new WeakSet,B=new WeakSet,H=new WeakSet,W=new WeakSet,U=new WeakSet,q=new WeakSet,V=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this,_objectSpread(_objectSpread({},e),{},{name:"inkEditor"})),_classPrivateMethodInitSpec(_assertThisInitialized(r),q),_classPrivateMethodInitSpec(_assertThisInitialized(r),U),_classPrivateMethodInitSpec(_assertThisInitialized(r),W),_classPrivateMethodInitSpec(_assertThisInitialized(r),H),_classPrivateMethodInitSpec(_assertThisInitialized(r),B),_classPrivateMethodInitSpec(_assertThisInitialized(r),z),_classPrivateMethodInitSpec(_assertThisInitialized(r),G),_classPrivateMethodInitSpec(_assertThisInitialized(r),D),_classPrivateMethodInitSpec(_assertThisInitialized(r),L),_classPrivateMethodInitSpec(_assertThisInitialized(r),O),_classPrivateMethodInitSpec(_assertThisInitialized(r),R),_classPrivateMethodInitSpec(_assertThisInitialized(r),I),_classPrivateMethodInitSpec(_assertThisInitialized(r),M),_classPrivateMethodInitSpec(_assertThisInitialized(r),T),_classPrivateMethodInitSpec(_assertThisInitialized(r),N),_classPrivateMethodInitSpec(_assertThisInitialized(r),F),_classPrivateMethodInitSpec(_assertThisInitialized(r),E),_classPrivateMethodInitSpec(_assertThisInitialized(r),j),_classPrivateMethodInitSpec(_assertThisInitialized(r),A),_classPrivateMethodInitSpec(_assertThisInitialized(r),C),_classPrivateMethodInitSpec(_assertThisInitialized(r),P),_classPrivateMethodInitSpec(_assertThisInitialized(r),S),_classPrivateMethodInitSpec(_assertThisInitialized(r),k),_classPrivateFieldInitSpec(_assertThisInitialized(r),c,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(r),u,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(r),d,{writable:!0,value:r.canvasPointermove.bind(_assertThisInitialized(r))}),_classPrivateFieldInitSpec(_assertThisInitialized(r),h,{writable:!0,value:r.canvasPointerleave.bind(_assertThisInitialized(r))}),_classPrivateFieldInitSpec(_assertThisInitialized(r),f,{writable:!0,value:r.canvasPointerup.bind(_assertThisInitialized(r))}),_classPrivateFieldInitSpec(_assertThisInitialized(r),p,{writable:!0,value:r.canvasPointerdown.bind(_assertThisInitialized(r))}),_classPrivateFieldInitSpec(_assertThisInitialized(r),v,{writable:!0,value:new Path2D}),_classPrivateFieldInitSpec(_assertThisInitialized(r),m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(_assertThisInitialized(r),g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(_assertThisInitialized(r),y,{writable:!0,value:!1}),_classPrivateFieldInitSpec(_assertThisInitialized(r),x,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),b,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(r),_,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(r),w,{writable:!0,value:null}),r.color=e.color||null,r.thickness=e.thickness||null,r.opacity=e.opacity||null,r.paths=[],r.bezierPath2D=[],r.allRawPaths=[],r.currentPath=[],r.scaleFactor=1,r.translationX=r.translationY=0,r.x=0,r.y=0,r._willKeepAspectRatio=!0,r}return _createClass(n,[{key:"updateParams",value:function(e,t){switch(e){case a.AnnotationEditorParamsType.INK_THICKNESS:_classPrivateMethodGet(this,k,X).call(this,t);break;case a.AnnotationEditorParamsType.INK_COLOR:_classPrivateMethodGet(this,S,Y).call(this,t);break;case a.AnnotationEditorParamsType.INK_OPACITY:_classPrivateMethodGet(this,P,K).call(this,t)}}},{key:"propertiesToUpdate",get:function(){var e;return[[a.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||n._defaultThickness],[a.AnnotationEditorParamsType.INK_COLOR,this.color||n._defaultColor||i.AnnotationEditor._defaultLineColor],[a.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:n._defaultOpacity))]]}},{key:"rebuild",value:function(){this.parent&&(_get4(_getPrototypeOf(n.prototype),"rebuild",this).call(this),null!==this.div&&(this.canvas||(_classPrivateMethodGet(this,L,le).call(this),_classPrivateMethodGet(this,D,oe).call(this)),this.isAttachedToDOM||(this.parent.add(this),_classPrivateMethodGet(this,G,ce).call(this)),_classPrivateMethodGet(this,q,ye).call(this)))}},{key:"remove",value:function(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(this,x).disconnect(),_classPrivateFieldSet(this,x,null),_get4(_getPrototypeOf(n.prototype),"remove",this).call(this))}},{key:"setParent",value:function(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),_get4(_getPrototypeOf(n.prototype),"setParent",this).call(this,e)}},{key:"onScaleChanging",value:function(){var e=_slicedToArray(this.parentDimensions,2),t=e[0],n=e[1],r=this.width*t,a=this.height*n;this.setDimensions(r,a)}},{key:"enableEditMode",value:function(){_classPrivateFieldGet(this,m)||null===this.canvas||(_get4(_getPrototypeOf(n.prototype),"enableEditMode",this).call(this),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(this,p)))}},{key:"disableEditMode",value:function(){this.isInEditMode()&&null!==this.canvas&&(_get4(_getPrototypeOf(n.prototype),"disableEditMode",this).call(this),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,p)))}},{key:"onceAdded",value:function(){this._isDraggable=!this.isEmpty()}},{key:"isEmpty",value:function(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}},{key:"commit",value:function(){_classPrivateFieldGet(this,m)||(_get4(_getPrototypeOf(n.prototype),"commit",this).call(this),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(this,m,!0),this.div.classList.add("disabled"),_classPrivateMethodGet(this,q,ye).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}},{key:"focusin",value:function(e){this._focusEventsAllowed&&(_get4(_getPrototypeOf(n.prototype),"focusin",this).call(this,e),this.enableEditMode())}},{key:"canvasPointerdown",value:function(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(this,m)&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),_classPrivateMethodGet(this,j,Z).call(this,e.offsetX,e.offsetY))}},{key:"canvasPointermove",value:function(e){e.preventDefault(),_classPrivateMethodGet(this,E,$).call(this,e.offsetX,e.offsetY)}},{key:"canvasPointerup",value:function(e){e.preventDefault(),_classPrivateMethodGet(this,O,se).call(this,e)}},{key:"canvasPointerleave",value:function(e){_classPrivateMethodGet(this,O,se).call(this,e)}},{key:"isResizable",get:function(){return!this.isEmpty()&&_classPrivateFieldGet(this,m)}},{key:"render",value:function(){var e,t,r=this;if(this.div)return this.div;this.width&&(e=this.x,t=this.y),_get4(_getPrototypeOf(n.prototype),"render",this).call(this),i.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((function(e){var t;return null===(t=r.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));var a=_classPrivateMethodGet(this,C,J).call(this),s=_slicedToArray(a,4),l=s[0],o=s[1],c=s[2],u=s[3];if(this.setAt(l,o,0,0),this.setDims(c,u),_classPrivateMethodGet(this,L,le).call(this),this.width){var d=_slicedToArray(this.parentDimensions,2),h=d[0],f=d[1];this.setAspectRatio(this.width*h,this.height*f),this.setAt(e*h,t*f,this.width*h,this.height*f),_classPrivateFieldSet(this,y,!0),_classPrivateMethodGet(this,G,ce).call(this),this.setDims(this.width*h,this.height*f),_classPrivateMethodGet(this,R,ie).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _classPrivateMethodGet(this,D,oe).call(this),this.div}},{key:"setDimensions",value:function(e,t){var n=Math.round(e),r=Math.round(t);if(_classPrivateFieldGet(this,b)!==n||_classPrivateFieldGet(this,_)!==r){_classPrivateFieldSet(this,b,n),_classPrivateFieldSet(this,_,r),this.canvas.style.visibility="hidden";var a=_slicedToArray(this.parentDimensions,2),i=a[0],s=a[1];this.width=e/i,this.height=t/s,this.fixAndSetPosition(),_classPrivateFieldGet(this,m)&&_classPrivateMethodGet(this,z,ue).call(this,e,t),_classPrivateMethodGet(this,G,ce).call(this),_classPrivateMethodGet(this,R,ie).call(this),this.canvas.style.visibility="visible",this.fixDims()}}},{key:"serialize",value:function(){if(this.isEmpty())return null;var e=this.getRect(0,0),t=i.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:a.AnnotationEditorType.INK,color:t,thickness:this.thickness,opacity:this.opacity,paths:_classPrivateMethodGet(this,H,ve).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,e),pageIndex:this.pageIndex,rect:e,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}}],[{key:"initialize",value:function(e){i.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}},{key:"updateDefaultParams",value:function(e,t){switch(e){case a.AnnotationEditorParamsType.INK_THICKNESS:n._defaultThickness=t;break;case a.AnnotationEditorParamsType.INK_COLOR:n._defaultColor=t;break;case a.AnnotationEditorParamsType.INK_OPACITY:n._defaultOpacity=t/100}}},{key:"defaultPropertiesToUpdate",get:function(){return[[a.AnnotationEditorParamsType.INK_THICKNESS,n._defaultThickness],[a.AnnotationEditorParamsType.INK_COLOR,n._defaultColor||i.AnnotationEditor._defaultLineColor],[a.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*n._defaultOpacity)]]}},{key:"deserialize",value:function(e,t,r){var l;if(e instanceof s.InkAnnotationElement)return null;var o=_get4(_getPrototypeOf(n),"deserialize",this).call(this,e,t,r);o.thickness=e.thickness,o.color=(l=a.Util).makeHexColor.apply(l,_toConsumableArray(e.color)),o.opacity=e.opacity;var d=_slicedToArray(o.pageDimensions,2),h=d[0],f=d[1],p=o.width*h,v=o.height*f,g=o.parentScale,y=e.thickness/2;_classPrivateFieldSet(o,m,!0),_classPrivateFieldSet(o,b,Math.round(p)),_classPrivateFieldSet(o,_,Math.round(v));var x,w=e.paths,k=e.rect,S=e.rotation,P=_createForOfIteratorHelper(w);try{for(P.s();!(x=P.n()).done;){var C=x.value.bezier;C=_classStaticPrivateMethodGet(n,n,pe).call(n,C,k,S);var A=[];o.paths.push(A);for(var j=g*(C[0]-y),E=g*(C[1]-y),F=2,N=C.length;F1&&e===i&&t===s)){var l,o,c=this.currentPath,u=_classPrivateFieldGet(this,v);if(c.push([e,t]),_classPrivateFieldSet(this,g,!0),c.length<=2)return(l=u).moveTo.apply(l,_toConsumableArray(c[0])),void u.lineTo(e,t);3===c.length&&(_classPrivateFieldSet(this,v,u=new Path2D),(o=u).moveTo.apply(o,_toConsumableArray(c[0]))),(n=_classPrivateMethodGet(this,M,re)).call.apply(n,[this,u].concat(_toConsumableArray(c.at(-3)),_toConsumableArray(c.at(-2)),[e,t]))}}function ee(){var e;if(0!==this.currentPath.length){var t=this.currentPath.at(-1);(e=_classPrivateFieldGet(this,v)).lineTo.apply(e,_toConsumableArray(t))}}function te(e,t){var n,r=this;if(_classPrivateFieldSet(this,w,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),_classPrivateMethodGet(this,E,$).call(this,e,t),_classPrivateMethodGet(this,F,ee).call(this),1!==this.currentPath.length)n=_classPrivateMethodGet(this,I,ae).call(this);else{var a=[e,t];n=[[a,a.slice(),a.slice(),a]]}var i=_classPrivateFieldGet(this,v),s=this.currentPath;this.currentPath=[],_classPrivateFieldSet(this,v,new Path2D),this.addCommands({cmd:function(){r.allRawPaths.push(s),r.paths.push(n),r.bezierPath2D.push(i),r.rebuild()},undo:function(){r.allRawPaths.pop(),r.paths.pop(),r.bezierPath2D.pop(),0===r.paths.length?r.remove():(r.canvas||(_classPrivateMethodGet(r,L,le).call(r),_classPrivateMethodGet(r,D,oe).call(r)),_classPrivateMethodGet(r,q,ye).call(r))},mustExec:!0})}function ne(){if(_classPrivateFieldGet(this,g)){_classPrivateFieldSet(this,g,!1);Math.ceil(this.thickness*this.parentScale);var e=this.currentPath.slice(-3),t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]})),r=(Math.min.apply(Math,_toConsumableArray(t)),Math.max.apply(Math,_toConsumableArray(t)),Math.min.apply(Math,_toConsumableArray(n)),Math.max.apply(Math,_toConsumableArray(n)),this.ctx);r.save(),r.clearRect(0,0,this.canvas.width,this.canvas.height);var a,i=_createForOfIteratorHelper(this.bezierPath2D);try{for(i.s();!(a=i.n()).done;){var s=a.value;r.stroke(s)}}catch(l){i.e(l)}finally{i.f()}r.stroke(_classPrivateFieldGet(this,v)),r.restore()}}function re(e,t,n,r,a,i,s){var l=(t+r)/2,o=(n+a)/2,c=(r+i)/2,u=(a+s)/2;e.bezierCurveTo(l+2*(r-l)/3,o+2*(a-o)/3,c+2*(r-c)/3,u+2*(a-u)/3,c,u)}function ae(){var e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];var t,n=[],r=_slicedToArray(e[0],2),a=r[0],i=r[1];for(t=1;t0&&void 0!==arguments[0]&&arguments[0];if(!this.isEmpty())if(_classPrivateFieldGet(this,m)){var t=_classPrivateMethodGet(this,W,me).call(this),n=_classPrivateMethodGet(this,U,ge).call(this);_classPrivateFieldSet(this,u,Math.max(i.AnnotationEditor.MIN_SIZE,t[2]-t[0])),_classPrivateFieldSet(this,c,Math.max(i.AnnotationEditor.MIN_SIZE,t[3]-t[1]));var r=Math.ceil(n+_classPrivateFieldGet(this,u)*this.scaleFactor),a=Math.ceil(n+_classPrivateFieldGet(this,c)*this.scaleFactor),s=_slicedToArray(this.parentDimensions,2),l=s[0],o=s[1];this.width=r/l,this.height=a/o,this.setAspectRatio(r,a);var d=this.translationX,h=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_classPrivateMethodGet(this,G,ce).call(this),_classPrivateMethodGet(this,R,ie).call(this),_classPrivateFieldSet(this,b,r),_classPrivateFieldSet(this,_,a),this.setDims(r,a);var f=e?n/this.scaleFactor/2:0;this.translate(d-this.translationX-f,h-this.translationY-f)}else _classPrivateMethodGet(this,R,ie).call(this)}r=V,_defineProperty(V,"_defaultColor",null),_defineProperty(V,"_defaultOpacity",1),_defineProperty(V,"_defaultThickness",1),_defineProperty(V,"_type","ink"),t.InkEditor=V},function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var a=n(1),i=n(4),s=n(6),l=n(29),o=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakSet,x=new WeakSet,b=new WeakSet,_=new WeakSet,w=new WeakSet,k=new WeakSet,S=new WeakSet,P=new WeakSet,C=new WeakSet,A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this,_objectSpread(_objectSpread({},e),{},{name:"stampEditor"})),_classPrivateMethodInitSpec(_assertThisInitialized(r),C),_classPrivateMethodInitSpec(_assertThisInitialized(r),P),_classPrivateMethodInitSpec(_assertThisInitialized(r),S),_classPrivateMethodInitSpec(_assertThisInitialized(r),k),_classPrivateMethodInitSpec(_assertThisInitialized(r),w),_classPrivateMethodInitSpec(_assertThisInitialized(r),_),_classPrivateMethodInitSpec(_assertThisInitialized(r),b),_classPrivateMethodInitSpec(_assertThisInitialized(r),x),_classPrivateMethodInitSpec(_assertThisInitialized(r),y),_classPrivateFieldInitSpec(_assertThisInitialized(r),o,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),c,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),u,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),d,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),h,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),f,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),p,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),v,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(r),m,{writable:!0,value:!1}),_classPrivateFieldInitSpec(_assertThisInitialized(r),g,{writable:!0,value:!1}),_classPrivateFieldSet(_assertThisInitialized(r),d,e.bitmapUrl),_classPrivateFieldSet(_assertThisInitialized(r),h,e.bitmapFile),r}return _createClass(n,[{key:"remove",value:function(){var e,t;_classPrivateFieldGet(this,c)&&(_classPrivateFieldSet(this,o,null),this._uiManager.imageManager.deleteId(_classPrivateFieldGet(this,c)),null===(e=_classPrivateFieldGet(this,f))||void 0===e||e.remove(),_classPrivateFieldSet(this,f,null),null===(t=_classPrivateFieldGet(this,p))||void 0===t||t.disconnect(),_classPrivateFieldSet(this,p,null)),_get4(_getPrototypeOf(n.prototype),"remove",this).call(this)}},{key:"rebuild",value:function(){this.parent?(_get4(_getPrototypeOf(n.prototype),"rebuild",this).call(this),null!==this.div&&(_classPrivateFieldGet(this,c)&&_classPrivateMethodGet(this,b,F).call(this),this.isAttachedToDOM||this.parent.add(this))):_classPrivateFieldGet(this,c)&&_classPrivateMethodGet(this,b,F).call(this)}},{key:"onceAdded",value:function(){this._isDraggable=!0,this.div.focus()}},{key:"isEmpty",value:function(){return!(_classPrivateFieldGet(this,u)||_classPrivateFieldGet(this,o)||_classPrivateFieldGet(this,d)||_classPrivateFieldGet(this,h))}},{key:"isResizable",get:function(){return!0}},{key:"render",value:function(){if(this.div)return this.div;var e,t;if(this.width&&(e=this.x,t=this.y),_get4(_getPrototypeOf(n.prototype),"render",this).call(this),this.div.hidden=!0,_classPrivateFieldGet(this,o)?_classPrivateMethodGet(this,_,N).call(this):_classPrivateMethodGet(this,b,F).call(this),this.width){var r=_slicedToArray(this.parentDimensions,2),a=r[0],i=r[1];this.setAt(e*a,t*i,this.width*a,this.height*i)}return this.div}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;var n={annotationType:a.AnnotationEditorType.STAMP,bitmapId:_classPrivateFieldGet(this,c),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:_classPrivateFieldGet(this,m),structTreeParentId:this._structTreeParentId};if(e)return n.bitmapUrl=_classPrivateMethodGet(this,P,R).call(this,!0),n.accessibilityData=this.altTextData,n;var r=this.altTextData,i=r.decorative,s=r.altText;if(!i&&s&&(n.accessibilityData={type:"Figure",alt:s}),null===t)return n;t.stamps||(t.stamps=new Map);var l=_classPrivateFieldGet(this,m)?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(t.stamps.has(_classPrivateFieldGet(this,c))){if(_classPrivateFieldGet(this,m)){var o=t.stamps.get(_classPrivateFieldGet(this,c));l>o.area&&(o.area=l,o.serialized.bitmap.close(),o.serialized.bitmap=_classPrivateMethodGet(this,P,R).call(this,!1))}}else t.stamps.set(_classPrivateFieldGet(this,c),{area:l,serialized:n}),n.bitmap=_classPrivateMethodGet(this,P,R).call(this,!1);return n}}],[{key:"initialize",value:function(e){i.AnnotationEditor.initialize(e)}},{key:"supportedTypes",get:function(){return(0,a.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((function(e){return"image/".concat(e)})))}},{key:"supportedTypesStr",get:function(){return(0,a.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}},{key:"isHandlingMimeForPasting",value:function(e){return this.supportedTypes.includes(e)}},{key:"paste",value:function(e,t){t.pasteEditor(a.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}},{key:"deserialize",value:function(e,t,r){if(e instanceof l.StampAnnotationElement)return null;var a=_get4(_getPrototypeOf(n),"deserialize",this).call(this,e,t,r),i=e.rect,s=e.bitmapUrl,o=e.bitmapId,u=e.isSvg,h=e.accessibilityData;o&&r.imageManager.isValidId(o)?_classPrivateFieldSet(a,c,o):_classPrivateFieldSet(a,d,s),_classPrivateFieldSet(a,m,u);var f=_slicedToArray(a.pageDimensions,2),p=f[0],v=f[1];return a.width=(i[2]-i[0])/p,a.height=(i[3]-i[1])/v,h&&(a.altTextData=h),a}}]),n}(i.AnnotationEditor);function j(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(_classPrivateFieldSet(this,o,e.bitmap),t||(_classPrivateFieldSet(this,c,e.id),_classPrivateFieldSet(this,m,e.isSvg)),_classPrivateMethodGet(this,_,N).call(this)):this.remove()}function E(){_classPrivateFieldSet(this,u,null),this._uiManager.enableWaiting(!1),_classPrivateFieldGet(this,f)&&this.div.focus()}function F(){var e=this;if(_classPrivateFieldGet(this,c))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(_classPrivateFieldGet(this,c)).then((function(t){return _classPrivateMethodGet(e,y,j).call(e,t,!0)})).finally((function(){return _classPrivateMethodGet(e,x,E).call(e)}));if(_classPrivateFieldGet(this,d)){var t=_classPrivateFieldGet(this,d);return _classPrivateFieldSet(this,d,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(this,u,this._uiManager.imageManager.getFromUrl(t).then((function(t){return _classPrivateMethodGet(e,y,j).call(e,t)})).finally((function(){return _classPrivateMethodGet(e,x,E).call(e)})))}if(_classPrivateFieldGet(this,h)){var n=_classPrivateFieldGet(this,h);return _classPrivateFieldSet(this,h,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(this,u,this._uiManager.imageManager.getFromFile(n).then((function(t){return _classPrivateMethodGet(e,y,j).call(e,t)})).finally((function(){return _classPrivateMethodGet(e,x,E).call(e)})))}var a=document.createElement("input");a.type="file",a.accept=r.supportedTypesStr,_classPrivateFieldSet(this,u,new Promise((function(t){a.addEventListener("change",_asyncToGenerator(_regeneratorRuntime().mark((function n(){var r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a.files&&0!==a.files.length){n.next=4;break}e.remove(),n.next=9;break;case 4:return e._uiManager.enableWaiting(!0),n.next=7,e._uiManager.imageManager.getFromFile(a.files[0]);case 7:r=n.sent,_classPrivateMethodGet(e,y,j).call(e,r);case 9:t();case 10:case"end":return n.stop()}}),n)})))),a.addEventListener("cancel",(function(){e.remove(),t()}))})).finally((function(){return _classPrivateMethodGet(e,x,E).call(e)}))),a.click()}function N(){var e=this.div,t=_classPrivateFieldGet(this,o),n=t.width,r=t.height,a=_slicedToArray(this.pageDimensions,2),i=a[0],s=a[1],l=.75;if(this.width)n=this.width*i,r=this.height*s;else if(n>l*i||r>l*s){var c=Math.min(l*i/n,l*s/r);n*=c,r*=c}var u=_slicedToArray(this.parentDimensions,2),d=u[0],h=u[1];this.setDims(n*d/i,r*h/s),this._uiManager.enableWaiting(!1);var p=_classPrivateFieldSet(this,f,document.createElement("canvas"));e.append(p),e.hidden=!1,_classPrivateMethodGet(this,S,I).call(this,n,r),_classPrivateMethodGet(this,C,O).call(this),_classPrivateFieldGet(this,g)||(this.parent.addUndoableEditor(this),_classPrivateFieldSet(this,g,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}function T(e,t){var n,r=this,a=_slicedToArray(this.parentDimensions,2),i=a[0],s=a[1];this.width=e/i,this.height=t/s,this.setDims(e,t),null!==(n=this._initialOptions)&&void 0!==n&&n.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==_classPrivateFieldGet(this,v)&&clearTimeout(_classPrivateFieldGet(this,v)),_classPrivateFieldSet(this,v,setTimeout((function(){_classPrivateFieldSet(r,v,null),_classPrivateMethodGet(r,S,I).call(r,e,t)}),200))}function M(e,t){for(var n=_classPrivateFieldGet(this,o),r=n.width,a=n.height,i=_classPrivateFieldGet(this,o);r>2*e||a>2*t;){var s=r,l=a;r>2*e&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2)),a>2*t&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));var c=new OffscreenCanvas(r,a);c.getContext("2d").drawImage(i,0,0,s,l,0,0,r,a),i=c.transferToImageBitmap()}return i}function I(e,t){e=Math.ceil(e),t=Math.ceil(t);var n=_classPrivateFieldGet(this,f);if(n&&(n.width!==e||n.height!==t)){n.width=e,n.height=t;var r=_classPrivateFieldGet(this,m)?_classPrivateFieldGet(this,o):_classPrivateMethodGet(this,k,M).call(this,e,t),a=n.getContext("2d");a.filter=this._uiManager.hcmFilter,a.drawImage(r,0,0,r.width,r.height,0,0,e,t)}}function R(e){if(e){if(_classPrivateFieldGet(this,m)){var t=this._uiManager.imageManager.getSvgUrl(_classPrivateFieldGet(this,c));if(t)return t}var n=document.createElement("canvas"),r=_classPrivateFieldGet(this,o);return n.width=r.width,n.height=r.height,n.getContext("2d").drawImage(_classPrivateFieldGet(this,o),0,0),n.toDataURL()}if(_classPrivateFieldGet(this,m)){var a=_slicedToArray(this.pageDimensions,2),i=a[0],l=a[1],u=Math.round(this.width*i*s.PixelsPerInch.PDF_TO_CSS_UNITS),d=Math.round(this.height*l*s.PixelsPerInch.PDF_TO_CSS_UNITS),h=new OffscreenCanvas(u,d);return h.getContext("2d").drawImage(_classPrivateFieldGet(this,o),0,0,_classPrivateFieldGet(this,o).width,_classPrivateFieldGet(this,o).height,0,0,u,d),h.transferToImageBitmap()}return structuredClone(_classPrivateFieldGet(this,o))}function O(){var e=this;_classPrivateFieldSet(this,p,new ResizeObserver((function(t){var n=t[0].contentRect;n.width&&n.height&&_classPrivateMethodGet(e,w,T).call(e,n.width,n.height)}))),_classPrivateFieldGet(this,p).observe(this.div)}r=A,_defineProperty(A,"_type","stamp"),t.StampEditor=A}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __nested_webpack_exports__={};return function(){var e=__nested_webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return i.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return s.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return l.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return r.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return o.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return n.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return r.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return r.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return a.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return r.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return a.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(2),r=__w_pdfjs_require__(6),a=__w_pdfjs_require__(26),i=__w_pdfjs_require__(27),s=__w_pdfjs_require__(5),l=__w_pdfjs_require__(29),o=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)}(),__nested_webpack_exports__}()},module.exports=root.pdfjsLib=factory()},888:function(e,t,n){"use strict";var r=n(9047);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,s){if(s!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4463:function(e,t,n){"use strict";var r=n(2791),a=n(5296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n