@depay/widgets 12.2.0 → 12.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -146,7 +146,7 @@ bf((function(e,t){}));var DD=bf((function(e){e.exports=CD}));
146
146
  * This source code is licensed under the MIT license found in the
147
147
  * LICENSE file in the root directory of this source tree.
148
148
  */
149
- bf((function(e,t){}));var DF=bf((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=CF}));const OF="/Users/sebastian/Work/DePay/react-dialog/src/components/Dialog.jsx";class zF extends vk.Component{constructor(e){super(e),this.handler=this.onKeyDown.bind(this),this.state={open:!0}}closeDialog(){this.props.close()}onKeyDown(e){"Escape"===e.key&&this.closeDialog()}componentDidUpdate(e){!1===this.props.open&&!0===e.open&&this.setState({open:!1})}onClickBackground(e){this.closeDialog()}componentDidMount(){!1===this.props.animate?this.setState({open:!0}):this.setState({open:!1},(()=>{setTimeout((()=>{this.setState({open:!0})}),10)})),this.props.document.addEventListener("keydown",this.handler,!0)}componentWillUnmount(){this.props.document.removeEventListener("keydown",this.handler,!0)}render(){const e=["ReactDialog",this.state.open?"ReactDialogOpen":""],t=`\n .ReactDialog {\n bottom: 0;\n display: flex;\n height: 100%;\n height: 100vh;\n left: 0;\n min-height: 100%;\n min-height: 100vh;\n overflow: hidden;\n position: fixed;\n right: 0;\n top: 0;\n width: 100%;\n width: 100vw;\n }\n\n .ReactDialogInner {\n align-items: center;\n display: flex;\n flex: 1;\n justify-content: center;\n }\n\n .ReactDialogBackground {\n background: ${"object"==typeof(n={background:this.props.background})&&n.background?n.background:"rgba(0,0,0,0.4)"};\n bottom: 0;\n display: block;\n height: 100%;\n left: 0;\n opacity: 0;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.4s ease;\n width: 100%;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogBackground {\n opacity: 1;\n }\n\n .ReactDialogAnimation {\n display: inline-block;\n position: relative;\n opacity: 0;\n top: -17vh;\n transition: opacity 0.4s ease, top 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n opacity: 1.0;\n top: -5vh;\n }\n `;var n;return vk.createElement("div",{key:this.props.dialogKey,className:e.join(" "),__self:this,__source:{fileName:OF,lineNumber:59}},vk.createElement("style",{__self:this,__source:{fileName:OF,lineNumber:60}},t),vk.createElement("div",{className:"ReactDialogInner",__self:this,__source:{fileName:OF,lineNumber:61}},vk.createElement("div",{className:"ReactDialogBackground",onClick:this.onClickBackground.bind(this),__self:this,__source:{fileName:OF,lineNumber:62}}),this.props.children))}}class _F extends vk.Component{constructor(e){super(e),this.state={open:e.open}}componentDidUpdate(e){!1===this.props.open&&!0===e.open?setTimeout((()=>{this.setState({open:!1})}),400):!0===this.props.open&&!1===e.open&&this.setState({open:!0})}render(){let e=this.props.document||document,t=this.props.container||e.body;return this.state.open?DF.createPortal(vk.createElement(zF,{background:this.props.background,close:this.props.close,document:e,open:this.props.open,animate:this.props.animate,__self:this,__source:{fileName:"/Users/sebastian/Work/DePay/react-dialog/src/index.jsx",lineNumber:29}},this.props.children),t):null}}var PF=vk.createContext(),BF=vk.createContext();var RF=vk.createContext();const UF="/Users/sebastian/Work/DePay/react-dialog-stack/src/index.jsx";class WF extends vk.Component{constructor(e){if(super(e),e.setNavigator&&e.setNavigator(this),e.stacked){const t="string"==typeof e.stacked?e.stacked:"forward";this.state={stack:[],animating:!1,animation:null,direction:t,animationSpeed:200},setTimeout((()=>this.navigate(e.start,t)),10)}else this.state={stack:[e.start],animating:!1,animation:null,direction:"forward",animationSpeed:200}}set(e){this.setState({stack:e})}hide(e="forward"){"backward"===e?(this.setState({stack:[null,...this.state.stack]}),setTimeout((()=>this.navigate("back")),10)):this.navigate(null)}navigate(e,t="forward"){if(!(this.state.stack.indexOf(e)>-1))return"back"===e?this.unstack():void this.setState({stack:this.state.stack.concat(e),animating:!0,direction:t,animation:setTimeout(function(){this.setState({animating:!1})}.bind(this),this.state.animationSpeed)})}unstack(){if(this.state.stack.length<=1)return;let e=[...this.state.stack];e.pop(),this.setState({animating:!0,direction:"backward",animation:setTimeout(function(){this.setState({stack:e,animating:!1})}.bind(this),this.state.animationSpeed)})}classForState(e){if(!this.state.animating)return 1===this.state.stack.length||this.state.stack.length===e+1?"active":"inactive"}classForPosition(e){return this.state.stack.length>1?this.state.stack.length===e+1?"forward"===this.state.direction?"next":"previous":this.state.stack.length-1===e+1?"forward"===this.state.direction?"previous":"next":"stale":this.state.animating&&this.props.stacked&&0===e?"next":void 0}classForAnimation(){if(this.state.animating)return"animating"}classForDirection(){return this.state.direction}renderStack(){return this.state.stack.map(function(e,t){let n=[this.classForState(t),this.classForPosition(t),this.classForAnimation(),this.classForDirection()];return vk.createElement("div",{key:t,className:["ReactDialogStack"].concat(n).join(" "),onClick:this.onClick.bind(this),__self:this,__source:{fileName:UF,lineNumber:153}},vk.createElement(BF.Provider,{value:{navigate:this.navigate.bind(this),set:this.set.bind(this),hide:this.hide.bind(this)},__self:this,__source:{fileName:UF,lineNumber:158}},vk.createElement(PF.Provider,{value:this.close.bind(this),__self:this,__source:{fileName:UF,lineNumber:161}},vk.createElement(RF.Provider,{value:this.state.stack,__self:this,__source:{fileName:UF,lineNumber:162}},vk.createElement("div",{className:"ReactDialogAnimation",__self:this,__source:{fileName:UF,lineNumber:163}},this.props.dialogs[e])))))}.bind(this))}onClick(e){e.target&&e.target.className&&e.target.className.match&&e.target.className.match("ReactDialogStack")&&(this.state.stack.length>1?this.unstack():this.close())}close(e){this.state.stack.length>1&&!e?this.unstack():(this.props.close(),setTimeout((()=>this.setState({stack:this.state.stack.slice(0,1)})),400))}render(){return vk.createElement(_F,{close:this.close.bind(this),open:this.props.open,document:this.props.document,container:this.props.container,animate:!this.props.stacked,background:this.props.background,__self:this,__source:{fileName:UF,lineNumber:199}},vk.createElement("style",{__self:this,__source:{fileName:UF,lineNumber:207}},"\n\n .ReactDialogStack {\n align-items: center;\n bottom: 0;\n display: flex;\n flex: 1;\n height: 100%;\n justify-content: center;\n position: absolute;\n top: 0;\n transition: left 0.1s ease, opacity 0.2s ease;\n width: 100%;\n }\n\n .ReactDialogStackRow {\n display: table-row;\n }\n\n .ReactDialogStackCell {\n display: table-cell;\n vertical-align: middle;\n padding: 0 0.6rem;\n }\n\n .ReactDialogStack {\n left: 0;\n opacity: 1;\n }\n\n .ReactDialogStack.inactive {\n display: none;\n }\n\n .ReactDialogStack.animating.stale {\n display: none;\n }\n\n .ReactDialogStack.animating.previous.forward {\n opacity: 0;\n left: -5rem;\n }\n\n .ReactDialogStack.animating.previous.backward {\n opacity: 0;\n left: 5rem;\n }\n\n .ReactDialogStack.animating.next.forward {\n opacity: 0;\n left: 5rem;\n }\n\n .ReactDialogStack.animating.next.backward {\n opacity: 0;\n left: -5rem;\n }\n "),this.renderStack())}}var QF=function(e){var t=vk.useContext(BF).navigate,n=vk.useContext(bk),r=n.close,i=n.closable;return vk.createElement("div",{className:["Dialog",e.className].join(" ")},vk.createElement("div",{className:["DialogHeader",e.stacked?"TextCenter":""].join(" ")},e.stacked&&vk.createElement("div",{className:"DialogHeaderActionLeft PaddingTopS PaddingLeftS PaddingRightS"},vk.createElement("button",{type:"button",onClick:function(){return t("back")},className:"ButtonCircular",title:"Go back"},vk.createElement(SD,null))),i&&!1!==e.closable&&vk.createElement("div",{className:"DialogHeaderActionRight PaddingTopS PaddingLeftS PaddingRightS"},e.alternativeHeaderAction,vk.createElement("button",{type:"button",onClick:r,className:"ButtonCircular",title:"Close dialog"},vk.createElement(jD,null))),e.header),vk.createElement("div",{ref:e.bodyRef,className:["DialogBody",e.bodyClassName].join(" ")},e.body),!1!==e.footer&&vk.createElement("div",{className:"DialogFooter"},e.footer))},YF=function(){return"undefined"!=typeof window&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/.test(navigator.userAgent))},FF=bf((function(e,t){self,e.exports=(()=>{var e={192:(e,t)=>{var n,r,i=function(){var e=function(e,t){var n=e,r=a[t],i=null,o=0,u=null,m=[],g={},b=function(e,t){i=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(o=4*n+17),w(0,0),w(o-7,0),w(0,o-7),A(),M(),T(e,t),n>=7&&E(e),null==u&&(u=I(n,r,m)),N(u,t)},w=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},M=function(){for(var e=8;e<o-8;e+=1)null==i[e][6]&&(i[e][6]=e%2==0);for(var t=8;t<o-8;t+=1)null==i[6][t]&&(i[6][t]=t%2==0)},A=function(){for(var e=s.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var o=e[t],a=e[r];if(null==i[o][a])for(var u=-2;u<=2;u+=1)for(var c=-2;c<=2;c+=1)i[o+u][a+c]=-2==u||2==u||-2==c||2==c||0==u&&0==c}},E=function(e){for(var t=s.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!e&&1==(t>>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},T=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),u=0;u<15;u+=1){var c=!e&&1==(a>>u&1);u<6?i[u][8]=c:u<8?i[u+1][8]=c:i[o-15+u][8]=c}for(u=0;u<15;u+=1)c=!e&&1==(a>>u&1),u<8?i[8][o-u-1]=c:u<9?i[8][15-u-1+1]=c:i[8][15-u-1]=c;i[o-8][8]=!e},N=function(e,t){for(var n=-1,r=o-1,a=7,u=0,c=s.getMaskFunction(t),l=o-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var d=0;d<2;d+=1)if(null==i[r][l-d]){var h=!1;u<e.length&&(h=1==(e[u]>>>a&1)),c(r,l-d)&&(h=!h),i[r][l-d]=h,-1==(a-=1)&&(u+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},I=function(e,t,n){for(var r=l.getRSBlocks(e,t),i=d(),o=0;o<n.length;o+=1){var a=n[o];i.put(a.getMode(),4),i.put(a.getLength(),s.getLengthInBits(a.getMode(),e)),a.write(i)}var u=0;for(o=0;o<r.length;o+=1)u+=r[o].dataCount;if(i.getLengthInBits()>8*u)throw"code length overflow. ("+i.getLengthInBits()+">"+8*u+")";for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(236,8),i.getLengthInBits()>=8*u));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),u=0;u<t.length;u+=1){var l=t[u].dataCount,d=t[u].totalCount-l;r=Math.max(r,l),i=Math.max(i,d),o[u]=new Array(l);for(var h=0;h<o[u].length;h+=1)o[u][h]=255&e.getBuffer()[h+n];n+=l;var p=s.getErrorCorrectPolynomial(d),f=c(o[u],p.getLength()-1).mod(p);for(a[u]=new Array(p.getLength()-1),h=0;h<a[u].length;h+=1){var y=h+f.getLength()-a[u].length;a[u][h]=y>=0?f.getAt(y):0}}var m=0;for(h=0;h<t.length;h+=1)m+=t[h].totalCount;var g=new Array(m),v=0;for(h=0;h<r;h+=1)for(u=0;u<t.length;u+=1)h<o[u].length&&(g[v]=o[u][h],v+=1);for(h=0;h<i;h+=1)for(u=0;u<t.length;u+=1)h<a[u].length&&(g[v]=a[u][h],v+=1);return g}(i,r)};g.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=h(e);break;case"Alphanumeric":n=p(e);break;case"Byte":n=f(e);break;case"Kanji":n=y(e);break;default:throw"mode:"+t}m.push(n),u=null},g.isDark=function(e,t){if(e<0||o<=e||t<0||o<=t)throw e+","+t;return i[e][t]},g.getModuleCount=function(){return o},g.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=l.getRSBlocks(e,r),i=d(),o=0;o<m.length;o++){var a=m[o];i.put(a.getMode(),4),i.put(a.getLength(),s.getLengthInBits(a.getMode(),e)),a.write(i)}var u=0;for(o=0;o<t.length;o++)u+=t[o].dataCount;if(i.getLengthInBits()<=8*u)break}n=e}b(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){b(!0,n);var r=s.getLostPoint(g);(0==n||e>r)&&(e=r,t=n)}return t}())},g.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<g.getModuleCount();r+=1){n+="<tr>";for(var i=0;i<g.getModuleCount();i+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=g.isDark(r,i)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},g.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,u,c=g.getModuleCount()*e+2*t,l="";for(u="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",l+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',l+=i.scalable?"":' width="'+c+'px" height="'+c+'px"',l+=' viewBox="0 0 '+c+" "+c+'" ',l+=' preserveAspectRatio="xMinYMin meet"',l+=r.text||n.text?' role="img" aria-labelledby="'+k([r.id,n.id].join(" ").trim())+'"':"",l+=">",l+=r.text?'<title id="'+k(r.id)+'">'+k(r.text)+"</title>":"",l+=n.text?'<description id="'+k(n.id)+'">'+k(n.text)+"</description>":"",l+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',l+='<path d="',a=0;a<g.getModuleCount();a+=1)for(s=a*e+t,o=0;o<g.getModuleCount();o+=1)g.isDark(a,o)&&(l+="M"+(o*e+t)+","+s+u);return(l+='" stroke="transparent" fill="black"/>')+"</svg>"},g.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=g.getModuleCount()*e+2*t,r=t,i=n-t;return v(n,n,(function(t,n){if(r<=t&&t<i&&r<=n&&n<i){var o=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return g.isDark(a,o)?0:1}return 1}))},g.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=g.getModuleCount()*e+2*t,i="";return i+="<img",i+=' src="',i+=g.createDataURL(e,t),i+='"',i+=' width="',i+=r,i+='"',i+=' height="',i+=r,i+='"',n&&(i+=' alt="',i+=k(n),i+='"'),i+"/>"};var k=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return g.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*g.getModuleCount()+2*e,s=e,u=a-e,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},l={"██":"▀","█ ":"▀"," █":" "," ":" "},d="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),i=Math.floor((t+1-s)/1),n=0;n<a;n+=1)o="█",s<=n&&n<u&&s<=t&&t<u&&g.isDark(r,Math.floor((n-s)/1))&&(o=" "),s<=n&&n<u&&s<=t+1&&t+1<u&&g.isDark(i,Math.floor((n-s)/1))?o+=" ":o+="█",d+=e<1&&t+1>=u?l[o]:c[o];d+="\n"}return a%2&&e>0?d.substring(0,d.length-a-1)+Array(a+1).join("▀"):d.substring(0,d.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=g.getModuleCount()*e+2*t,s=t,u=a-t,c=Array(e+1).join("██"),l=Array(e+1).join(" "),d="",h="";for(n=0;n<a;n+=1){for(i=Math.floor((n-s)/e),h="",r=0;r<a;r+=1)o=1,s<=r&&r<u&&s<=n&&n<u&&g.isDark(i,Math.floor((r-s)/e))&&(o=0),h+=o?c:l;for(i=0;i<e;i+=1)d+=h+"\n"}return d.substring(0,d.length-1)},g.renderTo2dContext=function(e,t){t=t||2;for(var n=g.getModuleCount(),r=0;r<n;r++)for(var i=0;i<n;i++)e.fillStyle=g.isDark(r,i)?"black":"white",e.fillRect(r*t,i*t,t,t)},g};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=g(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},i=0,o={};;){var a=n.read();if(-1==a)break;var s=r(),u=r()<<8|r();o[String.fromCharCode(a<<8|s)]=u,i+=1}if(i!=t)throw i+" != "+t;return o}(),r="?".charCodeAt(0);return function(e){for(var t=[],i=0;i<e.length;i+=1){var o=e.charCodeAt(i);if(o<128)t.push(o);else{var a=n[e.charAt(i)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<<o(t)-o(n);return 21522^(e<<10|t)},i.getBCHTypeNumber=function(e){for(var t=e<<12;o(t)-o(r)>=0;)t^=r<<o(t)-o(r);return e<<12|t},i.getPatternPosition=function(e){return t[e-1]},i.getMaskFunction=function(e){switch(e){case 0:return function(e,t){return(e+t)%2==0};case 1:return function(e,t){return e%2==0};case 2:return function(e,t){return t%3==0};case 3:return function(e,t){return(e+t)%3==0};case 4:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case 5:return function(e,t){return e*t%2+e*t%3==0};case 6:return function(e,t){return(e*t%2+e*t%3)%2==0};case 7:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},i.getErrorCorrectPolynomial=function(e){for(var t=c([1],0),n=0;n<e;n+=1)t=t.multiply(c([1,u.gexp(n)],0));return t},i.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+e}}},i.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var i=0;i<t;i+=1){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var u=-1;u<=1;u+=1)i+u<0||t<=i+u||0==s&&0==u||a==e.isDark(r+s,i+u)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<t-1;r+=1)for(i=0;i<t-1;i+=1){var c=0;e.isDark(r,i)&&(c+=1),e.isDark(r+1,i)&&(c+=1),e.isDark(r,i+1)&&(c+=1),e.isDark(r+1,i+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(i=0;i<t-6;i+=1)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i+=1)for(r=0;r<t-6;r+=1)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var l=0;for(i=0;i<t;i+=1)for(r=0;r<t;r+=1)e.isDark(r,i)&&(l+=1);return n+Math.abs(100*l/t/t-50)/5*10},i),u=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;return{glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}}}();function c(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),i=0;i<e.length-n;i+=1)r[i]=e[i+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var i=0;i<e.getLength();i+=1)t[n+i]^=u.gexp(u.glog(r.getAt(n))+u.glog(e.getAt(i)));return c(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=u.glog(r.getAt(0))-u.glog(e.getAt(0)),n=new Array(r.getLength()),i=0;i<r.getLength();i+=1)n[i]=r.getAt(i);for(i=0;i<e.getLength();i+=1)n[i]^=u.gexp(u.glog(e.getAt(i))+t);return c(n,0).mod(e)}};return r}var l=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={getRSBlocks:function(n,r){var i=function(t,n){switch(n){case a.L:return e[4*(t-1)+0];case a.M:return e[4*(t-1)+1];case a.Q:return e[4*(t-1)+2];case a.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===i)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var o=i.length/3,s=[],u=0;u<o;u+=1)for(var c=i[3*u+0],l=i[3*u+1],d=i[3*u+2],h=0;h<c;h+=1)s.push(t(l,d));return s}};return n}(),d=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},h=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2<n.length;)e.put(r(n.substring(i,i+3)),10),i+=3;i<n.length&&(n.length-i==1?e.put(r(n.substring(i,i+1)),4):n.length-i==2&&e.put(r(n.substring(i,i+2)),7))}},r=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return n},p=function(e){var t=e,n={getMode:function(){return 2},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+1<n.length;)e.put(45*r(n.charAt(i))+r(n.charAt(i+1)),11),i+=2;i<n.length&&e.put(r(n.charAt(i)),6)}},r=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return n},f=function(t){var n=e.stringToBytes(t);return{getMode:function(){return 4},getLength:function(e){return n.length},write:function(e){for(var t=0;t<n.length;t+=1)e.put(n[t],8)}}},y=function(t){var n=e.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(e,t){var r=n("友");if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=n(t);return{getMode:function(){return 8},getLength:function(e){return~~(r.length/2)},write:function(e){for(var t=r,n=0;n+1<t.length;){var i=(255&t[n])<<8|255&t[n+1];if(33088<=i&&i<=40956)i-=33088;else{if(!(57408<=i&&i<=60351))throw"illegal char at "+(n+1)+"/"+i;i-=49472}i=192*(i>>>8&255)+(255&i),e.put(i,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}}},m=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i<r;i+=1)t.writeByte(e[i+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+"]"}};return t},g=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},v=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,o=s(),a=0;a<t;a+=1)o.add(String.fromCharCode(a));o.add(String.fromCharCode(t)),o.add(String.fromCharCode(n));var u,c,l,d=m(),h=(u=d,c=0,l=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)u.writeByte(255&(e<<c|l)),t-=8-c,e>>>=8-c,l=0,c=0;l|=e<<c,c+=t},flush:function(){c>0&&u.writeByte(l)}});h.write(t,r);var p=0,f=String.fromCharCode(i[p]);for(p+=1;p<i.length;){var y=String.fromCharCode(i[p]);p+=1,o.contains(f+y)?f+=y:(h.write(o.indexOf(f),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(f+y)),f=y)}return h.write(o.indexOf(f),r),h.write(n,r),h.flush(),d.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n};return o}(e,t),i=0;i<t;i+=1)for(var o=0;o<e;o+=1)r.setPixel(o,i,n(o,i));var a=m();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",i={},o=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return i.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a<i;a+=1)r+="="},i.toString=function(){return r},i}(),u=a.toByteArray(),c=0;c<u.length;c+=1)s.writeByte(u[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();i.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{n.d(t,{default:()=>D});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},o=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)};function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!t.length)return e;var s=t.shift();return void 0!==s&&o(e)&&o(s)?(e=r({},e),Object.keys(s).forEach((function(t){var n=e[t],r=s[t];Array.isArray(n)&&Array.isArray(r)?e[t]=r:o(n)&&o(r)?e[t]=a(Object.assign({},n),r):e[t]=r})),a.apply(void 0,i([e],t))):e}function s(e,t){var n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function u(e){return t=this,n=void 0,i=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(t){return[2,new Promise((function(t){var n=new XMLHttpRequest;n.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsDataURL(n.response)},n.open("GET",e),n.responseType="blob",n.send()}))]}))},new((r=void 0)||(r=Promise))((function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}u((i=i.apply(t,n||[])).next())}));var t,n,r,i}const c={L:.07,M:.15,Q:.25,H:.3};var l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};const d=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){var i;switch(this._type){case"dots":i=this._drawDot;break;case"classy":i=this._drawClassy;break;case"classy-rounded":i=this._drawClassyRounded;break;case"rounded":i=this._drawRounded;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawSquare}i.call(this,{x:e,y:t,size:n,getNeighbor:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,u=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+u+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(r+n/2)),t._element.setAttribute("cy",String(i+n/2)),t._element.setAttribute("r",String(n/2))}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(r)),t._element.setAttribute("y",String(i)),t._element.setAttribute("width",String(n)),t._element.setAttribute("height",String(n))}}))},e.prototype._basicSideRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},e.prototype._basicCornerRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},e.prototype._basicCornerExtraRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},e.prototype._basicCornersRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+n/2+" "+n/2+"h "+n/2+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size;this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size;this._basicSquare({x:t,y:n,size:r,rotation:0})},e.prototype._drawRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0,c=o+a+s+u;if(0!==c)if(c>2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&u&&(l=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:l})}if(1===c)return l=0,s?l=Math.PI/2:a?l=Math.PI:u&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0,c=o+a+s+u;if(0!==c)if(c>2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&u&&(l=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:l})}if(1===c)return l=0,s?l=Math.PI/2:a?l=Math.PI:u&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};const p=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){var i;switch(this._type){case"square":i=this._drawSquare;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawDot}i.call(this,{x:e,y:t,size:n,rotation:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,u=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+u+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(h(h({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+(r+n/2)+" "+i+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(n/2-o)+" "+(n/2-o)+" 0 1 1 -0.1 0Z")}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(h(h({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"v "+-n+"zM "+(r+o)+" "+(i+o)+"h "+(n-2*o)+"v "+(n-2*o)+"h "+(2*o-n)+"z")}}))},e.prototype._basicExtraRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(h(h({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+r+" "+(i+2.5*o)+"v "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*o+"h "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*-o+"v "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*-o+"h "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*o+"M "+(r+2.5*o)+" "+(i+o)+"h "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*o+"v "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*o+"h "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*-o+"v "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*-o)}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicDot({x:t,y:n,size:r,rotation:i})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicSquare({x:t,y:n,size:r,rotation:i})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicExtraRounded({x:t,y:n,size:r,rotation:i})},e}();var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};const y=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:e,y:t,size:n,rotation:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,u=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+u+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(f(f({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(r+n/2)),t._element.setAttribute("cy",String(i+n/2)),t._element.setAttribute("r",String(n/2))}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(f(f({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(r)),t._element.setAttribute("y",String(i)),t._element.setAttribute("width",String(n)),t._element.setAttribute("height",String(n))}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicDot({x:t,y:n,size:r,rotation:i})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicSquare({x:t,y:n,size:r,rotation:i})},e}(),m="circle";var g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},v=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],w=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const M=function(){function e(e){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(e.width)),this._element.setAttribute("height",String(e.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=e}return Object.defineProperty(e.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),e.prototype.getElement=function(){return this._element},e.prototype.drawQR=function(e){return g(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,l,d,h=this;return v(this,(function(p){switch(p.label){case 0:return t=e.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===m?n/Math.sqrt(2):n,i=Math.floor(r/t),o={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=e,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(p.sent(),!this._image)return[2];a=this._options,s=a.imageOptions,u=a.qrOptions,l=s.imageSize*c[u.errorCorrectionLevel],d=Math.floor(l*t*t),o=function(e){var t=e.originalHeight,n=e.originalWidth,r=e.maxHiddenDots,i=e.maxHiddenAxisDots,o=e.dotSize,a={x:0,y:0},s={x:0,y:0};if(t<=0||n<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var u=t/n;return a.x=Math.floor(Math.sqrt(r/u)),a.x<=0&&(a.x=1),i&&i<a.x&&(a.x=i),a.x%2==0&&a.x--,s.x=a.x*o,a.y=1+2*Math.ceil((a.x*u-1)/2),s.y=Math.round(s.x*u),(a.y*a.x>r||i&&i<a.y)&&(i&&i<a.y?(a.y=i,a.y%2==0&&a.x--):a.y-=2,s.y=a.y*o,a.x=1+2*Math.ceil((a.y/u-1)/2),s.x=Math.round(s.y/u)),{height:s.y,width:s.x,hideYDots:a.y,hideXDots:a.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:d,maxHiddenAxisDots:t-14,dotSize:i}),p.label=2;case 2:return this.drawBackground(),this.drawDots((function(e,n){var r,i,a,s,u,c;return!(h._options.imageOptions.hideBackgroundDots&&e>=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&n>=(t-o.hideYDots)/2&&n<(t+o.hideYDots)/2||(null===(r=b[e])||void 0===r?void 0:r[n])||(null===(i=b[e-t+7])||void 0===i?void 0:i[n])||(null===(a=b[e])||void 0===a?void 0:a[n-t+7])||(null===(s=w[e])||void 0===s?void 0:s[n])||(null===(u=w[e-t+7])||void 0===u?void 0:u[n])||(null===(c=w[e])||void 0===c?void 0:c[n-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:p.sent(),p.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),u=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),u.setAttribute("x",String((i.width-s)/2)),u.setAttribute("y",String((i.height-s)/2)),u.setAttribute("width",String(s)),u.setAttribute("height",String(s)),u.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(u)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===m?a/Math.sqrt(2):a,u=Math.floor(s/o),c=Math.floor((i.width-o*u)/2),l=Math.floor((i.height-o*u)/2),h=new d({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var p=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=f._qr)||void 0===n?void 0:n.isDark(t,i))?(h.draw(c+t*u,l+i*u,u,(function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)})),void(h._element&&f._dotsClipPath&&f._dotsClipPath.appendChild(h._element))):"continue"},a=0;a<o;a++)i(a)},f=this,y=0;y<o;y++)p(y);if(i.shape===m){var g=Math.floor((a/u-o)/2),v=o+2*g,b=c-g*u,w=l-g*u,M=[],A=Math.floor(v/2);for(y=0;y<v;y++){M[y]=[];for(var E=0;E<v;E++)y>=g-1&&y<=v-g&&E>=g-1&&E<=v-g||Math.sqrt((y-A)*(y-A)+(E-A)*(E-A))>A?M[y][E]=0:M[y][E]=this._qr.isDark(E-2*g<0?E:E>=o?E-2*g:E-g,y-2*g<0?y:y>=o?y-2*g:y-g)?1:0}var T=function(e){for(var t=function(t){if(!M[e][t])return"continue";h.draw(b+e*u,w+t*u,u,(function(n,r){var i;return!!(null===(i=M[e+n])||void 0===i?void 0:i[t+r])})),h._element&&N._dotsClipPath&&N._dotsClipPath.appendChild(h._element)},n=0;n<v;n++)t(n)},N=this;for(y=0;y<v;y++)T(y)}},e.prototype.drawCorners=function(){var e=this;if(!this._qr)throw"QR code is not defined";var t=this._element,n=this._options;if(!t)throw"Element code is not defined";var r=this._qr.getModuleCount(),i=Math.min(n.width,n.height)-2*n.margin,o=n.shape===m?i/Math.sqrt(2):i,a=Math.floor(o/r),s=7*a,u=3*a,c=Math.floor((n.width-r*a)/2),l=Math.floor((n.height-r*a)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(t){var i,o,h,f,m,g,v,M,A,E,T,N,I=t[0],k=t[1],L=t[2],x=c+I*a*(r-7),S=l+k*a*(r-7),j=e._dotsClipPath,C=e._dotsClipPath;if(((null===(i=n.cornersSquareOptions)||void 0===i?void 0:i.gradient)||(null===(o=n.cornersSquareOptions)||void 0===o?void 0:o.color))&&((j=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+I+"-"+k),e._defs.appendChild(j),e._cornersSquareClipPath=e._cornersDotClipPath=C=j,e._createColor({options:null===(h=n.cornersSquareOptions)||void 0===h?void 0:h.gradient,color:null===(f=n.cornersSquareOptions)||void 0===f?void 0:f.color,additionalRotation:L,x:x,y:S,height:s,width:s,name:"corners-square-color-"+I+"-"+k})),null===(m=n.cornersSquareOptions)||void 0===m?void 0:m.type){var D=new p({svg:e._element,type:n.cornersSquareOptions.type});D.draw(x,S,s,L),D._element&&j&&j.appendChild(D._element)}else for(var O=new d({svg:e._element,type:n.dotsOptions.type}),z=function(e){for(var t=function(t){if(!(null===(g=b[e])||void 0===g?void 0:g[t]))return"continue";O.draw(x+e*a,S+t*a,a,(function(n,r){var i;return!!(null===(i=b[e+n])||void 0===i?void 0:i[t+r])})),O._element&&j&&j.appendChild(O._element)},n=0;n<b[e].length;n++)t(n)},_=0;_<b.length;_++)z(_);if(((null===(v=n.cornersDotOptions)||void 0===v?void 0:v.gradient)||(null===(M=n.cornersDotOptions)||void 0===M?void 0:M.color))&&((C=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+I+"-"+k),e._defs.appendChild(C),e._cornersDotClipPath=C,e._createColor({options:null===(A=n.cornersDotOptions)||void 0===A?void 0:A.gradient,color:null===(E=n.cornersDotOptions)||void 0===E?void 0:E.color,additionalRotation:L,x:x+2*a,y:S+2*a,height:u,width:u,name:"corners-dot-color-"+I+"-"+k})),null===(T=n.cornersDotOptions)||void 0===T?void 0:T.type){var P=new y({svg:e._element,type:n.cornersDotOptions.type});P.draw(x+2*a,S+2*a,u,L),P._element&&C&&C.appendChild(P._element)}else{O=new d({svg:e._element,type:n.dotsOptions.type});var B=function(e){for(var t=function(t){if(!(null===(N=w[e])||void 0===N?void 0:N[t]))return"continue";O.draw(x+e*a,S+t*a,a,(function(n,r){var i;return!!(null===(i=w[e+n])||void 0===i?void 0:i[t+r])})),O._element&&C&&C.appendChild(O._element)},n=0;n<w[e].length;n++)t(n)};for(_=0;_<w.length;_++)B(_)}}))},e.prototype.loadImage=function(){var e=this;return new Promise((function(t,n){var r=e._options,i=new Image;if(!r.image)return n("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(i.crossOrigin=r.imageOptions.crossOrigin),e._image=i,i.onload=function(){t()},i.src=r.image}))},e.prototype.drawImage=function(e){var t=e.width,n=e.height,r=e.count,i=e.dotSize;return g(this,void 0,void 0,(function(){var e,o,a,s,c,l,d,h,p;return v(this,(function(f){switch(f.label){case 0:return e=this._options,o=Math.floor((e.width-r*i)/2),a=Math.floor((e.height-r*i)/2),s=o+e.imageOptions.margin+(r*i-t)/2,c=a+e.imageOptions.margin+(r*i-n)/2,l=t-2*e.imageOptions.margin,d=n-2*e.imageOptions.margin,(h=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(s)),h.setAttribute("y",String(c)),h.setAttribute("width",l+"px"),h.setAttribute("height",d+"px"),[4,u(e.image||"")];case 1:return p=f.sent(),h.setAttribute("href",p||""),this._element.appendChild(h),[2]}}))}))},e.prototype._createColor=function(e){var t=e.options,n=e.color,r=e.additionalRotation,i=e.x,o=e.y,a=e.height,s=e.width,u=e.name,c=s>a?s:a,l=document.createElementNS("http://www.w3.org/2000/svg","rect");if(l.setAttribute("x",String(i)),l.setAttribute("y",String(o)),l.setAttribute("height",String(a)),l.setAttribute("width",String(s)),l.setAttribute("clip-path","url('#clip-path-"+u+"')"),t){var d;if("radial"===t.type)(d=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",u),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("fx",String(i+s/2)),d.setAttribute("fy",String(o+a/2)),d.setAttribute("cx",String(i+s/2)),d.setAttribute("cy",String(o+a/2)),d.setAttribute("r",String(c/2));else{var h=((t.rotation||0)+r)%(2*Math.PI),p=(h+2*Math.PI)%(2*Math.PI),f=i+s/2,y=o+a/2,m=i+s/2,g=o+a/2;p>=0&&p<=.25*Math.PI||p>1.75*Math.PI&&p<=2*Math.PI?(f-=s/2,y-=a/2*Math.tan(h),m+=s/2,g+=a/2*Math.tan(h)):p>.25*Math.PI&&p<=.75*Math.PI?(y-=a/2,f-=s/2/Math.tan(h),g+=a/2,m+=s/2/Math.tan(h)):p>.75*Math.PI&&p<=1.25*Math.PI?(f+=s/2,y+=a/2*Math.tan(h),m-=s/2,g-=a/2*Math.tan(h)):p>1.25*Math.PI&&p<=1.75*Math.PI&&(y+=a/2,f+=s/2/Math.tan(h),g-=a/2,m-=s/2/Math.tan(h)),(d=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",u),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("x1",String(Math.round(f))),d.setAttribute("y1",String(Math.round(y))),d.setAttribute("x2",String(Math.round(m))),d.setAttribute("y2",String(Math.round(g)))}t.colorStops.forEach((function(e){var t=e.offset,n=e.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",n),d.appendChild(r)})),l.setAttribute("fill","url('#"+u+"')"),this._defs.appendChild(d)}else n&&l.setAttribute("fill",n);this._element.appendChild(l)},e}(),A="canvas";for(var E={},T=0;T<=40;T++)E[T]=T;const N={type:A,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:E[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function k(e){var t=I({},e);if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map((function(e){return I(I({},e),{offset:Number(e.offset)})})),t}function L(e){var t=I({},e);return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions=I(I({},t.imageOptions),{hideBackgroundDots:Boolean(t.imageOptions.hideBackgroundDots),imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)}),t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=I({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=k(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=I({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=k(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=I({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=k(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=I({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=k(t.backgroundOptions.gradient))),t}var x=n(192),S=n.n(x),j=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};const D=function(){function e(e){this._options=e?L(a(N,e)):N,this.update()}return e._clearContainer=function(e){e&&(e.innerHTML="")},e.prototype._setupSvg=function(){var e=this;if(this._qr){var t=new M(this._options);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then((function(){var n;e._svg&&(null===(n=e._extension)||void 0===n||n.call(e,t.getElement(),e._options))}))}},e.prototype._setupCanvas=function(){var e,t=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=null===(e=this._svgDrawingPromise)||void 0===e?void 0:e.then((function(){if(t._svg){var e=t._svg,n=(new XMLSerializer).serializeToString(e),r="data:image/svg+xml;base64,"+btoa(n),i=new Image;return new Promise((function(e){i.onload=function(){var n,r;null===(r=null===(n=t._canvas)||void 0===n?void 0:n.getContext("2d"))||void 0===r||r.drawImage(i,0,0),e()},i.src=r}))}})))},e.prototype._getElement=function(e){return void 0===e&&(e="png"),j(this,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==e.toLowerCase()?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return t.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return t.sent(),[2,this._canvas]}}))}))},e.prototype.update=function(t){e._clearContainer(this._container),this._options=t?L(a(this._options,t)):this._options,this._options.data&&(this._qr=S()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(e){switch(!0){case/^[0-9]*$/.test(e):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(e):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===A?this._setupCanvas():this._setupSvg(),this.append(this._container))},e.prototype.append=function(e){if(e){if("function"!=typeof e.appendChild)throw"Container should be a single DOM node";this._options.type===A?this._canvas&&e.appendChild(this._canvas):this._svg&&e.appendChild(this._svg),this._container=e}},e.prototype.applyExtension=function(e){if(!e)throw"Extension function should be defined.";this._extension=e,this.update()},e.prototype.deleteExtension=function(){this._extension=void 0,this.update()},e.prototype.getRawData=function(e){return void 0===e&&(e="png"),j(this,void 0,void 0,(function(){var t,n,r;return C(this,(function(i){switch(i.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(e)];case 1:return(t=i.sent())?"svg"===e.toLowerCase()?(n=new XMLSerializer,r=n.serializeToString(t),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return t.toBlob(n,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return j(this,void 0,void 0,(function(){var t,n,r,i,o;return C(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='<?xml version="1.0" standalone="no"?>\r\n'+(o=i.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):s(r.toDataURL("image/"+t),n+"."+t),[2]):[2]}}))}))},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default})),HF=vf(FF),VF=bf((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=16,s=32,u=64,c=128,l=256,d=1/0,h=9007199254740991,p=NaN,f=4294967295,y=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",u],["rearg",l]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",M="[object Function]",A="[object GeneratorFunction]",E="[object Map]",T="[object Number]",N="[object Object]",I="[object Promise]",k="[object RegExp]",L="[object Set]",x="[object String]",S="[object Symbol]",j="[object WeakMap]",C="[object ArrayBuffer]",D="[object DataView]",O="[object Float32Array]",z="[object Float64Array]",_="[object Int8Array]",P="[object Int16Array]",B="[object Int32Array]",R="[object Uint8Array]",U="[object Uint8ClampedArray]",W="[object Uint16Array]",Q="[object Uint32Array]",Y=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,q=RegExp(V.source),Z=RegExp(G.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xe="['’]",Se="["+Ae+"]",je="["+Le+"]",Ce="["+Ee+"]",De="\\d+",Oe="["+Te+"]",ze="["+Ne+"]",_e="[^"+Ae+Le+De+Te+Ne+Ie+"]",Pe="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ae+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ie+"]",Qe="\\u200d",Ye="(?:"+ze+"|"+_e+")",Fe="(?:"+We+"|"+_e+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ce+"|"+Pe+")"+"?",qe="["+ke+"]?",Ze=qe+Ge+("(?:"+Qe+"(?:"+[Be,Re,Ue].join("|")+")"+qe+Ge+")*"),Je="(?:"+[Oe,Re,Ue].join("|")+")"+Ze,Xe="(?:"+[Be+Ce+"?",Ce,Re,Ue,Se].join("|")+")",Ke=RegExp(xe,"g"),$e=RegExp(Ce,"g"),et=RegExp(Pe+"(?="+Pe+")|"+Xe+Ze,"g"),tt=RegExp([We+"?"+ze+"+"+He+"(?="+[je,We,"$"].join("|")+")",Fe+"+"+Ve+"(?="+[je,We+Ye,"$"].join("|")+")",We+"?"+Ye+"+"+He,We+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Je].join("|"),"g"),nt=RegExp("["+Qe+Ae+Ee+ke+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[O]=at[z]=at[_]=at[P]=at[B]=at[R]=at[U]=at[W]=at[Q]=!0,at[m]=at[g]=at[C]=at[v]=at[D]=at[b]=at[w]=at[M]=at[E]=at[T]=at[N]=at[k]=at[L]=at[x]=at[j]=!1;var st={};st[m]=st[g]=st[C]=st[D]=st[v]=st[b]=st[O]=st[z]=st[_]=st[P]=st[B]=st[E]=st[T]=st[N]=st[k]=st[L]=st[x]=st[S]=st[R]=st[U]=st[W]=st[Q]=!0,st[w]=st[M]=st[j]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,lt=parseInt,dt="object"==typeof gf&&gf&&gf.Object===Object&&gf,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||ht||Function("return this")(),ft=t&&!t.nodeType&&t,yt=ft&&e&&!e.nodeType&&e,mt=yt&&yt.exports===ft,gt=mt&&dt.process,vt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,wt=vt&&vt.isDate,Mt=vt&&vt.isMap,At=vt&&vt.isRegExp,Et=vt&&vt.isSet,Tt=vt&&vt.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function St(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function jt(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ot(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function zt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function _t(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Ht("length");function Rt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ut(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ut(e,Yt,n)}function Qt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Yt(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:p}function Ht(e){return function(t){return null==t?n:t[e]}}function Vt(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function qt(e,t){for(var r,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==n&&(r=r===n?a:r+a)}return r}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,fn(e)+1).replace(ie,""):e}function Xt(e){return function(t){return e(t)}}function Kt(e,t){return Dt(t,(function(t){return e[t]}))}function $t(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Wt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Wt(t,e[n],0)>-1;);return n}var nn=Vt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function on(e){return"\\"+ut[e]}function an(e){return nt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return an(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Bt(e)}function pn(e){return an(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var yn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var mn=function e(t){var oe,Ae=(t=null==t?pt:mn.defaults(pt.Object(),t,mn.pick(pt,it))).Array,Ee=t.Date,Te=t.Error,Ne=t.Function,Ie=t.Math,ke=t.Object,Le=t.RegExp,xe=t.String,Se=t.TypeError,je=Ae.prototype,Ce=Ne.prototype,De=ke.prototype,Oe=t["__core-js_shared__"],ze=Ce.toString,_e=De.hasOwnProperty,Pe=0,Be=(oe=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Re=De.toString,Ue=ze.call(ke),We=pt._,Qe=Le("^"+ze.call(_e).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=mt?t.Buffer:n,Fe=t.Symbol,He=t.Uint8Array,Ve=Ye?Ye.allocUnsafe:n,Ge=un(ke.getPrototypeOf,ke),qe=ke.create,Ze=De.propertyIsEnumerable,Je=je.splice,Xe=Fe?Fe.isConcatSpreadable:n,et=Fe?Fe.iterator:n,nt=Fe?Fe.toStringTag:n,ut=function(){try{var e=po(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ht=Ee&&Ee.now!==pt.Date.now&&Ee.now,ft=t.setTimeout!==pt.setTimeout&&t.setTimeout,yt=Ie.ceil,gt=Ie.floor,vt=ke.getOwnPropertySymbols,Bt=Ye?Ye.isBuffer:n,Vt=t.isFinite,gn=je.join,vn=un(ke.keys,ke),bn=Ie.max,wn=Ie.min,Mn=Ee.now,An=t.parseInt,En=Ie.random,Tn=je.reverse,Nn=po(t,"DataView"),In=po(t,"Map"),kn=po(t,"Promise"),Ln=po(t,"Set"),xn=po(t,"WeakMap"),Sn=po(ke,"create"),jn=xn&&new xn,Cn={},Dn=Ro(Nn),On=Ro(In),zn=Ro(kn),_n=Ro(Ln),Pn=Ro(xn),Bn=Fe?Fe.prototype:n,Rn=Bn?Bn.valueOf:n,Un=Bn?Bn.toString:n;function Wn(e){if(ns(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof Fn)return e;if(_e.call(e,"__wrapped__"))return Uo(e)}return new Fn(e)}var Qn=function(){function e(){}return function(t){if(!ts(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Yn(){}function Fn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Xn(e,t){var n=Ha(e),r=!n&&Fa(e),i=!n&&!r&&Za(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?Zt(e.length,xe):[],u=s.length;for(var c in e)!t&&!_e.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||wo(c,u))||s.push(c);return s}function Kn(e){var t=e.length;return t?e[Zr(0,t-1)]:n}function $n(e,t){return _o(Si(e),ur(t,0,e.length))}function er(e){return _o(Si(e))}function tr(e,t,r){(r!==n&&!Wa(e[t],r)||r===n&&!(t in e))&&ar(e,t,r)}function nr(e,t,r){var i=e[t];_e.call(e,t)&&Wa(i,r)&&(r!==n||t in e)||ar(e,t,r)}function rr(e,t){for(var n=e.length;n--;)if(Wa(e[n][0],t))return n;return-1}function ir(e,t,n,r){return pr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function or(e,t){return e&&ji(t,Cs(t),e)}function ar(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,i=t.length,o=Ae(i),a=null==e;++r<i;)o[r]=a?n:ks(e,t[r]);return o}function ur(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,i,o,a){var s,u=1&t,c=2&t,l=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!ts(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&_e.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Si(e,s)}else{var h=mo(e),p=h==M||h==A;if(Za(e))return Ti(e,u);if(h==N||h==m||p&&!o){if(s=c||p?{}:vo(e),!u)return c?function(e,t){return ji(e,yo(e),t)}(e,function(e,t){return e&&ji(t,Ds(t),e)}(s,e)):function(e,t){return ji(e,fo(e),t)}(e,or(s,e))}else{if(!st[h])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case C:return Ni(e);case v:case b:return new r(+e);case D:return function(e,t){var n=t?Ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case z:case _:case P:case B:case R:case U:case W:case Q:return Ii(e,n);case E:return new r;case T:case x:return new r(e);case k:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case L:return new r;case S:return i=e,Rn?ke(Rn.call(i)):{}}var i}(e,h,u)}}a||(a=new Jn);var f=a.get(e);if(f)return f;a.set(e,s),ss(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,a))})):rs(e)&&e.forEach((function(n,i){s.set(i,cr(n,t,r,i,e,a))}));var y=d?n:(l?c?oo:io:c?Ds:Cs)(e);return kt(y||e,(function(n,i){y&&(n=e[i=n]),nr(s,i,cr(n,t,r,i,e,a))})),s}function lr(e,t,r){var i=r.length;if(null==e)return!i;for(e=ke(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function dr(e,t,i){if("function"!=typeof e)throw new Se(r);return Co((function(){e.apply(n,i)}),t)}function hr(e,t,n,r){var i=-1,o=jt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Dt(t,Xt(n))),r?(o=Ct,a=!1):t.length>=200&&(o=$t,a=!1,t=new Zn(t));e:for(;++i<s;){var l=e[i],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;u.push(l)}else o(t,d,r)||u.push(l)}return u}Wn.templateSettings={escape:J,evaluate:X,interpolate:K,variable:"",imports:{_:Wn}},Wn.prototype=Yn.prototype,Wn.prototype.constructor=Wn,Fn.prototype=Qn(Yn.prototype),Fn.prototype.constructor=Fn,Hn.prototype=Qn(Yn.prototype),Hn.prototype.constructor=Hn,Vn.prototype.clear=function(){this.__data__=Sn?Sn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Sn){var r=t[e];return r===i?n:r}return _e.call(t,e)?t[e]:n},Vn.prototype.has=function(e){var t=this.__data__;return Sn?t[e]!==n:_e.call(t,e)},Vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sn&&t===n?i:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?n:t[r][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(In||Gn),string:new Vn}},qn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return lo(this,e).get(e)},qn.prototype.has=function(e){return lo(this,e).has(e)},qn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Zn.prototype.add=Zn.prototype.push=function(e){return this.__data__.set(e,i),this},Zn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var pr=Oi(Mr),fr=Oi(Ar,!0);function yr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function mr(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(u===n?s==s&&!cs(s):r(s,u)))var u=s,c=a}return c}function gr(e,t){var n=[];return pr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function vr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?vr(s,t-1,n,r,i):Ot(i,s):r||(i[i.length]=s)}return i}var br=zi(),wr=zi(!0);function Mr(e,t){return e&&br(e,t,Cs)}function Ar(e,t){return e&&wr(e,t,Cs)}function Er(e,t){return St(t,(function(t){return Ka(e[t])}))}function Tr(e,t){for(var r=0,i=(t=wi(t,e)).length;null!=e&&r<i;)e=e[Bo(t[r++])];return r&&r==i?e:n}function Nr(e,t,n){var r=t(e);return Ha(e)?r:Ot(r,n(e))}function Ir(e){return null==e?e===n?"[object Undefined]":"[object Null]":nt&&nt in ke(e)?function(e){var t=_e.call(e,nt),r=e[nt];try{e[nt]=n;var i=!0}catch(e){}var o=Re.call(e);i&&(t?e[nt]=r:delete e[nt]);return o}(e):function(e){return Re.call(e)}(e)}function kr(e,t){return e>t}function Lr(e,t){return null!=e&&_e.call(e,t)}function xr(e,t){return null!=e&&t in ke(e)}function Sr(e,t,r){for(var i=r?Ct:jt,o=e[0].length,a=e.length,s=a,u=Ae(a),c=1/0,l=[];s--;){var d=e[s];s&&t&&(d=Dt(d,Xt(t))),c=wn(d.length,c),u[s]=!r&&(t||o>=120&&d.length>=120)?new Zn(s&&d):n}d=e[0];var h=-1,p=u[0];e:for(;++h<o&&l.length<c;){var f=d[h],y=t?t(f):f;if(f=r||0!==f?f:0,!(p?$t(p,y):i(l,y,r))){for(s=a;--s;){var m=u[s];if(!(m?$t(m,y):i(e[s],y,r)))continue e}p&&p.push(y),l.push(f)}}return l}function jr(e,t,r){var i=null==(e=xo(e,t=wi(t,e)))?e:e[Bo(Xo(t))];return null==i?n:Nt(i,e,r)}function Cr(e){return ns(e)&&Ir(e)==m}function Dr(e,t,r,i,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,r,i,o,a){var s=Ha(e),u=Ha(t),c=s?g:mo(e),l=u?g:mo(t),d=(c=c==m?N:c)==N,h=(l=l==m?N:l)==N,p=c==l;if(p&&Za(e)){if(!Za(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Jn),s||ls(e)?no(e,t,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case v:case b:case T:return Wa(+e,+t);case w:return e.name==t.name&&e.message==t.message;case k:case x:return e==t+"";case E:var s=sn;case L:var u=1&r;if(s||(s=ln),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=no(s(e),s(t),r,i,o,a);return a.delete(e),l;case S:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,c,r,i,o,a);if(!(1&r)){var f=d&&_e.call(e,"__wrapped__"),y=h&&_e.call(t,"__wrapped__");if(f||y){var M=f?e.value():e,A=y?t.value():t;return a||(a=new Jn),o(M,A,r,i,a)}}if(!p)return!1;return a||(a=new Jn),function(e,t,r,i,o,a){var s=1&r,u=io(e),c=u.length,l=io(t),d=l.length;if(c!=d&&!s)return!1;var h=c;for(;h--;){var p=u[h];if(!(s?p in t:_e.call(t,p)))return!1}var f=a.get(e),y=a.get(t);if(f&&y)return f==t&&y==e;var m=!0;a.set(e,t),a.set(t,e);var g=s;for(;++h<c;){var v=e[p=u[h]],b=t[p];if(i)var w=s?i(b,v,p,t,e,a):i(v,b,p,e,t,a);if(!(w===n?v===b||o(v,b,r,i,a):w)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var M=e.constructor,A=t.constructor;M==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof M&&M instanceof M&&"function"==typeof A&&A instanceof A||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,r,i,o,a)}(e,t,r,i,Dr,o))}function Or(e,t,r,i){var o=r.length,a=o,s=!i;if(null==e)return!a;for(e=ke(e);o--;){var u=r[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=r[o])[0],l=e[c],d=u[1];if(s&&u[2]){if(l===n&&!(c in e))return!1}else{var h=new Jn;if(i)var p=i(l,d,c,e,t,h);if(!(p===n?Dr(d,l,3,i,h):p))return!1}}return!0}function zr(e){return!(!ts(e)||(t=e,Be&&Be in t))&&(Ka(e)?Qe:me).test(Ro(e));var t}function _r(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?Ha(e)?Qr(e[0],e[1]):Wr(e):pu(e)}function Pr(e){if(!No(e))return vn(e);var t=[];for(var n in ke(e))_e.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=No(e),n=[];for(var r in e)("constructor"!=r||!t&&_e.call(e,r))&&n.push(r);return n}function Rr(e,t){return e<t}function Ur(e,t){var n=-1,r=Ga(e)?Ae(e.length):[];return pr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Wr(e){var t=ho(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function Qr(e,t){return Ao(e)&&Io(t)?ko(Bo(e),t):function(r){var i=ks(r,e);return i===n&&i===t?Ls(r,e):Dr(t,i,3)}}function Yr(e,t,r,i,o){e!==t&&br(t,(function(a,s){if(o||(o=new Jn),ts(a))!function(e,t,r,i,o,a,s){var u=So(e,r),c=So(t,r),l=s.get(c);if(l)return void tr(e,r,l);var d=a?a(u,c,r+"",e,t,s):n,h=d===n;if(h){var p=Ha(c),f=!p&&Za(c),y=!p&&!f&&ls(c);d=c,p||f||y?Ha(u)?d=u:qa(u)?d=Si(u):f?(h=!1,d=Ti(c,!0)):y?(h=!1,d=Ii(c,!0)):d=[]:os(c)||Fa(c)?(d=u,Fa(u)?d=vs(u):ts(u)&&!Ka(u)||(d=vo(c))):h=!1}h&&(s.set(c,d),o(d,c,i,a,s),s.delete(c));tr(e,r,d)}(e,t,s,r,Yr,i,o);else{var u=i?i(So(e,s),a,s+"",e,t,o):n;u===n&&(u=a),tr(e,s,u)}}),Ds)}function Fr(e,t){var r=e.length;if(r)return wo(t+=t<0?r:0,r)?e[t]:n}function Hr(e,t,n){t=t.length?Dt(t,(function(e){return Ha(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=Dt(t,Xt(co()));var i=Ur(e,(function(e,n,i){var o=Dt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=ki(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Tr(e,a);n(s,a)&&ei(o,wi(a,e),s)}return o}function Gr(e,t,n,r){var i=r?Qt:Wt,o=-1,a=t.length,s=e;for(e===t&&(t=Si(t)),n&&(s=Dt(e,Xt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&Je.call(s,u,1),Je.call(e,u,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;wo(i)?Je.call(e,i,1):hi(e,i)}}return e}function Zr(e,t){return e+gt(En()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Do(Lo(e,t,iu),e+"")}function Kr(e){return Kn(Ws(e))}function $r(e,t){var n=Ws(e);return _o(n,ur(t,0,n.length))}function ei(e,t,r,i){if(!ts(e))return e;for(var o=-1,a=(t=wi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Bo(t[o]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=u[c];(l=i?i(d,c,u):n)===n&&(l=ts(d)?d:wo(t[o+1])?[]:{})}nr(u,c,l),u=u[c]}return e}var ti=jn?function(e,t){return jn.set(e,t),e}:iu,ni=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:iu;function ri(e){return _o(Ws(e))}function ii(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Ae(i);++r<i;)o[r]=e[r+t];return o}function oi(e,t){var n;return pr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return si(e,t,iu,n)}function si(e,t,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,u=null===t,c=cs(t),l=t===n;o<a;){var d=gt((o+a)/2),h=r(e[d]),p=h!==n,f=null===h,y=h==h,m=cs(h);if(s)var g=i||y;else g=l?y&&(i||p):u?y&&p&&(i||!f):c?y&&p&&!f&&(i||!m):!f&&!m&&(i?h<=t:h<t);g?o=d+1:a=d}return wn(a,4294967294)}function ui(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Wa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ci(e){return"number"==typeof e?e:cs(e)?p:+e}function li(e){if("string"==typeof e)return e;if(Ha(e))return Dt(e,li)+"";if(cs(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function di(e,t,n){var r=-1,i=jt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Ct;else if(o>=200){var c=t?null:Ji(e);if(c)return ln(c);a=!1,i=$t,u=new Zn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d==d){for(var h=u.length;h--;)if(u[h]===d)continue e;t&&u.push(d),s.push(l)}else i(u,d,n)||(u!==s&&u.push(d),s.push(l))}return s}function hi(e,t){return null==(e=xo(e,t=wi(t,e)))||delete e[Bo(Xo(t))]}function pi(e,t,n,r){return ei(e,t,n(Tr(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function yi(e,t){var n=e;return n instanceof Hn&&(n=n.value()),zt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function mi(e,t,n){var r=e.length;if(r<2)return r?di(e[0]):[];for(var i=-1,o=Ae(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=hr(o[i]||a,e[s],t,n));return di(vr(o,1),t,n)}function gi(e,t,r){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var u=i<a?t[i]:n;r(s,e[i],u)}return s}function vi(e){return qa(e)?e:[]}function bi(e){return"function"==typeof e?e:iu}function wi(e,t){return Ha(e)?e:Ao(e,t)?[e]:Po(bs(e))}var Mi=Xr;function Ai(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ii(e,t,r)}var Ei=dt||function(e){return pt.clearTimeout(e)};function Ti(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Ni(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ii(e,t){var n=t?Ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=cs(e),s=t!==n,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!l&&e<t||l&&r&&o&&!i&&!a||u&&r&&o||!s&&o||!c)return-1}return 0}function Li(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,u=t.length,c=bn(o-a,0),l=Ae(u+c),d=!r;++s<u;)l[s]=t[s];for(;++i<a;)(d||i<o)&&(l[n[i]]=e[i]);for(;c--;)l[s++]=e[i++];return l}function xi(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,u=-1,c=t.length,l=bn(o-s,0),d=Ae(l+c),h=!r;++i<l;)d[i]=e[i];for(var p=i;++u<c;)d[p+u]=t[u];for(;++a<s;)(h||i<o)&&(d[p+n[a]]=e[i++]);return d}function Si(e,t){var n=-1,r=e.length;for(t||(t=Ae(r));++n<r;)t[n]=e[n];return t}function ji(e,t,r,i){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=i?i(r[u],e[u],u,r,e):n;c===n&&(c=e[u]),o?ar(r,u,c):nr(r,u,c)}return r}function Ci(e,t){return function(n,r){var i=Ha(n)?It:ir,o=t?t():{};return i(n,e,co(r,2),o)}}function Di(e){return Xr((function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&Mo(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=ke(t);++i<o;){var u=r[i];u&&e(t,u,i,a)}return t}))}function Oi(e,t){return function(n,r){if(null==n)return n;if(!Ga(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=ke(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function zi(e){return function(t,n,r){for(var i=-1,o=ke(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function _i(e){return function(t){var r=an(t=bs(t))?pn(t):n,i=r?r[0]:t.charAt(0),o=r?Ai(r,1).join(""):t.slice(1);return i[e]()+o}}function Pi(e){return function(t){return zt(Ks(Fs(t).replace(Ke,"")),e,"")}}function Bi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Qn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ri(e){return function(t,r,i){var o=ke(t);if(!Ga(t)){var a=co(r,3);t=Cs(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,i);return s>-1?o[a?t[s]:s]:n}}function Ui(e){return ro((function(t){var i=t.length,o=i,a=Fn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Se(r);if(a&&!u&&"wrapper"==so(s))var u=new Fn([],!0)}for(o=u?o:i;++o<i;){var c=so(s=t[o]),l="wrapper"==c?ao(s):n;u=l&&Eo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[so(l[0])].apply(u,l[3]):1==s.length&&Eo(s)?u[c]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&Ha(n))return u.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function Wi(e,t,r,i,o,a,s,u,l,d){var h=t&c,p=1&t,f=2&t,y=24&t,m=512&t,g=f?n:Bi(e);return function c(){for(var v=arguments.length,b=Ae(v),w=v;w--;)b[w]=arguments[w];if(y)var M=uo(c),A=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,M);if(i&&(b=Li(b,i,o,y)),a&&(b=xi(b,a,s,y)),v-=A,y&&v<d){var E=cn(b,M);return qi(e,t,Wi,c.placeholder,r,b,E,u,l,d-v)}var T=p?r:this,N=f?T[e]:e;return v=b.length,u?b=function(e,t){var r=e.length,i=wn(t.length,r),o=Si(e);for(;i--;){var a=t[i];e[i]=wo(a,r)?o[a]:n}return e}(b,u):m&&v>1&&b.reverse(),h&&l<v&&(b.length=l),this&&this!==pt&&this instanceof c&&(N=g||Bi(N)),N.apply(T,b)}}function Qi(e,t){return function(n,r){return function(e,t,n,r){return Mr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Yi(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ci(r),i=ci(i)),o=e(r,i)}return o}}function Fi(e){return ro((function(t){return t=Dt(t,Xt(co())),Xr((function(n){var r=this;return e(t,(function(e){return Nt(e,r,n)}))}))}))}function Hi(e,t){var r=(t=t===n?" ":li(t)).length;if(r<2)return r?Jr(t,e):t;var i=Jr(t,yt(e/hn(t)));return an(t)?Ai(pn(i),0,e).join(""):i.slice(0,e)}function Vi(e){return function(t,r,i){return i&&"number"!=typeof i&&Mo(t,r,i)&&(r=i=n),t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n,r){for(var i=-1,o=bn(yt((t-e)/(n||1)),0),a=Ae(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,r,i=i===n?t<r?1:-1:fs(i),e)}}function Gi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function qi(e,t,r,i,o,a,c,l,d,h){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var f=[e,t,o,p?a:n,p?c:n,p?n:a,p?n:c,l,d,h],y=r.apply(n,f);return Eo(e)&&jo(y,f),y.placeholder=i,Oo(y,e,t)}function Zi(e){var t=Ie[e];return function(e,n){if(e=gs(e),(n=null==n?0:wn(ys(n),292))&&Vt(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ji=Ln&&1/ln(new Ln([,-0]))[1]==d?function(e){return new Ln(e)}:cu;function Xi(e){return function(t){var n=mo(t);return n==E?sn(t):n==L?dn(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,i,d,h,p,f,y){var m=2&t;if(!m&&"function"!=typeof e)throw new Se(r);var g=d?d.length:0;if(g||(t&=-97,d=h=n),f=f===n?f:bn(ys(f),0),y=y===n?y:ys(y),g-=h?h.length:0,t&u){var v=d,b=h;d=h=n}var w=m?n:ao(e),M=[e,t,i,d,h,v,b,p,f,y];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=r==c&&8==n||r==c&&n==l&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Li(d,u,t[4]):u,e[4]=d?cn(e[3],o):t[4]}(u=t[5])&&(d=e[5],e[5]=d?xi(d,u,t[6]):u,e[6]=d?cn(e[5],o):t[6]);(u=t[7])&&(e[7]=u);r&c&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,w),e=M[0],t=M[1],i=M[2],d=M[3],h=M[4],!(y=M[9]=M[9]===n?m?0:e.length:bn(M[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==a?function(e,t,r){var i=Bi(e);return function o(){for(var a=arguments.length,s=Ae(a),u=a,c=uo(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:cn(s,c);return(a-=l.length)<r?qi(e,t,Wi,o.placeholder,n,s,l,n,n,r-a):Nt(this&&this!==pt&&this instanceof o?i:e,this,s)}}(e,t,y):t!=s&&33!=t||h.length?Wi.apply(n,M):function(e,t,n,r){var i=1&t,o=Bi(e);return function t(){for(var a=-1,s=arguments.length,u=-1,c=r.length,l=Ae(c+s),d=this&&this!==pt&&this instanceof t?o:e;++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++a];return Nt(d,i?n:this,l)}}(e,t,i,d);else var A=function(e,t,n){var r=1&t,i=Bi(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return Oo((w?ti:jo)(A,M),e,t)}function $i(e,t,r,i){return e===n||Wa(e,De[r])&&!_e.call(i,r)?t:e}function eo(e,t,r,i,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Yr(e,t,n,eo,a),a.delete(t)),e}function to(e){return os(e)?n:e}function no(e,t,r,i,o,a){var s=1&r,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var h=-1,p=!0,f=2&r?new Zn:n;for(a.set(e,t),a.set(t,e);++h<u;){var y=e[h],m=t[h];if(i)var g=s?i(m,y,h,t,e,a):i(y,m,h,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(f){if(!Pt(t,(function(e,t){if(!$t(f,t)&&(y===e||o(y,e,r,i,a)))return f.push(t)}))){p=!1;break}}else if(y!==m&&!o(y,m,r,i,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ro(e){return Do(Lo(e,n,Vo),e+"")}function io(e){return Nr(e,Cs,fo)}function oo(e){return Nr(e,Ds,yo)}var ao=jn?function(e){return jn.get(e)}:cu;function so(e){for(var t=e.name+"",n=Cn[t],r=_e.call(Cn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function uo(e){return(_e.call(Wn,"placeholder")?Wn:e).placeholder}function co(){var e=Wn.iteratee||ou;return e=e===ou?_r:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ho(e){for(var t=Cs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Io(i)]}return t}function po(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return zr(r)?r:n}var fo=vt?function(e){return null==e?[]:(e=ke(e),St(vt(e),(function(t){return Ze.call(e,t)})))}:mu,yo=vt?function(e){for(var t=[];e;)Ot(t,fo(e)),e=Ge(e);return t}:mu,mo=Ir;function go(e,t,n){for(var r=-1,i=(t=wi(t,e)).length,o=!1;++r<i;){var a=Bo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&wo(a,i)&&(Ha(e)||Fa(e))}function vo(e){return"function"!=typeof e.constructor||No(e)?{}:Qn(Ge(e))}function bo(e){return Ha(e)||Fa(e)||!!(Xe&&e&&e[Xe])}function wo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function Mo(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&wo(t,n.length):"string"==r&&t in n)&&Wa(n[t],e)}function Ao(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ee.test(e)||!$.test(e)||null!=t&&e in ke(t))}function Eo(e){var t=so(e),n=Wn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=ao(n);return!!r&&e===r[0]}(Nn&&mo(new Nn(new ArrayBuffer(1)))!=D||In&&mo(new In)!=E||kn&&mo(kn.resolve())!=I||Ln&&mo(new Ln)!=L||xn&&mo(new xn)!=j)&&(mo=function(e){var t=Ir(e),r=t==N?e.constructor:n,i=r?Ro(r):"";if(i)switch(i){case Dn:return D;case On:return E;case zn:return I;case _n:return L;case Pn:return j}return t});var To=Oe?Ka:gu;function No(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Io(e){return e==e&&!ts(e)}function ko(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in ke(r)))}}function Lo(e,t,r){return t=bn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=bn(n.length-t,0),a=Ae(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Ae(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),Nt(e,this,s)}}function xo(e,t){return t.length<2?e:Tr(e,ii(t,0,-1))}function So(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var jo=zo(ti),Co=ft||function(e,t){return pt.setTimeout(e,t)},Do=zo(ni);function Oo(e,t,n){var r=t+"";return Do(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return kt(y,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function zo(e){var t=0,r=0;return function(){var i=Mn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function _o(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var a=Zr(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Po=function(e){var t=za(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,n,r,i){t.push(r?i.replace(de,"$1"):n||e)})),t}));function Bo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ro(e){if(null!=e){try{return ze.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Uo(e){if(e instanceof Hn)return e.clone();var t=new Fn(e.__wrapped__,e.__chain__);return t.__actions__=Si(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Wo=Xr((function(e,t){return qa(e)?hr(e,vr(t,1,qa,!0)):[]})),Qo=Xr((function(e,t){var r=Xo(t);return qa(r)&&(r=n),qa(e)?hr(e,vr(t,1,qa,!0),co(r,2)):[]})),Yo=Xr((function(e,t){var r=Xo(t);return qa(r)&&(r=n),qa(e)?hr(e,vr(t,1,qa,!0),n,r):[]}));function Fo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ys(n);return i<0&&(i=bn(r+i,0)),Ut(e,co(t,3),i)}function Ho(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=ys(r),o=r<0?bn(i+o,0):wn(o,i-1)),Ut(e,co(t,3),o,!0)}function Vo(e){return(null==e?0:e.length)?vr(e,1):[]}function Go(e){return e&&e.length?e[0]:n}var qo=Xr((function(e){var t=Dt(e,vi);return t.length&&t[0]===e[0]?Sr(t):[]})),Zo=Xr((function(e){var t=Xo(e),r=Dt(e,vi);return t===Xo(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Sr(r,co(t,2)):[]})),Jo=Xr((function(e){var t=Xo(e),r=Dt(e,vi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Sr(r,n,t):[]}));function Xo(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ko=Xr($o);function $o(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=ro((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return qr(e,Dt(t,(function(e){return wo(e,n)?+e:e})).sort(ki)),r}));function ta(e){return null==e?e:Tn.call(e)}var na=Xr((function(e){return di(vr(e,1,qa,!0))})),ra=Xr((function(e){var t=Xo(e);return qa(t)&&(t=n),di(vr(e,1,qa,!0),co(t,2))})),ia=Xr((function(e){var t=Xo(e);return t="function"==typeof t?t:n,di(vr(e,1,qa,!0),n,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(qa(e))return t=bn(e.length,t),!0})),Zt(t,(function(t){return Dt(e,Ht(t))}))}function aa(e,t){if(!e||!e.length)return[];var r=oa(e);return null==t?r:Dt(r,(function(e){return Nt(t,n,e)}))}var sa=Xr((function(e,t){return qa(e)?hr(e,t):[]})),ua=Xr((function(e){return mi(St(e,qa))})),ca=Xr((function(e){var t=Xo(e);return qa(t)&&(t=n),mi(St(e,qa),co(t,2))})),la=Xr((function(e){var t=Xo(e);return t="function"==typeof t?t:n,mi(St(e,qa),n,t)})),da=Xr(oa);var ha=Xr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,aa(e,r)}));function pa(e){var t=Wn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ya=ro((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Hn&&wo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:n}),new Fn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ma=Ci((function(e,t,n){_e.call(e,n)?++e[n]:ar(e,n,1)}));var ga=Ri(Fo),va=Ri(Ho);function ba(e,t){return(Ha(e)?kt:pr)(e,co(t,3))}function wa(e,t){return(Ha(e)?Lt:fr)(e,co(t,3))}var Ma=Ci((function(e,t,n){_e.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Aa=Xr((function(e,t,n){var r=-1,i="function"==typeof t,o=Ga(e)?Ae(e.length):[];return pr(e,(function(e){o[++r]=i?Nt(t,e,n):jr(e,t,n)})),o})),Ea=Ci((function(e,t,n){ar(e,n,t)}));function Ta(e,t){return(Ha(e)?Dt:Ur)(e,co(t,3))}var Na=Ci((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ia=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Mo(e,t[0],t[1])?t=[]:n>2&&Mo(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,vr(t,1),[])})),ka=ht||function(){return pt.Date.now()};function La(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ki(e,c,n,n,n,n,t)}function xa(e,t){var i;if("function"!=typeof t)throw new Se(r);return e=ys(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Sa=Xr((function(e,t,n){var r=1;if(n.length){var i=cn(n,uo(Sa));r|=s}return Ki(e,r,t,n,i)})),ja=Xr((function(e,t,n){var r=3;if(n.length){var i=cn(n,uo(ja));r|=s}return Ki(t,r,e,n,i)}));function Ca(e,t,i){var o,a,s,u,c,l,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new Se(r);function y(t){var r=o,i=a;return o=a=n,d=t,u=e.apply(i,r)}function m(e){var r=e-l;return l===n||r>=t||r<0||p&&e-d>=s}function g(){var e=ka();if(m(e))return v(e);c=Co(g,function(e){var n=t-(e-l);return p?wn(n,s-(e-d)):n}(e))}function v(e){return c=n,f&&o?y(e):(o=a=n,u)}function b(){var e=ka(),r=m(e);if(o=arguments,a=this,l=e,r){if(c===n)return function(e){return d=e,c=Co(g,t),h?y(e):u}(l);if(p)return Ei(c),c=Co(g,t),y(l)}return c===n&&(c=Co(g,t)),u}return t=gs(t)||0,ts(i)&&(h=!!i.leading,s=(p="maxWait"in i)?bn(gs(i.maxWait)||0,t):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){c!==n&&Ei(c),d=0,o=l=a=c=n},b.flush=function(){return c===n?u:v(ka())},b}var Da=Xr((function(e,t){return dr(e,1,t)})),Oa=Xr((function(e,t,n){return dr(e,gs(t)||0,n)}));function za(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(za.Cache||qn),n}function _a(e){if("function"!=typeof e)throw new Se(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}za.Cache=qn;var Pa=Mi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Dt(t[0],Xt(co())):Dt(vr(t,1),Xt(co()))).length;return Xr((function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Nt(e,this,r)}))})),Ba=Xr((function(e,t){var r=cn(t,uo(Ba));return Ki(e,s,n,t,r)})),Ra=Xr((function(e,t){var r=cn(t,uo(Ra));return Ki(e,u,n,t,r)})),Ua=ro((function(e,t){return Ki(e,l,n,n,n,t)}));function Wa(e,t){return e===t||e!=e&&t!=t}var Qa=Gi(kr),Ya=Gi((function(e,t){return e>=t})),Fa=Cr(function(){return arguments}())?Cr:function(e){return ns(e)&&_e.call(e,"callee")&&!Ze.call(e,"callee")},Ha=Ae.isArray,Va=bt?Xt(bt):function(e){return ns(e)&&Ir(e)==C};function Ga(e){return null!=e&&es(e.length)&&!Ka(e)}function qa(e){return ns(e)&&Ga(e)}var Za=Bt||gu,Ja=wt?Xt(wt):function(e){return ns(e)&&Ir(e)==b};function Xa(e){if(!ns(e))return!1;var t=Ir(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Ka(e){if(!ts(e))return!1;var t=Ir(e);return t==M||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==ys(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=Mt?Xt(Mt):function(e){return ns(e)&&mo(e)==E};function is(e){return"number"==typeof e||ns(e)&&Ir(e)==T}function os(e){if(!ns(e)||Ir(e)!=N)return!1;var t=Ge(e);if(null===t)return!0;var n=_e.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ze.call(n)==Ue}var as=At?Xt(At):function(e){return ns(e)&&Ir(e)==k};var ss=Et?Xt(Et):function(e){return ns(e)&&mo(e)==L};function us(e){return"string"==typeof e||!Ha(e)&&ns(e)&&Ir(e)==x}function cs(e){return"symbol"==typeof e||ns(e)&&Ir(e)==S}var ls=Tt?Xt(Tt):function(e){return ns(e)&&es(e.length)&&!!at[Ir(e)]};var ds=Gi(Rr),hs=Gi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ga(e))return us(e)?pn(e):Si(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=mo(e);return(t==E?sn:t==L?ln:Ws)(e)}function fs(e){return e?(e=gs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ys(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ur(ys(e),0,f):0}function gs(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ye.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?p:+e}function vs(e){return ji(e,Ds(e))}function bs(e){return null==e?"":li(e)}var ws=Di((function(e,t){if(No(t)||Ga(t))ji(t,Cs(t),e);else for(var n in t)_e.call(t,n)&&nr(e,n,t[n])})),Ms=Di((function(e,t){ji(t,Ds(t),e)})),As=Di((function(e,t,n,r){ji(t,Ds(t),e,r)})),Es=Di((function(e,t,n,r){ji(t,Cs(t),e,r)})),Ts=ro(sr);var Ns=Xr((function(e,t){e=ke(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Mo(t[0],t[1],o)&&(i=1);++r<i;)for(var a=t[r],s=Ds(a),u=-1,c=s.length;++u<c;){var l=s[u],d=e[l];(d===n||Wa(d,De[l])&&!_e.call(e,l))&&(e[l]=a[l])}return e})),Is=Xr((function(e){return e.push(n,eo),Nt(zs,n,e)}));function ks(e,t,r){var i=null==e?n:Tr(e,t);return i===n?r:i}function Ls(e,t){return null!=e&&go(e,t,xr)}var xs=Qi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),e[t]=n}),tu(iu)),Ss=Qi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),_e.call(e,t)?e[t].push(n):e[t]=[n]}),co),js=Xr(jr);function Cs(e){return Ga(e)?Xn(e):Pr(e)}function Ds(e){return Ga(e)?Xn(e,!0):Br(e)}var Os=Di((function(e,t,n){Yr(e,t,n)})),zs=Di((function(e,t,n,r){Yr(e,t,n,r)})),_s=ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=wi(t,e),r||(r=t.length>1),t})),ji(e,oo(e),n),r&&(n=cr(n,7,to));for(var i=t.length;i--;)hi(n,t[i]);return n}));var Ps=ro((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ls(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=Dt(oo(e),(function(e){return[e]}));return t=co(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Rs=Xi(Cs),Us=Xi(Ds);function Ws(e){return null==e?[]:Kt(e,Cs(e))}var Qs=Pi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ys(t):t)}));function Ys(e){return Xs(bs(e).toLowerCase())}function Fs(e){return(e=bs(e))&&e.replace(be,nn).replace($e,"")}var Hs=Pi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Pi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=_i("toLowerCase");var qs=Pi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Zs=Pi((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Js=Pi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=_i("toUpperCase");function Ks(e,t,r){return e=bs(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var $s=Xr((function(e,t){try{return Nt(e,n,t)}catch(e){return Xa(e)?e:new Te(e)}})),eu=ro((function(e,t){return kt(t,(function(t){t=Bo(t),ar(e,t,Sa(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Ui(),ru=Ui(!0);function iu(e){return e}function ou(e){return _r("function"==typeof e?e:cr(e,1))}var au=Xr((function(e,t){return function(n){return jr(n,e,t)}})),su=Xr((function(e,t){return function(n){return jr(e,n,t)}}));function uu(e,t,n){var r=Cs(t),i=Er(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Cs(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Ka(e);return kt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Si(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function cu(){}var lu=Fi(Dt),du=Fi(xt),hu=Fi(Pt);function pu(e){return Ao(e)?Ht(Bo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var fu=Vi(),yu=Vi(!0);function mu(){return[]}function gu(){return!1}var vu=Yi((function(e,t){return e+t}),0),bu=Zi("ceil"),wu=Yi((function(e,t){return e/t}),1),Mu=Zi("floor");var Au,Eu=Yi((function(e,t){return e*t}),1),Tu=Zi("round"),Nu=Yi((function(e,t){return e-t}),0);return Wn.after=function(e,t){if("function"!=typeof t)throw new Se(r);return e=ys(e),function(){if(--e<1)return t.apply(this,arguments)}},Wn.ary=La,Wn.assign=ws,Wn.assignIn=Ms,Wn.assignInWith=As,Wn.assignWith=Es,Wn.at=Ts,Wn.before=xa,Wn.bind=Sa,Wn.bindAll=eu,Wn.bindKey=ja,Wn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Wn.chain=pa,Wn.chunk=function(e,t,r){t=(r?Mo(e,t,r):t===n)?1:bn(ys(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=Ae(yt(i/t));o<i;)s[a++]=ii(e,o,o+=t);return s},Wn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Wn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ae(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Ot(Ha(n)?Si(n):[n],vr(t,1))},Wn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Se(r);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Nt(i[0],this,n))return Nt(i[1],this,n)}}))},Wn.conforms=function(e){return function(e){var t=Cs(e);return function(n){return lr(n,e,t)}}(cr(e,1))},Wn.constant=tu,Wn.countBy=ma,Wn.create=function(e,t){var n=Qn(e);return null==t?n:or(n,t)},Wn.curry=function e(t,r,i){var o=Ki(t,8,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Wn.curryRight=function e(t,r,i){var o=Ki(t,a,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Wn.debounce=Ca,Wn.defaults=Ns,Wn.defaultsDeep=Is,Wn.defer=Da,Wn.delay=Oa,Wn.difference=Wo,Wn.differenceBy=Qo,Wn.differenceWith=Yo,Wn.drop=function(e,t,r){var i=null==e?0:e.length;return i?ii(e,(t=r||t===n?1:ys(t))<0?0:t,i):[]},Wn.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ii(e,0,(t=i-(t=r||t===n?1:ys(t)))<0?0:t):[]},Wn.dropRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!0,!0):[]},Wn.dropWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!0):[]},Wn.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Mo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=ys(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:ys(i))<0&&(i+=o),i=r>i?0:ms(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},Wn.filter=function(e,t){return(Ha(e)?St:gr)(e,co(t,3))},Wn.flatMap=function(e,t){return vr(Ta(e,t),1)},Wn.flatMapDeep=function(e,t){return vr(Ta(e,t),d)},Wn.flatMapDepth=function(e,t,r){return r=r===n?1:ys(r),vr(Ta(e,t),r)},Wn.flatten=Vo,Wn.flattenDeep=function(e){return(null==e?0:e.length)?vr(e,d):[]},Wn.flattenDepth=function(e,t){return(null==e?0:e.length)?vr(e,t=t===n?1:ys(t)):[]},Wn.flip=function(e){return Ki(e,512)},Wn.flow=nu,Wn.flowRight=ru,Wn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Wn.functions=function(e){return null==e?[]:Er(e,Cs(e))},Wn.functionsIn=function(e){return null==e?[]:Er(e,Ds(e))},Wn.groupBy=Ma,Wn.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Wn.intersection=qo,Wn.intersectionBy=Zo,Wn.intersectionWith=Jo,Wn.invert=xs,Wn.invertBy=Ss,Wn.invokeMap=Aa,Wn.iteratee=ou,Wn.keyBy=Ea,Wn.keys=Cs,Wn.keysIn=Ds,Wn.map=Ta,Wn.mapKeys=function(e,t){var n={};return t=co(t,3),Mr(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},Wn.mapValues=function(e,t){var n={};return t=co(t,3),Mr(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},Wn.matches=function(e){return Wr(cr(e,1))},Wn.matchesProperty=function(e,t){return Qr(e,cr(t,1))},Wn.memoize=za,Wn.merge=Os,Wn.mergeWith=zs,Wn.method=au,Wn.methodOf=su,Wn.mixin=uu,Wn.negate=_a,Wn.nthArg=function(e){return e=ys(e),Xr((function(t){return Fr(t,e)}))},Wn.omit=_s,Wn.omitBy=function(e,t){return Bs(e,_a(co(t)))},Wn.once=function(e){return xa(2,e)},Wn.orderBy=function(e,t,r,i){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(r=i?n:r)||(r=null==r?[]:[r]),Hr(e,t,r))},Wn.over=lu,Wn.overArgs=Pa,Wn.overEvery=du,Wn.overSome=hu,Wn.partial=Ba,Wn.partialRight=Ra,Wn.partition=Na,Wn.pick=Ps,Wn.pickBy=Bs,Wn.property=pu,Wn.propertyOf=function(e){return function(t){return null==e?n:Tr(e,t)}},Wn.pull=Ko,Wn.pullAll=$o,Wn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,co(n,2)):e},Wn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Gr(e,t,n,r):e},Wn.pullAt=ea,Wn.range=fu,Wn.rangeRight=yu,Wn.rearg=Ua,Wn.reject=function(e,t){return(Ha(e)?St:gr)(e,_a(co(t,3)))},Wn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=co(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return qr(e,i),n},Wn.rest=function(e,t){if("function"!=typeof e)throw new Se(r);return Xr(e,t=t===n?t:ys(t))},Wn.reverse=ta,Wn.sampleSize=function(e,t,r){return t=(r?Mo(e,t,r):t===n)?1:ys(t),(Ha(e)?$n:$r)(e,t)},Wn.set=function(e,t,n){return null==e?e:ei(e,t,n)},Wn.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:ei(e,t,r,i)},Wn.shuffle=function(e){return(Ha(e)?er:ri)(e)},Wn.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Mo(e,t,r)?(t=0,r=i):(t=null==t?0:ys(t),r=r===n?i:ys(r)),ii(e,t,r)):[]},Wn.sortBy=Ia,Wn.sortedUniq=function(e){return e&&e.length?ui(e):[]},Wn.sortedUniqBy=function(e,t){return e&&e.length?ui(e,co(t,2)):[]},Wn.split=function(e,t,r){return r&&"number"!=typeof r&&Mo(e,t,r)&&(t=r=n),(r=r===n?f:r>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=li(t))&&an(e)?Ai(pn(e),0,r):e.split(t,r):[]},Wn.spread=function(e,t){if("function"!=typeof e)throw new Se(r);return t=null==t?0:bn(ys(t),0),Xr((function(n){var r=n[t],i=Ai(n,0,t);return r&&Ot(i,r),Nt(e,this,i)}))},Wn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Wn.take=function(e,t,r){return e&&e.length?ii(e,0,(t=r||t===n?1:ys(t))<0?0:t):[]},Wn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ii(e,(t=i-(t=r||t===n?1:ys(t)))<0?0:t,i):[]},Wn.takeRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!1,!0):[]},Wn.takeWhile=function(e,t){return e&&e.length?fi(e,co(t,3)):[]},Wn.tap=function(e,t){return t(e),e},Wn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Se(r);return ts(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ca(e,t,{leading:i,maxWait:t,trailing:o})},Wn.thru=fa,Wn.toArray=ps,Wn.toPairs=Rs,Wn.toPairsIn=Us,Wn.toPath=function(e){return Ha(e)?Dt(e,Bo):cs(e)?[e]:Si(Po(bs(e)))},Wn.toPlainObject=vs,Wn.transform=function(e,t,n){var r=Ha(e),i=r||Za(e)||ls(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Ka(o)?Qn(Ge(e)):{}}return(i?kt:Mr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Wn.unary=function(e){return La(e,1)},Wn.union=na,Wn.unionBy=ra,Wn.unionWith=ia,Wn.uniq=function(e){return e&&e.length?di(e):[]},Wn.uniqBy=function(e,t){return e&&e.length?di(e,co(t,2)):[]},Wn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?di(e,n,t):[]},Wn.unset=function(e,t){return null==e||hi(e,t)},Wn.unzip=oa,Wn.unzipWith=aa,Wn.update=function(e,t,n){return null==e?e:pi(e,t,bi(n))},Wn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:pi(e,t,bi(r),i)},Wn.values=Ws,Wn.valuesIn=function(e){return null==e?[]:Kt(e,Ds(e))},Wn.without=sa,Wn.words=Ks,Wn.wrap=function(e,t){return Ba(bi(t),e)},Wn.xor=ua,Wn.xorBy=ca,Wn.xorWith=la,Wn.zip=da,Wn.zipObject=function(e,t){return gi(e||[],t||[],nr)},Wn.zipObjectDeep=function(e,t){return gi(e||[],t||[],ei)},Wn.zipWith=ha,Wn.entries=Rs,Wn.entriesIn=Us,Wn.extend=Ms,Wn.extendWith=As,uu(Wn,Wn),Wn.add=vu,Wn.attempt=$s,Wn.camelCase=Qs,Wn.capitalize=Ys,Wn.ceil=bu,Wn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gs(r))==r?r:0),t!==n&&(t=(t=gs(t))==t?t:0),ur(gs(e),t,r)},Wn.clone=function(e){return cr(e,4)},Wn.cloneDeep=function(e){return cr(e,5)},Wn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Wn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Wn.conformsTo=function(e,t){return null==t||lr(e,t,Cs(t))},Wn.deburr=Fs,Wn.defaultTo=function(e,t){return null==e||e!=e?t:e},Wn.divide=wu,Wn.endsWith=function(e,t,r){e=bs(e),t=li(t);var i=e.length,o=r=r===n?i:ur(ys(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Wn.eq=Wa,Wn.escape=function(e){return(e=bs(e))&&Z.test(e)?e.replace(G,rn):e},Wn.escapeRegExp=function(e){return(e=bs(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Wn.every=function(e,t,r){var i=Ha(e)?xt:yr;return r&&Mo(e,t,r)&&(t=n),i(e,co(t,3))},Wn.find=ga,Wn.findIndex=Fo,Wn.findKey=function(e,t){return Rt(e,co(t,3),Mr)},Wn.findLast=va,Wn.findLastIndex=Ho,Wn.findLastKey=function(e,t){return Rt(e,co(t,3),Ar)},Wn.floor=Mu,Wn.forEach=ba,Wn.forEachRight=wa,Wn.forIn=function(e,t){return null==e?e:br(e,co(t,3),Ds)},Wn.forInRight=function(e,t){return null==e?e:wr(e,co(t,3),Ds)},Wn.forOwn=function(e,t){return e&&Mr(e,co(t,3))},Wn.forOwnRight=function(e,t){return e&&Ar(e,co(t,3))},Wn.get=ks,Wn.gt=Qa,Wn.gte=Ya,Wn.has=function(e,t){return null!=e&&go(e,t,Lr)},Wn.hasIn=Ls,Wn.head=Go,Wn.identity=iu,Wn.includes=function(e,t,n,r){e=Ga(e)?e:Ws(e),n=n&&!r?ys(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Wt(e,t,n)>-1},Wn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ys(n);return i<0&&(i=bn(r+i,0)),Wt(e,t,i)},Wn.inRange=function(e,t,r){return t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n){return e>=wn(t,n)&&e<bn(t,n)}(e=gs(e),t,r)},Wn.invoke=js,Wn.isArguments=Fa,Wn.isArray=Ha,Wn.isArrayBuffer=Va,Wn.isArrayLike=Ga,Wn.isArrayLikeObject=qa,Wn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Ir(e)==v},Wn.isBuffer=Za,Wn.isDate=Ja,Wn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Wn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Za(e)||ls(e)||Fa(e)))return!e.length;var t=mo(e);if(t==E||t==L)return!e.size;if(No(e))return!Pr(e).length;for(var n in e)if(_e.call(e,n))return!1;return!0},Wn.isEqual=function(e,t){return Dr(e,t)},Wn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Dr(e,t,n,r):!!i},Wn.isError=Xa,Wn.isFinite=function(e){return"number"==typeof e&&Vt(e)},Wn.isFunction=Ka,Wn.isInteger=$a,Wn.isLength=es,Wn.isMap=rs,Wn.isMatch=function(e,t){return e===t||Or(e,t,ho(t))},Wn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Or(e,t,ho(t),r)},Wn.isNaN=function(e){return is(e)&&e!=+e},Wn.isNative=function(e){if(To(e))throw new Te("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return zr(e)},Wn.isNil=function(e){return null==e},Wn.isNull=function(e){return null===e},Wn.isNumber=is,Wn.isObject=ts,Wn.isObjectLike=ns,Wn.isPlainObject=os,Wn.isRegExp=as,Wn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=h},Wn.isSet=ss,Wn.isString=us,Wn.isSymbol=cs,Wn.isTypedArray=ls,Wn.isUndefined=function(e){return e===n},Wn.isWeakMap=function(e){return ns(e)&&mo(e)==j},Wn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ir(e)},Wn.join=function(e,t){return null==e?"":gn.call(e,t)},Wn.kebabCase=Hs,Wn.last=Xo,Wn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=ys(r))<0?bn(i+o,0):wn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ut(e,Yt,o,!0)},Wn.lowerCase=Vs,Wn.lowerFirst=Gs,Wn.lt=ds,Wn.lte=hs,Wn.max=function(e){return e&&e.length?mr(e,iu,kr):n},Wn.maxBy=function(e,t){return e&&e.length?mr(e,co(t,2),kr):n},Wn.mean=function(e){return Ft(e,iu)},Wn.meanBy=function(e,t){return Ft(e,co(t,2))},Wn.min=function(e){return e&&e.length?mr(e,iu,Rr):n},Wn.minBy=function(e,t){return e&&e.length?mr(e,co(t,2),Rr):n},Wn.stubArray=mu,Wn.stubFalse=gu,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Eu,Wn.nth=function(e,t){return e&&e.length?Fr(e,ys(t)):n},Wn.noConflict=function(){return pt._===this&&(pt._=We),this},Wn.noop=cu,Wn.now=ka,Wn.pad=function(e,t,n){e=bs(e);var r=(t=ys(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(gt(i),n)+e+Hi(yt(i),n)},Wn.padEnd=function(e,t,n){e=bs(e);var r=(t=ys(t))?hn(e):0;return t&&r<t?e+Hi(t-r,n):e},Wn.padStart=function(e,t,n){e=bs(e);var r=(t=ys(t))?hn(e):0;return t&&r<t?Hi(t-r,n)+e:e},Wn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),An(bs(e).replace(ie,""),t||0)},Wn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Mo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=fs(e),t===n?(t=e,e=0):t=fs(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=En();return wn(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Zr(e,t)},Wn.reduce=function(e,t,n){var r=Ha(e)?zt:Gt,i=arguments.length<3;return r(e,co(t,4),n,i,pr)},Wn.reduceRight=function(e,t,n){var r=Ha(e)?_t:Gt,i=arguments.length<3;return r(e,co(t,4),n,i,fr)},Wn.repeat=function(e,t,r){return t=(r?Mo(e,t,r):t===n)?1:ys(t),Jr(bs(e),t)},Wn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wn.result=function(e,t,r){var i=-1,o=(t=wi(t,e)).length;for(o||(o=1,e=n);++i<o;){var a=null==e?n:e[Bo(t[i])];a===n&&(i=o,a=r),e=Ka(a)?a.call(e):a}return e},Wn.round=Tu,Wn.runInContext=e,Wn.sample=function(e){return(Ha(e)?Kn:Kr)(e)},Wn.size=function(e){if(null==e)return 0;if(Ga(e))return us(e)?hn(e):e.length;var t=mo(e);return t==E||t==L?e.size:Pr(e).length},Wn.snakeCase=qs,Wn.some=function(e,t,r){var i=Ha(e)?Pt:oi;return r&&Mo(e,t,r)&&(t=n),i(e,co(t,3))},Wn.sortedIndex=function(e,t){return ai(e,t)},Wn.sortedIndexBy=function(e,t,n){return si(e,t,co(n,2))},Wn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&Wa(e[r],t))return r}return-1},Wn.sortedLastIndex=function(e,t){return ai(e,t,!0)},Wn.sortedLastIndexBy=function(e,t,n){return si(e,t,co(n,2),!0)},Wn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ai(e,t,!0)-1;if(Wa(e[n],t))return n}return-1},Wn.startCase=Zs,Wn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ur(ys(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Wn.subtract=Nu,Wn.sum=function(e){return e&&e.length?qt(e,iu):0},Wn.sumBy=function(e,t){return e&&e.length?qt(e,co(t,2)):0},Wn.template=function(e,t,r){var i=Wn.templateSettings;r&&Mo(e,t,r)&&(t=n),e=bs(e),t=As({},t,i,$i);var o,a,s=As({},t.imports,i.imports,$i),u=Cs(s),c=Kt(s,u),l=0,d=t.interpolate||we,h="__p += '",p=Le((t.escape||we).source+"|"+d.source+"|"+(d===K?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(p,(function(t,n,r,i,s,u){return r||(r=i),h+=e.slice(l,u).replace(Me,on),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),h+="';\n";var y=_e.call(t,"variable")&&t.variable;if(y){if(le.test(y))throw new Te("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(Y,""):h).replace(F,"$1").replace(H,"$1;"),h="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=$s((function(){return Ne(u,f+"return "+h).apply(n,c)}));if(m.source=h,Xa(m))throw m;return m},Wn.times=function(e,t){if((e=ys(e))<1||e>h)return[];var n=f,r=wn(e,f);t=co(t),e-=f;for(var i=Zt(r,t);++n<e;)t(n);return i},Wn.toFinite=fs,Wn.toInteger=ys,Wn.toLength=ms,Wn.toLower=function(e){return bs(e).toLowerCase()},Wn.toNumber=gs,Wn.toSafeInteger=function(e){return e?ur(ys(e),-9007199254740991,h):0===e?e:0},Wn.toString=bs,Wn.toUpper=function(e){return bs(e).toUpperCase()},Wn.trim=function(e,t,r){if((e=bs(e))&&(r||t===n))return Jt(e);if(!e||!(t=li(t)))return e;var i=pn(e),o=pn(t);return Ai(i,en(i,o),tn(i,o)+1).join("")},Wn.trimEnd=function(e,t,r){if((e=bs(e))&&(r||t===n))return e.slice(0,fn(e)+1);if(!e||!(t=li(t)))return e;var i=pn(e);return Ai(i,0,tn(i,pn(t))+1).join("")},Wn.trimStart=function(e,t,r){if((e=bs(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=li(t)))return e;var i=pn(e);return Ai(i,en(i,pn(t))).join("")},Wn.truncate=function(e,t){var r=30,i="...";if(ts(t)){var o="separator"in t?t.separator:o;r="length"in t?ys(t.length):r,i="omission"in t?li(t.omission):i}var a=(e=bs(e)).length;if(an(e)){var s=pn(e);a=s.length}if(r>=a)return e;var u=r-hn(i);if(u<1)return i;var c=s?Ai(s,0,u).join(""):e.slice(0,u);if(o===n)return c+i;if(s&&(u+=c.length-u),as(o)){if(e.slice(u).search(o)){var l,d=c;for(o.global||(o=Le(o.source,bs(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var h=l.index;c=c.slice(0,h===n?u:h)}}else if(e.indexOf(li(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+i},Wn.unescape=function(e){return(e=bs(e))&&q.test(e)?e.replace(V,yn):e},Wn.uniqueId=function(e){var t=++Pe;return bs(e)+t},Wn.upperCase=Js,Wn.upperFirst=Xs,Wn.each=ba,Wn.eachRight=wa,Wn.first=Go,uu(Wn,(Au={},Mr(Wn,(function(e,t){_e.call(Wn.prototype,t)||(Au[t]=e)})),Au),{chain:!1}),Wn.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Wn[e].placeholder=Wn})),kt(["drop","take"],(function(e,t){Hn.prototype[e]=function(r){r=r===n?1:bn(ys(r),0);var i=this.__filtered__&&!t?new Hn(this):this.clone();return i.__filtered__?i.__takeCount__=wn(r,i.__takeCount__):i.__views__.push({size:wn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(iu)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return jr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(_a(co(e)))},Hn.prototype.slice=function(e,t){e=ys(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ys(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(f)},Mr(Hn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Wn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Wn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Hn,c=s[0],l=u||Ha(t),d=function(e){var t=o.apply(Wn,Ot([e],s));return i&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,p=!!this.__actions__.length,f=a&&!h,y=u&&!p;if(!a&&l){t=y?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:fa,args:[d],thisArg:n}),new Fn(m,h)}return f&&y?e.apply(this,s):(m=this.thru(d),f?i?m.value()[0]:m.value():m)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Wn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),Mr(Hn.prototype,(function(e,t){var n=Wn[t];if(n){var r=n.name+"";_e.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:t,func:n})}})),Cn[Wi(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Si(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Si(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Si(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,d=l.length,h=0,p=wn(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return yi(e,this.__actions__);var f=[];e:for(;u--&&h<p;){for(var y=-1,m=e[c+=t];++y<d;){var g=l[y],v=g.iteratee,b=g.type,w=v(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}f[h++]=m}return f},Wn.prototype.at=ya,Wn.prototype.chain=function(){return pa(this)},Wn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Wn.prototype.next=function(){this.__values__===n&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Wn.prototype.plant=function(e){for(var t,r=this;r instanceof Yn;){var i=Uo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Wn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ta],thisArg:n}),new Fn(t,this.__chain__)}return this.thru(ta)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return yi(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,et&&(Wn.prototype[et]=function(){return this}),Wn}();yt?((yt.exports=mn)._=mn,ft._=mn):pt._=mn}).call(gf)})),GF="_DePayConnectDialogPreviouslyConnectedWallet",qF=function(e){localStorage[GF]=e},ZF=function(e){var t,n,r=vk.useRef(),i=PI(vk.useState(),2),o=i[0],a=i[1],s=PI(vk.useState(),2),u=s[0],c=s[1],l=PI(vk.useState(),2),d=l[0],h=l[1],p=PI(vk.useState(),2),f=p[0],y=p[1],m=PI(vk.useState(),2),g=m[0],v=m[1],b=PI(vk.useState(),2),w=b[0],M=b[1],A=PI(vk.useState(),2);A[0],A[1];var E=PI(vk.useState(!1),2),T=E[0],N=E[1],I=PI(vk.useState(!1),2),k=I[0],L=I[1],x=PI(vk.useState(),2),S=x[0],j=x[1];vk.useContext(BF).navigate;var C=vk.useContext(xD).accept,D=vk.createElement("div",{className:"PaddingTopS PaddingLeftM PaddingRightM"},(null===(t=e.wallet)||void 0===t?void 0:t.logo)&&vk.createElement("div",{className:"PaddingTopXS"},vk.createElement("div",{className:"LineHeightL FontSizeL PaddingTopS"},vk.createElement("span",{className:"CardImage rounded large"},vk.createElement("img",{className:"transparent",src:e.wallet.logo}))))),O=function(){return new HF({width:340,height:340,type:"svg",dotsOptions:{type:"extra-rounded"},cornersSquareOptions:{type:"rounded"},backgroundOptions:{color:"transparent"}})},z=vk.useCallback(VF.debounce((function(){var t,n;if(null!==(t=e.platform)&&void 0!==t&&t.solanaPay&&C&&C.every((function(e){return e.amount})))return e.continueWithSolanaPay();if("function"==typeof e.platform.qr){var r=O();return r.update({data:e.platform.qr()}),void j(r)}switch(null===(n=e.platform)||void 0===n?void 0:n.qr){case"WalletConnectV1":case"WalletConnectV2":if(null==S){localStorage[atob("ZGVwYXk6d2FsbGV0czp3YzI6cHJvamVjdElk")]=atob("YjFmYzJmMDZlYTIxMDdmY2Q5OWM2OGY0MTI3MTQxYWI=");var i=new II[e.platform.qr];i.connect({name:e.wallet.name,logo:e.wallet.logo,reconnect:!0,connect:function(e){var t=e.uri,n=O();n.update({data:t}),j(n)}}).then((function(t){e.resolve(t,i)}))}break;case"WalletLink":var o=new II[e.platform.qr];o.connect({connect:function(e){var t=e.uri,n=O();n.update({data:t}),j(n)}}).then((function(t){e.resolve(t,o)}))}}),100),[]);return vk.useEffect((function(){jI(_I.mark((function t(){var n,r,i,o,s,u,l,d,p,f;return _I.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(n=e.wallet)||void 0===n||!n.extension){t.next=9;break}return t.next=3,II[e.wallet.extension].isAvailable();case 3:if(t.t1=t.sent,t.t1){t.next=6;break}t.t1=!1;case 6:t.t0=t.t1,t.next=10;break;case 9:t.t0=!1;case 10:if(s=t.t0,a(s),null===(r=e.platform)||void 0===r||!r.connect){t.next=21;break}return t.next=15,II[e.platform.connect].isAvailable();case 15:if(t.t3=t.sent,t.t3){t.next=18;break}t.t3=!1;case 18:t.t2=t.t3,t.next=22;break;case 21:t.t2=!1;case 22:u=t.t2,M(u),l=!!e.platform&&e.platform.connect,c(l),d=!(null===(i=e.platform)||void 0===i||!i.copyLink),y(d),p=!!e.platform&&e.platform.open,h(p),f=e.platform.solanaPay&&C&&C.every((function(e){return e.amount}))||(null===(o=e.platform)||void 0===o?void 0:o.qr)&&(!T||"WalletLink"===e.platform.qr),v(f);case 32:case"end":return t.stop()}}),t)})))()}),[]),vk.useEffect((function(){var t,n,r;void 0!==w&&N(!o&&!YF()&&!(null!==(t=e.wallet)&&void 0!==t&&null!==(t=t.desktop)&&void 0!==t&&t.native)&&((null===(n=e.platform)||void 0===n?void 0:n.qr)||(null===(r=e.platform)||void 0===r?void 0:r.solanaPay)))}),[o,w]),vk.useEffect((function(){var t,n;T&&(null!==(t=e.platform)&&void 0!==t&&t.qr||null!==(n=e.platform)&&void 0!==n&&n.solanaPay)&&z()}),[T]),vk.useEffect((function(){T&&S&&r&&r.current&&(r.current.innerHTML="",S.append(r.current))}),[S]),T&&null!==(n=e.platform)&&void 0!==n&&n.solanaPay&&C&&C.every((function(e){return e.amount}))?null:vk.createElement(QF,{stacked:!0,header:D,footer:!1,body:vk.createElement("div",{className:"TextCenter PaddingBottomS"},vk.createElement("div",{className:"PaddingLeftL PaddingRightL"},vk.createElement("h1",{className:"LineHeightL Text FontSizeL FontWeightBold"},"Connect ",e.wallet.name)),!window.location.protocol.match("https")&&vk.createElement("div",{className:"PaddingTopS PaddingLeftL PaddingRightL"},vk.createElement("div",{className:"Alert FontSizeS"},vk.createElement("strong",null,"Most wallets do not connect to http!"))),!o&&!u&&!d&&!f&&!g&&vk.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftL PaddingRightL"},vk.createElement("div",{className:"Alert FontSizeS"},vk.createElement("strong",null,"Unable to connect to this wallet!"))),T&&vk.createElement("div",null,vk.createElement("div",{ref:r,className:"QRCode"},T&&void 0===S&&vk.createElement("div",{className:"PaddingTopS"},vk.createElement("div",{className:"Skeleton",style:{borderRadius:"18px",width:"305px",height:"305px"}},vk.createElement("div",{className:"SkeletonBackground"})))),T&&void 0===S&&vk.createElement("div",{className:"Opacity05 PaddingBottomXS PaddingTopS"},vk.createElement("small",null,"Generating QR code...")),T&&void 0!==S&&vk.createElement("div",{className:"Opacity05 PaddingBottomXS PaddingTopXS"},vk.createElement("small",null,"Scan QR code with your wallet")),(o||u||d||f)&&vk.createElement("div",null,vk.createElement("div",{className:"PaddingBottomXS PaddingTopS Opacity03",style:{display:"flex"}},vk.createElement("div",{style:{borderBottom:"1px solid black",flex:"0.4",position:"relative",top:"-9px"},className:"Opacity05"}),vk.createElement("div",{style:{flex:"0.2"},className:"PaddingLeftXS PaddingRightXS"},vk.createElement("small",null,"or")),vk.createElement("div",{style:{borderBottom:"1px solid black",flex:"0.4",position:"relative",top:"-9px"},className:"Opacity05"})))),(o||u||d||g&&!T||f)&&vk.createElement("div",{className:"PaddingLeftL PaddingRightL PaddingTopS PaddingBottomS"},o&&vk.createElement("div",{className:"PaddingBottomXS"},e.showConnectExtensionWarning&&vk.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftS PaddingRightS"},vk.createElement("div",{className:"Alert"},vk.createElement("span",{className:"FontWeightBold PaddingBottomXS"},"You wallet extension window is already asking to connect. It might be hidden."))),e.connectingExtension&&vk.createElement("div",{className:"Card disabled small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("div",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("div",{className:"Loading Icon medium",style:{position:"relative",top:"4px",left:"1px"}})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Connecting extension"))),!e.connectingExtension&&vk.createElement("button",{onClick:function(){return e.connectExtension(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Connect your wallet",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyNTAgMjUwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNTAgMjUwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTE3Mi44LDY4LjNjLTQuOS0yLjItNy40LTguNC00LjUtMTMuNmM1LjMtOS40LDEwLTE4LjYsNC4zLTI5LjFjLTctMTIuNy0yNC4xLTE3LjQtMzYuNi0xMGMtMTUuNCw5LjEtMTMuNCwyNS42LTUuMSwzOC45CgkJYzMuMyw1LjIsMC45LDExLjYtNC4yLDEzLjlsLTYxLjIsMC4xbDAsMC44bDAuMSwyMS44bDAuMSwzNy45Yy0xLjksNS41LTguNyw4LjQtMTQuMSw1Yy0xMy40LTguMy0yOS44LTEwLjEtMzguOSw1LjMKCQljLTcuMywxMi41LTIuNSwyOS43LDEwLjIsMzYuNWMxMC41LDUuNywxOS43LDEsMjkuMS00LjRjNS40LTMuMSwxMS45LTAuMywxMy44LDVsMC4xLDU5LjhsNTcuMi0wLjFjMC4xLDAsMC4yLDAsMC4zLDBsMy42LDAKCQljNS0yLjMsNy40LTguNyw0LjItMTMuOWMtOC4zLTEzLjMtMTAuMy0yOS44LDUuMS0zOC45YzEyLjUtNy40LDI5LjYtMi43LDM2LjYsMTBjNS43LDEwLjUsMS4xLDE5LjctNC4zLDI5LjEKCQljLTIuOSw1LjItMC41LDExLjQsNC41LDEzLjZsMy42LDBjMC4xLDAsMC4yLDAsMC4zLDBsNTYuNS0wLjFsLTAuMS01OC44Yy0xLjQtNi42LTcuOC05LjItMTQuMS01LjhjLTkuNSw1LjItMTcuOSw5LjgtMjguNCw0LjEKCQljLTEyLjgtNi45LTE4LjItMjMuNy0xMC45LTM2LjNjOS0xNS40LDI1LjUtMTMuNiwzOC45LTUuM2M1LjcsMy41LDEyLjksMC4yLDE0LjQtNS45bC0wLjEtMzUuNEwyMzMuMyw2OWwwLTAuOEwxNzIuOCw2OC4zeiIvPgo8L2c+Cjwvc3ZnPgo="})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Connect extension")))),u&&vk.createElement("div",{className:"PaddingBottomXS"},e.connectingApp&&vk.createElement("div",{className:"Card disabled small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("div",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("div",{className:"Loading Icon medium",style:{position:"relative",top:"2px",left:"0px"}})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Connecting app"))),!e.connectingApp&&vk.createElement("button",{onClick:function(){return e.connectViaRedirect(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Click to connect app",style:{height:"26px",width:"26px",borderRadius:"8px"},src:e.wallet.logo})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Connect app")))),d&&vk.createElement("div",{className:"PaddingBottomXS"},vk.createElement("button",{onClick:function(){return e.openInApp(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Click to open in app",style:{height:"26px",width:"26px",borderRadius:"8px"},src:e.wallet.logo})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Open in app")))),g&&!T&&vk.createElement("div",{className:"PaddingBottomXS"},vk.createElement("button",{onClick:function(){N(!0),z()},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Scan QR code to connect a mobile wallet",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyAgUFVCTElDICctLy9XM0MvL0RURCBTVkcgMS4xLy9FTicgICdodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQnPgo8c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEwMDAgMTAwMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMWUzIDFlMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1ldGFkYXRhPiBTdmcgVmVjdG9yIEljb25zIDogaHR0cDovL3d3dy5vbmxpbmV3ZWJmb250cy5jb20vaWNvbiA8L21ldGFkYXRhPgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUxMSkgc2NhbGUoLjEgLS4xKSI+PHBhdGggZD0ibTEwMCAyNzk3LjF2LTIyMTIuOWg0NDI1Ljh2NDQyNS44aC00NDI1Ljh2LTIyMTIuOXptMzQ3Ny40IDB2LTEyNjQuNWgtMjUyOXYyNTI5aDI1Mjl2LTEyNjQuNXoiLz48cGF0aCBkPSJtMTY4MC42IDI3OTcuMXYtNjMyLjNoMTI2NC42djEyNjQuNmgtMTI2NC42di02MzIuM3oiLz48cGF0aCBkPSJtNTQ3NC4yIDI3OTcuMXYtMjIxMi45aDQ0MjUuOHY0NDI1LjhoLTQ0MjUuOHYtMjIxMi45em0zNDc3LjQgMHYtMTI2NC41aC0yNTI5djI1MjloMjUyOXYtMTI2NC41eiIvPjxwYXRoIGQ9Im03MDU0LjggMjc5Ny4xdi02MzIuM2gxMjY0LjZ2MTI2NC42aC0xMjY0LjZ2LTYzMi4zeiIvPjxwYXRoIGQ9Im0xMDAtMjU3Ny4xdi0yMjEyLjloNDQyNS44djQ0MjUuOGgtNDQyNS44di0yMjEyLjl6bTM0NzcuNCAwdi0xMjY0LjVoLTI1Mjl2MjUyOWgyNTI5di0xMjY0LjV6Ii8+PHBhdGggZD0ibTE2ODAuNi0yNTc3LjF2LTYzMi4zaDEyNjQuNnYxMjY0LjZoLTEyNjQuNnYtNjMyLjN6Ii8+PHBhdGggZD0ibTU0NzQuMi05MTcuNHYtNTUzLjJoMTEwNi40di0xMTA2LjRoLTExMDYuNHYtMTEwNi40aDExMDYuNHYtMTEwNi42aDExMDYuNHYxMTA2LjRoMTEwNi40di0xMTA2LjRoMTEwNi42djExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aC0xMTA2LjR2MTEwNi40aC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgtMTEwNi40di01NTN6bTMzMTkuMy0xMTA2LjV2LTU1My4yaC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aDExMDYuNHYtNTUzLjJ6Ii8+PC9nPgo8L3N2Zz4K"})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Scan QR code")))),f&&vk.createElement("div",{className:"PaddingBottomXS TooltipWrapper"},vk.createElement("button",{onClick:function(){var t=new II[e.platform.copyLink];t.connect({name:e.wallet.name,logo:e.wallet.logo,reconnect:!0,connect:function(e){!function(e,t){if("undefined"==typeof document)return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);n.select();let i=!1;try{i=!!document.execCommand("copy")}catch(e){i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}(e.uri),L(!0),setTimeout((function(){return L(!1)}),3e3)}}).then((function(n){e.resolve(n,t)}))},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Copy connection link",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiMwMTAxMDEiIGQ9Ik00NTkuNjU0LDIzMy4zNzNsLTkwLjUzMSw5MC41Yy00OS45NjksNTAtMTMxLjAzMSw1MC0xODEsMGMtNy44NzUtNy44NDQtMTQuMDMxLTE2LjY4OC0xOS40MzgtMjUuODEzDQoJbDQyLjA2My00Mi4wNjNjMi0yLjAxNiw0LjQ2OS0zLjE3Miw2LjgyOC00LjUzMWMyLjkwNiw5LjkzOCw3Ljk4NCwxOS4zNDQsMTUuNzk3LDI3LjE1NmMyNC45NTMsMjQuOTY5LDY1LjU2MywyNC45MzgsOTAuNSwwDQoJbDkwLjUtOTAuNWMyNC45NjktMjQuOTY5LDI0Ljk2OS02NS41NjMsMC05MC41MTZjLTI0LjkzOC0yNC45NTMtNjUuNTMxLTI0Ljk1My05MC41LDBsLTMyLjE4OCwzMi4yMTkNCgljLTI2LjEwOS0xMC4xNzItNTQuMjUtMTIuOTA2LTgxLjY0MS04Ljg5MWw2OC41NzgtNjguNTc4YzUwLTQ5Ljk4NCwxMzEuMDMxLTQ5Ljk4NCwxODEuMDMxLDANCglDNTA5LjYyMywxMDIuMzQyLDUwOS42MjMsMTgzLjM4OSw0NTkuNjU0LDIzMy4zNzN6IE0yMjAuMzI2LDM4Mi4xODZsLTMyLjIwMywzMi4yMTljLTI0Ljk1MywyNC45MzgtNjUuNTYzLDI0LjkzOC05MC41MTYsMA0KCWMtMjQuOTUzLTI0Ljk2OS0yNC45NTMtNjUuNTYzLDAtOTAuNTMxbDkwLjUxNi05MC41YzI0Ljk2OS0yNC45NjksNjUuNTQ3LTI0Ljk2OSw5MC41LDBjNy43OTcsNy43OTcsMTIuODc1LDE3LjIwMywxNS44MTMsMjcuMTI1DQoJYzIuMzc1LTEuMzc1LDQuODEzLTIuNSw2LjgxMy00LjVsNDIuMDYzLTQyLjA0N2MtNS4zNzUtOS4xNTYtMTEuNTYzLTE3Ljk2OS0xOS40MzgtMjUuODI4Yy00OS45NjktNDkuOTg0LTEzMS4wMzEtNDkuOTg0LTE4MS4wMTYsMA0KCWwtOTAuNSw5MC41Yy00OS45ODQsNTAtNDkuOTg0LDEzMS4wMzEsMCwxODEuMDMxYzQ5Ljk4NCw0OS45NjksMTMxLjAzMSw0OS45NjksMTgxLjAxNiwwbDY4LjU5NC02OC41OTQNCglDMjc0LjU2MSwzOTUuMDkyLDI0Ni40MiwzOTIuMzQyLDIyMC4zMjYsMzgyLjE4NnoiLz4NCjwvc3ZnPg0K"})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Copy connection link"))),k&&vk.createElement("div",{className:"Tooltip absolute top"},vk.createElement("span",{className:"TooltipArrowDown"}),"Connection link copied"))))})},JF=function(){return navigator.userAgent.toLowerCase().includes("android")},XF=function(e){var t,n;if(YF()){if(JF())t=null===(n=e.mobile)||void 0===n?void 0:n.android;else if(Boolean(/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)){var r;t=null===(r=e.mobile)||void 0===r?void 0:r.ios}}else t=e.desktop;return t},KF=function(){return vk.createElement("div",{className:"PoweredByWrapper"},vk.createElement("a",{href:"https://depay.com",rel:"noopener noreferrer",target:"_blank",className:"PoweredByLink"},"by DePay"))};function $F(e){var t=function(e,t){if("object"!==CI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CI(t)?t:String(t)}function eH(e,t,n){return(t=$F(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tH=function(e){var t=PI(vk.useState(0),2),n=t[0],r=t[1];return vk.useEffect((function(){var t=function(){r(n+1),0!=n&&e.hide()};return window.addEventListener("click",t),function(){window.removeEventListener("click",t)}}),[e.open,n]),vk.createElement("div",{className:"DropDown ".concat(e.open?"open":"")},vk.createElement("ul",null,e.items.map((function(e,t){return vk.createElement("li",{key:t},vk.createElement("button",{className:"DropDownItem",onClick:function(){return e.action()}},e.label))}))))},nH=function(e){return vk.createElement("svg",{className:"MenuIcon Icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"},vk.createElement("line",{x1:"11.6",y1:"17.6",x2:"11.6",y2:"17.6"}),vk.createElement("line",{x1:"11.6",y1:"11.8",x2:"11.6",y2:"11.8"}),vk.createElement("line",{x1:"11.6",y1:"6.2",x2:"11.6",y2:"6.2"}))};function rH(e){return Array.isArray?Array.isArray(e):"[object Array]"===hH(e)}const iH=1/0;function oH(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-iH?"-0":t}(e)}function aH(e){return"string"==typeof e}function sH(e){return"number"==typeof e}function uH(e){return!0===e||!1===e||function(e){return cH(e)&&null!==e}(e)&&"[object Boolean]"==hH(e)}function cH(e){return"object"==typeof e}function lH(e){return null!=e}function dH(e){return!e.trim().length}function hH(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const pH=e=>`Missing ${e} property in key`,fH=e=>`Property 'weight' in key '${e}' must be a positive integer`,yH=Object.prototype.hasOwnProperty;class mH{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=gH(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function gH(e){let t=null,n=null,r=null,i=1,o=null;if(aH(e)||rH(e))r=e,t=vH(e),n=bH(e);else{if(!yH.call(e,"name"))throw new Error(pH("name"));const a=e.name;if(r=a,yH.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(fH(a));t=vH(a),n=bH(a),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function vH(e){return rH(e)?e:e.split(".")}function bH(e){return rH(e)?e.join("."):e}const wH={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const i=(e,t,o)=>{if(lH(e))if(t[o]){const a=e[t[o]];if(!lH(a))return;if(o===t.length-1&&(aH(a)||sH(a)||uH(a)))n.push(oH(a));else if(rH(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)i(a[e],t,o+1)}else t.length&&i(a,t,o+1)}else n.push(e)};return i(e,aH(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var MH={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...wH};const AH=/[^ ]+/g;class EH{constructor({getFn:e=MH.getFn,fieldNormWeight:t=MH.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const i=t.match(AH).length;if(n.has(i))return n.get(i);const o=1/Math.pow(i,.5*e),a=parseFloat(Math.round(o*r)/r);return n.set(i,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,aH(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();aH(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!lH(e)||dH(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(lH(i))if(rH(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(lH(r))if(aH(r)&&!dH(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else rH(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(aH(i)&&!dH(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function TH(e,t,{getFn:n=MH.getFn,fieldNormWeight:r=MH.fieldNormWeight}={}){const i=new EH({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(gH)),i.setSources(t),i.create(),i}function NH(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=MH.distance,ignoreLocation:o=MH.ignoreLocation}={}){const a=t/e.length;if(o)return a;const s=Math.abs(r-n);return i?a+s/i:s?1:a}const IH=32;function kH(e,t,n,{location:r=MH.location,distance:i=MH.distance,threshold:o=MH.threshold,findAllMatches:a=MH.findAllMatches,minMatchCharLength:s=MH.minMatchCharLength,includeMatches:u=MH.includeMatches,ignoreLocation:c=MH.ignoreLocation}={}){if(t.length>IH)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(IH));const l=t.length,d=e.length,h=Math.max(0,Math.min(r,d));let p=o,f=h;const y=s>1||u,m=y?Array(d):[];let g;for(;(g=e.indexOf(t,f))>-1;){let e=NH(t,{currentLocation:g,expectedLocation:h,distance:i,ignoreLocation:c});if(p=Math.min(e,p),f=g+l,y){let e=0;for(;e<l;)m[g+e]=1,e+=1}}f=-1;let v=[],b=1,w=l+d;const M=1<<l-1;for(let r=0;r<l;r+=1){let o=0,s=w;for(;o<s;){NH(t,{errors:r,currentLocation:h+s,expectedLocation:h,distance:i,ignoreLocation:c})<=p?o=s:w=s,s=Math.floor((w-o)/2+o)}w=s;let u=Math.max(1,h-s+1),g=a?d:Math.min(h+s,d)+l,A=Array(g+2);A[g+1]=(1<<r)-1;for(let o=g;o>=u;o-=1){let a=o-1,s=n[e.charAt(a)];if(y&&(m[a]=+!!s),A[o]=(A[o+1]<<1|1)&s,r&&(A[o]|=(v[o+1]|v[o])<<1|1|v[o+1]),A[o]&M&&(b=NH(t,{errors:r,currentLocation:a,expectedLocation:h,distance:i,ignoreLocation:c}),b<=p)){if(p=b,f=a,f<=h)break;u=Math.max(1,2*h-f)}}if(NH(t,{errors:r+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:c})>p)break;v=A}const A={isMatch:f>=0,score:Math.max(.001,b)};if(y){const e=function(e=[],t=MH.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){let a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(m,s);e.length?u&&(A.indices=e):A.isMatch=!1}return A}function LH(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}class xH{constructor(e,{location:t=MH.location,threshold:n=MH.threshold,distance:r=MH.distance,includeMatches:i=MH.includeMatches,findAllMatches:o=MH.findAllMatches,minMatchCharLength:a=MH.minMatchCharLength,isCaseSensitive:s=MH.isCaseSensitive,ignoreLocation:u=MH.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:u},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:LH(e),startIndex:t})},l=this.pattern.length;if(l>IH){let e=0;const t=l%IH,n=l-t;for(;e<n;)c(this.pattern.substr(e,IH),e),e+=IH;if(t){const e=l-IH;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,ignoreLocation:u}=this.options;let c=[],l=0,d=!1;this.chunks.forEach((({pattern:t,alphabet:h,startIndex:p})=>{const{isMatch:f,score:y,indices:m}=kH(e,t,h,{location:r+p,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:u});f&&(d=!0),l+=y,f&&m&&(c=[...c,...m])}));let h={isMatch:d,score:d?l/this.chunks.length:1};return d&&n&&(h.indices=c),h}}class SH{constructor(e){this.pattern=e}static isMultiMatch(e){return jH(e,this.multiRegex)}static isSingleMatch(e){return jH(e,this.singleRegex)}search(){}}function jH(e,t){const n=e.match(t);return n?n[1]:null}class CH extends SH{constructor(e,{location:t=MH.location,threshold:n=MH.threshold,distance:r=MH.distance,includeMatches:i=MH.includeMatches,findAllMatches:o=MH.findAllMatches,minMatchCharLength:a=MH.minMatchCharLength,isCaseSensitive:s=MH.isCaseSensitive,ignoreLocation:u=MH.ignoreLocation}={}){super(e),this._bitapSearch=new xH(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class DH extends SH{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const OH=[class extends SH{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},DH,class extends SH{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends SH{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends SH{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends SH{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends SH{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},CH],zH=OH.length,_H=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const PH=new Set([CH.type,DH.type]);class BH{constructor(e,{isCaseSensitive:t=MH.isCaseSensitive,includeMatches:n=MH.includeMatches,minMatchCharLength:r=MH.minMatchCharLength,ignoreLocation:i=MH.ignoreLocation,findAllMatches:o=MH.findAllMatches,location:a=MH.location,threshold:s=MH.threshold,distance:u=MH.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:u},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(_H).filter((e=>e&&!!e.trim())),r=[];for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,a=-1;for(;!o&&++a<zH;){const e=OH[a];let n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(a=-1;++a<zH;){const e=OH[a];let n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],a=0;for(let r=0,s=t.length;r<s;r+=1){const s=t[r];o.length=0,i=0;for(let t=0,r=s.length;t<r;t+=1){const r=s[t],{isMatch:u,indices:c,score:l}=r.search(e);if(!u){a=0,i=0,o.length=0;break}if(i+=1,a+=l,n){const e=r.constructor.type;PH.has(e)?o=[...o,...c]:o.push(c)}}if(i){let e={isMatch:!0,score:a/i};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}}const RH=[];function UH(e,t){for(let n=0,r=RH.length;n<r;n+=1){let r=RH[n];if(r.condition(e,t))return new r(e,t)}return new xH(e,t)}const WH="$and",QH="$or",YH="$path",FH="$val",HH=e=>!(!e[WH]&&!e[QH]),VH=e=>({[WH]:Object.keys(e).map((t=>({[t]:e[t]})))});function GH(e,t,{auto:n=!0}={}){const r=e=>{let i=Object.keys(e);const o=(e=>!!e[YH])(e);if(!o&&i.length>1&&!HH(e))return r(VH(e));if((e=>!rH(e)&&cH(e)&&!HH(e))(e)){const r=o?e[YH]:i[0],a=o?e[FH]:e[r];if(!aH(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:bH(r),pattern:a};return n&&(s.searcher=UH(a,t)),s}let a={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];rH(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return HH(e)||(e=VH(e)),r(e)}function qH(e,t){const n=e.matches;t.matches=[],lH(n)&&n.forEach((e=>{if(!lH(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function ZH(e,t){t.score=e.score}class JH{constructor(e,t={},n){this.options={...MH,...t},this.options.useExtendedSearch,this._keyStore=new mH(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof EH))throw new Error("Incorrect 'index' type");this._myIndex=t||TH(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){lH(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:a}=this.options;let s=aH(e)?aH(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=MH.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),i&&s.sort(o),sH(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=MH.includeMatches,includeScore:r=MH.includeScore}={}){const i=[];return n&&i.push(qH),r&&i.push(ZH),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=UH(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:i})=>{if(!lH(e))return;const{isMatch:o,score:a,indices:s}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:i,indices:s}]})})),r}_searchLogical(e){const t=GH(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}const i=[];for(let o=0,a=e.children.length;o<a;o+=1){const a=e.children[o],s=n(a,t,r);if(s.length)i.push(...s);else if(e.operator===WH)return[]}return i},r=this._myIndex.records,i={},o=[];return r.forEach((({$:e,i:r})=>{if(lH(e)){let a=n(t,e,r);a.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},o.push(i[r])),a.forEach((({matches:e})=>{i[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=UH(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((({$:e,i:r})=>{if(!lH(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&i.push({idx:r,item:e,matches:o})})),i}_findMatches({key:e,value:t,searcher:n}){if(!lH(t))return[];let r=[];if(rH(t))t.forEach((({v:t,i:i,n:o})=>{if(!lH(t))return;const{isMatch:a,score:s,indices:u}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:i,norm:o,indices:u})}));else{const{v:i,n:o}=t,{isMatch:a,score:s,indices:u}=n.searchIn(i);a&&r.push({score:s,key:e,value:i,norm:o,indices:u})}return r}}
149
+ bf((function(e,t){}));var DF=bf((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=CF}));const OF="/Users/sebastian/Work/DePay/react-dialog/src/components/Dialog.jsx";class zF extends vk.Component{constructor(e){super(e),this.handler=this.onKeyDown.bind(this),this.state={open:!0}}closeDialog(){this.props.close()}onKeyDown(e){"Escape"===e.key&&this.closeDialog()}componentDidUpdate(e){!1===this.props.open&&!0===e.open&&this.setState({open:!1})}onClickBackground(e){this.closeDialog()}componentDidMount(){!1===this.props.animate?this.setState({open:!0}):this.setState({open:!1},(()=>{setTimeout((()=>{this.setState({open:!0})}),10)})),this.props.document.addEventListener("keydown",this.handler,!0)}componentWillUnmount(){this.props.document.removeEventListener("keydown",this.handler,!0)}render(){const e=["ReactDialog",this.state.open?"ReactDialogOpen":""],t=`\n .ReactDialog {\n bottom: 0;\n display: flex;\n height: 100%;\n height: 100vh;\n left: 0;\n min-height: 100%;\n min-height: 100vh;\n overflow: hidden;\n position: fixed;\n right: 0;\n top: 0;\n width: 100%;\n width: 100vw;\n }\n\n .ReactDialogInner {\n align-items: center;\n display: flex;\n flex: 1;\n justify-content: center;\n }\n\n .ReactDialogBackground {\n background: ${"object"==typeof(n={background:this.props.background})&&n.background?n.background:"rgba(0,0,0,0.4)"};\n bottom: 0;\n display: block;\n height: 100%;\n left: 0;\n opacity: 0;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.4s ease;\n width: 100%;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogBackground {\n opacity: 1;\n }\n\n .ReactDialogAnimation {\n display: inline-block;\n position: relative;\n opacity: 0;\n top: -17vh;\n transition: opacity 0.4s ease, top 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n opacity: 1.0;\n top: -5vh;\n }\n `;var n;return vk.createElement("div",{key:this.props.dialogKey,className:e.join(" "),__self:this,__source:{fileName:OF,lineNumber:59}},vk.createElement("style",{__self:this,__source:{fileName:OF,lineNumber:60}},t),vk.createElement("div",{className:"ReactDialogInner",__self:this,__source:{fileName:OF,lineNumber:61}},vk.createElement("div",{className:"ReactDialogBackground",onClick:this.onClickBackground.bind(this),__self:this,__source:{fileName:OF,lineNumber:62}}),this.props.children))}}class _F extends vk.Component{constructor(e){super(e),this.state={open:e.open}}componentDidUpdate(e){!1===this.props.open&&!0===e.open?setTimeout((()=>{this.setState({open:!1})}),400):!0===this.props.open&&!1===e.open&&this.setState({open:!0})}render(){let e=this.props.document||document,t=this.props.container||e.body;return this.state.open?DF.createPortal(vk.createElement(zF,{background:this.props.background,close:this.props.close,document:e,open:this.props.open,animate:this.props.animate,__self:this,__source:{fileName:"/Users/sebastian/Work/DePay/react-dialog/src/index.jsx",lineNumber:29}},this.props.children),t):null}}var PF=vk.createContext(),BF=vk.createContext();var RF=vk.createContext();const UF="/Users/sebastian/Work/DePay/react-dialog-stack/src/index.jsx";class WF extends vk.Component{constructor(e){if(super(e),e.setNavigator&&e.setNavigator(this),e.stacked){const t="string"==typeof e.stacked?e.stacked:"forward";this.state={stack:[],animating:!1,animation:null,direction:t,animationSpeed:200},setTimeout((()=>this.navigate(e.start,t)),10)}else this.state={stack:[e.start],animating:!1,animation:null,direction:"forward",animationSpeed:200}}set(e){this.setState({stack:e})}hide(e="forward"){"backward"===e?(this.setState({stack:[null,...this.state.stack]}),setTimeout((()=>this.navigate("back")),10)):this.navigate(null)}navigate(e,t="forward"){if(!(this.state.stack.indexOf(e)>-1))return"back"===e?this.unstack():void this.setState({stack:this.state.stack.concat(e),animating:!0,direction:t,animation:setTimeout(function(){this.setState({animating:!1})}.bind(this),this.state.animationSpeed)})}unstack(){if(this.state.stack.length<=1)return;let e=[...this.state.stack];e.pop(),this.setState({animating:!0,direction:"backward",animation:setTimeout(function(){this.setState({stack:e,animating:!1})}.bind(this),this.state.animationSpeed)})}classForState(e){if(!this.state.animating)return 1===this.state.stack.length||this.state.stack.length===e+1?"active":"inactive"}classForPosition(e){return this.state.stack.length>1?this.state.stack.length===e+1?"forward"===this.state.direction?"next":"previous":this.state.stack.length-1===e+1?"forward"===this.state.direction?"previous":"next":"stale":this.state.animating&&this.props.stacked&&0===e?"next":void 0}classForAnimation(){if(this.state.animating)return"animating"}classForDirection(){return this.state.direction}renderStack(){return this.state.stack.map(function(e,t){let n=[this.classForState(t),this.classForPosition(t),this.classForAnimation(),this.classForDirection()];return vk.createElement("div",{key:t,className:["ReactDialogStack"].concat(n).join(" "),onClick:this.onClick.bind(this),__self:this,__source:{fileName:UF,lineNumber:153}},vk.createElement(BF.Provider,{value:{navigate:this.navigate.bind(this),set:this.set.bind(this),hide:this.hide.bind(this)},__self:this,__source:{fileName:UF,lineNumber:158}},vk.createElement(PF.Provider,{value:this.close.bind(this),__self:this,__source:{fileName:UF,lineNumber:161}},vk.createElement(RF.Provider,{value:this.state.stack,__self:this,__source:{fileName:UF,lineNumber:162}},vk.createElement("div",{className:"ReactDialogAnimation",__self:this,__source:{fileName:UF,lineNumber:163}},this.props.dialogs[e])))))}.bind(this))}onClick(e){e.target&&e.target.className&&e.target.className.match&&e.target.className.match("ReactDialogStack")&&(this.state.stack.length>1?this.unstack():this.close())}close(e){this.state.stack.length>1&&!e?this.unstack():(this.props.close(),setTimeout((()=>this.setState({stack:this.state.stack.slice(0,1)})),400))}render(){return vk.createElement(_F,{close:this.close.bind(this),open:this.props.open,document:this.props.document,container:this.props.container,animate:!this.props.stacked,background:this.props.background,__self:this,__source:{fileName:UF,lineNumber:199}},vk.createElement("style",{__self:this,__source:{fileName:UF,lineNumber:207}},"\n\n .ReactDialogStack {\n align-items: center;\n bottom: 0;\n display: flex;\n flex: 1;\n height: 100%;\n justify-content: center;\n position: absolute;\n top: 0;\n transition: left 0.1s ease, opacity 0.2s ease;\n width: 100%;\n }\n\n .ReactDialogStackRow {\n display: table-row;\n }\n\n .ReactDialogStackCell {\n display: table-cell;\n vertical-align: middle;\n padding: 0 0.6rem;\n }\n\n .ReactDialogStack {\n left: 0;\n opacity: 1;\n }\n\n .ReactDialogStack.inactive {\n display: none;\n }\n\n .ReactDialogStack.animating.stale {\n display: none;\n }\n\n .ReactDialogStack.animating.previous.forward {\n opacity: 0;\n left: -5rem;\n }\n\n .ReactDialogStack.animating.previous.backward {\n opacity: 0;\n left: 5rem;\n }\n\n .ReactDialogStack.animating.next.forward {\n opacity: 0;\n left: 5rem;\n }\n\n .ReactDialogStack.animating.next.backward {\n opacity: 0;\n left: -5rem;\n }\n "),this.renderStack())}}var QF=function(e){var t=vk.useContext(BF).navigate,n=vk.useContext(bk),r=n.close,i=n.closable;return vk.createElement("div",{className:["Dialog",e.className].join(" ")},vk.createElement("div",{className:["DialogHeader",e.stacked?"TextCenter":""].join(" ")},e.stacked&&vk.createElement("div",{className:"DialogHeaderActionLeft PaddingTopS PaddingLeftS PaddingRightS"},vk.createElement("button",{type:"button",onClick:function(){return t("back")},className:"ButtonCircular",title:"Go back"},vk.createElement(SD,null))),i&&!1!==e.closable&&vk.createElement("div",{className:"DialogHeaderActionRight PaddingTopS PaddingLeftS PaddingRightS"},e.alternativeHeaderAction,vk.createElement("button",{type:"button",onClick:r,className:"ButtonCircular",title:"Close dialog"},vk.createElement(jD,null))),e.header),vk.createElement("div",{ref:e.bodyRef,className:["DialogBody",e.bodyClassName].join(" ")},e.body),!1!==e.footer&&vk.createElement("div",{className:"DialogFooter"},e.footer))},YF=function(){return"undefined"!=typeof window&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/.test(navigator.userAgent))},FF=bf((function(e,t){self,e.exports=(()=>{var e={192:(e,t)=>{var n,r,i=function(){var e=function(e,t){var n=e,r=a[t],i=null,o=0,u=null,m=[],g={},b=function(e,t){i=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(o=4*n+17),w(0,0),w(o-7,0),w(0,o-7),A(),M(),T(e,t),n>=7&&E(e),null==u&&(u=I(n,r,m)),N(u,t)},w=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},M=function(){for(var e=8;e<o-8;e+=1)null==i[e][6]&&(i[e][6]=e%2==0);for(var t=8;t<o-8;t+=1)null==i[6][t]&&(i[6][t]=t%2==0)},A=function(){for(var e=s.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var o=e[t],a=e[r];if(null==i[o][a])for(var u=-2;u<=2;u+=1)for(var c=-2;c<=2;c+=1)i[o+u][a+c]=-2==u||2==u||-2==c||2==c||0==u&&0==c}},E=function(e){for(var t=s.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!e&&1==(t>>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},T=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),u=0;u<15;u+=1){var c=!e&&1==(a>>u&1);u<6?i[u][8]=c:u<8?i[u+1][8]=c:i[o-15+u][8]=c}for(u=0;u<15;u+=1)c=!e&&1==(a>>u&1),u<8?i[8][o-u-1]=c:u<9?i[8][15-u-1+1]=c:i[8][15-u-1]=c;i[o-8][8]=!e},N=function(e,t){for(var n=-1,r=o-1,a=7,u=0,c=s.getMaskFunction(t),l=o-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var d=0;d<2;d+=1)if(null==i[r][l-d]){var h=!1;u<e.length&&(h=1==(e[u]>>>a&1)),c(r,l-d)&&(h=!h),i[r][l-d]=h,-1==(a-=1)&&(u+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},I=function(e,t,n){for(var r=l.getRSBlocks(e,t),i=d(),o=0;o<n.length;o+=1){var a=n[o];i.put(a.getMode(),4),i.put(a.getLength(),s.getLengthInBits(a.getMode(),e)),a.write(i)}var u=0;for(o=0;o<r.length;o+=1)u+=r[o].dataCount;if(i.getLengthInBits()>8*u)throw"code length overflow. ("+i.getLengthInBits()+">"+8*u+")";for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(236,8),i.getLengthInBits()>=8*u));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),u=0;u<t.length;u+=1){var l=t[u].dataCount,d=t[u].totalCount-l;r=Math.max(r,l),i=Math.max(i,d),o[u]=new Array(l);for(var h=0;h<o[u].length;h+=1)o[u][h]=255&e.getBuffer()[h+n];n+=l;var p=s.getErrorCorrectPolynomial(d),f=c(o[u],p.getLength()-1).mod(p);for(a[u]=new Array(p.getLength()-1),h=0;h<a[u].length;h+=1){var y=h+f.getLength()-a[u].length;a[u][h]=y>=0?f.getAt(y):0}}var m=0;for(h=0;h<t.length;h+=1)m+=t[h].totalCount;var g=new Array(m),v=0;for(h=0;h<r;h+=1)for(u=0;u<t.length;u+=1)h<o[u].length&&(g[v]=o[u][h],v+=1);for(h=0;h<i;h+=1)for(u=0;u<t.length;u+=1)h<a[u].length&&(g[v]=a[u][h],v+=1);return g}(i,r)};g.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=h(e);break;case"Alphanumeric":n=p(e);break;case"Byte":n=f(e);break;case"Kanji":n=y(e);break;default:throw"mode:"+t}m.push(n),u=null},g.isDark=function(e,t){if(e<0||o<=e||t<0||o<=t)throw e+","+t;return i[e][t]},g.getModuleCount=function(){return o},g.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=l.getRSBlocks(e,r),i=d(),o=0;o<m.length;o++){var a=m[o];i.put(a.getMode(),4),i.put(a.getLength(),s.getLengthInBits(a.getMode(),e)),a.write(i)}var u=0;for(o=0;o<t.length;o++)u+=t[o].dataCount;if(i.getLengthInBits()<=8*u)break}n=e}b(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){b(!0,n);var r=s.getLostPoint(g);(0==n||e>r)&&(e=r,t=n)}return t}())},g.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<g.getModuleCount();r+=1){n+="<tr>";for(var i=0;i<g.getModuleCount();i+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=g.isDark(r,i)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},g.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,u,c=g.getModuleCount()*e+2*t,l="";for(u="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",l+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',l+=i.scalable?"":' width="'+c+'px" height="'+c+'px"',l+=' viewBox="0 0 '+c+" "+c+'" ',l+=' preserveAspectRatio="xMinYMin meet"',l+=r.text||n.text?' role="img" aria-labelledby="'+k([r.id,n.id].join(" ").trim())+'"':"",l+=">",l+=r.text?'<title id="'+k(r.id)+'">'+k(r.text)+"</title>":"",l+=n.text?'<description id="'+k(n.id)+'">'+k(n.text)+"</description>":"",l+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',l+='<path d="',a=0;a<g.getModuleCount();a+=1)for(s=a*e+t,o=0;o<g.getModuleCount();o+=1)g.isDark(a,o)&&(l+="M"+(o*e+t)+","+s+u);return(l+='" stroke="transparent" fill="black"/>')+"</svg>"},g.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=g.getModuleCount()*e+2*t,r=t,i=n-t;return v(n,n,(function(t,n){if(r<=t&&t<i&&r<=n&&n<i){var o=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return g.isDark(a,o)?0:1}return 1}))},g.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=g.getModuleCount()*e+2*t,i="";return i+="<img",i+=' src="',i+=g.createDataURL(e,t),i+='"',i+=' width="',i+=r,i+='"',i+=' height="',i+=r,i+='"',n&&(i+=' alt="',i+=k(n),i+='"'),i+"/>"};var k=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return g.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*g.getModuleCount()+2*e,s=e,u=a-e,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},l={"██":"▀","█ ":"▀"," █":" "," ":" "},d="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),i=Math.floor((t+1-s)/1),n=0;n<a;n+=1)o="█",s<=n&&n<u&&s<=t&&t<u&&g.isDark(r,Math.floor((n-s)/1))&&(o=" "),s<=n&&n<u&&s<=t+1&&t+1<u&&g.isDark(i,Math.floor((n-s)/1))?o+=" ":o+="█",d+=e<1&&t+1>=u?l[o]:c[o];d+="\n"}return a%2&&e>0?d.substring(0,d.length-a-1)+Array(a+1).join("▀"):d.substring(0,d.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=g.getModuleCount()*e+2*t,s=t,u=a-t,c=Array(e+1).join("██"),l=Array(e+1).join(" "),d="",h="";for(n=0;n<a;n+=1){for(i=Math.floor((n-s)/e),h="",r=0;r<a;r+=1)o=1,s<=r&&r<u&&s<=n&&n<u&&g.isDark(i,Math.floor((r-s)/e))&&(o=0),h+=o?c:l;for(i=0;i<e;i+=1)d+=h+"\n"}return d.substring(0,d.length-1)},g.renderTo2dContext=function(e,t){t=t||2;for(var n=g.getModuleCount(),r=0;r<n;r++)for(var i=0;i<n;i++)e.fillStyle=g.isDark(r,i)?"black":"white",e.fillRect(r*t,i*t,t,t)},g};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=g(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},i=0,o={};;){var a=n.read();if(-1==a)break;var s=r(),u=r()<<8|r();o[String.fromCharCode(a<<8|s)]=u,i+=1}if(i!=t)throw i+" != "+t;return o}(),r="?".charCodeAt(0);return function(e){for(var t=[],i=0;i<e.length;i+=1){var o=e.charCodeAt(i);if(o<128)t.push(o);else{var a=n[e.charAt(i)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<<o(t)-o(n);return 21522^(e<<10|t)},i.getBCHTypeNumber=function(e){for(var t=e<<12;o(t)-o(r)>=0;)t^=r<<o(t)-o(r);return e<<12|t},i.getPatternPosition=function(e){return t[e-1]},i.getMaskFunction=function(e){switch(e){case 0:return function(e,t){return(e+t)%2==0};case 1:return function(e,t){return e%2==0};case 2:return function(e,t){return t%3==0};case 3:return function(e,t){return(e+t)%3==0};case 4:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case 5:return function(e,t){return e*t%2+e*t%3==0};case 6:return function(e,t){return(e*t%2+e*t%3)%2==0};case 7:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},i.getErrorCorrectPolynomial=function(e){for(var t=c([1],0),n=0;n<e;n+=1)t=t.multiply(c([1,u.gexp(n)],0));return t},i.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+e}}},i.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var i=0;i<t;i+=1){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var u=-1;u<=1;u+=1)i+u<0||t<=i+u||0==s&&0==u||a==e.isDark(r+s,i+u)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<t-1;r+=1)for(i=0;i<t-1;i+=1){var c=0;e.isDark(r,i)&&(c+=1),e.isDark(r+1,i)&&(c+=1),e.isDark(r,i+1)&&(c+=1),e.isDark(r+1,i+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(i=0;i<t-6;i+=1)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i+=1)for(r=0;r<t-6;r+=1)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var l=0;for(i=0;i<t;i+=1)for(r=0;r<t;r+=1)e.isDark(r,i)&&(l+=1);return n+Math.abs(100*l/t/t-50)/5*10},i),u=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;return{glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}}}();function c(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),i=0;i<e.length-n;i+=1)r[i]=e[i+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var i=0;i<e.getLength();i+=1)t[n+i]^=u.gexp(u.glog(r.getAt(n))+u.glog(e.getAt(i)));return c(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=u.glog(r.getAt(0))-u.glog(e.getAt(0)),n=new Array(r.getLength()),i=0;i<r.getLength();i+=1)n[i]=r.getAt(i);for(i=0;i<e.getLength();i+=1)n[i]^=u.gexp(u.glog(e.getAt(i))+t);return c(n,0).mod(e)}};return r}var l=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={getRSBlocks:function(n,r){var i=function(t,n){switch(n){case a.L:return e[4*(t-1)+0];case a.M:return e[4*(t-1)+1];case a.Q:return e[4*(t-1)+2];case a.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===i)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var o=i.length/3,s=[],u=0;u<o;u+=1)for(var c=i[3*u+0],l=i[3*u+1],d=i[3*u+2],h=0;h<c;h+=1)s.push(t(l,d));return s}};return n}(),d=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},h=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2<n.length;)e.put(r(n.substring(i,i+3)),10),i+=3;i<n.length&&(n.length-i==1?e.put(r(n.substring(i,i+1)),4):n.length-i==2&&e.put(r(n.substring(i,i+2)),7))}},r=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return n},p=function(e){var t=e,n={getMode:function(){return 2},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+1<n.length;)e.put(45*r(n.charAt(i))+r(n.charAt(i+1)),11),i+=2;i<n.length&&e.put(r(n.charAt(i)),6)}},r=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return n},f=function(t){var n=e.stringToBytes(t);return{getMode:function(){return 4},getLength:function(e){return n.length},write:function(e){for(var t=0;t<n.length;t+=1)e.put(n[t],8)}}},y=function(t){var n=e.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(e,t){var r=n("友");if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=n(t);return{getMode:function(){return 8},getLength:function(e){return~~(r.length/2)},write:function(e){for(var t=r,n=0;n+1<t.length;){var i=(255&t[n])<<8|255&t[n+1];if(33088<=i&&i<=40956)i-=33088;else{if(!(57408<=i&&i<=60351))throw"illegal char at "+(n+1)+"/"+i;i-=49472}i=192*(i>>>8&255)+(255&i),e.put(i,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}}},m=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i<r;i+=1)t.writeByte(e[i+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+"]"}};return t},g=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},v=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,o=s(),a=0;a<t;a+=1)o.add(String.fromCharCode(a));o.add(String.fromCharCode(t)),o.add(String.fromCharCode(n));var u,c,l,d=m(),h=(u=d,c=0,l=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)u.writeByte(255&(e<<c|l)),t-=8-c,e>>>=8-c,l=0,c=0;l|=e<<c,c+=t},flush:function(){c>0&&u.writeByte(l)}});h.write(t,r);var p=0,f=String.fromCharCode(i[p]);for(p+=1;p<i.length;){var y=String.fromCharCode(i[p]);p+=1,o.contains(f+y)?f+=y:(h.write(o.indexOf(f),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(f+y)),f=y)}return h.write(o.indexOf(f),r),h.write(n,r),h.flush(),d.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n};return o}(e,t),i=0;i<t;i+=1)for(var o=0;o<e;o+=1)r.setPixel(o,i,n(o,i));var a=m();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",i={},o=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return i.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a<i;a+=1)r+="="},i.toString=function(){return r},i}(),u=a.toByteArray(),c=0;c<u.length;c+=1)s.writeByte(u[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();i.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{n.d(t,{default:()=>D});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},o=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)};function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!t.length)return e;var s=t.shift();return void 0!==s&&o(e)&&o(s)?(e=r({},e),Object.keys(s).forEach((function(t){var n=e[t],r=s[t];Array.isArray(n)&&Array.isArray(r)?e[t]=r:o(n)&&o(r)?e[t]=a(Object.assign({},n),r):e[t]=r})),a.apply(void 0,i([e],t))):e}function s(e,t){var n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function u(e){return t=this,n=void 0,i=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(t){return[2,new Promise((function(t){var n=new XMLHttpRequest;n.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsDataURL(n.response)},n.open("GET",e),n.responseType="blob",n.send()}))]}))},new((r=void 0)||(r=Promise))((function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}u((i=i.apply(t,n||[])).next())}));var t,n,r,i}const c={L:.07,M:.15,Q:.25,H:.3};var l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};const d=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){var i;switch(this._type){case"dots":i=this._drawDot;break;case"classy":i=this._drawClassy;break;case"classy-rounded":i=this._drawClassyRounded;break;case"rounded":i=this._drawRounded;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawSquare}i.call(this,{x:e,y:t,size:n,getNeighbor:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,u=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+u+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(r+n/2)),t._element.setAttribute("cy",String(i+n/2)),t._element.setAttribute("r",String(n/2))}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(r)),t._element.setAttribute("y",String(i)),t._element.setAttribute("width",String(n)),t._element.setAttribute("height",String(n))}}))},e.prototype._basicSideRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},e.prototype._basicCornerRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},e.prototype._basicCornerExtraRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},e.prototype._basicCornersRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(l(l({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+n/2+" "+n/2+"h "+n/2+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size;this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size;this._basicSquare({x:t,y:n,size:r,rotation:0})},e.prototype._drawRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0,c=o+a+s+u;if(0!==c)if(c>2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&u&&(l=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:l})}if(1===c)return l=0,s?l=Math.PI/2:a?l=Math.PI:u&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0,c=o+a+s+u;if(0!==c)if(c>2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&u&&(l=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:l})}if(1===c)return l=0,s?l=Math.PI/2:a?l=Math.PI:u&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};const p=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){var i;switch(this._type){case"square":i=this._drawSquare;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawDot}i.call(this,{x:e,y:t,size:n,rotation:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,u=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+u+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(h(h({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+(r+n/2)+" "+i+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(n/2-o)+" "+(n/2-o)+" 0 1 1 -0.1 0Z")}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(h(h({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"v "+-n+"zM "+(r+o)+" "+(i+o)+"h "+(n-2*o)+"v "+(n-2*o)+"h "+(2*o-n)+"z")}}))},e.prototype._basicExtraRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(h(h({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+r+" "+(i+2.5*o)+"v "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*o+"h "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*-o+"v "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*-o+"h "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*o+"M "+(r+2.5*o)+" "+(i+o)+"h "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*o+"v "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*o+"h "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*-o+"v "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*-o)}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicDot({x:t,y:n,size:r,rotation:i})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicSquare({x:t,y:n,size:r,rotation:i})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicExtraRounded({x:t,y:n,size:r,rotation:i})},e}();var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};const y=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:e,y:t,size:n,rotation:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,u=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+u+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(f(f({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(r+n/2)),t._element.setAttribute("cy",String(i+n/2)),t._element.setAttribute("r",String(n/2))}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(f(f({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(r)),t._element.setAttribute("y",String(i)),t._element.setAttribute("width",String(n)),t._element.setAttribute("height",String(n))}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicDot({x:t,y:n,size:r,rotation:i})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicSquare({x:t,y:n,size:r,rotation:i})},e}(),m="circle";var g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},v=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],w=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const M=function(){function e(e){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(e.width)),this._element.setAttribute("height",String(e.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=e}return Object.defineProperty(e.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),e.prototype.getElement=function(){return this._element},e.prototype.drawQR=function(e){return g(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,l,d,h=this;return v(this,(function(p){switch(p.label){case 0:return t=e.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===m?n/Math.sqrt(2):n,i=Math.floor(r/t),o={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=e,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(p.sent(),!this._image)return[2];a=this._options,s=a.imageOptions,u=a.qrOptions,l=s.imageSize*c[u.errorCorrectionLevel],d=Math.floor(l*t*t),o=function(e){var t=e.originalHeight,n=e.originalWidth,r=e.maxHiddenDots,i=e.maxHiddenAxisDots,o=e.dotSize,a={x:0,y:0},s={x:0,y:0};if(t<=0||n<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var u=t/n;return a.x=Math.floor(Math.sqrt(r/u)),a.x<=0&&(a.x=1),i&&i<a.x&&(a.x=i),a.x%2==0&&a.x--,s.x=a.x*o,a.y=1+2*Math.ceil((a.x*u-1)/2),s.y=Math.round(s.x*u),(a.y*a.x>r||i&&i<a.y)&&(i&&i<a.y?(a.y=i,a.y%2==0&&a.x--):a.y-=2,s.y=a.y*o,a.x=1+2*Math.ceil((a.y/u-1)/2),s.x=Math.round(s.y/u)),{height:s.y,width:s.x,hideYDots:a.y,hideXDots:a.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:d,maxHiddenAxisDots:t-14,dotSize:i}),p.label=2;case 2:return this.drawBackground(),this.drawDots((function(e,n){var r,i,a,s,u,c;return!(h._options.imageOptions.hideBackgroundDots&&e>=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&n>=(t-o.hideYDots)/2&&n<(t+o.hideYDots)/2||(null===(r=b[e])||void 0===r?void 0:r[n])||(null===(i=b[e-t+7])||void 0===i?void 0:i[n])||(null===(a=b[e])||void 0===a?void 0:a[n-t+7])||(null===(s=w[e])||void 0===s?void 0:s[n])||(null===(u=w[e-t+7])||void 0===u?void 0:u[n])||(null===(c=w[e])||void 0===c?void 0:c[n-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:p.sent(),p.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),u=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),u.setAttribute("x",String((i.width-s)/2)),u.setAttribute("y",String((i.height-s)/2)),u.setAttribute("width",String(s)),u.setAttribute("height",String(s)),u.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(u)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===m?a/Math.sqrt(2):a,u=Math.floor(s/o),c=Math.floor((i.width-o*u)/2),l=Math.floor((i.height-o*u)/2),h=new d({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var p=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=f._qr)||void 0===n?void 0:n.isDark(t,i))?(h.draw(c+t*u,l+i*u,u,(function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)})),void(h._element&&f._dotsClipPath&&f._dotsClipPath.appendChild(h._element))):"continue"},a=0;a<o;a++)i(a)},f=this,y=0;y<o;y++)p(y);if(i.shape===m){var g=Math.floor((a/u-o)/2),v=o+2*g,b=c-g*u,w=l-g*u,M=[],A=Math.floor(v/2);for(y=0;y<v;y++){M[y]=[];for(var E=0;E<v;E++)y>=g-1&&y<=v-g&&E>=g-1&&E<=v-g||Math.sqrt((y-A)*(y-A)+(E-A)*(E-A))>A?M[y][E]=0:M[y][E]=this._qr.isDark(E-2*g<0?E:E>=o?E-2*g:E-g,y-2*g<0?y:y>=o?y-2*g:y-g)?1:0}var T=function(e){for(var t=function(t){if(!M[e][t])return"continue";h.draw(b+e*u,w+t*u,u,(function(n,r){var i;return!!(null===(i=M[e+n])||void 0===i?void 0:i[t+r])})),h._element&&N._dotsClipPath&&N._dotsClipPath.appendChild(h._element)},n=0;n<v;n++)t(n)},N=this;for(y=0;y<v;y++)T(y)}},e.prototype.drawCorners=function(){var e=this;if(!this._qr)throw"QR code is not defined";var t=this._element,n=this._options;if(!t)throw"Element code is not defined";var r=this._qr.getModuleCount(),i=Math.min(n.width,n.height)-2*n.margin,o=n.shape===m?i/Math.sqrt(2):i,a=Math.floor(o/r),s=7*a,u=3*a,c=Math.floor((n.width-r*a)/2),l=Math.floor((n.height-r*a)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(t){var i,o,h,f,m,g,v,M,A,E,T,N,I=t[0],k=t[1],L=t[2],x=c+I*a*(r-7),S=l+k*a*(r-7),j=e._dotsClipPath,C=e._dotsClipPath;if(((null===(i=n.cornersSquareOptions)||void 0===i?void 0:i.gradient)||(null===(o=n.cornersSquareOptions)||void 0===o?void 0:o.color))&&((j=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+I+"-"+k),e._defs.appendChild(j),e._cornersSquareClipPath=e._cornersDotClipPath=C=j,e._createColor({options:null===(h=n.cornersSquareOptions)||void 0===h?void 0:h.gradient,color:null===(f=n.cornersSquareOptions)||void 0===f?void 0:f.color,additionalRotation:L,x:x,y:S,height:s,width:s,name:"corners-square-color-"+I+"-"+k})),null===(m=n.cornersSquareOptions)||void 0===m?void 0:m.type){var D=new p({svg:e._element,type:n.cornersSquareOptions.type});D.draw(x,S,s,L),D._element&&j&&j.appendChild(D._element)}else for(var O=new d({svg:e._element,type:n.dotsOptions.type}),z=function(e){for(var t=function(t){if(!(null===(g=b[e])||void 0===g?void 0:g[t]))return"continue";O.draw(x+e*a,S+t*a,a,(function(n,r){var i;return!!(null===(i=b[e+n])||void 0===i?void 0:i[t+r])})),O._element&&j&&j.appendChild(O._element)},n=0;n<b[e].length;n++)t(n)},_=0;_<b.length;_++)z(_);if(((null===(v=n.cornersDotOptions)||void 0===v?void 0:v.gradient)||(null===(M=n.cornersDotOptions)||void 0===M?void 0:M.color))&&((C=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+I+"-"+k),e._defs.appendChild(C),e._cornersDotClipPath=C,e._createColor({options:null===(A=n.cornersDotOptions)||void 0===A?void 0:A.gradient,color:null===(E=n.cornersDotOptions)||void 0===E?void 0:E.color,additionalRotation:L,x:x+2*a,y:S+2*a,height:u,width:u,name:"corners-dot-color-"+I+"-"+k})),null===(T=n.cornersDotOptions)||void 0===T?void 0:T.type){var P=new y({svg:e._element,type:n.cornersDotOptions.type});P.draw(x+2*a,S+2*a,u,L),P._element&&C&&C.appendChild(P._element)}else{O=new d({svg:e._element,type:n.dotsOptions.type});var B=function(e){for(var t=function(t){if(!(null===(N=w[e])||void 0===N?void 0:N[t]))return"continue";O.draw(x+e*a,S+t*a,a,(function(n,r){var i;return!!(null===(i=w[e+n])||void 0===i?void 0:i[t+r])})),O._element&&C&&C.appendChild(O._element)},n=0;n<w[e].length;n++)t(n)};for(_=0;_<w.length;_++)B(_)}}))},e.prototype.loadImage=function(){var e=this;return new Promise((function(t,n){var r=e._options,i=new Image;if(!r.image)return n("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(i.crossOrigin=r.imageOptions.crossOrigin),e._image=i,i.onload=function(){t()},i.src=r.image}))},e.prototype.drawImage=function(e){var t=e.width,n=e.height,r=e.count,i=e.dotSize;return g(this,void 0,void 0,(function(){var e,o,a,s,c,l,d,h,p;return v(this,(function(f){switch(f.label){case 0:return e=this._options,o=Math.floor((e.width-r*i)/2),a=Math.floor((e.height-r*i)/2),s=o+e.imageOptions.margin+(r*i-t)/2,c=a+e.imageOptions.margin+(r*i-n)/2,l=t-2*e.imageOptions.margin,d=n-2*e.imageOptions.margin,(h=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(s)),h.setAttribute("y",String(c)),h.setAttribute("width",l+"px"),h.setAttribute("height",d+"px"),[4,u(e.image||"")];case 1:return p=f.sent(),h.setAttribute("href",p||""),this._element.appendChild(h),[2]}}))}))},e.prototype._createColor=function(e){var t=e.options,n=e.color,r=e.additionalRotation,i=e.x,o=e.y,a=e.height,s=e.width,u=e.name,c=s>a?s:a,l=document.createElementNS("http://www.w3.org/2000/svg","rect");if(l.setAttribute("x",String(i)),l.setAttribute("y",String(o)),l.setAttribute("height",String(a)),l.setAttribute("width",String(s)),l.setAttribute("clip-path","url('#clip-path-"+u+"')"),t){var d;if("radial"===t.type)(d=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",u),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("fx",String(i+s/2)),d.setAttribute("fy",String(o+a/2)),d.setAttribute("cx",String(i+s/2)),d.setAttribute("cy",String(o+a/2)),d.setAttribute("r",String(c/2));else{var h=((t.rotation||0)+r)%(2*Math.PI),p=(h+2*Math.PI)%(2*Math.PI),f=i+s/2,y=o+a/2,m=i+s/2,g=o+a/2;p>=0&&p<=.25*Math.PI||p>1.75*Math.PI&&p<=2*Math.PI?(f-=s/2,y-=a/2*Math.tan(h),m+=s/2,g+=a/2*Math.tan(h)):p>.25*Math.PI&&p<=.75*Math.PI?(y-=a/2,f-=s/2/Math.tan(h),g+=a/2,m+=s/2/Math.tan(h)):p>.75*Math.PI&&p<=1.25*Math.PI?(f+=s/2,y+=a/2*Math.tan(h),m-=s/2,g-=a/2*Math.tan(h)):p>1.25*Math.PI&&p<=1.75*Math.PI&&(y+=a/2,f+=s/2/Math.tan(h),g-=a/2,m-=s/2/Math.tan(h)),(d=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",u),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("x1",String(Math.round(f))),d.setAttribute("y1",String(Math.round(y))),d.setAttribute("x2",String(Math.round(m))),d.setAttribute("y2",String(Math.round(g)))}t.colorStops.forEach((function(e){var t=e.offset,n=e.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",n),d.appendChild(r)})),l.setAttribute("fill","url('#"+u+"')"),this._defs.appendChild(d)}else n&&l.setAttribute("fill",n);this._element.appendChild(l)},e}(),A="canvas";for(var E={},T=0;T<=40;T++)E[T]=T;const N={type:A,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:E[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function k(e){var t=I({},e);if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map((function(e){return I(I({},e),{offset:Number(e.offset)})})),t}function L(e){var t=I({},e);return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions=I(I({},t.imageOptions),{hideBackgroundDots:Boolean(t.imageOptions.hideBackgroundDots),imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)}),t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=I({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=k(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=I({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=k(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=I({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=k(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=I({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=k(t.backgroundOptions.gradient))),t}var x=n(192),S=n.n(x),j=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};const D=function(){function e(e){this._options=e?L(a(N,e)):N,this.update()}return e._clearContainer=function(e){e&&(e.innerHTML="")},e.prototype._setupSvg=function(){var e=this;if(this._qr){var t=new M(this._options);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then((function(){var n;e._svg&&(null===(n=e._extension)||void 0===n||n.call(e,t.getElement(),e._options))}))}},e.prototype._setupCanvas=function(){var e,t=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=null===(e=this._svgDrawingPromise)||void 0===e?void 0:e.then((function(){if(t._svg){var e=t._svg,n=(new XMLSerializer).serializeToString(e),r="data:image/svg+xml;base64,"+btoa(n),i=new Image;return new Promise((function(e){i.onload=function(){var n,r;null===(r=null===(n=t._canvas)||void 0===n?void 0:n.getContext("2d"))||void 0===r||r.drawImage(i,0,0),e()},i.src=r}))}})))},e.prototype._getElement=function(e){return void 0===e&&(e="png"),j(this,void 0,void 0,(function(){return C(this,(function(t){switch(t.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==e.toLowerCase()?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return t.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return t.sent(),[2,this._canvas]}}))}))},e.prototype.update=function(t){e._clearContainer(this._container),this._options=t?L(a(this._options,t)):this._options,this._options.data&&(this._qr=S()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(e){switch(!0){case/^[0-9]*$/.test(e):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(e):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===A?this._setupCanvas():this._setupSvg(),this.append(this._container))},e.prototype.append=function(e){if(e){if("function"!=typeof e.appendChild)throw"Container should be a single DOM node";this._options.type===A?this._canvas&&e.appendChild(this._canvas):this._svg&&e.appendChild(this._svg),this._container=e}},e.prototype.applyExtension=function(e){if(!e)throw"Extension function should be defined.";this._extension=e,this.update()},e.prototype.deleteExtension=function(){this._extension=void 0,this.update()},e.prototype.getRawData=function(e){return void 0===e&&(e="png"),j(this,void 0,void 0,(function(){var t,n,r;return C(this,(function(i){switch(i.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(e)];case 1:return(t=i.sent())?"svg"===e.toLowerCase()?(n=new XMLSerializer,r=n.serializeToString(t),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return t.toBlob(n,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return j(this,void 0,void 0,(function(){var t,n,r,i,o;return C(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='<?xml version="1.0" standalone="no"?>\r\n'+(o=i.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):s(r.toDataURL("image/"+t),n+"."+t),[2]):[2]}}))}))},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default})),HF=vf(FF),VF=bf((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=16,s=32,u=64,c=128,l=256,d=1/0,h=9007199254740991,p=NaN,f=4294967295,y=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",u],["rearg",l]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",M="[object Function]",A="[object GeneratorFunction]",E="[object Map]",T="[object Number]",N="[object Object]",I="[object Promise]",k="[object RegExp]",L="[object Set]",x="[object String]",S="[object Symbol]",j="[object WeakMap]",C="[object ArrayBuffer]",D="[object DataView]",O="[object Float32Array]",z="[object Float64Array]",_="[object Int8Array]",P="[object Int16Array]",B="[object Int32Array]",R="[object Uint8Array]",U="[object Uint8ClampedArray]",W="[object Uint16Array]",Q="[object Uint32Array]",Y=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,q=RegExp(V.source),Z=RegExp(G.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xe="['’]",Se="["+Ae+"]",je="["+Le+"]",Ce="["+Ee+"]",De="\\d+",Oe="["+Te+"]",ze="["+Ne+"]",_e="[^"+Ae+Le+De+Te+Ne+Ie+"]",Pe="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ae+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ie+"]",Qe="\\u200d",Ye="(?:"+ze+"|"+_e+")",Fe="(?:"+We+"|"+_e+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ce+"|"+Pe+")"+"?",qe="["+ke+"]?",Ze=qe+Ge+("(?:"+Qe+"(?:"+[Be,Re,Ue].join("|")+")"+qe+Ge+")*"),Je="(?:"+[Oe,Re,Ue].join("|")+")"+Ze,Xe="(?:"+[Be+Ce+"?",Ce,Re,Ue,Se].join("|")+")",Ke=RegExp(xe,"g"),$e=RegExp(Ce,"g"),et=RegExp(Pe+"(?="+Pe+")|"+Xe+Ze,"g"),tt=RegExp([We+"?"+ze+"+"+He+"(?="+[je,We,"$"].join("|")+")",Fe+"+"+Ve+"(?="+[je,We+Ye,"$"].join("|")+")",We+"?"+Ye+"+"+He,We+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Je].join("|"),"g"),nt=RegExp("["+Qe+Ae+Ee+ke+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[O]=at[z]=at[_]=at[P]=at[B]=at[R]=at[U]=at[W]=at[Q]=!0,at[m]=at[g]=at[C]=at[v]=at[D]=at[b]=at[w]=at[M]=at[E]=at[T]=at[N]=at[k]=at[L]=at[x]=at[j]=!1;var st={};st[m]=st[g]=st[C]=st[D]=st[v]=st[b]=st[O]=st[z]=st[_]=st[P]=st[B]=st[E]=st[T]=st[N]=st[k]=st[L]=st[x]=st[S]=st[R]=st[U]=st[W]=st[Q]=!0,st[w]=st[M]=st[j]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,lt=parseInt,dt="object"==typeof gf&&gf&&gf.Object===Object&&gf,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||ht||Function("return this")(),ft=t&&!t.nodeType&&t,yt=ft&&e&&!e.nodeType&&e,mt=yt&&yt.exports===ft,gt=mt&&dt.process,vt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,wt=vt&&vt.isDate,Mt=vt&&vt.isMap,At=vt&&vt.isRegExp,Et=vt&&vt.isSet,Tt=vt&&vt.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function St(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function jt(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ot(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function zt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function _t(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Ht("length");function Rt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ut(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ut(e,Yt,n)}function Qt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Yt(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:p}function Ht(e){return function(t){return null==t?n:t[e]}}function Vt(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function qt(e,t){for(var r,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==n&&(r=r===n?a:r+a)}return r}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,fn(e)+1).replace(ie,""):e}function Xt(e){return function(t){return e(t)}}function Kt(e,t){return Dt(t,(function(t){return e[t]}))}function $t(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Wt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Wt(t,e[n],0)>-1;);return n}var nn=Vt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function on(e){return"\\"+ut[e]}function an(e){return nt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return an(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Bt(e)}function pn(e){return an(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var yn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var mn=function e(t){var oe,Ae=(t=null==t?pt:mn.defaults(pt.Object(),t,mn.pick(pt,it))).Array,Ee=t.Date,Te=t.Error,Ne=t.Function,Ie=t.Math,ke=t.Object,Le=t.RegExp,xe=t.String,Se=t.TypeError,je=Ae.prototype,Ce=Ne.prototype,De=ke.prototype,Oe=t["__core-js_shared__"],ze=Ce.toString,_e=De.hasOwnProperty,Pe=0,Be=(oe=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Re=De.toString,Ue=ze.call(ke),We=pt._,Qe=Le("^"+ze.call(_e).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=mt?t.Buffer:n,Fe=t.Symbol,He=t.Uint8Array,Ve=Ye?Ye.allocUnsafe:n,Ge=un(ke.getPrototypeOf,ke),qe=ke.create,Ze=De.propertyIsEnumerable,Je=je.splice,Xe=Fe?Fe.isConcatSpreadable:n,et=Fe?Fe.iterator:n,nt=Fe?Fe.toStringTag:n,ut=function(){try{var e=po(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ht=Ee&&Ee.now!==pt.Date.now&&Ee.now,ft=t.setTimeout!==pt.setTimeout&&t.setTimeout,yt=Ie.ceil,gt=Ie.floor,vt=ke.getOwnPropertySymbols,Bt=Ye?Ye.isBuffer:n,Vt=t.isFinite,gn=je.join,vn=un(ke.keys,ke),bn=Ie.max,wn=Ie.min,Mn=Ee.now,An=t.parseInt,En=Ie.random,Tn=je.reverse,Nn=po(t,"DataView"),In=po(t,"Map"),kn=po(t,"Promise"),Ln=po(t,"Set"),xn=po(t,"WeakMap"),Sn=po(ke,"create"),jn=xn&&new xn,Cn={},Dn=Ro(Nn),On=Ro(In),zn=Ro(kn),_n=Ro(Ln),Pn=Ro(xn),Bn=Fe?Fe.prototype:n,Rn=Bn?Bn.valueOf:n,Un=Bn?Bn.toString:n;function Wn(e){if(ns(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof Fn)return e;if(_e.call(e,"__wrapped__"))return Uo(e)}return new Fn(e)}var Qn=function(){function e(){}return function(t){if(!ts(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Yn(){}function Fn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Xn(e,t){var n=Ha(e),r=!n&&Fa(e),i=!n&&!r&&Za(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?Zt(e.length,xe):[],u=s.length;for(var c in e)!t&&!_e.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||wo(c,u))||s.push(c);return s}function Kn(e){var t=e.length;return t?e[Zr(0,t-1)]:n}function $n(e,t){return _o(Si(e),ur(t,0,e.length))}function er(e){return _o(Si(e))}function tr(e,t,r){(r!==n&&!Wa(e[t],r)||r===n&&!(t in e))&&ar(e,t,r)}function nr(e,t,r){var i=e[t];_e.call(e,t)&&Wa(i,r)&&(r!==n||t in e)||ar(e,t,r)}function rr(e,t){for(var n=e.length;n--;)if(Wa(e[n][0],t))return n;return-1}function ir(e,t,n,r){return pr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function or(e,t){return e&&ji(t,Cs(t),e)}function ar(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,i=t.length,o=Ae(i),a=null==e;++r<i;)o[r]=a?n:ks(e,t[r]);return o}function ur(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,i,o,a){var s,u=1&t,c=2&t,l=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!ts(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&_e.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Si(e,s)}else{var h=mo(e),p=h==M||h==A;if(Za(e))return Ti(e,u);if(h==N||h==m||p&&!o){if(s=c||p?{}:vo(e),!u)return c?function(e,t){return ji(e,yo(e),t)}(e,function(e,t){return e&&ji(t,Ds(t),e)}(s,e)):function(e,t){return ji(e,fo(e),t)}(e,or(s,e))}else{if(!st[h])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case C:return Ni(e);case v:case b:return new r(+e);case D:return function(e,t){var n=t?Ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case z:case _:case P:case B:case R:case U:case W:case Q:return Ii(e,n);case E:return new r;case T:case x:return new r(e);case k:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case L:return new r;case S:return i=e,Rn?ke(Rn.call(i)):{}}var i}(e,h,u)}}a||(a=new Jn);var f=a.get(e);if(f)return f;a.set(e,s),ss(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,a))})):rs(e)&&e.forEach((function(n,i){s.set(i,cr(n,t,r,i,e,a))}));var y=d?n:(l?c?oo:io:c?Ds:Cs)(e);return kt(y||e,(function(n,i){y&&(n=e[i=n]),nr(s,i,cr(n,t,r,i,e,a))})),s}function lr(e,t,r){var i=r.length;if(null==e)return!i;for(e=ke(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function dr(e,t,i){if("function"!=typeof e)throw new Se(r);return Co((function(){e.apply(n,i)}),t)}function hr(e,t,n,r){var i=-1,o=jt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Dt(t,Xt(n))),r?(o=Ct,a=!1):t.length>=200&&(o=$t,a=!1,t=new Zn(t));e:for(;++i<s;){var l=e[i],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;u.push(l)}else o(t,d,r)||u.push(l)}return u}Wn.templateSettings={escape:J,evaluate:X,interpolate:K,variable:"",imports:{_:Wn}},Wn.prototype=Yn.prototype,Wn.prototype.constructor=Wn,Fn.prototype=Qn(Yn.prototype),Fn.prototype.constructor=Fn,Hn.prototype=Qn(Yn.prototype),Hn.prototype.constructor=Hn,Vn.prototype.clear=function(){this.__data__=Sn?Sn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Sn){var r=t[e];return r===i?n:r}return _e.call(t,e)?t[e]:n},Vn.prototype.has=function(e){var t=this.__data__;return Sn?t[e]!==n:_e.call(t,e)},Vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sn&&t===n?i:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?n:t[r][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(In||Gn),string:new Vn}},qn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return lo(this,e).get(e)},qn.prototype.has=function(e){return lo(this,e).has(e)},qn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Zn.prototype.add=Zn.prototype.push=function(e){return this.__data__.set(e,i),this},Zn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var pr=Oi(Mr),fr=Oi(Ar,!0);function yr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function mr(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(u===n?s==s&&!cs(s):r(s,u)))var u=s,c=a}return c}function gr(e,t){var n=[];return pr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function vr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?vr(s,t-1,n,r,i):Ot(i,s):r||(i[i.length]=s)}return i}var br=zi(),wr=zi(!0);function Mr(e,t){return e&&br(e,t,Cs)}function Ar(e,t){return e&&wr(e,t,Cs)}function Er(e,t){return St(t,(function(t){return Ka(e[t])}))}function Tr(e,t){for(var r=0,i=(t=wi(t,e)).length;null!=e&&r<i;)e=e[Bo(t[r++])];return r&&r==i?e:n}function Nr(e,t,n){var r=t(e);return Ha(e)?r:Ot(r,n(e))}function Ir(e){return null==e?e===n?"[object Undefined]":"[object Null]":nt&&nt in ke(e)?function(e){var t=_e.call(e,nt),r=e[nt];try{e[nt]=n;var i=!0}catch(e){}var o=Re.call(e);i&&(t?e[nt]=r:delete e[nt]);return o}(e):function(e){return Re.call(e)}(e)}function kr(e,t){return e>t}function Lr(e,t){return null!=e&&_e.call(e,t)}function xr(e,t){return null!=e&&t in ke(e)}function Sr(e,t,r){for(var i=r?Ct:jt,o=e[0].length,a=e.length,s=a,u=Ae(a),c=1/0,l=[];s--;){var d=e[s];s&&t&&(d=Dt(d,Xt(t))),c=wn(d.length,c),u[s]=!r&&(t||o>=120&&d.length>=120)?new Zn(s&&d):n}d=e[0];var h=-1,p=u[0];e:for(;++h<o&&l.length<c;){var f=d[h],y=t?t(f):f;if(f=r||0!==f?f:0,!(p?$t(p,y):i(l,y,r))){for(s=a;--s;){var m=u[s];if(!(m?$t(m,y):i(e[s],y,r)))continue e}p&&p.push(y),l.push(f)}}return l}function jr(e,t,r){var i=null==(e=xo(e,t=wi(t,e)))?e:e[Bo(Xo(t))];return null==i?n:Nt(i,e,r)}function Cr(e){return ns(e)&&Ir(e)==m}function Dr(e,t,r,i,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,r,i,o,a){var s=Ha(e),u=Ha(t),c=s?g:mo(e),l=u?g:mo(t),d=(c=c==m?N:c)==N,h=(l=l==m?N:l)==N,p=c==l;if(p&&Za(e)){if(!Za(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Jn),s||ls(e)?no(e,t,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case v:case b:case T:return Wa(+e,+t);case w:return e.name==t.name&&e.message==t.message;case k:case x:return e==t+"";case E:var s=sn;case L:var u=1&r;if(s||(s=ln),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=no(s(e),s(t),r,i,o,a);return a.delete(e),l;case S:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,c,r,i,o,a);if(!(1&r)){var f=d&&_e.call(e,"__wrapped__"),y=h&&_e.call(t,"__wrapped__");if(f||y){var M=f?e.value():e,A=y?t.value():t;return a||(a=new Jn),o(M,A,r,i,a)}}if(!p)return!1;return a||(a=new Jn),function(e,t,r,i,o,a){var s=1&r,u=io(e),c=u.length,l=io(t),d=l.length;if(c!=d&&!s)return!1;var h=c;for(;h--;){var p=u[h];if(!(s?p in t:_e.call(t,p)))return!1}var f=a.get(e),y=a.get(t);if(f&&y)return f==t&&y==e;var m=!0;a.set(e,t),a.set(t,e);var g=s;for(;++h<c;){var v=e[p=u[h]],b=t[p];if(i)var w=s?i(b,v,p,t,e,a):i(v,b,p,e,t,a);if(!(w===n?v===b||o(v,b,r,i,a):w)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var M=e.constructor,A=t.constructor;M==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof M&&M instanceof M&&"function"==typeof A&&A instanceof A||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,r,i,o,a)}(e,t,r,i,Dr,o))}function Or(e,t,r,i){var o=r.length,a=o,s=!i;if(null==e)return!a;for(e=ke(e);o--;){var u=r[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=r[o])[0],l=e[c],d=u[1];if(s&&u[2]){if(l===n&&!(c in e))return!1}else{var h=new Jn;if(i)var p=i(l,d,c,e,t,h);if(!(p===n?Dr(d,l,3,i,h):p))return!1}}return!0}function zr(e){return!(!ts(e)||(t=e,Be&&Be in t))&&(Ka(e)?Qe:me).test(Ro(e));var t}function _r(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?Ha(e)?Qr(e[0],e[1]):Wr(e):pu(e)}function Pr(e){if(!No(e))return vn(e);var t=[];for(var n in ke(e))_e.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=No(e),n=[];for(var r in e)("constructor"!=r||!t&&_e.call(e,r))&&n.push(r);return n}function Rr(e,t){return e<t}function Ur(e,t){var n=-1,r=Ga(e)?Ae(e.length):[];return pr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Wr(e){var t=ho(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function Qr(e,t){return Ao(e)&&Io(t)?ko(Bo(e),t):function(r){var i=ks(r,e);return i===n&&i===t?Ls(r,e):Dr(t,i,3)}}function Yr(e,t,r,i,o){e!==t&&br(t,(function(a,s){if(o||(o=new Jn),ts(a))!function(e,t,r,i,o,a,s){var u=So(e,r),c=So(t,r),l=s.get(c);if(l)return void tr(e,r,l);var d=a?a(u,c,r+"",e,t,s):n,h=d===n;if(h){var p=Ha(c),f=!p&&Za(c),y=!p&&!f&&ls(c);d=c,p||f||y?Ha(u)?d=u:qa(u)?d=Si(u):f?(h=!1,d=Ti(c,!0)):y?(h=!1,d=Ii(c,!0)):d=[]:os(c)||Fa(c)?(d=u,Fa(u)?d=vs(u):ts(u)&&!Ka(u)||(d=vo(c))):h=!1}h&&(s.set(c,d),o(d,c,i,a,s),s.delete(c));tr(e,r,d)}(e,t,s,r,Yr,i,o);else{var u=i?i(So(e,s),a,s+"",e,t,o):n;u===n&&(u=a),tr(e,s,u)}}),Ds)}function Fr(e,t){var r=e.length;if(r)return wo(t+=t<0?r:0,r)?e[t]:n}function Hr(e,t,n){t=t.length?Dt(t,(function(e){return Ha(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=Dt(t,Xt(co()));var i=Ur(e,(function(e,n,i){var o=Dt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=ki(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Tr(e,a);n(s,a)&&ei(o,wi(a,e),s)}return o}function Gr(e,t,n,r){var i=r?Qt:Wt,o=-1,a=t.length,s=e;for(e===t&&(t=Si(t)),n&&(s=Dt(e,Xt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&Je.call(s,u,1),Je.call(e,u,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;wo(i)?Je.call(e,i,1):hi(e,i)}}return e}function Zr(e,t){return e+gt(En()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Do(Lo(e,t,iu),e+"")}function Kr(e){return Kn(Ws(e))}function $r(e,t){var n=Ws(e);return _o(n,ur(t,0,n.length))}function ei(e,t,r,i){if(!ts(e))return e;for(var o=-1,a=(t=wi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Bo(t[o]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=u[c];(l=i?i(d,c,u):n)===n&&(l=ts(d)?d:wo(t[o+1])?[]:{})}nr(u,c,l),u=u[c]}return e}var ti=jn?function(e,t){return jn.set(e,t),e}:iu,ni=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:iu;function ri(e){return _o(Ws(e))}function ii(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Ae(i);++r<i;)o[r]=e[r+t];return o}function oi(e,t){var n;return pr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return si(e,t,iu,n)}function si(e,t,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,u=null===t,c=cs(t),l=t===n;o<a;){var d=gt((o+a)/2),h=r(e[d]),p=h!==n,f=null===h,y=h==h,m=cs(h);if(s)var g=i||y;else g=l?y&&(i||p):u?y&&p&&(i||!f):c?y&&p&&!f&&(i||!m):!f&&!m&&(i?h<=t:h<t);g?o=d+1:a=d}return wn(a,4294967294)}function ui(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Wa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ci(e){return"number"==typeof e?e:cs(e)?p:+e}function li(e){if("string"==typeof e)return e;if(Ha(e))return Dt(e,li)+"";if(cs(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function di(e,t,n){var r=-1,i=jt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Ct;else if(o>=200){var c=t?null:Ji(e);if(c)return ln(c);a=!1,i=$t,u=new Zn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d==d){for(var h=u.length;h--;)if(u[h]===d)continue e;t&&u.push(d),s.push(l)}else i(u,d,n)||(u!==s&&u.push(d),s.push(l))}return s}function hi(e,t){return null==(e=xo(e,t=wi(t,e)))||delete e[Bo(Xo(t))]}function pi(e,t,n,r){return ei(e,t,n(Tr(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function yi(e,t){var n=e;return n instanceof Hn&&(n=n.value()),zt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function mi(e,t,n){var r=e.length;if(r<2)return r?di(e[0]):[];for(var i=-1,o=Ae(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=hr(o[i]||a,e[s],t,n));return di(vr(o,1),t,n)}function gi(e,t,r){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var u=i<a?t[i]:n;r(s,e[i],u)}return s}function vi(e){return qa(e)?e:[]}function bi(e){return"function"==typeof e?e:iu}function wi(e,t){return Ha(e)?e:Ao(e,t)?[e]:Po(bs(e))}var Mi=Xr;function Ai(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ii(e,t,r)}var Ei=dt||function(e){return pt.clearTimeout(e)};function Ti(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Ni(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ii(e,t){var n=t?Ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=cs(e),s=t!==n,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!l&&e<t||l&&r&&o&&!i&&!a||u&&r&&o||!s&&o||!c)return-1}return 0}function Li(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,u=t.length,c=bn(o-a,0),l=Ae(u+c),d=!r;++s<u;)l[s]=t[s];for(;++i<a;)(d||i<o)&&(l[n[i]]=e[i]);for(;c--;)l[s++]=e[i++];return l}function xi(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,u=-1,c=t.length,l=bn(o-s,0),d=Ae(l+c),h=!r;++i<l;)d[i]=e[i];for(var p=i;++u<c;)d[p+u]=t[u];for(;++a<s;)(h||i<o)&&(d[p+n[a]]=e[i++]);return d}function Si(e,t){var n=-1,r=e.length;for(t||(t=Ae(r));++n<r;)t[n]=e[n];return t}function ji(e,t,r,i){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=i?i(r[u],e[u],u,r,e):n;c===n&&(c=e[u]),o?ar(r,u,c):nr(r,u,c)}return r}function Ci(e,t){return function(n,r){var i=Ha(n)?It:ir,o=t?t():{};return i(n,e,co(r,2),o)}}function Di(e){return Xr((function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&Mo(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=ke(t);++i<o;){var u=r[i];u&&e(t,u,i,a)}return t}))}function Oi(e,t){return function(n,r){if(null==n)return n;if(!Ga(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=ke(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function zi(e){return function(t,n,r){for(var i=-1,o=ke(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function _i(e){return function(t){var r=an(t=bs(t))?pn(t):n,i=r?r[0]:t.charAt(0),o=r?Ai(r,1).join(""):t.slice(1);return i[e]()+o}}function Pi(e){return function(t){return zt(Ks(Fs(t).replace(Ke,"")),e,"")}}function Bi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Qn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ri(e){return function(t,r,i){var o=ke(t);if(!Ga(t)){var a=co(r,3);t=Cs(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,i);return s>-1?o[a?t[s]:s]:n}}function Ui(e){return ro((function(t){var i=t.length,o=i,a=Fn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Se(r);if(a&&!u&&"wrapper"==so(s))var u=new Fn([],!0)}for(o=u?o:i;++o<i;){var c=so(s=t[o]),l="wrapper"==c?ao(s):n;u=l&&Eo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[so(l[0])].apply(u,l[3]):1==s.length&&Eo(s)?u[c]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&Ha(n))return u.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function Wi(e,t,r,i,o,a,s,u,l,d){var h=t&c,p=1&t,f=2&t,y=24&t,m=512&t,g=f?n:Bi(e);return function c(){for(var v=arguments.length,b=Ae(v),w=v;w--;)b[w]=arguments[w];if(y)var M=uo(c),A=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,M);if(i&&(b=Li(b,i,o,y)),a&&(b=xi(b,a,s,y)),v-=A,y&&v<d){var E=cn(b,M);return qi(e,t,Wi,c.placeholder,r,b,E,u,l,d-v)}var T=p?r:this,N=f?T[e]:e;return v=b.length,u?b=function(e,t){var r=e.length,i=wn(t.length,r),o=Si(e);for(;i--;){var a=t[i];e[i]=wo(a,r)?o[a]:n}return e}(b,u):m&&v>1&&b.reverse(),h&&l<v&&(b.length=l),this&&this!==pt&&this instanceof c&&(N=g||Bi(N)),N.apply(T,b)}}function Qi(e,t){return function(n,r){return function(e,t,n,r){return Mr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Yi(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ci(r),i=ci(i)),o=e(r,i)}return o}}function Fi(e){return ro((function(t){return t=Dt(t,Xt(co())),Xr((function(n){var r=this;return e(t,(function(e){return Nt(e,r,n)}))}))}))}function Hi(e,t){var r=(t=t===n?" ":li(t)).length;if(r<2)return r?Jr(t,e):t;var i=Jr(t,yt(e/hn(t)));return an(t)?Ai(pn(i),0,e).join(""):i.slice(0,e)}function Vi(e){return function(t,r,i){return i&&"number"!=typeof i&&Mo(t,r,i)&&(r=i=n),t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n,r){for(var i=-1,o=bn(yt((t-e)/(n||1)),0),a=Ae(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,r,i=i===n?t<r?1:-1:fs(i),e)}}function Gi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function qi(e,t,r,i,o,a,c,l,d,h){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var f=[e,t,o,p?a:n,p?c:n,p?n:a,p?n:c,l,d,h],y=r.apply(n,f);return Eo(e)&&jo(y,f),y.placeholder=i,Oo(y,e,t)}function Zi(e){var t=Ie[e];return function(e,n){if(e=gs(e),(n=null==n?0:wn(ys(n),292))&&Vt(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ji=Ln&&1/ln(new Ln([,-0]))[1]==d?function(e){return new Ln(e)}:cu;function Xi(e){return function(t){var n=mo(t);return n==E?sn(t):n==L?dn(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,i,d,h,p,f,y){var m=2&t;if(!m&&"function"!=typeof e)throw new Se(r);var g=d?d.length:0;if(g||(t&=-97,d=h=n),f=f===n?f:bn(ys(f),0),y=y===n?y:ys(y),g-=h?h.length:0,t&u){var v=d,b=h;d=h=n}var w=m?n:ao(e),M=[e,t,i,d,h,v,b,p,f,y];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=r==c&&8==n||r==c&&n==l&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Li(d,u,t[4]):u,e[4]=d?cn(e[3],o):t[4]}(u=t[5])&&(d=e[5],e[5]=d?xi(d,u,t[6]):u,e[6]=d?cn(e[5],o):t[6]);(u=t[7])&&(e[7]=u);r&c&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,w),e=M[0],t=M[1],i=M[2],d=M[3],h=M[4],!(y=M[9]=M[9]===n?m?0:e.length:bn(M[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==a?function(e,t,r){var i=Bi(e);return function o(){for(var a=arguments.length,s=Ae(a),u=a,c=uo(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:cn(s,c);return(a-=l.length)<r?qi(e,t,Wi,o.placeholder,n,s,l,n,n,r-a):Nt(this&&this!==pt&&this instanceof o?i:e,this,s)}}(e,t,y):t!=s&&33!=t||h.length?Wi.apply(n,M):function(e,t,n,r){var i=1&t,o=Bi(e);return function t(){for(var a=-1,s=arguments.length,u=-1,c=r.length,l=Ae(c+s),d=this&&this!==pt&&this instanceof t?o:e;++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++a];return Nt(d,i?n:this,l)}}(e,t,i,d);else var A=function(e,t,n){var r=1&t,i=Bi(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return Oo((w?ti:jo)(A,M),e,t)}function $i(e,t,r,i){return e===n||Wa(e,De[r])&&!_e.call(i,r)?t:e}function eo(e,t,r,i,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Yr(e,t,n,eo,a),a.delete(t)),e}function to(e){return os(e)?n:e}function no(e,t,r,i,o,a){var s=1&r,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var h=-1,p=!0,f=2&r?new Zn:n;for(a.set(e,t),a.set(t,e);++h<u;){var y=e[h],m=t[h];if(i)var g=s?i(m,y,h,t,e,a):i(y,m,h,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(f){if(!Pt(t,(function(e,t){if(!$t(f,t)&&(y===e||o(y,e,r,i,a)))return f.push(t)}))){p=!1;break}}else if(y!==m&&!o(y,m,r,i,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ro(e){return Do(Lo(e,n,Vo),e+"")}function io(e){return Nr(e,Cs,fo)}function oo(e){return Nr(e,Ds,yo)}var ao=jn?function(e){return jn.get(e)}:cu;function so(e){for(var t=e.name+"",n=Cn[t],r=_e.call(Cn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function uo(e){return(_e.call(Wn,"placeholder")?Wn:e).placeholder}function co(){var e=Wn.iteratee||ou;return e=e===ou?_r:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ho(e){for(var t=Cs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Io(i)]}return t}function po(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return zr(r)?r:n}var fo=vt?function(e){return null==e?[]:(e=ke(e),St(vt(e),(function(t){return Ze.call(e,t)})))}:mu,yo=vt?function(e){for(var t=[];e;)Ot(t,fo(e)),e=Ge(e);return t}:mu,mo=Ir;function go(e,t,n){for(var r=-1,i=(t=wi(t,e)).length,o=!1;++r<i;){var a=Bo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&wo(a,i)&&(Ha(e)||Fa(e))}function vo(e){return"function"!=typeof e.constructor||No(e)?{}:Qn(Ge(e))}function bo(e){return Ha(e)||Fa(e)||!!(Xe&&e&&e[Xe])}function wo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function Mo(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&wo(t,n.length):"string"==r&&t in n)&&Wa(n[t],e)}function Ao(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ee.test(e)||!$.test(e)||null!=t&&e in ke(t))}function Eo(e){var t=so(e),n=Wn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=ao(n);return!!r&&e===r[0]}(Nn&&mo(new Nn(new ArrayBuffer(1)))!=D||In&&mo(new In)!=E||kn&&mo(kn.resolve())!=I||Ln&&mo(new Ln)!=L||xn&&mo(new xn)!=j)&&(mo=function(e){var t=Ir(e),r=t==N?e.constructor:n,i=r?Ro(r):"";if(i)switch(i){case Dn:return D;case On:return E;case zn:return I;case _n:return L;case Pn:return j}return t});var To=Oe?Ka:gu;function No(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Io(e){return e==e&&!ts(e)}function ko(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in ke(r)))}}function Lo(e,t,r){return t=bn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=bn(n.length-t,0),a=Ae(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Ae(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),Nt(e,this,s)}}function xo(e,t){return t.length<2?e:Tr(e,ii(t,0,-1))}function So(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var jo=zo(ti),Co=ft||function(e,t){return pt.setTimeout(e,t)},Do=zo(ni);function Oo(e,t,n){var r=t+"";return Do(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return kt(y,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function zo(e){var t=0,r=0;return function(){var i=Mn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function _o(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var a=Zr(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Po=function(e){var t=za(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,n,r,i){t.push(r?i.replace(de,"$1"):n||e)})),t}));function Bo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ro(e){if(null!=e){try{return ze.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Uo(e){if(e instanceof Hn)return e.clone();var t=new Fn(e.__wrapped__,e.__chain__);return t.__actions__=Si(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Wo=Xr((function(e,t){return qa(e)?hr(e,vr(t,1,qa,!0)):[]})),Qo=Xr((function(e,t){var r=Xo(t);return qa(r)&&(r=n),qa(e)?hr(e,vr(t,1,qa,!0),co(r,2)):[]})),Yo=Xr((function(e,t){var r=Xo(t);return qa(r)&&(r=n),qa(e)?hr(e,vr(t,1,qa,!0),n,r):[]}));function Fo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ys(n);return i<0&&(i=bn(r+i,0)),Ut(e,co(t,3),i)}function Ho(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=ys(r),o=r<0?bn(i+o,0):wn(o,i-1)),Ut(e,co(t,3),o,!0)}function Vo(e){return(null==e?0:e.length)?vr(e,1):[]}function Go(e){return e&&e.length?e[0]:n}var qo=Xr((function(e){var t=Dt(e,vi);return t.length&&t[0]===e[0]?Sr(t):[]})),Zo=Xr((function(e){var t=Xo(e),r=Dt(e,vi);return t===Xo(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Sr(r,co(t,2)):[]})),Jo=Xr((function(e){var t=Xo(e),r=Dt(e,vi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Sr(r,n,t):[]}));function Xo(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ko=Xr($o);function $o(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=ro((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return qr(e,Dt(t,(function(e){return wo(e,n)?+e:e})).sort(ki)),r}));function ta(e){return null==e?e:Tn.call(e)}var na=Xr((function(e){return di(vr(e,1,qa,!0))})),ra=Xr((function(e){var t=Xo(e);return qa(t)&&(t=n),di(vr(e,1,qa,!0),co(t,2))})),ia=Xr((function(e){var t=Xo(e);return t="function"==typeof t?t:n,di(vr(e,1,qa,!0),n,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(qa(e))return t=bn(e.length,t),!0})),Zt(t,(function(t){return Dt(e,Ht(t))}))}function aa(e,t){if(!e||!e.length)return[];var r=oa(e);return null==t?r:Dt(r,(function(e){return Nt(t,n,e)}))}var sa=Xr((function(e,t){return qa(e)?hr(e,t):[]})),ua=Xr((function(e){return mi(St(e,qa))})),ca=Xr((function(e){var t=Xo(e);return qa(t)&&(t=n),mi(St(e,qa),co(t,2))})),la=Xr((function(e){var t=Xo(e);return t="function"==typeof t?t:n,mi(St(e,qa),n,t)})),da=Xr(oa);var ha=Xr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,aa(e,r)}));function pa(e){var t=Wn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ya=ro((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Hn&&wo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:n}),new Fn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ma=Ci((function(e,t,n){_e.call(e,n)?++e[n]:ar(e,n,1)}));var ga=Ri(Fo),va=Ri(Ho);function ba(e,t){return(Ha(e)?kt:pr)(e,co(t,3))}function wa(e,t){return(Ha(e)?Lt:fr)(e,co(t,3))}var Ma=Ci((function(e,t,n){_e.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Aa=Xr((function(e,t,n){var r=-1,i="function"==typeof t,o=Ga(e)?Ae(e.length):[];return pr(e,(function(e){o[++r]=i?Nt(t,e,n):jr(e,t,n)})),o})),Ea=Ci((function(e,t,n){ar(e,n,t)}));function Ta(e,t){return(Ha(e)?Dt:Ur)(e,co(t,3))}var Na=Ci((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ia=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Mo(e,t[0],t[1])?t=[]:n>2&&Mo(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,vr(t,1),[])})),ka=ht||function(){return pt.Date.now()};function La(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ki(e,c,n,n,n,n,t)}function xa(e,t){var i;if("function"!=typeof t)throw new Se(r);return e=ys(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Sa=Xr((function(e,t,n){var r=1;if(n.length){var i=cn(n,uo(Sa));r|=s}return Ki(e,r,t,n,i)})),ja=Xr((function(e,t,n){var r=3;if(n.length){var i=cn(n,uo(ja));r|=s}return Ki(t,r,e,n,i)}));function Ca(e,t,i){var o,a,s,u,c,l,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new Se(r);function y(t){var r=o,i=a;return o=a=n,d=t,u=e.apply(i,r)}function m(e){var r=e-l;return l===n||r>=t||r<0||p&&e-d>=s}function g(){var e=ka();if(m(e))return v(e);c=Co(g,function(e){var n=t-(e-l);return p?wn(n,s-(e-d)):n}(e))}function v(e){return c=n,f&&o?y(e):(o=a=n,u)}function b(){var e=ka(),r=m(e);if(o=arguments,a=this,l=e,r){if(c===n)return function(e){return d=e,c=Co(g,t),h?y(e):u}(l);if(p)return Ei(c),c=Co(g,t),y(l)}return c===n&&(c=Co(g,t)),u}return t=gs(t)||0,ts(i)&&(h=!!i.leading,s=(p="maxWait"in i)?bn(gs(i.maxWait)||0,t):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){c!==n&&Ei(c),d=0,o=l=a=c=n},b.flush=function(){return c===n?u:v(ka())},b}var Da=Xr((function(e,t){return dr(e,1,t)})),Oa=Xr((function(e,t,n){return dr(e,gs(t)||0,n)}));function za(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(za.Cache||qn),n}function _a(e){if("function"!=typeof e)throw new Se(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}za.Cache=qn;var Pa=Mi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Dt(t[0],Xt(co())):Dt(vr(t,1),Xt(co()))).length;return Xr((function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Nt(e,this,r)}))})),Ba=Xr((function(e,t){var r=cn(t,uo(Ba));return Ki(e,s,n,t,r)})),Ra=Xr((function(e,t){var r=cn(t,uo(Ra));return Ki(e,u,n,t,r)})),Ua=ro((function(e,t){return Ki(e,l,n,n,n,t)}));function Wa(e,t){return e===t||e!=e&&t!=t}var Qa=Gi(kr),Ya=Gi((function(e,t){return e>=t})),Fa=Cr(function(){return arguments}())?Cr:function(e){return ns(e)&&_e.call(e,"callee")&&!Ze.call(e,"callee")},Ha=Ae.isArray,Va=bt?Xt(bt):function(e){return ns(e)&&Ir(e)==C};function Ga(e){return null!=e&&es(e.length)&&!Ka(e)}function qa(e){return ns(e)&&Ga(e)}var Za=Bt||gu,Ja=wt?Xt(wt):function(e){return ns(e)&&Ir(e)==b};function Xa(e){if(!ns(e))return!1;var t=Ir(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Ka(e){if(!ts(e))return!1;var t=Ir(e);return t==M||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==ys(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=Mt?Xt(Mt):function(e){return ns(e)&&mo(e)==E};function is(e){return"number"==typeof e||ns(e)&&Ir(e)==T}function os(e){if(!ns(e)||Ir(e)!=N)return!1;var t=Ge(e);if(null===t)return!0;var n=_e.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ze.call(n)==Ue}var as=At?Xt(At):function(e){return ns(e)&&Ir(e)==k};var ss=Et?Xt(Et):function(e){return ns(e)&&mo(e)==L};function us(e){return"string"==typeof e||!Ha(e)&&ns(e)&&Ir(e)==x}function cs(e){return"symbol"==typeof e||ns(e)&&Ir(e)==S}var ls=Tt?Xt(Tt):function(e){return ns(e)&&es(e.length)&&!!at[Ir(e)]};var ds=Gi(Rr),hs=Gi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ga(e))return us(e)?pn(e):Si(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=mo(e);return(t==E?sn:t==L?ln:Ws)(e)}function fs(e){return e?(e=gs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ys(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ur(ys(e),0,f):0}function gs(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ye.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?p:+e}function vs(e){return ji(e,Ds(e))}function bs(e){return null==e?"":li(e)}var ws=Di((function(e,t){if(No(t)||Ga(t))ji(t,Cs(t),e);else for(var n in t)_e.call(t,n)&&nr(e,n,t[n])})),Ms=Di((function(e,t){ji(t,Ds(t),e)})),As=Di((function(e,t,n,r){ji(t,Ds(t),e,r)})),Es=Di((function(e,t,n,r){ji(t,Cs(t),e,r)})),Ts=ro(sr);var Ns=Xr((function(e,t){e=ke(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Mo(t[0],t[1],o)&&(i=1);++r<i;)for(var a=t[r],s=Ds(a),u=-1,c=s.length;++u<c;){var l=s[u],d=e[l];(d===n||Wa(d,De[l])&&!_e.call(e,l))&&(e[l]=a[l])}return e})),Is=Xr((function(e){return e.push(n,eo),Nt(zs,n,e)}));function ks(e,t,r){var i=null==e?n:Tr(e,t);return i===n?r:i}function Ls(e,t){return null!=e&&go(e,t,xr)}var xs=Qi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),e[t]=n}),tu(iu)),Ss=Qi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),_e.call(e,t)?e[t].push(n):e[t]=[n]}),co),js=Xr(jr);function Cs(e){return Ga(e)?Xn(e):Pr(e)}function Ds(e){return Ga(e)?Xn(e,!0):Br(e)}var Os=Di((function(e,t,n){Yr(e,t,n)})),zs=Di((function(e,t,n,r){Yr(e,t,n,r)})),_s=ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=wi(t,e),r||(r=t.length>1),t})),ji(e,oo(e),n),r&&(n=cr(n,7,to));for(var i=t.length;i--;)hi(n,t[i]);return n}));var Ps=ro((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ls(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=Dt(oo(e),(function(e){return[e]}));return t=co(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Rs=Xi(Cs),Us=Xi(Ds);function Ws(e){return null==e?[]:Kt(e,Cs(e))}var Qs=Pi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ys(t):t)}));function Ys(e){return Xs(bs(e).toLowerCase())}function Fs(e){return(e=bs(e))&&e.replace(be,nn).replace($e,"")}var Hs=Pi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Pi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=_i("toLowerCase");var qs=Pi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Zs=Pi((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Js=Pi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=_i("toUpperCase");function Ks(e,t,r){return e=bs(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var $s=Xr((function(e,t){try{return Nt(e,n,t)}catch(e){return Xa(e)?e:new Te(e)}})),eu=ro((function(e,t){return kt(t,(function(t){t=Bo(t),ar(e,t,Sa(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Ui(),ru=Ui(!0);function iu(e){return e}function ou(e){return _r("function"==typeof e?e:cr(e,1))}var au=Xr((function(e,t){return function(n){return jr(n,e,t)}})),su=Xr((function(e,t){return function(n){return jr(e,n,t)}}));function uu(e,t,n){var r=Cs(t),i=Er(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Cs(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Ka(e);return kt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Si(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function cu(){}var lu=Fi(Dt),du=Fi(xt),hu=Fi(Pt);function pu(e){return Ao(e)?Ht(Bo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var fu=Vi(),yu=Vi(!0);function mu(){return[]}function gu(){return!1}var vu=Yi((function(e,t){return e+t}),0),bu=Zi("ceil"),wu=Yi((function(e,t){return e/t}),1),Mu=Zi("floor");var Au,Eu=Yi((function(e,t){return e*t}),1),Tu=Zi("round"),Nu=Yi((function(e,t){return e-t}),0);return Wn.after=function(e,t){if("function"!=typeof t)throw new Se(r);return e=ys(e),function(){if(--e<1)return t.apply(this,arguments)}},Wn.ary=La,Wn.assign=ws,Wn.assignIn=Ms,Wn.assignInWith=As,Wn.assignWith=Es,Wn.at=Ts,Wn.before=xa,Wn.bind=Sa,Wn.bindAll=eu,Wn.bindKey=ja,Wn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Wn.chain=pa,Wn.chunk=function(e,t,r){t=(r?Mo(e,t,r):t===n)?1:bn(ys(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=Ae(yt(i/t));o<i;)s[a++]=ii(e,o,o+=t);return s},Wn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Wn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ae(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Ot(Ha(n)?Si(n):[n],vr(t,1))},Wn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Se(r);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Nt(i[0],this,n))return Nt(i[1],this,n)}}))},Wn.conforms=function(e){return function(e){var t=Cs(e);return function(n){return lr(n,e,t)}}(cr(e,1))},Wn.constant=tu,Wn.countBy=ma,Wn.create=function(e,t){var n=Qn(e);return null==t?n:or(n,t)},Wn.curry=function e(t,r,i){var o=Ki(t,8,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Wn.curryRight=function e(t,r,i){var o=Ki(t,a,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Wn.debounce=Ca,Wn.defaults=Ns,Wn.defaultsDeep=Is,Wn.defer=Da,Wn.delay=Oa,Wn.difference=Wo,Wn.differenceBy=Qo,Wn.differenceWith=Yo,Wn.drop=function(e,t,r){var i=null==e?0:e.length;return i?ii(e,(t=r||t===n?1:ys(t))<0?0:t,i):[]},Wn.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ii(e,0,(t=i-(t=r||t===n?1:ys(t)))<0?0:t):[]},Wn.dropRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!0,!0):[]},Wn.dropWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!0):[]},Wn.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Mo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=ys(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:ys(i))<0&&(i+=o),i=r>i?0:ms(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},Wn.filter=function(e,t){return(Ha(e)?St:gr)(e,co(t,3))},Wn.flatMap=function(e,t){return vr(Ta(e,t),1)},Wn.flatMapDeep=function(e,t){return vr(Ta(e,t),d)},Wn.flatMapDepth=function(e,t,r){return r=r===n?1:ys(r),vr(Ta(e,t),r)},Wn.flatten=Vo,Wn.flattenDeep=function(e){return(null==e?0:e.length)?vr(e,d):[]},Wn.flattenDepth=function(e,t){return(null==e?0:e.length)?vr(e,t=t===n?1:ys(t)):[]},Wn.flip=function(e){return Ki(e,512)},Wn.flow=nu,Wn.flowRight=ru,Wn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Wn.functions=function(e){return null==e?[]:Er(e,Cs(e))},Wn.functionsIn=function(e){return null==e?[]:Er(e,Ds(e))},Wn.groupBy=Ma,Wn.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Wn.intersection=qo,Wn.intersectionBy=Zo,Wn.intersectionWith=Jo,Wn.invert=xs,Wn.invertBy=Ss,Wn.invokeMap=Aa,Wn.iteratee=ou,Wn.keyBy=Ea,Wn.keys=Cs,Wn.keysIn=Ds,Wn.map=Ta,Wn.mapKeys=function(e,t){var n={};return t=co(t,3),Mr(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},Wn.mapValues=function(e,t){var n={};return t=co(t,3),Mr(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},Wn.matches=function(e){return Wr(cr(e,1))},Wn.matchesProperty=function(e,t){return Qr(e,cr(t,1))},Wn.memoize=za,Wn.merge=Os,Wn.mergeWith=zs,Wn.method=au,Wn.methodOf=su,Wn.mixin=uu,Wn.negate=_a,Wn.nthArg=function(e){return e=ys(e),Xr((function(t){return Fr(t,e)}))},Wn.omit=_s,Wn.omitBy=function(e,t){return Bs(e,_a(co(t)))},Wn.once=function(e){return xa(2,e)},Wn.orderBy=function(e,t,r,i){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(r=i?n:r)||(r=null==r?[]:[r]),Hr(e,t,r))},Wn.over=lu,Wn.overArgs=Pa,Wn.overEvery=du,Wn.overSome=hu,Wn.partial=Ba,Wn.partialRight=Ra,Wn.partition=Na,Wn.pick=Ps,Wn.pickBy=Bs,Wn.property=pu,Wn.propertyOf=function(e){return function(t){return null==e?n:Tr(e,t)}},Wn.pull=Ko,Wn.pullAll=$o,Wn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,co(n,2)):e},Wn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Gr(e,t,n,r):e},Wn.pullAt=ea,Wn.range=fu,Wn.rangeRight=yu,Wn.rearg=Ua,Wn.reject=function(e,t){return(Ha(e)?St:gr)(e,_a(co(t,3)))},Wn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=co(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return qr(e,i),n},Wn.rest=function(e,t){if("function"!=typeof e)throw new Se(r);return Xr(e,t=t===n?t:ys(t))},Wn.reverse=ta,Wn.sampleSize=function(e,t,r){return t=(r?Mo(e,t,r):t===n)?1:ys(t),(Ha(e)?$n:$r)(e,t)},Wn.set=function(e,t,n){return null==e?e:ei(e,t,n)},Wn.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:ei(e,t,r,i)},Wn.shuffle=function(e){return(Ha(e)?er:ri)(e)},Wn.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Mo(e,t,r)?(t=0,r=i):(t=null==t?0:ys(t),r=r===n?i:ys(r)),ii(e,t,r)):[]},Wn.sortBy=Ia,Wn.sortedUniq=function(e){return e&&e.length?ui(e):[]},Wn.sortedUniqBy=function(e,t){return e&&e.length?ui(e,co(t,2)):[]},Wn.split=function(e,t,r){return r&&"number"!=typeof r&&Mo(e,t,r)&&(t=r=n),(r=r===n?f:r>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=li(t))&&an(e)?Ai(pn(e),0,r):e.split(t,r):[]},Wn.spread=function(e,t){if("function"!=typeof e)throw new Se(r);return t=null==t?0:bn(ys(t),0),Xr((function(n){var r=n[t],i=Ai(n,0,t);return r&&Ot(i,r),Nt(e,this,i)}))},Wn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Wn.take=function(e,t,r){return e&&e.length?ii(e,0,(t=r||t===n?1:ys(t))<0?0:t):[]},Wn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ii(e,(t=i-(t=r||t===n?1:ys(t)))<0?0:t,i):[]},Wn.takeRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!1,!0):[]},Wn.takeWhile=function(e,t){return e&&e.length?fi(e,co(t,3)):[]},Wn.tap=function(e,t){return t(e),e},Wn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Se(r);return ts(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ca(e,t,{leading:i,maxWait:t,trailing:o})},Wn.thru=fa,Wn.toArray=ps,Wn.toPairs=Rs,Wn.toPairsIn=Us,Wn.toPath=function(e){return Ha(e)?Dt(e,Bo):cs(e)?[e]:Si(Po(bs(e)))},Wn.toPlainObject=vs,Wn.transform=function(e,t,n){var r=Ha(e),i=r||Za(e)||ls(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Ka(o)?Qn(Ge(e)):{}}return(i?kt:Mr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Wn.unary=function(e){return La(e,1)},Wn.union=na,Wn.unionBy=ra,Wn.unionWith=ia,Wn.uniq=function(e){return e&&e.length?di(e):[]},Wn.uniqBy=function(e,t){return e&&e.length?di(e,co(t,2)):[]},Wn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?di(e,n,t):[]},Wn.unset=function(e,t){return null==e||hi(e,t)},Wn.unzip=oa,Wn.unzipWith=aa,Wn.update=function(e,t,n){return null==e?e:pi(e,t,bi(n))},Wn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:pi(e,t,bi(r),i)},Wn.values=Ws,Wn.valuesIn=function(e){return null==e?[]:Kt(e,Ds(e))},Wn.without=sa,Wn.words=Ks,Wn.wrap=function(e,t){return Ba(bi(t),e)},Wn.xor=ua,Wn.xorBy=ca,Wn.xorWith=la,Wn.zip=da,Wn.zipObject=function(e,t){return gi(e||[],t||[],nr)},Wn.zipObjectDeep=function(e,t){return gi(e||[],t||[],ei)},Wn.zipWith=ha,Wn.entries=Rs,Wn.entriesIn=Us,Wn.extend=Ms,Wn.extendWith=As,uu(Wn,Wn),Wn.add=vu,Wn.attempt=$s,Wn.camelCase=Qs,Wn.capitalize=Ys,Wn.ceil=bu,Wn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gs(r))==r?r:0),t!==n&&(t=(t=gs(t))==t?t:0),ur(gs(e),t,r)},Wn.clone=function(e){return cr(e,4)},Wn.cloneDeep=function(e){return cr(e,5)},Wn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Wn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Wn.conformsTo=function(e,t){return null==t||lr(e,t,Cs(t))},Wn.deburr=Fs,Wn.defaultTo=function(e,t){return null==e||e!=e?t:e},Wn.divide=wu,Wn.endsWith=function(e,t,r){e=bs(e),t=li(t);var i=e.length,o=r=r===n?i:ur(ys(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Wn.eq=Wa,Wn.escape=function(e){return(e=bs(e))&&Z.test(e)?e.replace(G,rn):e},Wn.escapeRegExp=function(e){return(e=bs(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Wn.every=function(e,t,r){var i=Ha(e)?xt:yr;return r&&Mo(e,t,r)&&(t=n),i(e,co(t,3))},Wn.find=ga,Wn.findIndex=Fo,Wn.findKey=function(e,t){return Rt(e,co(t,3),Mr)},Wn.findLast=va,Wn.findLastIndex=Ho,Wn.findLastKey=function(e,t){return Rt(e,co(t,3),Ar)},Wn.floor=Mu,Wn.forEach=ba,Wn.forEachRight=wa,Wn.forIn=function(e,t){return null==e?e:br(e,co(t,3),Ds)},Wn.forInRight=function(e,t){return null==e?e:wr(e,co(t,3),Ds)},Wn.forOwn=function(e,t){return e&&Mr(e,co(t,3))},Wn.forOwnRight=function(e,t){return e&&Ar(e,co(t,3))},Wn.get=ks,Wn.gt=Qa,Wn.gte=Ya,Wn.has=function(e,t){return null!=e&&go(e,t,Lr)},Wn.hasIn=Ls,Wn.head=Go,Wn.identity=iu,Wn.includes=function(e,t,n,r){e=Ga(e)?e:Ws(e),n=n&&!r?ys(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Wt(e,t,n)>-1},Wn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ys(n);return i<0&&(i=bn(r+i,0)),Wt(e,t,i)},Wn.inRange=function(e,t,r){return t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n){return e>=wn(t,n)&&e<bn(t,n)}(e=gs(e),t,r)},Wn.invoke=js,Wn.isArguments=Fa,Wn.isArray=Ha,Wn.isArrayBuffer=Va,Wn.isArrayLike=Ga,Wn.isArrayLikeObject=qa,Wn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Ir(e)==v},Wn.isBuffer=Za,Wn.isDate=Ja,Wn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Wn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Za(e)||ls(e)||Fa(e)))return!e.length;var t=mo(e);if(t==E||t==L)return!e.size;if(No(e))return!Pr(e).length;for(var n in e)if(_e.call(e,n))return!1;return!0},Wn.isEqual=function(e,t){return Dr(e,t)},Wn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Dr(e,t,n,r):!!i},Wn.isError=Xa,Wn.isFinite=function(e){return"number"==typeof e&&Vt(e)},Wn.isFunction=Ka,Wn.isInteger=$a,Wn.isLength=es,Wn.isMap=rs,Wn.isMatch=function(e,t){return e===t||Or(e,t,ho(t))},Wn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Or(e,t,ho(t),r)},Wn.isNaN=function(e){return is(e)&&e!=+e},Wn.isNative=function(e){if(To(e))throw new Te("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return zr(e)},Wn.isNil=function(e){return null==e},Wn.isNull=function(e){return null===e},Wn.isNumber=is,Wn.isObject=ts,Wn.isObjectLike=ns,Wn.isPlainObject=os,Wn.isRegExp=as,Wn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=h},Wn.isSet=ss,Wn.isString=us,Wn.isSymbol=cs,Wn.isTypedArray=ls,Wn.isUndefined=function(e){return e===n},Wn.isWeakMap=function(e){return ns(e)&&mo(e)==j},Wn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ir(e)},Wn.join=function(e,t){return null==e?"":gn.call(e,t)},Wn.kebabCase=Hs,Wn.last=Xo,Wn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=ys(r))<0?bn(i+o,0):wn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ut(e,Yt,o,!0)},Wn.lowerCase=Vs,Wn.lowerFirst=Gs,Wn.lt=ds,Wn.lte=hs,Wn.max=function(e){return e&&e.length?mr(e,iu,kr):n},Wn.maxBy=function(e,t){return e&&e.length?mr(e,co(t,2),kr):n},Wn.mean=function(e){return Ft(e,iu)},Wn.meanBy=function(e,t){return Ft(e,co(t,2))},Wn.min=function(e){return e&&e.length?mr(e,iu,Rr):n},Wn.minBy=function(e,t){return e&&e.length?mr(e,co(t,2),Rr):n},Wn.stubArray=mu,Wn.stubFalse=gu,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Eu,Wn.nth=function(e,t){return e&&e.length?Fr(e,ys(t)):n},Wn.noConflict=function(){return pt._===this&&(pt._=We),this},Wn.noop=cu,Wn.now=ka,Wn.pad=function(e,t,n){e=bs(e);var r=(t=ys(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(gt(i),n)+e+Hi(yt(i),n)},Wn.padEnd=function(e,t,n){e=bs(e);var r=(t=ys(t))?hn(e):0;return t&&r<t?e+Hi(t-r,n):e},Wn.padStart=function(e,t,n){e=bs(e);var r=(t=ys(t))?hn(e):0;return t&&r<t?Hi(t-r,n)+e:e},Wn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),An(bs(e).replace(ie,""),t||0)},Wn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Mo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=fs(e),t===n?(t=e,e=0):t=fs(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=En();return wn(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Zr(e,t)},Wn.reduce=function(e,t,n){var r=Ha(e)?zt:Gt,i=arguments.length<3;return r(e,co(t,4),n,i,pr)},Wn.reduceRight=function(e,t,n){var r=Ha(e)?_t:Gt,i=arguments.length<3;return r(e,co(t,4),n,i,fr)},Wn.repeat=function(e,t,r){return t=(r?Mo(e,t,r):t===n)?1:ys(t),Jr(bs(e),t)},Wn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wn.result=function(e,t,r){var i=-1,o=(t=wi(t,e)).length;for(o||(o=1,e=n);++i<o;){var a=null==e?n:e[Bo(t[i])];a===n&&(i=o,a=r),e=Ka(a)?a.call(e):a}return e},Wn.round=Tu,Wn.runInContext=e,Wn.sample=function(e){return(Ha(e)?Kn:Kr)(e)},Wn.size=function(e){if(null==e)return 0;if(Ga(e))return us(e)?hn(e):e.length;var t=mo(e);return t==E||t==L?e.size:Pr(e).length},Wn.snakeCase=qs,Wn.some=function(e,t,r){var i=Ha(e)?Pt:oi;return r&&Mo(e,t,r)&&(t=n),i(e,co(t,3))},Wn.sortedIndex=function(e,t){return ai(e,t)},Wn.sortedIndexBy=function(e,t,n){return si(e,t,co(n,2))},Wn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&Wa(e[r],t))return r}return-1},Wn.sortedLastIndex=function(e,t){return ai(e,t,!0)},Wn.sortedLastIndexBy=function(e,t,n){return si(e,t,co(n,2),!0)},Wn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ai(e,t,!0)-1;if(Wa(e[n],t))return n}return-1},Wn.startCase=Zs,Wn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ur(ys(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Wn.subtract=Nu,Wn.sum=function(e){return e&&e.length?qt(e,iu):0},Wn.sumBy=function(e,t){return e&&e.length?qt(e,co(t,2)):0},Wn.template=function(e,t,r){var i=Wn.templateSettings;r&&Mo(e,t,r)&&(t=n),e=bs(e),t=As({},t,i,$i);var o,a,s=As({},t.imports,i.imports,$i),u=Cs(s),c=Kt(s,u),l=0,d=t.interpolate||we,h="__p += '",p=Le((t.escape||we).source+"|"+d.source+"|"+(d===K?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(p,(function(t,n,r,i,s,u){return r||(r=i),h+=e.slice(l,u).replace(Me,on),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),h+="';\n";var y=_e.call(t,"variable")&&t.variable;if(y){if(le.test(y))throw new Te("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(Y,""):h).replace(F,"$1").replace(H,"$1;"),h="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=$s((function(){return Ne(u,f+"return "+h).apply(n,c)}));if(m.source=h,Xa(m))throw m;return m},Wn.times=function(e,t){if((e=ys(e))<1||e>h)return[];var n=f,r=wn(e,f);t=co(t),e-=f;for(var i=Zt(r,t);++n<e;)t(n);return i},Wn.toFinite=fs,Wn.toInteger=ys,Wn.toLength=ms,Wn.toLower=function(e){return bs(e).toLowerCase()},Wn.toNumber=gs,Wn.toSafeInteger=function(e){return e?ur(ys(e),-9007199254740991,h):0===e?e:0},Wn.toString=bs,Wn.toUpper=function(e){return bs(e).toUpperCase()},Wn.trim=function(e,t,r){if((e=bs(e))&&(r||t===n))return Jt(e);if(!e||!(t=li(t)))return e;var i=pn(e),o=pn(t);return Ai(i,en(i,o),tn(i,o)+1).join("")},Wn.trimEnd=function(e,t,r){if((e=bs(e))&&(r||t===n))return e.slice(0,fn(e)+1);if(!e||!(t=li(t)))return e;var i=pn(e);return Ai(i,0,tn(i,pn(t))+1).join("")},Wn.trimStart=function(e,t,r){if((e=bs(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=li(t)))return e;var i=pn(e);return Ai(i,en(i,pn(t))).join("")},Wn.truncate=function(e,t){var r=30,i="...";if(ts(t)){var o="separator"in t?t.separator:o;r="length"in t?ys(t.length):r,i="omission"in t?li(t.omission):i}var a=(e=bs(e)).length;if(an(e)){var s=pn(e);a=s.length}if(r>=a)return e;var u=r-hn(i);if(u<1)return i;var c=s?Ai(s,0,u).join(""):e.slice(0,u);if(o===n)return c+i;if(s&&(u+=c.length-u),as(o)){if(e.slice(u).search(o)){var l,d=c;for(o.global||(o=Le(o.source,bs(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var h=l.index;c=c.slice(0,h===n?u:h)}}else if(e.indexOf(li(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+i},Wn.unescape=function(e){return(e=bs(e))&&q.test(e)?e.replace(V,yn):e},Wn.uniqueId=function(e){var t=++Pe;return bs(e)+t},Wn.upperCase=Js,Wn.upperFirst=Xs,Wn.each=ba,Wn.eachRight=wa,Wn.first=Go,uu(Wn,(Au={},Mr(Wn,(function(e,t){_e.call(Wn.prototype,t)||(Au[t]=e)})),Au),{chain:!1}),Wn.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Wn[e].placeholder=Wn})),kt(["drop","take"],(function(e,t){Hn.prototype[e]=function(r){r=r===n?1:bn(ys(r),0);var i=this.__filtered__&&!t?new Hn(this):this.clone();return i.__filtered__?i.__takeCount__=wn(r,i.__takeCount__):i.__views__.push({size:wn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(iu)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return jr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(_a(co(e)))},Hn.prototype.slice=function(e,t){e=ys(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ys(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(f)},Mr(Hn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Wn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Wn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Hn,c=s[0],l=u||Ha(t),d=function(e){var t=o.apply(Wn,Ot([e],s));return i&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,p=!!this.__actions__.length,f=a&&!h,y=u&&!p;if(!a&&l){t=y?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:fa,args:[d],thisArg:n}),new Fn(m,h)}return f&&y?e.apply(this,s):(m=this.thru(d),f?i?m.value()[0]:m.value():m)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Wn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),Mr(Hn.prototype,(function(e,t){var n=Wn[t];if(n){var r=n.name+"";_e.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:t,func:n})}})),Cn[Wi(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Si(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Si(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Si(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,d=l.length,h=0,p=wn(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return yi(e,this.__actions__);var f=[];e:for(;u--&&h<p;){for(var y=-1,m=e[c+=t];++y<d;){var g=l[y],v=g.iteratee,b=g.type,w=v(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}f[h++]=m}return f},Wn.prototype.at=ya,Wn.prototype.chain=function(){return pa(this)},Wn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Wn.prototype.next=function(){this.__values__===n&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Wn.prototype.plant=function(e){for(var t,r=this;r instanceof Yn;){var i=Uo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Wn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ta],thisArg:n}),new Fn(t,this.__chain__)}return this.thru(ta)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return yi(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,et&&(Wn.prototype[et]=function(){return this}),Wn}();yt?((yt.exports=mn)._=mn,ft._=mn):pt._=mn}).call(gf)})),GF="_DePayConnectDialogPreviouslyConnectedWallet",qF=function(e){localStorage[GF]=e},ZF=function(e){var t,n,r=vk.useRef(),i=PI(vk.useState(),2),o=i[0],a=i[1],s=PI(vk.useState(),2),u=s[0],c=s[1],l=PI(vk.useState(),2),d=l[0],h=l[1],p=PI(vk.useState(),2),f=p[0],y=p[1],m=PI(vk.useState(),2),g=m[0],v=m[1],b=PI(vk.useState(),2),w=b[0],M=b[1],A=PI(vk.useState(),2);A[0],A[1];var E=PI(vk.useState(!1),2),T=E[0],N=E[1],I=PI(vk.useState(!1),2),k=I[0],L=I[1],x=PI(vk.useState(),2),S=x[0],j=x[1];vk.useContext(BF).navigate;var C=vk.useContext(xD).accept,D=vk.createElement("div",{className:"PaddingTopS PaddingLeftM PaddingRightM"},(null===(t=e.wallet)||void 0===t?void 0:t.logo)&&vk.createElement("div",{className:"PaddingTopXS"},vk.createElement("div",{className:"LineHeightL FontSizeL PaddingTopS"},vk.createElement("span",{className:"CardImage rounded large"},vk.createElement("img",{className:"transparent",src:e.wallet.logo}))))),O=function(){return new HF({width:340,height:340,type:"svg",dotsOptions:{type:"extra-rounded"},cornersSquareOptions:{type:"rounded"},backgroundOptions:{color:"transparent"}})},z=vk.useCallback(VF.debounce((function(){var t,n;if(null!==(t=e.platform)&&void 0!==t&&t.solanaPay&&C&&C.every((function(e){return e.amount})))return e.continueWithSolanaPay();if("function"==typeof e.platform.qr){var r=O();return r.update({data:e.platform.qr()}),void j(r)}switch(null===(n=e.platform)||void 0===n?void 0:n.qr){case"WalletConnectV1":case"WalletConnectV2":if(null==S){localStorage[atob("ZGVwYXk6d2FsbGV0czp3YzI6cHJvamVjdElk")]=atob("YjFmYzJmMDZlYTIxMDdmY2Q5OWM2OGY0MTI3MTQxYWI=");var i=new II[e.platform.qr];i.connect({name:e.wallet.name,logo:e.wallet.logo,reconnect:!0,connect:function(e){var t=e.uri,n=O();n.update({data:t}),j(n)}}).then((function(t){e.resolve(t,i)}))}break;case"WalletLink":var o=new II[e.platform.qr];o.connect({connect:function(e){var t=e.uri,n=O();n.update({data:t}),j(n)}}).then((function(t){e.resolve(t,o)}))}}),100),[]);return vk.useEffect((function(){jI(_I.mark((function t(){var n,r,i,o,s,u,l,d,p,f,m;return _I.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(n=e.wallet)||void 0===n||!n.extension){t.next=9;break}return t.next=3,II[e.wallet.extension].isAvailable();case 3:if(t.t1=t.sent,t.t1){t.next=6;break}t.t1=!1;case 6:t.t0=t.t1,t.next=10;break;case 9:t.t0=!1;case 10:if(u=t.t0,a(u),null===(r=e.platform)||void 0===r||!r.connect){t.next=21;break}return t.next=15,II[e.platform.connect].isAvailable();case 15:if(t.t3=t.sent,t.t3){t.next=18;break}t.t3=!1;case 18:t.t2=t.t3,t.next=22;break;case 21:t.t2=!1;case 22:l=t.t2,M(l),d=!!e.platform&&e.platform.connect,c(d),p=!(null===(i=e.platform)||void 0===i||!i.copyLink),y(p),f=!!e.platform&&e.platform.open,h(f),m=(null===(o=e.platform)||void 0===o?void 0:o.solanaPay)&&C&&C.every((function(e){return e.amount}))||(null===(s=e.platform)||void 0===s?void 0:s.qr)&&(!T||"WalletLink"===e.platform.qr),v(m);case 32:case"end":return t.stop()}}),t)})))()}),[]),vk.useEffect((function(){var t,n,r;void 0!==w&&N(!o&&!YF()&&!(null!==(t=e.wallet)&&void 0!==t&&null!==(t=t.desktop)&&void 0!==t&&t.native)&&((null===(n=e.platform)||void 0===n?void 0:n.qr)||(null===(r=e.platform)||void 0===r?void 0:r.solanaPay)))}),[o,w]),vk.useEffect((function(){var t,n;T&&(null!==(t=e.platform)&&void 0!==t&&t.qr||null!==(n=e.platform)&&void 0!==n&&n.solanaPay)&&z()}),[T]),vk.useEffect((function(){T&&S&&r&&r.current&&(r.current.innerHTML="",S.append(r.current))}),[S]),T&&null!==(n=e.platform)&&void 0!==n&&n.solanaPay&&C&&C.every((function(e){return e.amount}))?null:vk.createElement(QF,{stacked:!0,header:D,footer:!1,body:vk.createElement("div",{className:"TextCenter PaddingBottomS"},vk.createElement("div",{className:"PaddingLeftL PaddingRightL"},vk.createElement("h1",{className:"LineHeightL Text FontSizeL FontWeightBold"},"Connect ",e.wallet.name)),!window.location.protocol.match("https")&&vk.createElement("div",{className:"PaddingTopS PaddingLeftL PaddingRightL"},vk.createElement("div",{className:"Alert FontSizeS"},vk.createElement("strong",null,"Most wallets do not connect to http!"))),!o&&!u&&!d&&!f&&!g&&vk.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftL PaddingRightL"},vk.createElement("div",{className:"Alert FontSizeS"},vk.createElement("strong",null,"Unable to connect to this wallet!"))),T&&vk.createElement("div",null,vk.createElement("div",{ref:r,className:"QRCode"},T&&void 0===S&&vk.createElement("div",{className:"PaddingTopS"},vk.createElement("div",{className:"Skeleton",style:{borderRadius:"18px",width:"305px",height:"305px"}},vk.createElement("div",{className:"SkeletonBackground"})))),T&&void 0===S&&vk.createElement("div",{className:"Opacity05 PaddingBottomXS PaddingTopS"},vk.createElement("small",null,"Generating QR code...")),T&&void 0!==S&&vk.createElement("div",{className:"Opacity05 PaddingBottomXS PaddingTopXS"},vk.createElement("small",null,"Scan QR code with your wallet")),(o||u||d||f)&&vk.createElement("div",null,vk.createElement("div",{className:"PaddingBottomXS PaddingTopS Opacity03",style:{display:"flex"}},vk.createElement("div",{style:{borderBottom:"1px solid black",flex:"0.4",position:"relative",top:"-9px"},className:"Opacity05"}),vk.createElement("div",{style:{flex:"0.2"},className:"PaddingLeftXS PaddingRightXS"},vk.createElement("small",null,"or")),vk.createElement("div",{style:{borderBottom:"1px solid black",flex:"0.4",position:"relative",top:"-9px"},className:"Opacity05"})))),(o||u||d||g&&!T||f)&&vk.createElement("div",{className:"PaddingLeftL PaddingRightL PaddingTopS PaddingBottomS"},o&&vk.createElement("div",{className:"PaddingBottomXS"},e.showConnectExtensionWarning&&vk.createElement("div",{className:"PaddingTopS PaddingBottomS PaddingLeftS PaddingRightS"},vk.createElement("div",{className:"Alert"},vk.createElement("span",{className:"FontWeightBold PaddingBottomXS"},"You wallet extension window is already asking to connect. It might be hidden."))),e.connectingExtension&&vk.createElement("div",{className:"Card disabled small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("div",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("div",{className:"Loading Icon medium",style:{position:"relative",top:"4px",left:"1px"}})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Connecting extension"))),!e.connectingExtension&&vk.createElement("button",{onClick:function(){return e.connectExtension(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Connect your wallet",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyNTAgMjUwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNTAgMjUwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTE3Mi44LDY4LjNjLTQuOS0yLjItNy40LTguNC00LjUtMTMuNmM1LjMtOS40LDEwLTE4LjYsNC4zLTI5LjFjLTctMTIuNy0yNC4xLTE3LjQtMzYuNi0xMGMtMTUuNCw5LjEtMTMuNCwyNS42LTUuMSwzOC45CgkJYzMuMyw1LjIsMC45LDExLjYtNC4yLDEzLjlsLTYxLjIsMC4xbDAsMC44bDAuMSwyMS44bDAuMSwzNy45Yy0xLjksNS41LTguNyw4LjQtMTQuMSw1Yy0xMy40LTguMy0yOS44LTEwLjEtMzguOSw1LjMKCQljLTcuMywxMi41LTIuNSwyOS43LDEwLjIsMzYuNWMxMC41LDUuNywxOS43LDEsMjkuMS00LjRjNS40LTMuMSwxMS45LTAuMywxMy44LDVsMC4xLDU5LjhsNTcuMi0wLjFjMC4xLDAsMC4yLDAsMC4zLDBsMy42LDAKCQljNS0yLjMsNy40LTguNyw0LjItMTMuOWMtOC4zLTEzLjMtMTAuMy0yOS44LDUuMS0zOC45YzEyLjUtNy40LDI5LjYtMi43LDM2LjYsMTBjNS43LDEwLjUsMS4xLDE5LjctNC4zLDI5LjEKCQljLTIuOSw1LjItMC41LDExLjQsNC41LDEzLjZsMy42LDBjMC4xLDAsMC4yLDAsMC4zLDBsNTYuNS0wLjFsLTAuMS01OC44Yy0xLjQtNi42LTcuOC05LjItMTQuMS01LjhjLTkuNSw1LjItMTcuOSw5LjgtMjguNCw0LjEKCQljLTEyLjgtNi45LTE4LjItMjMuNy0xMC45LTM2LjNjOS0xNS40LDI1LjUtMTMuNiwzOC45LTUuM2M1LjcsMy41LDEyLjksMC4yLDE0LjQtNS45bC0wLjEtMzUuNEwyMzMuMyw2OWwwLTAuOEwxNzIuOCw2OC4zeiIvPgo8L2c+Cjwvc3ZnPgo="})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Connect extension")))),u&&vk.createElement("div",{className:"PaddingBottomXS"},e.connectingApp&&vk.createElement("div",{className:"Card disabled small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("div",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("div",{className:"Loading Icon medium",style:{position:"relative",top:"2px",left:"0px"}})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Connecting app"))),!e.connectingApp&&vk.createElement("button",{onClick:function(){return e.connectViaRedirect(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Click to connect app",style:{height:"26px",width:"26px",borderRadius:"8px"},src:e.wallet.logo})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Connect app")))),d&&vk.createElement("div",{className:"PaddingBottomXS"},vk.createElement("button",{onClick:function(){return e.openInApp(e.wallet)},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Click to open in app",style:{height:"26px",width:"26px",borderRadius:"8px"},src:e.wallet.logo})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Open in app")))),g&&!T&&vk.createElement("div",{className:"PaddingBottomXS"},vk.createElement("button",{onClick:function(){N(!0),z()},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Scan QR code to connect a mobile wallet",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyAgUFVCTElDICctLy9XM0MvL0RURCBTVkcgMS4xLy9FTicgICdodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQnPgo8c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEwMDAgMTAwMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMWUzIDFlMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1ldGFkYXRhPiBTdmcgVmVjdG9yIEljb25zIDogaHR0cDovL3d3dy5vbmxpbmV3ZWJmb250cy5jb20vaWNvbiA8L21ldGFkYXRhPgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUxMSkgc2NhbGUoLjEgLS4xKSI+PHBhdGggZD0ibTEwMCAyNzk3LjF2LTIyMTIuOWg0NDI1Ljh2NDQyNS44aC00NDI1Ljh2LTIyMTIuOXptMzQ3Ny40IDB2LTEyNjQuNWgtMjUyOXYyNTI5aDI1Mjl2LTEyNjQuNXoiLz48cGF0aCBkPSJtMTY4MC42IDI3OTcuMXYtNjMyLjNoMTI2NC42djEyNjQuNmgtMTI2NC42di02MzIuM3oiLz48cGF0aCBkPSJtNTQ3NC4yIDI3OTcuMXYtMjIxMi45aDQ0MjUuOHY0NDI1LjhoLTQ0MjUuOHYtMjIxMi45em0zNDc3LjQgMHYtMTI2NC41aC0yNTI5djI1MjloMjUyOXYtMTI2NC41eiIvPjxwYXRoIGQ9Im03MDU0LjggMjc5Ny4xdi02MzIuM2gxMjY0LjZ2MTI2NC42aC0xMjY0LjZ2LTYzMi4zeiIvPjxwYXRoIGQ9Im0xMDAtMjU3Ny4xdi0yMjEyLjloNDQyNS44djQ0MjUuOGgtNDQyNS44di0yMjEyLjl6bTM0NzcuNCAwdi0xMjY0LjVoLTI1Mjl2MjUyOWgyNTI5di0xMjY0LjV6Ii8+PHBhdGggZD0ibTE2ODAuNi0yNTc3LjF2LTYzMi4zaDEyNjQuNnYxMjY0LjZoLTEyNjQuNnYtNjMyLjN6Ii8+PHBhdGggZD0ibTU0NzQuMi05MTcuNHYtNTUzLjJoMTEwNi40di0xMTA2LjRoLTExMDYuNHYtMTEwNi40aDExMDYuNHYtMTEwNi42aDExMDYuNHYxMTA2LjRoMTEwNi40di0xMTA2LjRoMTEwNi42djExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aC0xMTA2LjR2MTEwNi40aC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgtMTEwNi40di01NTN6bTMzMTkuMy0xMTA2LjV2LTU1My4yaC0xMTA2LjR2LTExMDYuNGgtMTEwNi40djExMDYuNGgxMTA2LjR2MTEwNi40aDExMDYuNHYtNTUzLjJ6Ii8+PC9nPgo8L3N2Zz4K"})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Scan QR code")))),f&&vk.createElement("div",{className:"PaddingBottomXS TooltipWrapper"},vk.createElement("button",{onClick:function(){var t=new II[e.platform.copyLink];t.connect({name:e.wallet.name,logo:e.wallet.logo,reconnect:!0,connect:function(e){!function(e,t){if("undefined"==typeof document)return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);n.select();let i=!1;try{i=!!document.execCommand("copy")}catch(e){i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}(e.uri),L(!0),setTimeout((function(){return L(!1)}),3e3)}}).then((function(n){e.resolve(n,t)}))},className:"Card small PaddingTopS PaddingRightXS PaddingBottomS PaddingLeftXS",style:{height:"50px"}},vk.createElement("span",{className:"PaddingTopXS PaddingRightXS PaddingLeftS TextCenter",style:{width:"50px"}},vk.createElement("img",{className:"transparent ",title:"Copy connection link",style:{height:"26px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiMwMTAxMDEiIGQ9Ik00NTkuNjU0LDIzMy4zNzNsLTkwLjUzMSw5MC41Yy00OS45NjksNTAtMTMxLjAzMSw1MC0xODEsMGMtNy44NzUtNy44NDQtMTQuMDMxLTE2LjY4OC0xOS40MzgtMjUuODEzDQoJbDQyLjA2My00Mi4wNjNjMi0yLjAxNiw0LjQ2OS0zLjE3Miw2LjgyOC00LjUzMWMyLjkwNiw5LjkzOCw3Ljk4NCwxOS4zNDQsMTUuNzk3LDI3LjE1NmMyNC45NTMsMjQuOTY5LDY1LjU2MywyNC45MzgsOTAuNSwwDQoJbDkwLjUtOTAuNWMyNC45NjktMjQuOTY5LDI0Ljk2OS02NS41NjMsMC05MC41MTZjLTI0LjkzOC0yNC45NTMtNjUuNTMxLTI0Ljk1My05MC41LDBsLTMyLjE4OCwzMi4yMTkNCgljLTI2LjEwOS0xMC4xNzItNTQuMjUtMTIuOTA2LTgxLjY0MS04Ljg5MWw2OC41NzgtNjguNTc4YzUwLTQ5Ljk4NCwxMzEuMDMxLTQ5Ljk4NCwxODEuMDMxLDANCglDNTA5LjYyMywxMDIuMzQyLDUwOS42MjMsMTgzLjM4OSw0NTkuNjU0LDIzMy4zNzN6IE0yMjAuMzI2LDM4Mi4xODZsLTMyLjIwMywzMi4yMTljLTI0Ljk1MywyNC45MzgtNjUuNTYzLDI0LjkzOC05MC41MTYsMA0KCWMtMjQuOTUzLTI0Ljk2OS0yNC45NTMtNjUuNTYzLDAtOTAuNTMxbDkwLjUxNi05MC41YzI0Ljk2OS0yNC45NjksNjUuNTQ3LTI0Ljk2OSw5MC41LDBjNy43OTcsNy43OTcsMTIuODc1LDE3LjIwMywxNS44MTMsMjcuMTI1DQoJYzIuMzc1LTEuMzc1LDQuODEzLTIuNSw2LjgxMy00LjVsNDIuMDYzLTQyLjA0N2MtNS4zNzUtOS4xNTYtMTEuNTYzLTE3Ljk2OS0xOS40MzgtMjUuODI4Yy00OS45NjktNDkuOTg0LTEzMS4wMzEtNDkuOTg0LTE4MS4wMTYsMA0KCWwtOTAuNSw5MC41Yy00OS45ODQsNTAtNDkuOTg0LDEzMS4wMzEsMCwxODEuMDMxYzQ5Ljk4NCw0OS45NjksMTMxLjAzMSw0OS45NjksMTgxLjAxNiwwbDY4LjU5NC02OC41OTQNCglDMjc0LjU2MSwzOTUuMDkyLDI0Ni40MiwzOTIuMzQyLDIyMC4zMjYsMzgyLjE4NnoiLz4NCjwvc3ZnPg0K"})),vk.createElement("div",{className:"PaddingLeftS LineHeightXS"},vk.createElement("div",{className:"CardText FontWeightMedium"},"Copy connection link"))),k&&vk.createElement("div",{className:"Tooltip absolute top"},vk.createElement("span",{className:"TooltipArrowDown"}),"Connection link copied"))))})},JF=function(){return navigator.userAgent.toLowerCase().includes("android")},XF=function(e){var t,n;if(YF()){if(JF())t=null===(n=e.mobile)||void 0===n?void 0:n.android;else if(Boolean(/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)){var r;t=null===(r=e.mobile)||void 0===r?void 0:r.ios}}else t=e.desktop;return t},KF=function(){return vk.createElement("div",{className:"PoweredByWrapper"},vk.createElement("a",{href:"https://depay.com",rel:"noopener noreferrer",target:"_blank",className:"PoweredByLink"},"by DePay"))};function $F(e){var t=function(e,t){if("object"!==CI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CI(t)?t:String(t)}function eH(e,t,n){return(t=$F(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tH=function(e){var t=PI(vk.useState(0),2),n=t[0],r=t[1];return vk.useEffect((function(){var t=function(){r(n+1),0!=n&&e.hide()};return window.addEventListener("click",t),function(){window.removeEventListener("click",t)}}),[e.open,n]),vk.createElement("div",{className:"DropDown ".concat(e.open?"open":"")},vk.createElement("ul",null,e.items.map((function(e,t){return vk.createElement("li",{key:t},vk.createElement("button",{className:"DropDownItem",onClick:function(){return e.action()}},e.label))}))))},nH=function(e){return vk.createElement("svg",{className:"MenuIcon Icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"},vk.createElement("line",{x1:"11.6",y1:"17.6",x2:"11.6",y2:"17.6"}),vk.createElement("line",{x1:"11.6",y1:"11.8",x2:"11.6",y2:"11.8"}),vk.createElement("line",{x1:"11.6",y1:"6.2",x2:"11.6",y2:"6.2"}))};function rH(e){return Array.isArray?Array.isArray(e):"[object Array]"===hH(e)}const iH=1/0;function oH(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-iH?"-0":t}(e)}function aH(e){return"string"==typeof e}function sH(e){return"number"==typeof e}function uH(e){return!0===e||!1===e||function(e){return cH(e)&&null!==e}(e)&&"[object Boolean]"==hH(e)}function cH(e){return"object"==typeof e}function lH(e){return null!=e}function dH(e){return!e.trim().length}function hH(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const pH=e=>`Missing ${e} property in key`,fH=e=>`Property 'weight' in key '${e}' must be a positive integer`,yH=Object.prototype.hasOwnProperty;class mH{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=gH(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function gH(e){let t=null,n=null,r=null,i=1,o=null;if(aH(e)||rH(e))r=e,t=vH(e),n=bH(e);else{if(!yH.call(e,"name"))throw new Error(pH("name"));const a=e.name;if(r=a,yH.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(fH(a));t=vH(a),n=bH(a),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function vH(e){return rH(e)?e:e.split(".")}function bH(e){return rH(e)?e.join("."):e}const wH={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const i=(e,t,o)=>{if(lH(e))if(t[o]){const a=e[t[o]];if(!lH(a))return;if(o===t.length-1&&(aH(a)||sH(a)||uH(a)))n.push(oH(a));else if(rH(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)i(a[e],t,o+1)}else t.length&&i(a,t,o+1)}else n.push(e)};return i(e,aH(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var MH={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...wH};const AH=/[^ ]+/g;class EH{constructor({getFn:e=MH.getFn,fieldNormWeight:t=MH.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const i=t.match(AH).length;if(n.has(i))return n.get(i);const o=1/Math.pow(i,.5*e),a=parseFloat(Math.round(o*r)/r);return n.set(i,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,aH(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();aH(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!lH(e)||dH(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(lH(i))if(rH(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(lH(r))if(aH(r)&&!dH(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else rH(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(aH(i)&&!dH(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function TH(e,t,{getFn:n=MH.getFn,fieldNormWeight:r=MH.fieldNormWeight}={}){const i=new EH({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(gH)),i.setSources(t),i.create(),i}function NH(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=MH.distance,ignoreLocation:o=MH.ignoreLocation}={}){const a=t/e.length;if(o)return a;const s=Math.abs(r-n);return i?a+s/i:s?1:a}const IH=32;function kH(e,t,n,{location:r=MH.location,distance:i=MH.distance,threshold:o=MH.threshold,findAllMatches:a=MH.findAllMatches,minMatchCharLength:s=MH.minMatchCharLength,includeMatches:u=MH.includeMatches,ignoreLocation:c=MH.ignoreLocation}={}){if(t.length>IH)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(IH));const l=t.length,d=e.length,h=Math.max(0,Math.min(r,d));let p=o,f=h;const y=s>1||u,m=y?Array(d):[];let g;for(;(g=e.indexOf(t,f))>-1;){let e=NH(t,{currentLocation:g,expectedLocation:h,distance:i,ignoreLocation:c});if(p=Math.min(e,p),f=g+l,y){let e=0;for(;e<l;)m[g+e]=1,e+=1}}f=-1;let v=[],b=1,w=l+d;const M=1<<l-1;for(let r=0;r<l;r+=1){let o=0,s=w;for(;o<s;){NH(t,{errors:r,currentLocation:h+s,expectedLocation:h,distance:i,ignoreLocation:c})<=p?o=s:w=s,s=Math.floor((w-o)/2+o)}w=s;let u=Math.max(1,h-s+1),g=a?d:Math.min(h+s,d)+l,A=Array(g+2);A[g+1]=(1<<r)-1;for(let o=g;o>=u;o-=1){let a=o-1,s=n[e.charAt(a)];if(y&&(m[a]=+!!s),A[o]=(A[o+1]<<1|1)&s,r&&(A[o]|=(v[o+1]|v[o])<<1|1|v[o+1]),A[o]&M&&(b=NH(t,{errors:r,currentLocation:a,expectedLocation:h,distance:i,ignoreLocation:c}),b<=p)){if(p=b,f=a,f<=h)break;u=Math.max(1,2*h-f)}}if(NH(t,{errors:r+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:c})>p)break;v=A}const A={isMatch:f>=0,score:Math.max(.001,b)};if(y){const e=function(e=[],t=MH.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){let a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(m,s);e.length?u&&(A.indices=e):A.isMatch=!1}return A}function LH(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}class xH{constructor(e,{location:t=MH.location,threshold:n=MH.threshold,distance:r=MH.distance,includeMatches:i=MH.includeMatches,findAllMatches:o=MH.findAllMatches,minMatchCharLength:a=MH.minMatchCharLength,isCaseSensitive:s=MH.isCaseSensitive,ignoreLocation:u=MH.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:u},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:LH(e),startIndex:t})},l=this.pattern.length;if(l>IH){let e=0;const t=l%IH,n=l-t;for(;e<n;)c(this.pattern.substr(e,IH),e),e+=IH;if(t){const e=l-IH;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,ignoreLocation:u}=this.options;let c=[],l=0,d=!1;this.chunks.forEach((({pattern:t,alphabet:h,startIndex:p})=>{const{isMatch:f,score:y,indices:m}=kH(e,t,h,{location:r+p,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:u});f&&(d=!0),l+=y,f&&m&&(c=[...c,...m])}));let h={isMatch:d,score:d?l/this.chunks.length:1};return d&&n&&(h.indices=c),h}}class SH{constructor(e){this.pattern=e}static isMultiMatch(e){return jH(e,this.multiRegex)}static isSingleMatch(e){return jH(e,this.singleRegex)}search(){}}function jH(e,t){const n=e.match(t);return n?n[1]:null}class CH extends SH{constructor(e,{location:t=MH.location,threshold:n=MH.threshold,distance:r=MH.distance,includeMatches:i=MH.includeMatches,findAllMatches:o=MH.findAllMatches,minMatchCharLength:a=MH.minMatchCharLength,isCaseSensitive:s=MH.isCaseSensitive,ignoreLocation:u=MH.ignoreLocation}={}){super(e),this._bitapSearch=new xH(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class DH extends SH{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const OH=[class extends SH{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},DH,class extends SH{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends SH{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends SH{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends SH{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends SH{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},CH],zH=OH.length,_H=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const PH=new Set([CH.type,DH.type]);class BH{constructor(e,{isCaseSensitive:t=MH.isCaseSensitive,includeMatches:n=MH.includeMatches,minMatchCharLength:r=MH.minMatchCharLength,ignoreLocation:i=MH.ignoreLocation,findAllMatches:o=MH.findAllMatches,location:a=MH.location,threshold:s=MH.threshold,distance:u=MH.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:u},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(_H).filter((e=>e&&!!e.trim())),r=[];for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,a=-1;for(;!o&&++a<zH;){const e=OH[a];let n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(a=-1;++a<zH;){const e=OH[a];let n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],a=0;for(let r=0,s=t.length;r<s;r+=1){const s=t[r];o.length=0,i=0;for(let t=0,r=s.length;t<r;t+=1){const r=s[t],{isMatch:u,indices:c,score:l}=r.search(e);if(!u){a=0,i=0,o.length=0;break}if(i+=1,a+=l,n){const e=r.constructor.type;PH.has(e)?o=[...o,...c]:o.push(c)}}if(i){let e={isMatch:!0,score:a/i};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}}const RH=[];function UH(e,t){for(let n=0,r=RH.length;n<r;n+=1){let r=RH[n];if(r.condition(e,t))return new r(e,t)}return new xH(e,t)}const WH="$and",QH="$or",YH="$path",FH="$val",HH=e=>!(!e[WH]&&!e[QH]),VH=e=>({[WH]:Object.keys(e).map((t=>({[t]:e[t]})))});function GH(e,t,{auto:n=!0}={}){const r=e=>{let i=Object.keys(e);const o=(e=>!!e[YH])(e);if(!o&&i.length>1&&!HH(e))return r(VH(e));if((e=>!rH(e)&&cH(e)&&!HH(e))(e)){const r=o?e[YH]:i[0],a=o?e[FH]:e[r];if(!aH(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:bH(r),pattern:a};return n&&(s.searcher=UH(a,t)),s}let a={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];rH(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return HH(e)||(e=VH(e)),r(e)}function qH(e,t){const n=e.matches;t.matches=[],lH(n)&&n.forEach((e=>{if(!lH(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function ZH(e,t){t.score=e.score}class JH{constructor(e,t={},n){this.options={...MH,...t},this.options.useExtendedSearch,this._keyStore=new mH(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof EH))throw new Error("Incorrect 'index' type");this._myIndex=t||TH(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){lH(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:a}=this.options;let s=aH(e)?aH(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=MH.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),i&&s.sort(o),sH(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=MH.includeMatches,includeScore:r=MH.includeScore}={}){const i=[];return n&&i.push(qH),r&&i.push(ZH),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=UH(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:i})=>{if(!lH(e))return;const{isMatch:o,score:a,indices:s}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:i,indices:s}]})})),r}_searchLogical(e){const t=GH(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}const i=[];for(let o=0,a=e.children.length;o<a;o+=1){const a=e.children[o],s=n(a,t,r);if(s.length)i.push(...s);else if(e.operator===WH)return[]}return i},r=this._myIndex.records,i={},o=[];return r.forEach((({$:e,i:r})=>{if(lH(e)){let a=n(t,e,r);a.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},o.push(i[r])),a.forEach((({matches:e})=>{i[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=UH(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((({$:e,i:r})=>{if(!lH(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&i.push({idx:r,item:e,matches:o})})),i}_findMatches({key:e,value:t,searcher:n}){if(!lH(t))return[];let r=[];if(rH(t))t.forEach((({v:t,i:i,n:o})=>{if(!lH(t))return;const{isMatch:a,score:s,indices:u}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:i,norm:o,indices:u})}));else{const{v:i,n:o}=t,{isMatch:a,score:s,indices:u}=n.searchIn(i);a&&r.push({score:s,key:e,value:i,norm:o,indices:u})}return r}}
150
150
  /**
151
151
  * react-virtual
152
152
  *