@foreverrbum/ethsign
Version:
This package will allow you to electronically sign documents within your application
1 lines • 226 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1200:function(e,t,n){var o,r;self,e.exports=(o=n(0),r=n(22),(()=>{var e={926:e=>{"use strict";e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path class="cls-1" d="M18,6H17V4a2,2,0,0,0-2-2H9A2,2,0,0,0,7,4V6H3V8H5V20a2,2,0,0,0,2,2H17a2,2,0,0,0,2-2V8h2V6ZM9,4h6V6H9ZM7,20V8H17V20Zm6-10h2v8H13ZM9,10h2v8H9Z"/></svg>'},316:e=>{"use strict";e.exports='<svg\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path class="cls-1" d="M9,14.5A1.5,1.5,0,1,1,7.5,13,1.5,1.5,0,0,1,9,14.5ZM10.5,6A1.5,1.5,0,1,0,12,7.5,1.5,1.5,0,0,0,10.5,6Zm-3,3A1.5,1.5,0,1,0,9,10.5,1.5,1.5,0,0,0,7.5,9Zm7.2,6.36a2,2,0,0,0-.09,1.92l.2.41A3,3,0,0,1,12.14,22H12a9.74,9.74,0,0,1-2.62-.36A10,10,0,0,1,4.46,5.43,10,10,0,0,1,22,12.14a3,3,0,0,1-3,3,3.09,3.09,0,0,1-1.3-.3l-.41-.2A2,2,0,0,0,14.7,15.36Zm3.44-2.55.42.19A1,1,0,0,0,20,12.11a8,8,0,0,0-6.87-8A7.24,7.24,0,0,0,12,4,8,8,0,0,0,6,6.74a7.92,7.92,0,0,0-1.89,6.39A8.05,8.05,0,0,0,9.9,19.72,8.42,8.42,0,0,0,12,20h.11a1,1,0,0,0,.84-.48,1,1,0,0,0,.05-1l-.2-.42A3.92,3.92,0,0,1,13,14.3,4.05,4.05,0,0,1,18.14,12.81ZM14.5,6A1.5,1.5,0,1,0,16,7.5,1.5,1.5,0,0,0,14.5,6Z"/>\n</svg>\n'},937:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(645),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,"div#wv-read-mode {\n height: 100%;\n width: inherit;\n}\n\n.reader-mode-spinner-wrapper {\n position: fixed;\n left: 0;\n width: inherit;\n padding: inherit;\n background-color: white;\n background-clip: content-box;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reader-mode-spinner-wrapper.hidden {\n display: none;\n}\n\n.reader-mode-spinner {\n position: absolute;\n height: 60px;\n width: 60px;\n margin: 0px auto;\n -webkit-animation: rotation .6s infinite linear;\n -moz-animation: rotation .6s infinite linear;\n -o-animation: rotation .6s infinite linear;\n animation: rotation .6s infinite linear;\n border-left: 6px solid rgba(0, 174, 239, .15);\n border-right: 6px solid rgba(0, 174, 239, .15);\n border-bottom: 6px solid rgba(0, 174, 239, .15);\n border-top: 6px solid rgba(0, 174, 239, .8);\n border-radius: 100%;\n}\n\n@-webkit-keyframes rotation {\n from {\n -webkit-transform: rotate(0deg);\n }\n\n to {\n -webkit-transform: rotate(359deg);\n }\n}\n\n@-moz-keyframes rotation {\n from {\n -moz-transform: rotate(0deg);\n }\n\n to {\n -moz-transform: rotate(359deg);\n }\n}\n\n@-o-keyframes rotation {\n from {\n -o-transform: rotate(0deg);\n }\n\n to {\n -o-transform: rotate(359deg);\n }\n}\n\n@keyframes rotation {\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(359deg);\n }\n}\n",""]);const i=r},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(r[l]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},703:(e,t,n)=>{"use strict";var o=n(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,l){if(l!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array: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:r};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},379:(e,t,n)=>{"use strict";var o,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function l(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function a(e,t){for(var n={},o=[],r=0;r<e.length;r++){var a=e[r],s=t.base?a[0]+t.base:a[0],c=n[s]||0,u="".concat(s," ").concat(c);n[s]=c+1;var d=l(u),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(i[d].references++,i[d].updater(f)):i.push({identifier:u,updater:m(f,t),references:1}),o.push(u)}return o}function s(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var l=r(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var i=document.createTextNode(r),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(i,l[t]):e.appendChild(i)}}function f(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,p=0;function m(e,t){var n,o,r;if(t.singleton){var i=p++;n=h||(h=s(t)),o=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=s(t),o=f.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o));var n=a(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=l(n[o]);i[r].references--}for(var s=a(e,t),c=0;c<n.length;c++){var u=l(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=s}}}},662:e=>{"use strict";e.exports='.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'},421:e=>{"use strict";e.exports='.tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,8,16,.15);color:#333;box-shadow:0 4px 14px -2px rgba(0,8,16,.08)}.tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light-border]>.tippy-arrow:after,.tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0,8,16,.2);border-width:7px 7px 0;top:17px;left:1px}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0,8,16,.2);border-width:0 7px 7px;bottom:17px;left:1px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0,8,16,.2);border-width:7px 0 7px 7px;left:17px;top:1px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0,8,16,.2)}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}'},773:e=>{"use strict";e.exports="body {\n display: flex;\n flex-direction: column;\n}\n\nhtml {\n overflow: hidden;\n}\n"},370:e=>{"use strict";e.exports=".rm-tooltip-content {\n margin: -5px -9px;\n display: flex;\n font-family: sans-serif;\n}\n\n.rm-tooltip-icon {\n height: 32px;\n width: 32px;\n margin: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 4px;\n}\n\n.rm-tooltip-icon:hover {\n background-color: #E7EDF3;\n}\n\n.rm-tooltip-icon svg {\n height: 18px;\n width: 18px;\n fill: #868e96;\n pointer-events: none;\n}\n"},798:e=>{"use strict";e.exports=o},413:e=>{"use strict";e.exports=r}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.r(i),n.d(i,{default:()=>ol});var e=n(798),t=n.n(e),o=n(413),r=n.n(o);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=n(697),u=n.n(c),d=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),f="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,h=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),p="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(h):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},m=["top","right","bottom","left","width","height","size","weight"],g="undefined"!=typeof MutationObserver,v=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&a()}function l(){p(i)}function a(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(l,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){f&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),g?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){f&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;m.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),y=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},b=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||h},w=R(0,0,0,0);function S(e){return parseFloat(e)||0}function x(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+S(e["border-"+n+"-width"])}),0)}var C="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof b(e).SVGGraphicsElement}:function(e){return e instanceof b(e).SVGElement&&"function"==typeof e.getBBox};function R(e,t,n,o){return{x:e,y:t,width:n,height:o}}var O=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=R(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){return f?C(e)?function(e){var t=e.getBBox();return R(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return w;var o=b(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=S(i)}return t}(o),i=r.left+r.right,l=r.top+r.bottom,a=S(o.width),s=S(o.height);if("border-box"===o.boxSizing&&(Math.round(a+i)!==t&&(a-=x(o,"left","right")+i),Math.round(s+l)!==n&&(s-=x(o,"top","bottom")+l)),!function(e){return e===b(e).document.documentElement}(e)){var c=Math.round(a+i)-t,u=Math.round(s+l)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(s-=u)}return R(r.left,r.top,a,s)}(e):w}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),T=function(e,t){var n,o,r,i,l,a,s,c=(o=(n=t).x,r=n.y,i=n.width,l=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(a.prototype),y(s,{x:o,y:r,width:i,height:l,top:r,right:o+i,bottom:l+r,left:o}),s);y(this,{target:e,contentRect:c})},z=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new d,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof b(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new O(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof b(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new T(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new d,P=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=v.getInstance(),o=new z(t,n,this);k.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){P.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));const I=void 0!==h.ResizeObserver?h.ResizeObserver:P;var M=["client","offset","scroll","bounds","margin"];function E(e){var t=[];return M.forEach((function(n){e[n]&&t.push(n)})),t}function A(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var o=e.getBoundingClientRect();n.bounds={top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height}}if(t.indexOf("margin")>-1){var r=getComputedStyle(e);n.margin={top:r?parseInt(r.marginTop):0,right:r?parseInt(r.marginRight):0,bottom:r?parseInt(r.marginBottom):0,left:r?parseInt(r.marginLeft):0}}return n}function L(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||window}var j=function(t){var n,o;return o=n=function(n){var o,r;function i(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return(e=n.call.apply(n,[this].concat(o))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},e._animationFrameID=null,e._resizeObserver=null,e._node=null,e._window=null,e.measure=function(t){var n=A(e._node,E(e.props));t&&(n.entry=t[0].contentRect),e._animationFrameID=e._window.requestAnimationFrame((function(){null!==e._resizeObserver&&(e.setState({contentRect:n}),"function"==typeof e.props.onResize&&e.props.onResize(n))}))},e._handleRef=function(t){null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.unobserve(e._node),e._node=t,e._window=L(e._node);var n=e.props.innerRef;n&&("function"==typeof n?n(e._node):n.current=e._node),null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.observe(e._node)},e}r=n,(o=i).prototype=Object.create(r.prototype),o.prototype.constructor=o,s(o,r);var c=i.prototype;return c.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new I(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(A(this._node,E(this.props))))},c.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},c.render=function(){var n=this.props,o=(n.innerRef,n.onResize,a(n,["innerRef","onResize"]));return(0,e.createElement)(t,l({},o,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},i}(e.Component),n.propTypes={client:u().bool,offset:u().bool,scroll:u().bool,bounds:u().bool,margin:u().bool,innerRef:u().oneOfType([u().object,u().func]),onResize:u().func},o}((function(e){var t=e.measure,n=e.measureRef,o=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:o})}));j.displayName="Measure",j.propTypes.children=u().func;const H=j;var D="wv-read-mode",N="resize",W="pageNumberUpdated",G="zoomUpdated",F="addAnnotConfigUpdated",U=n(379),B=n.n(U),V=n(937);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Y(e,t,n,o,r,i,l){try{var a=e[i](l),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(o,r)}function X(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function l(e){Y(i,o,r,l,a,"next",e)}function a(e){Y(i,o,r,l,a,"throw",e)}l(void 0)}))}}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e,t){return!t||"object"!==q(t)&&"function"!=typeof t?$(e):t}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}B()(V.Z,{insert:"head",singleton:!1}),V.Z.locals;var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(c,e);var t,n,o,r,i,l,a,s=(l=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Q(l);if(a){var n=Q(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return K(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),ee($(t=s.call(this,e)),"handleLinkClicked",(function(e){if(e.match(/^\d+\-0\.html$/)){var n=Number(e.split("-")[0]);if(t.pageObjNumMap.has(n)){var o=t.pageObjNumMap.get(n);t.jumpToPage(o)}else{var r=function(){var e=X(regeneratorRuntime.mark((function e(){var o,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setState({showSpinner:!0}),o=0;case 2:if(!(o<t.state.pages.length)){e.next=16;break}if(!t.state.pages[o].loaded){e.next=5;break}return e.abrupt("continue",13);case 5:return e.next=7,t.getPageContent(o,!0);case 7:if(r=e.sent,i=r.objNum,n!==i){e.next=13;break}return t.jumpToPage(o),t.setState({showSpinner:!1}),e.abrupt("break",16);case 13:o++,e.next=2;break;case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t.runPdfNetTask(r)}}else{var i;null===(i=window)||void 0===i||i.open(e)}})),ee($(t),"getViewerElement",(function(){return t.viewerElement})),ee($(t),"handleAddAnnotConfigUpdated",(function(e){})),t.state={pages:[],zoom:"1",showSpinner:!0,spinnerStyle:{},addAnnotConfig:void 0},t.initialized=!1,t.doc=void 0,t.pageObjNumMap=new Map,t.preloadPagesNum=1,t}return t=c,(n=[{key:"componentDidMount",value:function(){this.viewerElement=document.getElementById(D),this.resizeSpinner(),this.props.viewport.addEventListener(W,this.handlePageNumberUpdated),this.props.viewport.addEventListener(G,this.handleZoomUpdated),this.props.viewport.addEventListener(F,this.handleAddAnnotConfigUpdated),this.initialize()}},{key:"componentWillUnmount",value:function(){this.props.viewport.removeEventListener(W,this.handlePageNumberUpdated),this.props.viewport.removeEventListener(G,this.handleZoomUpdated),this.props.viewport.removeEventListener(F,this.handleAddAnnotConfigUpdated)}},{key:"runPdfNetTask",value:function(e){var t=this;this.props.pdfNet.initialize(void 0,"ems").then((function(){var n=function(){var t=X(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log(t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}();t.props.pdfNet.runWithoutCleanup(n)}))}},{key:"initialize",value:function(){var e=this,t=function(){var t=X(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.props.doc;case 2:return e.doc=t.sent,t.next=5,e.doc.initSecurityHandler();case 5:return t.next=7,e.doc.getPageCount();case 7:if(n=t.sent,e.props.options.pageCountHandler(n),0!==n){t.next=13;break}e.setState((function(e){return{pages:e.pages.concat({content:"There is no text content in this file.",loaded:!0})}})),t.next=15;break;case 13:return t.next=15,e.initializePages(n);case 15:e.initialized=!0,e.props.options.pageNum>1&&e.props.options.pageNum<=n&&e.jumpToPage(e.props.options.pageNum-1),e.setState({showSpinner:!1});case 18:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();this.runPdfNetTask(t)}},{key:"initializePages",value:(i=X(regeneratorRuntime.mark((function e(t){var n,o,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=regeneratorRuntime.mark((function e(n){var o,i,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o="",i=void 0,!(n<r.preloadPagesNum)){e.next=7;break}return e.next=4,r.getPageContent(n,!1,t);case 4:l=e.sent,o=l.htmlStr,i=l.pdfNetReflow;case 7:r.setState((function(e){return{pages:e.pages.concat({content:o,loaded:n<r.preloadPagesNum,pdfNetReflow:i})}}));case 8:case"end":return e.stop()}}),e)})),o=0;case 2:if(!(o<t)){e.next=7;break}return e.delegateYield(n(o),"t0",4);case 4:o++,e.next=2;break;case 7:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getPageContent",value:(r=X(regeneratorRuntime.mark((function e(t){var n,o,r,i,l,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]&&a[1],a.length>2&&a[2],e.next=5,this.doc.getPage(t+1);case 5:return o=e.sent,e.next=8,o.getSDFObj();case 8:return e.next=10,e.sent.getObjNum();case 10:if(r=e.sent,this.pageObjNumMap.set(r,t),!this.isReflowSupported()){e.next=26;break}return e.next=15,this.props.pdfNet.Convert.createReflow(o,"");case 15:if(l=e.sent,!n){e.next=20;break}e.t0="",e.next=23;break;case 20:return e.next=22,l.getHtml();case 22:e.t0=e.sent;case 23:i=e.t0,e.next=34;break;case 26:if(!n){e.next=30;break}e.t1="",e.next=33;break;case 30:return e.next=32,this.props.pdfNet.Convert.pageToHtml(o);case 32:e.t1=e.sent;case 33:i=e.t1;case 34:return e.abrupt("return",{htmlStr:i,objNum:r,pdfNetReflow:l});case 35:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"loadPageByNum",value:(o=X(regeneratorRuntime.mark((function e(t){var n,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getPageContent(t);case 2:n=e.sent,o=n.htmlStr,r=n.pdfNetReflow,this.setState((function(e){var n,i=function(e){if(Array.isArray(e))return Z(e)}(n=e.pages)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return i[t]={content:o,loaded:!0,pdfNetReflow:r},{pages:i}}));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"resize",value:function(){this.resizeSpinner()}},{key:"handleZoomUpdated",value:function(e){var t=this;this.setState({zoom:e.detail.toString()},(function(){t.resize()}))}},{key:"resizeSpinner",value:function(){this.setState({spinnerStyle:{zIndex:10,height:this.viewerElement.clientHeight+"px"}})}},{key:"jumpToPage",value:function(e){}},{key:"handlePageNumberUpdated",value:function(e){}},{key:"isReflowSupported",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),c}(t().PureComponent);function ne(e){return"read-mode-page-".concat(e)}function oe(){return navigator.userAgent.indexOf("Safari")>-1}function re(e){var t;return null==e||null===(t=e.document)||void 0===t?void 0:t.getElementsByTagName("html")[0]}function ie(e){var t;return null===(t=re(e))||void 0===t?void 0:t.getElementsByTagName("body")[0]}function le(e){var t;return null===(t=re(e))||void 0===t?void 0:t.getElementsByTagName("head")[0]}var ae=n(926),se=n(316);function ce(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ue(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function de(e){var t=ue(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fe(e){return e instanceof ue(e).Element||e instanceof Element}function he(e){return e instanceof ue(e).HTMLElement||e instanceof HTMLElement}function pe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ue(e).ShadowRoot||e instanceof ShadowRoot)}function me(e){return e?(e.nodeName||"").toLowerCase():null}function ge(e){return((fe(e)?e.ownerDocument:e.document)||window.document).documentElement}function ve(e){return ce(ge(e)).left+de(e).scrollLeft}function ye(e){return ue(e).getComputedStyle(e)}function be(e){var t=ye(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function _e(e,t,n){void 0===n&&(n=!1);var o,r,i=ge(t),l=ce(e),a=he(t),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==me(t)||be(i))&&(s=(o=t)!==ue(o)&&he(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:de(o)),he(t)?((c=ce(t)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=ve(i))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function we(e){var t=ce(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Se(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(pe(e)?e.host:null)||ge(e)}function xe(e,t){var n;void 0===t&&(t=[]);var o=function e(t){return["html","body","#document"].indexOf(me(t))>=0?t.ownerDocument.body:he(t)&&be(t)?t:e(Se(t))}(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ue(o),l=r?[i].concat(i.visualViewport||[],be(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(xe(Se(l)))}function Ce(e){return["table","td","th"].indexOf(me(e))>=0}function Re(e){return he(e)&&"fixed"!==ye(e).position?e.offsetParent:null}function Oe(e){for(var t=ue(e),n=Re(e);n&&Ce(n)&&"static"===ye(n).position;)n=Re(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===ye(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&he(e)&&"fixed"===ye(e).position)return null;for(var n=Se(e);he(n)&&["html","body"].indexOf(me(n))<0;){var o=ye(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var Te="top",ze="bottom",ke="right",Pe="left",Ie="auto",Me=[Te,ze,ke,Pe],Ee="start",Ae="viewport",Le="popper",je=Me.reduce((function(e,t){return e.concat([t+"-"+Ee,t+"-end"])}),[]),He=[].concat(Me,[Ie]).reduce((function(e,t){return e.concat([t,t+"-"+Ee,t+"-end"])}),[]),De=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ne(e){var t=new Map,n=new Set,o=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(o){if(!n.has(o)){var r=t.get(o);r&&e(r)}})),o.push(r)}(e)})),o}var We={placement:"bottom",modifiers:[],strategy:"absolute"};function Ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var Fe={passive:!0};const Ue={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,l=o.resize,a=void 0===l||l,s=ue(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Fe)})),a&&s.addEventListener("resize",n.update,Fe),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Fe)})),a&&s.removeEventListener("resize",n.update,Fe)}},data:{}};function Be(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function qe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ze(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?Be(r):null,l=r?Ve(r):null,a=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(i){case Te:t={x:a,y:n.y-o.height};break;case ze:t={x:a,y:n.y+n.height};break;case ke:t={x:n.x+n.width,y:s};break;case Pe:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?qe(i):null;if(null!=c){var u="y"===c?"height":"width";switch(l){case Ee:t[c]=t[c]-(n[u]/2-o[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}const Ye={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ze({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Xe=Math.max,Je=Math.min,Ke=Math.round,$e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qe(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.offsets,l=e.position,a=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,u=!0===c?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:Ke(Ke(t*o)/o)||0,y:Ke(Ke(n*o)/o)||0}}(i):"function"==typeof c?c(i):i,d=u.x,f=void 0===d?0:d,h=u.y,p=void 0===h?0:h,m=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),v=Pe,y=Te,b=window;if(s){var _=Oe(n),w="clientHeight",S="clientWidth";_===ue(n)&&"static"!==ye(_=ge(n)).position&&(w="scrollHeight",S="scrollWidth"),_=_,r===Te&&(y=ze,p-=_[w]-o.height,p*=a?1:-1),r===Pe&&(v=ke,f-=_[S]-o.width,f*=a?1:-1)}var x,C=Object.assign({position:l},s&&$e);return a?Object.assign({},C,((x={})[y]=g?"0":"",x[v]=m?"0":"",x.transform=(b.devicePixelRatio||1)<2?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",x)):Object.assign({},C,((t={})[y]=g?p+"px":"",t[v]=m?f+"px":"",t.transform="",t))}const et={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];he(r)&&me(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});he(o)&&me(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};var tt={left:"right",right:"left",bottom:"top",top:"bottom"};function nt(e){return e.replace(/left|right|bottom|top/g,(function(e){return tt[e]}))}var ot={start:"end",end:"start"};function rt(e){return e.replace(/start|end/g,(function(e){return ot[e]}))}function it(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pe(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function lt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function at(e,t){return t===Ae?lt(function(e){var t=ue(e),n=ge(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,l=0,a=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=o.offsetLeft,a=o.offsetTop)),{width:r,height:i,x:l+ve(e),y:a}}(e)):he(t)?function(e){var t=ce(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):lt(function(e){var t,n=ge(e),o=de(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Xe(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Xe(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+ve(e),s=-o.scrollTop;return"rtl"===ye(r||n).direction&&(a+=Xe(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(ge(e)))}function st(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ct(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ut(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.boundary,l=void 0===i?"clippingParents":i,a=n.rootBoundary,s=void 0===a?Ae:a,c=n.elementContext,u=void 0===c?Le:c,d=n.altBoundary,f=void 0!==d&&d,h=n.padding,p=void 0===h?0:h,m=st("number"!=typeof p?p:ct(p,Me)),g=u===Le?"reference":Le,v=e.elements.reference,y=e.rects.popper,b=e.elements[f?g:u],_=function(e,t,n){var o="clippingParents"===t?function(e){var t=xe(Se(e)),n=["absolute","fixed"].indexOf(ye(e).position)>=0&&he(e)?Oe(e):e;return fe(n)?t.filter((function(e){return fe(e)&&it(e,n)&&"body"!==me(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r[0],l=r.reduce((function(t,n){var o=at(e,n);return t.top=Xe(o.top,t.top),t.right=Je(o.right,t.right),t.bottom=Je(o.bottom,t.bottom),t.left=Xe(o.left,t.left),t}),at(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(fe(b)?b:b.contextElement||ge(e.elements.popper),l,s),w=ce(v),S=Ze({reference:w,element:y,strategy:"absolute",placement:r}),x=lt(Object.assign({},y,S)),C=u===Le?x:w,R={top:_.top-C.top+m.top,bottom:C.bottom-_.bottom+m.bottom,left:_.left-C.left+m.left,right:C.right-_.right+m.right},O=e.modifiersData.offset;if(u===Le&&O){var T=O[r];Object.keys(R).forEach((function(e){var t=[ke,ze].indexOf(e)>=0?1:-1,n=[Te,ze].indexOf(e)>=0?"y":"x";R[e]+=T[n]*t}))}return R}function dt(e,t,n){return Xe(e,Je(t,n))}function ft(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ht(e){return[Te,ke,ze,Pe].some((function(t){return e[t]>=0}))}var pt=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?We:r;return function(e,t,n){void 0===n&&(n=i);var r,l,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},We,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:a,setOptions:function(n){d(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:fe(e)?xe(e):e.contextElement?xe(e.contextElement):[],popper:xe(t)};var r,l,c=function(e){var t=Ne(e);return De.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(o,a.options.modifiers),l=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(l).map((function(e){return l[e]}))));return a.orderedModifiers=c.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:u,options:o});s.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Ge(t,n)){a.rects={reference:_e(t,Oe(n),"fixed"===a.options.strategy),popper:we(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var r=a.orderedModifiers[o],i=r.fn,l=r.options,s=void 0===l?{}:l,d=r.name;"function"==typeof i&&(a=i({state:a,options:s,name:d,instance:u})||a)}else a.reset=!1,o=-1}}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return l||(l=new Promise((function(e){Promise.resolve().then((function(){l=void 0,e(r())}))}))),l}),destroy:function(){d(),c=!0}};if(!Ge(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}({defaultModifiers:[Ue,Ye,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,l=void 0===i||i,a=n.roundOffsets,s=void 0===a||a,c={placement:Be(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Qe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Qe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},et,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,l=He.reduce((function(e,n){return e[n]=function(e,t,n){var o=Be(e),r=[Pe,Te].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*r,[Pe,ke].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}(n,t.rects,i),e}),{}),a=l[t.placement],s=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=l}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0===l||l,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=Be(g),y=s||(v!==g&&p?function(e){if(Be(e)===Ie)return[];var t=nt(e);return[rt(e),t,rt(t)]}(g):[nt(g)]),b=[g].concat(y).reduce((function(e,n){return e.concat(Be(n)===Ie?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?He:s,u=Ve(o),d=u?a?je:je.filter((function(e){return Ve(e)===u})):Me,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=ut(e,{placement:n,boundary:r,rootBoundary:i,padding:l})[Be(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,S=new Map,x=!0,C=b[0],R=0;R<b.length;R++){var O=b[R],T=Be(O),z=Ve(O)===Ee,k=[Te,ze].indexOf(T)>=0,P=k?"width":"height",I=ut(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),M=k?z?ke:Pe:z?ze:Te;_[P]>w[P]&&(M=nt(M));var E=nt(M),A=[];if(i&&A.push(I[T]<=0),a&&A.push(I[M]<=0,I[E]<=0),A.every((function(e){return e}))){C=O,x=!1;break}S.set(O,A)}if(x)for(var L=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},j=p?3:1;j>0&&"break"!==L(j);j--);t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0!==l&&l,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,m=void 0===p?0:p,g=ut(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Be(t.placement),y=Ve(t.placement),b=!y,_=qe(v),w="x"===_?"y":"x",S=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,R="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O={x:0,y:0};if(S){if(i||a){var T="y"===_?Te:Pe,z="y"===_?ze:ke,k="y"===_?"height":"width",P=S[_],I=S[_]+g[T],M=S[_]-g[z],E=h?-C[k]/2:0,A=y===Ee?x[k]:C[k],L=y===Ee?-C[k]:-x[k],j=t.elements.arrow,H=h&&j?we(j):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=D[T],W=D[z],G=dt(0,x[k],H[k]),F=b?x[k]/2-E-G-N-R:A-G-N-R,U=b?-x[k]/2+E+G+W+R:L+G+W+R,B=t.elements.arrow&&Oe(t.elements.arrow),V=B?"y"===_?B.clientTop||0:B.clientLeft||0:0,q=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,Z=S[_]+F-q-V,Y=S[_]+U-q;if(i){var X=dt(h?Je(I,Z):I,P,h?Xe(M,Y):M);S[_]=X,O[_]=X-P}if(a){var J="x"===_?Te:Pe,K="x"===_?ze:ke,$=S[w],Q=$+g[J],ee=$-g[K],te=dt(h?Je(Q,Z):Q,$,h?Xe(ee,Y):ee);S[w]=te,O[w]=te-$}}t.modifiersData[o]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Be(n.placement),s=qe(a),c=[Pe,ke].indexOf(a)>=0?"height":"width";if(i&&l){var u=function(e,t){return st("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ct(e,Me))}(r.padding,n),d=we(i),f="y"===s?Te:Pe,h="y"===s?ze:ke,p=n.rects.reference[c]+n.rects.reference[s]-l[s]-n.rects.popper[c],m=l[s]-n.rects.reference[s],g=Oe(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2