From c1f39cc32518f7b739a84b9fdf975f516bb5a0a7 Mon Sep 17 00:00:00 2001 From: Chris Meisl Date: Fri, 15 Feb 2019 17:59:05 -0700 Subject: [PATCH] update to 0.3.3 to fix incorrect doc versions --- README.md | 8 ++++---- lib/assist.js | 2 +- lib/assist.min.js | 2 +- package.json | 2 +- src/js/index.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 53f7b8f0..8683f1fc 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ npm i bnc-assist #### Script Tag The library uses [semantic versioning](https://semver.org/spec/v2.0.0.html). -The current version is 0.3.2. +The current version is 0.3.3. There are minified and non-minified versions. Put this script at the top of your `` @@ -51,16 +51,16 @@ To integrate `assist.js` into your dapp, you'll need to do 4 things: Our widget is currently hosted on S3. The library uses [semantic versioning](https://semver.org/spec/v2.0.0.html). -The current version 0.2.0. +The current version 0.3.3. There are minified and non-minified versions. Put this script at the top of your `` ```html - + - + ``` ### Initialize the Library diff --git a/lib/assist.js b/lib/assist.js index a57bc5e5..62b790b4 100644 --- a/lib/assist.js +++ b/lib/assist.js @@ -15613,7 +15613,7 @@ var styles = "/* http://meyerweb.com/eric/tools/css/reset/ \n v2.0 | 20110126\n License: none (public domain)\n\n\t1. Reset\n\t2. Fonts\n\t3. Onboarding\n\t4. Notifications\n\t5. Tooltips\n\t6. Buttons\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n/* Colors and Fonts \n\nRed:#FF3F4A;\nYellow:;#FFC137\nGreen:#7ED321;\n\nFont sizes based on https://www.modularscale.com/?16&px&1.125\n\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nul,\nol {\n color: #4a4a4a;\n font-family: 'Source Sans Pro', 'Open Sans', 'Helvetica Neue', Arial,\n sans-serif;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: bold;\n margin-bottom: 10px;\n}\n\nh1,\n.h1 {\n font-size: 2.281em;\n line-height: 1.266em;\n}\nh2,\n.h2 {\n font-size: 1.802em;\n line-height: 1.125em;\n}\nh3,\n.h3 {\n font-size: 1.602em;\n line-height: 1.266em;\n}\nh4,\n.h4 {\n font-size: 1.266em;\n line-height: 1.266em;\n}\nh5,\n.h5 {\n font-size: 1.125em;\n line-height: 1.125em;\n}\nh6,\n.h6 {\n font-size: 1em;\n line-height: 1em;\n}\np {\n font-size: 1em;\n line-height: 1.266em;\n}\n\na {\n color: #4a90e2;\n text-decoration: none;\n}\na:hover,\na:active {\n color: #4a90e2;\n}\n\nstrong,\nb {\n font-weight: bold;\n}\n\n.clearfix::after {\n display: block;\n content: '';\n clear: both;\n}\n\n/* Onboarding */\n\n.bn-onboard-modal-shade {\n background: rgba(0, 0, 0, 0.2);\n position: absolute;\n top: 0;\n left: 0;\n z-index: 9999;\n width: 100%;\n height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n font-family: 'Source Sans Pro', 'Open Sans', 'Helvetica Neue', Arial,\n sans-serif;\n opacity: 0;\n transition: opacity 150ms ease-in-out;\n}\n\n.bn-onboard {\n padding: 10px;\n}\n\n.bn-onboard-modal {\n background: #fff;\n border-radius: 2px;\n border: 1px solid #efefef;\n box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);\n box-sizing: border-box;\n position: relative;\n}\n\n.bn-onboard-modal ul li,\n.bn-onboard-modal ol li {\n margin-top: 15px;\n}\n\n.bn-onboard-basic {\n padding: 0px;\n max-width: 720px;\n display: flex;\n margin: 0 auto;\n}\n\n.bn-onboard-basic .bn-onboard-main {\n padding: 15px 20px;\n background: #fff;\n -webkit-flex-grow: 1;\n flex-grow: 1;\n}\n\n.bn-onboard-basic .bn-onboard-sidebar {\n padding: 15px 20px;\n width: 34%;\n background: #eeeeee;\n -webkit-flex-shrink: 0;\n flex-shrink: 0;\n}\n.bn-onboard-advanced {\n padding: 15px 20px;\n max-width: 416px;\n margin: 0 auto;\n}\n\n.bn-onboard-alert {\n padding: 15px 20px;\n max-width: 416px;\n margin: 0 auto;\n text-align: center;\n}\n.bn-onboard-list {\n list-style: none;\n}\n.bn-inactive {\n font-weight: normal;\n color: #9b9b9b;\n}\n.bn-active {\n font-weight: bold;\n color: #4a4a4a;\n}\n.bn-check {\n font-weight: normal;\n text-decoration: line-through;\n color: #9b9b9b;\n}\n\n.bn-onboard-list-sprite {\n width: 16px;\n height: 16px;\n display: inline-block;\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/jJu8b0B.png');\n vertical-align: sub;\n}\n\n.bn-active .bn-onboard-list-sprite {\n background-position: -16px 0px;\n}\n.bn-check .bn-onboard-list-sprite {\n background-position: -32px 0px;\n}\n\nimg.bn-onboard-img {\n display: block;\n max-width: 100%;\n height: auto;\n}\n\n.bn-onboard-close {\n background: #ededed;\n border-radius: 100px;\n width: 28px;\n height: 28px;\n position: absolute;\n top: -9px;\n right: -9px;\n}\n.bn-onboard-close-x {\n width: 16px;\n height: 16px;\n display: block;\n margin: 6px;\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/jJu8b0B.png');\n background-position: -49px 0px;\n}\n\n.bn-onboard-close:hover {\n background: #bbbbbb;\n}\n\n.bn-onboard-warning {\n color: #d43f3a;\n padding: 1rem 0;\n}\n\n.bn-onboarding-branding {\n margin-top: 10px;\n font-size: 0.79em;\n}\n\n.bn-onboard-basic .bn-onboarding-branding {\n position: absolute;\n bottom: 15px;\n}\n.bn-onboard-basic .bn-onboarding-branding img {\n margin-top: 5px;\n}\n\n.bn-onboard-advanced .bn-onboarding-branding {\n text-align: center;\n}\n\n.bn-onboarding-branding img {\n vertical-align: middle;\n}\n\n@media (max-width: 768px) {\n .bn-onboard-basic .bn-onboard-sidebar {\n width: 34%;\n }\n}\n@media (max-width: 576px) {\n .bn-onboard-basic {\n display: inherit;\n }\n .bn-onboard-basic .bn-onboard-main {\n display: block;\n width: 100%;\n }\n /* Make the sidebar take the entire width of the screen */\n .bn-onboard-basic .bn-onboard-sidebar {\n display: block;\n width: 100%;\n }\n\n .bn-onboard-basic .bn-onboarding-branding {\n position: inherit;\n margin-top: 20px;\n }\n}\n\n/* Notifications */\n\n#blocknative-notifications {\n position: fixed;\n z-index: 999;\n bottom: 10px;\n right: 10px;\n opacity: 0;\n transform: translateX(600px);\n transition: opacity 150ms ease-in-out, transform 300ms ease-in-out;\n}\n\n::-webkit-scrollbar {\n display: none;\n}\n\n.bn-notifications-scroll {\n overflow-y: scroll;\n overflow-x: hidden;\n padding-top: 3rem;\n}\n\n.bn-notification {\n background: #fff;\n border-left: 2px solid transparent;\n border-radius: 2px;\n padding: 13px 10px;\n text-align: left;\n margin-bottom: 5px;\n box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);\n width: 320px; /* something to consider (changed from max-width) */\n margin-left: 10px; /* keeps notification from bumping edge on mobile.*/\n transform: translateX(600px);\n opacity: 0;\n transition: transform 350ms ease-in-out, opacity 300ms linear;\n font-family: 'Source Sans Pro', 'Open Sans', 'Helvetica Neue', Arial,\n sans-serif;\n}\n\n.bn-notification.bn-progress {\n border-left: 2px solid #ffc137;\n}\n.bn-notification.bn-complete {\n border-left: 2px solid #7ed321;\n}\n.bn-notification.bn-failed {\n border-left: 2px solid #ff3f4a;\n}\n\n.bn-status-icon {\n float: left;\n width: 18px;\n height: 18px;\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/jJu8b0B.png');\n}\n\n.bn-progress .bn-status-icon {\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/mqCAjXV.gif');\n background-size: 18px 18px;\n}\n.bn-complete .bn-status-icon {\n background-position: -54px 55px;\n}\n.bn-failed .bn-status-icon {\n background-position: -36px 55px;\n}\n\n.bn-notification:hover .bn-status-icon {\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/jJu8b0B.png') !important;\n background-size: 82px 36px;\n background-position: 0px 19px !important;\n}\n.bn-notification:hover .bn-status-icon:hover {\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/jJu8b0B.png') !important;\n background-size: 82px 36px;\n background-position: -18px 19px !important;\n cursor: pointer;\n}\n\n.bn-duration-hidden {\n visibility: hidden;\n}\n\n.bn-clock {\n width: 15px;\n height: 16px;\n display: inline-block;\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/jJu8b0B.png');\n background-position: -66px 0px;\n vertical-align: sub;\n}\n\n.bn-notification-info {\n margin-left: 30px;\n}\n.bn-notification-meta {\n color: #aeaeae;\n font-size: 0.79em;\n margin-top: 5px;\n}\n.bn-notification-meta a {\n color: #aeaeae;\n}\n\na#bn-transaction-branding {\n float: right;\n margin-right: 10px;\n padding-top: 10px;\n display: inline-block;\n width: 18px;\n height: 25px;\n background: transparent url('https://s3.amazonaws.com/bnc-assist/images/fJxOtIj.png') no-repeat\n center left;\n -webkit-transition: width 0.2s ease-out;\n -moz-transition: width 0.2s ease-out;\n -o-transition: width 0.2s ease-out;\n transition: width 0.2s ease-out;\n}\n\na#bn-transaction-branding:hover {\n width: 75px;\n}\n\n/* Retina Settings */\n/* http://miekd.com/articles/using-css-sprites-to-optimize-your-website-for-retina-displays/*/\n@media only screen and (-webkit-min-device-pixel-ratio: 2),\n only screen and (min-device-pixel-ratio: 2) {\n .bn-status-icon,\n .bn-onboard-list-sprite,\n .bn-onboard-close-x,\n .bn-clock {\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/6mvOkII.png');\n /* Translate the @2x sprite's dimensions back to 1x */\n background-size: 82px 36px;\n }\n .bn-progress .bn-status-icon {\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/joHkLGC.gif');\n background-size: 18px 18px;\n }\n .bn-notification:hover .bn-status-icon {\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/6mvOkII.png') !important;\n background-size: 82px 36px;\n }\n\n a#bn-transaction-branding {\n background-image: url('https://s3.amazonaws.com/bnc-assist/images/UhcCuKF.png');\n background-size: 75px 25px;\n }\n}\n\n/* Tooltips */\n\n.bn-status-icon {\n position: relative;\n}\n\n.progress-tooltip {\n position: absolute;\n z-index: 1070;\n display: none;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n line-break: auto;\n line-height: 1.42857143;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n white-space: normal;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n font-size: 12px;\n opacity: 0;\n filter: alpha(opacity=0);\n bottom: 21px;\n width: 190px;\n -webkit-transition: opacity 0.25s ease-out 100ms;\n -moz-transition: opacity 0.25s ease-out 100ms;\n -o-transition: opacity 0.25s ease-out 100ms;\n transition: opacity 0.25s ease-out 100ms;\n}\n\n.progress-tooltip-inner {\n max-width: 200px;\n padding: 3px 8px;\n color: #ffffff;\n text-align: center;\n background-color: #000000;\n border-radius: 4px;\n}\n\n.progress-tooltip::after {\n bottom: 0;\n left: 10px;\n margin-left: -5px;\n margin-bottom: -5px;\n border-width: 5px 5px 0;\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-top-color: #000;\n border-style: solid;\n content: '';\n}\n\n.bn-status-icon:hover .progress-tooltip {\n opacity: 1;\n filter: alpha(opacity=1);\n display: block;\n}\n\n/* Buttons */\n\n.bn-btn {\n display: inline-block;\n margin-bottom: 0;\n font-weight: normal;\n text-align: center;\n vertical-align: middle;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n border-radius: 4px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.bn-btn:focus,\n.bn-btn:active:focus,\n.bn-btn.active:focus,\n.bn-btn.focus,\n.bn-btn:active.focus,\n.bn-btn.active.focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.bn-btn:hover,\n.bn-btn:focus,\n.bn-btn.focus {\n color: #333333;\n text-decoration: none;\n}\n.bn-btn:active,\n.bn-btn.active {\n outline: 0;\n background-image: none;\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.bn-btn.disabled,\n.bn-btn[disabled],\nfieldset[disabled] .bn-btn {\n cursor: not-allowed;\n opacity: 0.65;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n box-shadow: none;\n}\na.bn-btn.disabled,\nfieldset[disabled] a.bn-btn {\n pointer-events: none;\n}\n.bn-btn-default {\n color: #333333;\n background-color: #ffffff;\n border-color: #cccccc;\n}\n.bn-btn-default:focus,\n.bn-btn-default.focus {\n color: #333333;\n background-color: #e6e6e6;\n border-color: #8c8c8c;\n}\n.bn-btn-default:hover {\n color: #333333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.bn-btn-default:active,\n.bn-btn-default.active,\n.open > .dropdown-toggle.bn-btn-default {\n color: #333333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.bn-btn-default:active:hover,\n.bn-btn-default.active:hover,\n.open > .dropdown-toggle.bn-btn-default:hover,\n.bn-btn-default:active:focus,\n.bn-btn-default.active:focus,\n.open > .dropdown-toggle.bn-btn-default:focus,\n.bn-btn-default:active.focus,\n.bn-btn-default.active.focus,\n.open > .dropdown-toggle.bn-btn-default.focus {\n color: #333333;\n background-color: #d4d4d4;\n border-color: #8c8c8c;\n}\n.bn-btn-default:active,\n.bn-btn-default.active,\n.open > .dropdown-toggle.bn-btn-default {\n background-image: none;\n}\n.bn-btn-default.disabled:hover,\n.bn-btn-default[disabled]:hover,\nfieldset[disabled] .bn-btn-default:hover,\n.bn-btn-default.disabled:focus,\n.bn-btn-default[disabled]:focus,\nfieldset[disabled] .bn-btn-default:focus,\n.bn-btn-default.disabled.focus,\n.bn-btn-default[disabled].focus,\nfieldset[disabled] .bn-btn-default.focus {\n background-color: #ffffff;\n border-color: #cccccc;\n}\n.bn-btn-default .badge {\n color: #ffffff;\n background-color: #333333;\n}\n.bn-btn-primary {\n color: #ffffff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.bn-btn-primary:focus,\n.bn-btn-primary.focus {\n color: #ffffff;\n background-color: #286090;\n border-color: #122b40;\n}\n.bn-btn-primary:hover {\n color: #ffffff;\n background-color: #286090;\n border-color: #204d74;\n}\n.bn-btn-primary:active,\n.bn-btn-primary.active,\n.open > .dropdown-toggle.bn-btn-primary {\n color: #ffffff;\n background-color: #286090;\n border-color: #204d74;\n}\n.bn-btn-primary:active:hover,\n.bn-btn-primary.active:hover,\n.open > .dropdown-toggle.bn-btn-primary:hover,\n.bn-btn-primary:active:focus,\n.bn-btn-primary.active:focus,\n.open > .dropdown-toggle.bn-btn-primary:focus,\n.bn-btn-primary:active.focus,\n.bn-btn-primary.active.focus,\n.open > .dropdown-toggle.bn-btn-primary.focus {\n color: #ffffff;\n background-color: #204d74;\n border-color: #122b40;\n}\n.bn-btn-primary:active,\n.bn-btn-primary.active,\n.open > .dropdown-toggle.bn-btn-primary {\n background-image: none;\n}\n.bn-btn-primary.disabled:hover,\n.bn-btn-primary[disabled]:hover,\nfieldset[disabled] .bn-btn-primary:hover,\n.bn-btn-primary.disabled:focus,\n.bn-btn-primary[disabled]:focus,\nfieldset[disabled] .bn-btn-primary:focus,\n.bn-btn-primary.disabled.focus,\n.bn-btn-primary[disabled].focus,\nfieldset[disabled] .bn-btn-primary.focus {\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n.bn-btn-primary .badge {\n color: #337ab7;\n background-color: #ffffff;\n}\n.bn-btn-success {\n color: #ffffff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.bn-btn-success:focus,\n.bn-btn-success.focus {\n color: #ffffff;\n background-color: #449d44;\n border-color: #255625;\n}\n.bn-btn-success:hover {\n color: #ffffff;\n background-color: #449d44;\n border-color: #398439;\n}\n.bn-btn-success:active,\n.bn-btn-success.active,\n.open > .dropdown-toggle.bn-btn-success {\n color: #ffffff;\n background-color: #449d44;\n border-color: #398439;\n}\n.bn-btn-success:active:hover,\n.bn-btn-success.active:hover,\n.open > .dropdown-toggle.bn-btn-success:hover,\n.bn-btn-success:active:focus,\n.bn-btn-success.active:focus,\n.open > .dropdown-toggle.bn-btn-success:focus,\n.bn-btn-success:active.focus,\n.bn-btn-success.active.focus,\n.open > .dropdown-toggle.bn-btn-success.focus {\n color: #ffffff;\n background-color: #398439;\n border-color: #255625;\n}\n.bn-btn-success:active,\n.bn-btn-success.active,\n.open > .dropdown-toggle.bn-btn-success {\n background-image: none;\n}\n.bn-btn-success.disabled:hover,\n.bn-btn-success[disabled]:hover,\nfieldset[disabled] .bn-btn-success:hover,\n.bn-btn-success.disabled:focus,\n.bn-btn-success[disabled]:focus,\nfieldset[disabled] .bn-btn-success:focus,\n.bn-btn-success.disabled.focus,\n.bn-btn-success[disabled].focus,\nfieldset[disabled] .bn-btn-success.focus {\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.bn-btn-success .badge {\n color: #5cb85c;\n background-color: #ffffff;\n}\n.bn-btn-info {\n color: #ffffff;\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.bn-btn-info:focus,\n.bn-btn-info.focus {\n color: #ffffff;\n background-color: #31b0d5;\n border-color: #1b6d85;\n}\n.bn-btn-info:hover {\n color: #ffffff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.bn-btn-info:active,\n.bn-btn-info.active,\n.open > .dropdown-toggle.bn-btn-info {\n color: #ffffff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.bn-btn-info:active:hover,\n.bn-btn-info.active:hover,\n.open > .dropdown-toggle.bn-btn-info:hover,\n.bn-btn-info:active:focus,\n.bn-btn-info.active:focus,\n.open > .dropdown-toggle.bn-btn-info:focus,\n.bn-btn-info:active.focus,\n.bn-btn-info.active.focus,\n.open > .dropdown-toggle.bn-btn-info.focus {\n color: #ffffff;\n background-color: #269abc;\n border-color: #1b6d85;\n}\n.bn-btn-info:active,\n.bn-btn-info.active,\n.open > .dropdown-toggle.bn-btn-info {\n background-image: none;\n}\n.bn-btn-info.disabled:hover,\n.bn-btn-info[disabled]:hover,\nfieldset[disabled] .bn-btn-info:hover,\n.bn-btn-info.disabled:focus,\n.bn-btn-info[disabled]:focus,\nfieldset[disabled] .bn-btn-info:focus,\n.bn-btn-info.disabled.focus,\n.bn-btn-info[disabled].focus,\nfieldset[disabled] .bn-btn-info.focus {\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.bn-btn-info .badge {\n color: #5bc0de;\n background-color: #ffffff;\n}\n.bn-btn-warning {\n color: #ffffff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.bn-btn-warning:focus,\n.bn-btn-warning.focus {\n color: #ffffff;\n background-color: #ec971f;\n border-color: #985f0d;\n}\n.bn-btn-warning:hover {\n color: #ffffff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.bn-btn-warning:active,\n.bn-btn-warning.active,\n.open > .dropdown-toggle.bn-btn-warning {\n color: #ffffff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.bn-btn-warning:active:hover,\n.bn-btn-warning.active:hover,\n.open > .dropdown-toggle.bn-btn-warning:hover,\n.bn-btn-warning:active:focus,\n.bn-btn-warning.active:focus,\n.open > .dropdown-toggle.bn-btn-warning:focus,\n.bn-btn-warning:active.focus,\n.bn-btn-warning.active.focus,\n.open > .dropdown-toggle.bn-btn-warning.focus {\n color: #ffffff;\n background-color: #d58512;\n border-color: #985f0d;\n}\n.bn-btn-warning:active,\n.bn-btn-warning.active,\n.open > .dropdown-toggle.bn-btn-warning {\n background-image: none;\n}\n.bn-btn-warning.disabled:hover,\n.bn-btn-warning[disabled]:hover,\nfieldset[disabled] .bn-btn-warning:hover,\n.bn-btn-warning.disabled:focus,\n.bn-btn-warning[disabled]:focus,\nfieldset[disabled] .bn-btn-warning:focus,\n.bn-btn-warning.disabled.focus,\n.bn-btn-warning[disabled].focus,\nfieldset[disabled] .bn-btn-warning.focus {\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.bn-btn-warning .badge {\n color: #f0ad4e;\n background-color: #ffffff;\n}\n.bn-btn-danger {\n color: #ffffff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.bn-btn-danger:focus,\n.bn-btn-danger.focus {\n color: #ffffff;\n background-color: #c9302c;\n border-color: #761c19;\n}\n.bn-btn-danger:hover {\n color: #ffffff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.bn-btn-danger:active,\n.bn-btn-danger.active,\n.open > .dropdown-toggle.bn-btn-danger {\n color: #ffffff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.bn-btn-danger:active:hover,\n.bn-btn-danger.active:hover,\n.open > .dropdown-toggle.bn-btn-danger:hover,\n.bn-btn-danger:active:focus,\n.bn-btn-danger.active:focus,\n.open > .dropdown-toggle.bn-btn-danger:focus,\n.bn-btn-danger:active.focus,\n.bn-btn-danger.active.focus,\n.open > .dropdown-toggle.bn-btn-danger.focus {\n color: #ffffff;\n background-color: #ac2925;\n border-color: #761c19;\n}\n.bn-btn-danger:active,\n.bn-btn-danger.active,\n.open > .dropdown-toggle.bn-btn-danger {\n background-image: none;\n}\n.bn-btn-danger.disabled:hover,\n.bn-btn-danger[disabled]:hover,\nfieldset[disabled] .bn-btn-danger:hover,\n.bn-btn-danger.disabled:focus,\n.bn-btn-danger[disabled]:focus,\nfieldset[disabled] .bn-btn-danger:focus,\n.bn-btn-danger.disabled.focus,\n.bn-btn-danger[disabled].focus,\nfieldset[disabled] .bn-btn-danger.focus {\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.bn-btn-danger .badge {\n color: #d9534f;\n background-color: #ffffff;\n}\n.bn-btn-link {\n color: #337ab7;\n font-weight: normal;\n border-radius: 0;\n}\n.bn-btn-link,\n.bn-btn-link:active,\n.bn-btn-link.active,\n.bn-btn-link[disabled],\nfieldset[disabled] .bn-btn-link {\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.bn-btn-link,\n.bn-btn-link:hover,\n.bn-btn-link:focus,\n.bn-btn-link:active {\n border-color: transparent;\n}\n.bn-btn-link:hover,\n.bn-btn-link:focus {\n color: #23527c;\n text-decoration: underline;\n background-color: transparent;\n}\n.bn-btn-link[disabled]:hover,\nfieldset[disabled] .bn-btn-link:hover,\n.bn-btn-link[disabled]:focus,\nfieldset[disabled] .bn-btn-link:focus {\n color: #777777;\n text-decoration: none;\n}\n.bn-btn-lg {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.3333333;\n border-radius: 6px;\n}\n.bn-btn-sm {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.bn-btn-xs {\n padding: 1px 5px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.bn-btn-block {\n display: block;\n width: 100%;\n}\n.bn-btn-block + .bn-btn-block {\n margin-top: 5px;\n}\ninput[type='submit'].bn-btn-block,\ninput[type='reset'].bn-btn-block,\ninput[type='button'].bn-btn-block {\n width: 100%;\n}\n\n.bn-btn-outline {\n background-color: transparent;\n color: inherit;\n transition: all 0.5s;\n}\n\n.bn-btn-primary.bn-btn-outline {\n color: #428bca;\n}\n\n.bn-btn-success.bn-btn-outline {\n color: #5cb85c;\n}\n\n.bn-btn-info.bn-btn-outline {\n color: #5bc0de;\n}\n\n.bn-btn-warning.bn-btn-outline {\n color: #f0ad4e;\n}\n\n.bn-btn-danger.bn-btn-outline {\n color: #d9534f;\n}\n\n.bn-btn-primary.bn-btn-outline:hover,\n.bn-btn-success.bn-btn-outline:hover,\n.bn-btn-info.bn-btn-outline:hover,\n.bn-btn-warning.bn-btn-outline:hover,\n.bn-btn-danger.bn-btn-outline:hover {\n color: #fff;\n}\n"; - var version = '0.3.2'; + var version = '0.3.3'; function init(config) { updateState({ diff --git a/lib/assist.min.js b/lib/assist.min.js index f41b53db..2d167ec1 100644 --- a/lib/assist.min.js +++ b/lib/assist.min.js @@ -1 +1 @@ -!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.assist=n()}(this,function(){"use strict";function t(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);no;)Jt(r,e=n[o++])&&(~kt(i,e)||i.push(e));return i},St="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ft=Object.keys||function(t){return Et(t,St)},jt=Qt?Object.defineProperties:function(t,n){k(t);for(var e,r=Ft(n),o=r.length,i=0;idocument.F=Object<\/script>"),t.close(),It=t.F;e--;)delete It[Mt][St[e]];return It()},gn=Object.create||function(t,n){var e;return null!==t?(At[Mt]=k(t),e=new At,At[Mt]=null,e[Ot]=t):e=It(),void 0===n?e:jt(e,n)},Rt=Kt.f,Nt=sn("toStringTag"),Lt=function(t,n,e){t&&!Jt(t=e?t:t.prototype,Nt)&&Rt(t,Nt,{configurable:!0,value:n})},Bt={};$t(Bt,sn("iterator"),function(){return this});var Ut=function(t,n,e){t.prototype=gn(Bt,{next:Xt(1,e)}),Lt(t,n+" Iterator")},Dt=xt("IE_PROTO"),Vt=Object.prototype,mn=Object.getPrototypeOf||function(t){return t=en(t),Jt(t,Dt)?t[Dt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Vt:null},zt=sn("iterator"),Ht=!([].keys&&"next"in[].keys()),yn="@@iterator",_n="keys",wn="values",xn=function(){return this},kn=function(t,n,e,r,o,i,a){Ut(e,n,r);var c,s,u,l=function(t){if(!Ht&&t in h)return h[t];switch(t){case _n:case wn:return function(){return new e(this,t)}}return function(){return new e(this,t)}},f=n+" Iterator",d=o==wn,p=!1,h=t.prototype,v=h[zt]||h[yn]||o&&h[o],b=v||l(o),g=o?d?l("entries"):b:void 0,m="Array"==n&&h.entries||v;if(m&&(u=mn(m.call(new t)))!==Object.prototype&&u.next&&(Lt(u,f,!0),H||"function"==typeof u[zt]||$t(u,zt,xn)),d&&v&&v.name!==wn&&(p=!0,b=function(){return v.call(this)}),H&&!a||!Ht&&!p&&h[zt]||$t(h,zt,b),fn[n]=b,fn[f]=xn,o)if(c={values:d?b:l(wn),keys:i?b:l(_n),entries:g},a)for(s in c)s in h||A(h,s,c[s]);else nn(nn.P+nn.F*(Ht||p),n,c);return c},Cn=kn(Array,"Array",function(t,n){this._t=mt(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,_t(1)):_t(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values");fn.Arguments=fn.Array,Q("keys"),Q("values"),Q("entries"),nn(nn.S+nn.F*qt(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);t>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var ge=Math.exp;nn(nn.S,"Math",{cosh:function(t){return(ge(t=+t)+ge(-t))/2}});var me=Math.expm1,ye=!me||22025.465794806718>>16)*a+i*(e&o>>>16)<<16>>>0)}}),nn(nn.S,"Math",{log1p:le}),nn(nn.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}}),nn(nn.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}}),nn(nn.S,"Math",{sign:be});var Pe=Math.exp;nn(nn.S+nn.F*qt(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(ye(t)-ye(-t))/2:(Pe(t-1)-Pe(-t-1))*(Math.E/2)}});var Te=Math.exp;nn(nn.S,"Math",{tanh:function(t){var n=ye(t=+t),e=ye(-t);return n==1/0?1:e==1/0?-1:(n-e)/(Te(t)+Te(-t))}}),nn(nn.S,"Math",{trunc:function(t){return(0tr;tr++)Jt(Ye,nr=Ze[tr])&&!Jt(Qe,nr)&&We(Qe,nr,He(Ye,nr));Qe.prototype=Ke,Ke.constructor=Qe,A(Wt,qe,Qe)}nn(nn.S,"Number",{EPSILON:Math.pow(2,-52)});var er=Wt.isFinite;nn(nn.S,"Number",{isFinite:function(t){return"number"==typeof t&&er(t)}});var rr=Math.floor,or=function(t){return!Gt(t)&&isFinite(t)&&rr(t)===t};nn(nn.S,"Number",{isInteger:or}),nn(nn.S,"Number",{isNaN:function(t){return t!=t}});var ir=Math.abs;nn(nn.S,"Number",{isSafeInteger:function(t){return or(t)&&ir(t)<=9007199254740991}}),nn(nn.S,"Number",{MAX_SAFE_INTEGER:9007199254740991}),nn(nn.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991});var ar=Wt.parseFloat,cr=Ve.trim,sr=1/ar(Ie+"-0")!=-1/0?function(t){var n=cr(String(t),3),e=ar(n);return 0===e&&"-"==n.charAt(0)?-0:e}:ar;nn(nn.S+nn.F*(Number.parseFloat!=sr),"Number",{parseFloat:sr});var ur=Wt.parseInt,lr=Ve.trim,fr=/^[-+]?0[xX]/,dr=8!==ur(Ie+"08")||22!==ur(Ie+"0x16")?function(t,n){var e=lr(String(t),3);return ur(e,n>>>0||(fr.test(e)?16:10))}:ur;nn(nn.S+nn.F*(Number.parseInt!=dr),"Number",{parseInt:dr});var pr=Object.getOwnPropertySymbols,hr={f:pr},vr=Object.assign,br=!vr||qt(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=vr({},t)[e]||Object.keys(vr({},n)).join("")!=r})?function(t,n){for(var e=en(t),r=arguments.length,o=1,i=hr.f,a=Zn.f;oc;)void 0!==(e=o(r,n=i[c++]))&<(a,n,e);return a}});var Sr=Me.f,Fr={}.toString,jr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pr=function(t){try{return Sr(t)}catch(t){return jr.slice()}},Tr=function(t){return jr&&"[object Window]"==Fr.call(t)?Pr(t):Sr(mt(t))},Or={f:Tr};wr("getOwnPropertyNames",function(){return Or.f}),wr("getPrototypeOf",function(){return function(t){return mn(en(t))}});var Ar=ee.f;Qt&&nn(nn.P+gr,"Object",{__lookupGetter__:function(t){var n,e=en(this),r=Yt(t,!0);do{if(n=Ar(e,r))return n.get}while(e=mn(e))}});var Mr=ee.f;Qt&&nn(nn.P+gr,"Object",{__lookupSetter__:function(t){var n,e=en(this),r=Yt(t,!0);do{if(n=Mr(e,r))return n.set}while(e=mn(e))}});var Ir=Dn.onFreeze;wr("preventExtensions",function(n){return function(t){return n&&Gt(t)?n(Ir(t)):t}});var Rr=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n};nn(nn.S,"Object",{is:Rr}),wr("isFrozen",function(n){return function(t){return!Gt(t)||!!n&&n(t)}}),wr("isSealed",function(n){return function(t){return!Gt(t)||!!n&&n(t)}}),wr("isExtensible",function(n){return function(t){return!!Gt(t)&&(!n||n(t))}}),wr("keys",function(){return function(t){return Ft(en(t))}});var Nr=Dn.onFreeze;wr("seal",function(n){return function(t){return n&&Gt(t)?n(Nr(t)):t}});var Lr=yr(!1);nn(nn.S,"Object",{values:function(t){return Lr(t)}});var Br=sn("species"),Ur=function(t,n){var e,r=k(t).constructor;return void 0===r||null==(e=k(r)[Br])?n:M(e)},Dr=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)},Vr=Wt.process,zr=Wt.setImmediate,Hr=Wt.clearImmediate,Wr=Wt.MessageChannel,Gr=Wt.Dispatch,qr=0,Qr={},Yr="onreadystatechange",Kr,Xr,$r,Jr=function(){var t=+this;if(Qr.hasOwnProperty(t)){var n=Qr[t];delete Qr[t],n()}},Zr=function(t){Jr.call(t.data)};zr&&Hr||(zr=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return Qr[++qr]=function(){Dr("function"==typeof t?t:Function(t),n)},Kr(qr),qr},Hr=function(t){delete Qr[t]},"process"==K(Vr)?Kr=function(t){Vr.nextTick(tn(Jr,t,1))}:Gr&&Gr.now?Kr=function(t){Gr.now(tn(Jr,t,1))}:Wr?(Xr=new Wr,$r=Xr.port2,Xr.port1.onmessage=Zr,Kr=tn($r.postMessage,$r,1)):Wt.addEventListener&&"function"==typeof postMessage&&!Wt.importScripts?(Kr=function(t){Wt.postMessage(t+"","*")},Wt.addEventListener("message",Zr,!1)):Kr=Yr in E("script")?function(t){Tt.appendChild(E("script"))[Yr]=function(){Tt.removeChild(this),Jr.call(t)}}:function(t){setTimeout(tn(Jr,t,1),0)});var to={set:zr,clear:Hr},no=to.set,eo=Wt.MutationObserver||Wt.WebKitMutationObserver,ro=Wt.process,oo=Wt.Promise,io="process"==K(ro),ao=function(){var e,r,o,t=function(){var t,n;for(io&&(t=ro.domain)&&t.exit();e;){n=e.fn,e=e.next;try{n()}catch(t){throw e?o():r=void 0,t}}r=void 0,t&&t.enter()};if(io)o=function(){ro.nextTick(t)};else if(!eo||Wt.navigator&&Wt.navigator.standalone)if(oo&&oo.resolve){var n=oo.resolve(void 0);o=function(){n.then(t)}}else o=function(){no.call(Wt,t)};else{var i=!0,a=document.createTextNode("");new eo(t).observe(a,{characterData:!0}),o=function(){a.data=i=!i}}return function(t){var n={fn:t,next:void 0};r&&(r.next=n),e||(e=n,o()),r=n}};function co(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=M(e),this.reject=M(r)}var so=function(t){return new co(t)},uo={f:so},lo=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},fo=Wt.navigator,po=fo&&fo.userAgent||"",ho=function(t,n){if(k(t),Gt(n)&&n.constructor===t)return n;var e=uo.f(t);return(0,e.resolve)(n),e.promise},vo=to.set,bo=ao(),go="Promise",mo=Wt.TypeError,yo=Wt.process,_o=yo&&yo.versions,wo=_o&&_o.v8||"",xo=Wt[go],ko="process"==pn(yo),Co=function(){},Eo,So,Fo,jo,Po=So=uo.f,To=!!function(){try{var t=xo.resolve(1),n=(t.constructor={})[sn("species")]=function(t){t(Co,Co)};return(ko||"function"==typeof PromiseRejectionEvent)&&t.then(Co)instanceof n&&0!==wo.indexOf("6.6")&&-1===po.indexOf("Chrome/66")}catch(t){}}(),Oo=function(t){var n;return!(!Gt(t)||"function"!=typeof(n=t.then))&&n},Ao=function(l,e){if(!l._n){l._n=!0;var r=l._c;bo(function(){for(var s=l._v,u=1==l._s,t=0,n=function(t){var n,e,r,o=u?t.ok:t.fail,i=t.resolve,a=t.reject,c=t.domain;try{o?(u||(2==l._h&&Ro(l),l._h=1),!0===o?n=s:(c&&c.enter(),n=o(s),c&&(c.exit(),r=!0)),n===t.promise?a(mo("Promise-chain cycle")):(e=Oo(n))?e.call(n,i,a):i(n)):a(s)}catch(t){c&&!r&&c.exit(),a(t)}};r.length>t;)n(r[t++]);l._c=[],l._n=!1,e&&!l._h&&Mo(l)})}},Mo=function(i){vo.call(Wt,function(){var t,n,e,r=i._v,o=Io(i);if(o&&(t=lo(function(){ko?yo.emit("unhandledRejection",r,i):(n=Wt.onunhandledrejection)?n({promise:i,reason:r}):(e=Wt.console)&&e.error&&e.error("Unhandled promise rejection",r)}),i._h=ko||Io(i)?2:1),i._a=void 0,o&&t.e)throw t.v})},Io=function(t){return 1!==t._h&&0===(t._a||t._c).length},Ro=function(n){vo.call(Wt,function(){var t;ko?yo.emit("rejectionHandled",n):(t=Wt.onrejectionhandled)&&t({promise:n,reason:n._v})})},No=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),Ao(n,!0))},Lo=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw mo("Promise can't be resolved itself");(e=Oo(t))?bo(function(){var n={_w:r,_d:!1};try{e.call(t,tn(Lo,n,1),tn(No,n,1))}catch(t){No.call(n,t)}}):(r._v=t,r._s=1,Ao(r,!1))}catch(t){No.call({_w:r,_d:!1},t)}}};To||(xo=function(t){Bn(this,xo,go,"_h"),M(t),Eo.call(this);try{t(tn(Lo,this,1),tn(No,this,1))}catch(t){No.call(this,t)}},Eo=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Eo.prototype=Ln(xo.prototype,{then:function(t,n){var e=Po(Ur(this,xo));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=ko?yo.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&Ao(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),Fo=function(){var t=new Eo;this.promise=t,this.resolve=tn(Lo,t,1),this.reject=tn(No,t,1)},uo.f=Po=function(t){return t===xo||t===jo?new Fo(t):So(t)}),nn(nn.G+nn.W+nn.F*!To,{Promise:xo}),Lt(xo,go),Sn(go),jo=_[go],nn(nn.S+nn.F*!To,go,{reject:function(t){var n=Po(this);return(0,n.reject)(t),n.promise}}),nn(nn.S+nn.F*(H||!To),go,{resolve:function(t){return ho(H&&this===jo?xo:this,t)}}),nn(nn.S+nn.F*!(To&&vn(function(t){xo.all(t).catch(Co)})),go,{all:function(t){var a=this,n=Po(a),c=n.resolve,s=n.reject,e=lo(function(){var r=[],o=0,i=1;Un(t,!1,function(t){var n=o++,e=!1;r.push(void 0),i++,a.resolve(t).then(function(t){e||(e=!0,r[n]=t,--i||c(r))},s)}),--i||c(r)});return e.e&&s(e.v),n.promise},race:function(t){var n=this,e=Po(n),r=e.reject,o=lo(function(){Un(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}}),nn(nn.P+nn.R,"Promise",{finally:function(n){var e=Ur(this,_.Promise||Wt.Promise),t="function"==typeof n;return this.then(t?function(t){return ho(e,n()).then(function(){return t})}:n,t?function(t){return ho(e,n()).then(function(){throw t})}:n)}});var Bo=(Wt.Reflect||{}).apply,Uo=Function.apply;nn(nn.S+nn.F*!qt(function(){Bo(function(){})}),"Reflect",{apply:function(t,n,e){var r=M(t),o=k(e);return Bo?Bo(r,n,o):Uo.call(r,n,o)}});var Do=[].slice,Vo={},zo=function(t,n,e){if(!(n in Vo)){for(var r=[],o=0;ofi;)ui(li[fi++]);ii.constructor=ri,ri.prototype=ii,A(Wt,"RegExp",ri)}Sn("RegExp"),Qt&&"g"!=/./g.flags&&Kt.f(RegExp.prototype,"flags",{configurable:!0,get:ti});var di=function(c){return function(t,n){var e,r,o=String(N(t)),i=rn(n),a=o.length;return i<0||a<=i?c?"":void 0:(e=o.charCodeAt(i))<55296||56319")}),Pi=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}(),Ti=function(e,t,n){var r=sn(e),i=!qt(function(){var t={};return t[r]=function(){return 7},7!=""[e](t)}),o=i?!qt(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[Fi]=function(){return n}),n[r](""),!t}):void 0;if(!i||!o||"replace"===e&&!ji||"split"===e&&!Pi){var a=/./[r],c=n(N,r,""[e],function(t,n,e,r,o){return n.exec===Si?i&&!o?{done:!0,value:a.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),s=c[0],u=c[1];A(String.prototype,e,s),$t(RegExp.prototype,r,2==t?function(t,n){return u.call(t,this,n)}:function(t){return u.call(t,this)})}};Ti("match",1,function(r,o,u,l){return[function(t){var n=r(this),e=null==t?void 0:t[o];return void 0!==e?e.call(t,n):new RegExp(t)[o](String(n))},function(t){var n=l(u,t,this);if(n.done)return n.value;var e=k(t),r=String(this);if(!e.global)return bi(e,r);for(var o,i=e.unicode,a=[],c=e.lastIndex=0;null!==(o=bi(e,r));){var s=String(o[0]);""===(a[c]=s)&&(e.lastIndex=hi(r,an(e.lastIndex),i)),c++}return 0===c?null:a}]});var Oi=Math.max,Ai=Math.min,Mi=Math.floor,Ii=/\$([$&`']|\d\d?|<[^>]*>)/g,Ri=/\$([$&`']|\d\d?)/g,Ni=function(t){return void 0===t?t:String(t)};Ti("replace",2,function(o,i,_,w){return[function(t,n){var e=o(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e,n):_.call(String(e),t,n)},function(t,n){var e=w(_,t,this,n);if(e.done)return e.value;var r=k(t),o=String(this),i="function"==typeof n;i||(n=String(n));var a=r.global;if(a){var c=r.unicode;r.lastIndex=0}for(var s=[];;){var u=bi(r,o);if(null===u)break;if(s.push(u),!a)break;""===String(u[0])&&(r.lastIndex=hi(o,an(r.lastIndex),c))}for(var l="",f=0,d=0;d>>0,l=new RegExp(t.source,c+"g");(r=Si.call(l,e))&&!(s<(o=l[Vi])&&(a.push(e.slice(s,r.index)),1=u));)l[Vi]===r.index&&l[Vi]++;return s===e[Di]?!i&&l.test("")||a.push(""):a.push(e.slice(s)),a[Di]>u?a.slice(0,u):a}:"0"[Ui](void 0,0)[Di]?function(t,n){return void 0===t&&0===n?[]:b.call(this,t,n)}:b,[function(t,n){var e=o(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e,n):m.call(String(e),t,n)},function(t,n){var e=g(m,t,this,n,m!==b);if(e.done)return e.value;var r=k(t),o=String(this),i=Ur(r,RegExp),a=r.unicode,c=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(zi?"y":"g"),s=new i(zi?r:"^(?:"+r.source+")",c),u=void 0===n?4294967295:n>>>0;if(0===u)return[];if(0===o.length)return null===bi(s,o)?[o]:[];for(var l=0,f=0,d=[];fa;)i.call(t,r=o[a++])&&n.push(r);return n},Zi=Dn.KEY,ta=ee.f,na=Kt.f,ea=Or.f,ra=Wt.Symbol,oa=Wt.JSON,ia=oa&&oa.stringify,aa="prototype",ca=sn("_hidden"),sa=sn("toPrimitive"),ua={}.propertyIsEnumerable,la=W("symbol-registry"),fa=W("symbols"),da=W("op-symbols"),pa=Object[aa],ha="function"==typeof ra,va=Wt.QObject,ba=!va||!va[aa]||!va[aa].findChild,ga=Qt&&qt(function(){return 7!=gn(na({},"a",{get:function(){return na(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=ta(pa,n);r&&delete pa[n],na(t,n,e),r&&t!==pa&&na(pa,n,r)}:na,ma=function(t){var n=fa[t]=gn(ra[aa]);return n._k=t,n},ya=ha&&"symbol"==typeof ra.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof ra},_a=function(t,n,e){return t===pa&&_a(da,n,e),k(t),n=Yt(n,!0),k(e),Jt(fa,n)?(e.enumerable?(Jt(t,ca)&&t[ca][n]&&(t[ca][n]=!1),e=gn(e,{enumerable:Xt(0,!1)})):(Jt(t,ca)||na(t,ca,Xt(1,{})),t[ca][n]=!0),ga(t,n,e)):na(t,n,e)},wa=function(t,n){k(t);for(var e,r=Ji(n=mt(n)),o=0,i=r.length;oo;)Jt(fa,n=e[o++])||n==ca||n==Zi||r.push(n);return r},Sa=function(t){for(var n,e=t===pa,r=ea(e?da:mt(t)),o=[],i=0;r.length>i;)!Jt(fa,n=r[i++])||e&&!Jt(pa,n)||o.push(fa[n]);return o};ha||(ra=function(){if(this instanceof ra)throw TypeError("Symbol is not a constructor!");var n=Zt(0ja;)sn(Fa[ja++]);for(var Pa=Ft(sn.store),Ta=0;Pa.length>Ta;)$i(Pa[Ta++]);nn(nn.S+nn.F*!ha,"Symbol",{for:function(t){return Jt(la,t+="")?la[t]:la[t]=ra(t)},keyFor:function(t){if(!ya(t))throw TypeError(t+" is not a symbol!");for(var n in la)if(la[n]===t)return n},useSetter:function(){ba=!0},useSimple:function(){ba=!1}}),nn(nn.S+nn.F*!ha,"Object",{create:xa,defineProperty:_a,defineProperties:wa,getOwnPropertyDescriptor:Ca,getOwnPropertyNames:Ea,getOwnPropertySymbols:Sa}),oa&&nn(nn.S+nn.F*(!ha||qt(function(){var t=ra();return"[null]"!=ia([t])||"{}"!=ia({a:t})||"{}"!=ia(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(Gt(n)||void 0!==t)&&!ya(t))return $(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!ya(n))return n}),r[1]=n,ia.apply(oa,r)}}),ra[aa][sa]||$t(ra[aa],sa,ra[aa].valueOf),Lt(ra,"Symbol"),Lt(Math,"Math",!0),Lt(Wt.JSON,"JSON",!0),$i("asyncIterator");var Oa=/"/g,Aa=function(t,n,e,r){var o=String(N(t)),i="<"+n;return""!==e&&(i+=" "+e+'="'+String(r).replace(Oa,""")+'"'),i+">"+o+""},Ma=function(n,t){var e={};e[n]=t(Aa),nn(nn.P+nn.F*qt(function(){var t=""[n]('"');return t!==t.toLowerCase()||3>10),n%1024+56320))}return e.join("")}});var za="includes";nn(nn.P+nn.F*La(za),"String",{includes:function(t){return!!~Ra(this,t,za).indexOf(t,1=n.length?{value:void 0,done:!0}:(t=Ha(n,e),this._i+=t.length,{value:t,done:!1})}),Ma("link",function(n){return function(t){return n(this,"a","href",t)}});var Wa=function(t){var n=String(N(this)),e="",r=rn(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(n+=n))1&r&&(e+=n);return e},Ga=function(t,n,e,r){var o=String(N(t)),i=o.length,a=void 0===e?" ":String(e),c=an(n);if(c<=i||""==a)return o;var s=c-i,u=Wa.call(a,Math.ceil(s/a.length));return u.length>s&&(u=u.slice(0,s)),r?u+o:o+u};nn(nn.P+nn.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(po),"String",{padStart:function(t){return Ga(this,t,1>1,l=23===n?v(2,-24)-v(2,-77):0,f=0,d=t<0||0===t&&1/t<0?1:0;for((t=h(t))!=t||t===p?(o=t!=t?1:0,r=s):(r=b(g(t)/m),t*(i=v(2,-r))<1&&(r--,i*=2),2<=(t+=1<=r+u?l/i:l*v(2,1-u))*i&&(r++,i/=2),s<=r+u?(o=0,r=s):1<=r+u?(o=(t*i-1)*v(2,n),r+=u):(o=t*v(2,u-1)*v(2,n),r=0));8<=n;a[f++]=255&o,o/=256,n-=8);for(r=r<>1,c=o-7,s=e-1,u=t[s--],l=127&u;for(u>>=7;0>=-c,c+=n;0>8&255]}function P(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function T(t){return C(t,52,8)}function O(t){return C(t,23,4)}function A(t,n,e){r(t[a],n,{get:function(){return this[e]}})}function M(t,n,e,r){var o=rc(+e);if(o+n>t[x])throw d(f);var i=t[w]._b,a=o+t[k],c=i.slice(a,a+n);return r?c:c.reverse()}function I(t,n,e,r,o,i){var a=rc(+e);if(a+n>t[x])throw d(f);for(var c=t[w]._b,s=a+t[k],u=r(+o),l=0;lB;)(R=L[B++])in c||$t(c,R,l[R]);N.constructor=c}var U=new s(new c(2)),D=s[a].setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||Ln(s[a],{setInt8:function(t,n){D.call(this,t,n<<24>>24)},setUint8:function(t,n){D.call(this,t,n<<24>>24)}},!0)}else c=function(t){Bn(this,c,o);var n=rc(t);this._b=un.call(new Array(n),0),this[x]=n},s=function(t,n,e){Bn(this,s,i),Bn(t,c,i);var r=t[x],o=rn(n);if(o<0||r>24},getUint8:function(t){return M(this,1,t)[0]},getInt16:function(t){var n=M(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=M(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return S(M(this,4,t,arguments[1]))},getUint32:function(t){return S(M(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return E(M(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return E(M(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){I(this,1,t,F,n)},setUint8:function(t,n){I(this,1,t,F,n)},setInt16:function(t,n){I(this,2,t,j,n,arguments[2])},setUint16:function(t,n){I(this,2,t,j,n,arguments[2])},setInt32:function(t,n){I(this,4,t,P,n,arguments[2])},setUint32:function(t,n){I(this,4,t,P,n,arguments[2])},setFloat32:function(t,n){I(this,4,t,O,n,arguments[2])},setFloat64:function(t,n){I(this,8,t,T,n,arguments[2])}});Lt(c,o),Lt(s,i),$t(s[a],ec.VIEW,!0),n[o]=c,n[i]=s}),ic=Wt.ArrayBuffer,ac=oc.ArrayBuffer,cc=oc.DataView,sc=ec.ABV&&ic.isView,uc=ac.prototype.slice,lc=ec.VIEW,fc="ArrayBuffer";nn(nn.G+nn.W+nn.F*(ic!==ac),{ArrayBuffer:ac}),nn(nn.S+nn.F*!ec.CONSTR,fc,{isView:function(t){return sc&&sc(t)||Gt(t)&&lc in t}}),nn(nn.P+nn.U+nn.F*qt(function(){return!new ac(2).slice(1,void 0).byteLength}),fc,{slice:function(t,n){if(void 0!==uc&&void 0===n)return uc.call(k(this),t);for(var e=k(this).byteLength,r=on(t,e),o=on(void 0===n?e:n,e),i=new(Ur(this,ac))(an(o-r)),a=new cc(this),c=new cc(i),s=0;r, no stack trace)"}function G(){return"function"==typeof X}var q=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Y(t){var n=t.match(Q);if(n)return{fileName:n[1],line:parseInt(n[2],10)}}function K(t){this._parent=t,this._promisesCreated=0;var n=this._length=1+(void 0===t?0:t._length);X(this,K),32=i)return e[n]=t,this._queue.push(n),!1;null!==o&&(o[n]=t);var a=this._promise,c=this._callback,s=a._boundValue();a._pushContext();var u=b(c).call(s,t,n,r),l=a._popContext();if(v.checkForgottenReturns(u,l,null!==o?"Promise.filter":"Promise.map",a),u===g)return this._reject(u.e),!0;var f=h(u,this._promise);if(f instanceof p){var d=(f=f._target())._bitField;if(0==(50397184&d))return 1<=i&&this._inFlight++,(e[n]=f)._proxy(this,-1*(n+1)),!1;if(0==(33554432&d))return 0!=(16777216&d)?this._reject(f._reason()):this._cancel(),!0;u=f._value()}e[n]=u}return r<=++this._totalResolved&&(null!==o?this._filter(e,o):this._resolve(e),!0)},l.prototype._drainQueue=function(){for(var t=this._queue,n=this._limit,e=this._values;0>>16)){if(t===this){var e=s();return this._attachExtraTrace(e),this._reject(e)}this._setFulfilled(),this._rejectionHandler0=t,0<(65535&n)&&(0!=(134217728&n)?this._settlePromises():v.settlePromises(this),this._dereferenceTrace())}},S.prototype._reject=function(t){var n=this._bitField;if(!((117506048&n)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return v.fatalError(t,h.isNode);0<(65535&n)?v.settlePromises(this):this._ensurePossibleRejectionHandled()}},S.prototype._fulfillPromises=function(t,n){for(var e=1;e=this._length&&(this._resolve(this._values),!0)},n.prototype._promiseCancelled=function(){return this._cancel(),!0},n.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},n.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof c)t.cancel();else for(var n=0;n=this._length){var e;if(this._isMap)e=function(t){for(var n=new c,e=t.length/2|0,r=0;r>1},r.prototype.props=function(){return e(this)},r.props=function(t){return e(t)}}},{"./es5":13,"./util":36}],26:[function(t,n,e){function r(t){this._capacity=t,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(t){return this._capacity=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(t,n){var e=new r;return e._bitField=33554432,e._settledValueField=t,this._promiseResolved(n,e)},o.prototype._promiseRejected=function(t,n){var e=new r;return e._bitField=16777216,e._settledValueField=t,this._promiseResolved(n,e)},t.settle=function(t){return e.deprecated(".settle()",".reflect()"),new o(t).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(l,t,n){t.exports=function(t,n,o){var e=l("./util"),r=l("./errors").RangeError,i=l("./errors").AggregateError,a=e.isArray,c={};function s(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function u(t,n){if((0|n)!==n||n<0)return o("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var e=new s(t),r=e.promise();return e.setHowMany(n),e.init(),r}e.inherits(s,n),s.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var t=a(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},s.prototype.init=function(){this._initialized=!0,this._init()},s.prototype.setUnwrap=function(){this._unwrap=!0},s.prototype.howMany=function(){return this._howMany},s.prototype.setHowMany=function(t){this._howMany=t},s.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},s.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},s.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},s.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new i,n=this.length();nGet MetaMask now'}},2:{basic:function(){return"Now you have MetaMask installed, you’ll need to log into it. The first time you use it, you may need to set up an account with MetaMask which you can do right from the extension. When you’ve got that set up and you’re logged into MetaMask, let us know."},advanced:function(){return"We’ve detected you are not logged into MetaMask. Please log in to continue using the blockchain enabled features of this application."}},3:{basic:function(){return"Please allow connection to your wallet"},advanced:function(){return"Connect your wallet to interact with this Dapp"}},4:{basic:function(){return"Blockchain applications have different networks they can work on. Think of this like making sure you’re on Netflix vs Hulu to watch your favorite show. We’ve detected that you need to be on the ".concat(us(Dc.config.networkId)||"mainnet"," network for this application but you have MetaMask set to ").concat(us(Dc.userCurrentNetworkId),". Switch the network name in MetaMask and you’ll be ready to go.")},advanced:function(){return"We’ve detected that you need to be on the ".concat(us(Dc.config.networkId)||"mainnet"," network for this application but you have MetaMask set to ").concat(us(Dc.userCurrentNetworkId),". Please switch to the correct network.")}},5:{basic:function(){return"Blockchain applications sometimes require Ether to perform various functions. You’ll need at least ".concat(Dc.config.minimumBalance/1e18," Ether (ETH) for this application.")},advanced:function(){return"Blockchain applications sometimes require Ether to perform various functions. You’ll need at least ".concat(Dc.config.minimumBalance/1e18," Ether (ETH) for this application.")}},6:{basic:function(){return"You have successfully completed all the steps necessary to use this application. Welcome to the world of blockchain."}}},vs={0:{basic:"I’M READY"},1:{basic:"CHECK THAT I HAVE METAMASK"},2:{basic:"CHECK THAT I’M LOGGED IN",advanced:"CHECK THAT I’M LOGGED IN"},3:{basic:"CHECK THAT I'M CONNECTED",advanced:"CHECK THAT I'M CONNECTED"},4:{basic:"CHECK THAT I’M ON THE RIGHT NETWORK",advanced:"CHECK MY NETWORK"},5:{basic:"CHECK THAT I HAVE ETHER",advanced:"I HAVE ENOUGH ETH"},6:{basic:"BACK TO THE APP"}};function bs(t){switch(t){case"loggedIn":return"You are not currently logged in to MetaMask.";case"enabled":return"You have not yet approved the Connect request in MetaMask.";case"network":return"You currently have MetaMask set to the ".concat(os(us(Dc.userCurrentNetworkId))," ").concat("1"===Dc.userCurrentNetworkId?"Ethereum":"Test"," Network.");case"minimumBalance":return"Your current MetaMask account has less than the necessary minimum balance of\n ".concat(Dc.config.minimumBalance/1e18," ").concat(os(us(Dc.userCurrentNetworkId))," ").concat("1"===Dc.userCurrentNetworkId?"Ethereum":"Test"," Network Ether (ETH).");default:return}}var gs={blockNativeLogo:{src:"https://s3.amazonaws.com/bnc-assist/images/fJxOtIj.png",srcset:"https://s3.amazonaws.com/bnc-assist/images/UhcCuKF.png 2x"},mobile:{src:"https://s3.amazonaws.com/bnc-assist/images/EcUxQVJ.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/GS6owd9.jpg 2x"},browser:{src:"https://s3.amazonaws.com/bnc-assist/images/riXzN0X.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/xpWtOVX.jpg 2x"},chromeLogo:{src:"https://s3.amazonaws.com/bnc-assist/images/XAwAAmL.png",srcset:"https://s3.amazonaws.com/bnc-assist/images/maxXVIH.png 2x"},firefoxLogo:{src:"https://s3.amazonaws.com/bnc-assist/images/WjOSJTh.png",srcset:"https://s3.amazonaws.com/bnc-assist/images/kodZvyO.png 2x"},0:{src:"https://s3.amazonaws.com/bnc-assist/images/XUPOg7L.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/s8euD9T.jpg 2x"},1:{src:"https://s3.amazonaws.com/bnc-assist/images/EgcXT0z.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/4zplgXa.jpg 2x"},2:{src:"https://s3.amazonaws.com/bnc-assist/images/tKkRH5L.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/BEhzPx6.jpg 2x"},3:{src:"https://s3.amazonaws.com/bnc-assist/images/HuDHbXP.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/XLBqwPO.jpg 2x"},4:{src:"https://s3.amazonaws.com/bnc-assist/images/0VBtqGV.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/t7WS9Sc.jpg 2x"},5:{src:"https://s3.amazonaws.com/bnc-assist/images/1TWEHRY.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/jfdXqIU.jpg 2x"},6:{src:"https://s3.amazonaws.com/bnc-assist/images/8ptZott.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/elR9xQ8.jpg 2x"}},ms={txPending:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has started")},txSent:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has been sent to the network")},txSendFail:function(){return"You rejected the transaction"},txStall:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has stalled")},txFailed:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has failed")},nsfFail:function(){return"You have insufficient funds to complete this transaction"},txRepeat:function(){return"This could be a repeat transaction"},txAwaitingApproval:function(){return"You have a previous transaction awaiting approval"},txConfirmReminder:function(){return"Please confirm your transaction to continue (hint: the transaction window may be behind your browser)"},txConfirmed:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has succeeded")}};function ys(t,n){var e="\n \n \n \n \n \n \n "),r=t.createElement("iframe");t.body.appendChild(r),r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.height="100vh",r.style.width="100%",r.style.border="none",r.style.pointerEvents="none",r.style["z-index"]=999;var o=r.contentWindow,i=o.document;i.open(),i.write(e),i.close(),Vc({iframe:r,iframeDocument:i,iframeWindow:o})}function _s(t){Dc.iframe.style.top="",Dc.iframe.style.left="",Dc.iframe.style.bottom="0px",Dc.iframe.style.right="0px",Dc.iframe.style.height="".concat(Number(t.clientHeight)+Number(Rs("bn-transaction-branding").clientHeight)+7+40,"px"),Dc.iframe.style.width="".concat(t.clientWidth+17,"px"),Dc.iframe.style.pointerEvents="all"}function ws(){var t=Rs("blocknative-notifications");t&&(Dc.iframe.style.height="".concat(t.clientHeight,"px"),Dc.iframe.style.width="".concat(t.clientWidth,"px"),Dc.iframe.style.pointerEvents="all")}function xs(){Dc.iframe.style.top="0px",Dc.iframe.style.left="0px",Dc.iframe.style.bottom="",Dc.iframe.style.right="",Dc.iframe.style.height="100vh",Dc.iframe.style.width="100%",Dc.iframe.style.pointerEvents="none"}function ks(t,n,e){return"\n\t <".concat(t,' class="').concat(n,'">\n\t ').concat(e,"\n\t \n\t")}function Cs(t,n,e,r){var o=Dc.iframeDocument.createElement(t);return o.className=n||"",e&&"string"==typeof e&&(o.innerHTML=e),e&&"object"===y(e)&&o.appendChild(e),r&&(o.id=r),o}function Es(){var n=Dc.iframeDocument.querySelector(".bn-onboard-modal-shade");n.style.opacity="0",Dc.iframe.style.pointerEvents="none",setTimeout(function(){Dc.iframeDocument.body.removeChild(n);var t=Ns(".bn-notifications");t&&_s(t)},ls.removeElement)}function Ss(t){var n=1\n ')}function js(){var t=gs.chromeLogo,n=gs.firefoxLogo;return'\n

\n \n \n
\n Chrome\n
\n \n \n
\n Firefox\n
\n

\n ')}function Ps(){var t=gs.blockNativeLogo;return'\n
\n

Powered by\n \n \n \n

\n
\n ')}function Ts(t){var n=ds["".concat(t,"NotSupported")];return'\n
\n
\n \n \n \n ').concat(Fs(t),'\n

\n

').concat(n.heading,"

\n

").concat(n.description(),"

\n
\n ").concat("browser"===t?"".concat(js(),"
"):"","\n ").concat(Ps(),"\n
\n
\n ")}function Os(t){return'\n
\n

Setup Tasks

\n
    \n
  • \n ').concat(ps[1].basic,"\n
  • \n
  • \n ').concat(ps[2].basic,"\n
  • \n
  • \n ').concat(ps[3].basic,"\n
  • \n
  • \n ').concat(ps[4].basic,"\n
  • \n
  • \n ').concat(ps[5].basic,"\n
  • \n
\n ").concat(Ps(),"\n
\n ")}function As(t,n){var e=ps[n][t],r=hs[n][t](),o="function"==typeof vs[n][t]?vs[n][t]():vs[n][t],i=gs[n],a=Dc.config.images,c=fs(n),s=a&&a[c];return'\n \n
\n

').concat(e,"

\n

").concat(r,'

\n
\n
\n

\n ').concat(o,"\n \n

\n ")}function Ms(t,n){return'\n
\n
\n \n \n \n ').concat("basic"===t?Os(n):"","\n\t\t\t\t").concat("basic"===t?ks("div","bn-onboard-main",As(t,n)):As(t,n),"\n ").concat("advanced"===t?"
".concat(Ps()):"","\n
\n
\n ")}function Is(t){if(!Ns(".bn-onboard-warning")){var n=Cs("span","bn-onboard-warning",bs(t)),e=Cs("br"),r=Ns(".bn-onboard-main");if(r)r.appendChild(e),r.appendChild(n);else{var o=Ns(".bn-onboard-modal"),i=o.querySelector(".bn-onboarding-branding");o.insertBefore(n,i)}}}function Rs(t){return Dc.iframeDocument.getElementById(t)}function Ns(t){return Dc.iframeDocument.querySelector(t)}function Ls(){var t=Cs("a",null,null,"bn-transaction-branding");return t.href="https://www.blocknative.com/",t.target="_blank",t}function Bs(t,n){var e=2\n\t\t\t'.concat("progress"===t?'
\n\t\t\t\t
\n\t\t\t\t\tYou will be notified when this transaction is completed.\n\t\t\t\t
\n\t\t\t
':"",'\n\t\t\n\t\t
\n\t\t\t

').concat(n,'

\n\t\t\t

\n\t\t\t\t').concat(i,'\n\t\t\t\t - \n\t\t\t\t\t\n\t\t\t\t\t').concat(a,"\n\t\t\t\t\n\t\t\t

\n\t\t
\n\t")}function Us(t,r){var o=Rs(t);return o?setInterval(function(){var t=o.querySelector(".bn-duration");t.classList.contains("bn-duration-hidden")&&t.classList.remove("bn-duration-hidden");var n=t.querySelector(".bn-duration-time"),e=ts(Date.now()-r);n.innerHTML="".concat(e)},1e3):null}function Ds(t,n){setTimeout(function(){t.style.opacity="1",t.style.transform="translateX(0)"},n)}function Vs(t){setTimeout(function(){t.style.transform="translateX(600px)",t.style.opacity="0"},ls.hideElement)}function zs(t,n){setTimeout(function(){t.contains(n)&&(t.removeChild(n),ws(),t!==Dc.iframeDocument.body&&Gs())},ls.removeElement)}function Hs(t){var n=Ns(".bn-notifications");Vs(t),zs(n,t)}function Ws(t){var n=t.reduce(function(t,n){if(n){var e=Array.from(Dc.iframeDocument.querySelectorAll(n));return[].concat(b(t),b(e))}return t},[]);0c[1][i])return 1;if(c[0][i]===c[1][i]){if(i===a)return 0;i-=1}else if(c[0][i]"===t[0]?(n=1,e=t.substr(1)):"<"===t[0]?(n=-1,e=t.substr(1)):"="===t[0]?e=t.substr(1):"~"===t[0]&&(r=!0,e=t.substr(1)),(0,i.compareVersions)(o,e,r)===n}},{key:"isOS",value:function(t){return this.getOSName(!0)===String(t).toLowerCase()}},{key:"isPlatform",value:function(t){return this.getPlatformType(!0)===String(t).toLowerCase()}},{key:"is",value:function(t){return this.isBrowser(t)||this.isOS(t)||this.isPlatform(t)}},{key:"some",value:function(){var n=this,t=049",firefox:">52",opera:">36"}})})}var lu=new Error("undefined version of web3");lu.eventCode="initFail";var fu={networkId:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.version.getNetwork);case"1.0":return Dc.web3Instance.eth.net.getId;default:return function(){return Promise.reject(lu)}}},nonce:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.getTransactionCount);case"1.0":return Dc.web3Instance.eth.getTransactionCount;default:return function(){return Promise.reject(lu)}}},bigNumber:function(t){switch(t){case"0.2":return function(t){return Promise.resolve(Dc.web3Instance.toBigNumber(is(t)))};case"1.0":return function(t){return Promise.resolve(Dc.web3Instance.utils.toBN(is(t)))};default:return function(){return Promise.reject(lu)}}},gasPrice:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.getGasPrice);case"1.0":return Dc.web3Instance.eth.getGasPrice;default:return function(){return Promise.reject(lu)}}},contractGas:function(t){switch(t){case"0.2":return function(t,n,e){return Uc(t.estimateGas).apply(void 0,b(n).concat([e]))};case"1.0":return function(t,n,e){return t.apply(void 0,b(n)).estimateGas(e)};default:return function(){return Promise.reject(lu)}}},transactionGas:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.estimateGas);case"1.0":return Dc.web3Instance.eth.estimateGas;default:return function(){return Promise.reject(lu)}}},balance:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.getBalance);case"1.0":return Dc.web3Instance.eth.getBalance;default:return function(){return Promise.reject(lu)}}},accounts:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.getAccounts);case"1.0":return Dc.web3Instance.eth.getAccounts;default:return function(){return Promise.reject(lu)}}}};function du(t){var n,e,r;t||(t=window.web3),t.default&&(t=t.default),r=t.version.api&&"string"==typeof t.version.api?(e=!(n=!0),t.version.api):t.version&&"string"==typeof t.version?(e=!(n=!1),t.version):void(e=n=!1),Vc({legacyWeb3:n,modernWeb3:e,web3Version:r,web3Instance:t})}function pu(){window.ethereum?Vc({currentProvider:wu(),validBrowser:!0,web3Wallet:!0,legacyWallet:!1,modernWallet:!0}):window.web3?Vc({currentProvider:wu(),validBrowser:!0,web3Wallet:!0,legacyWallet:!0,modernWallet:!1}):Vc({web3Wallet:!1,accessToAccounts:!1,walletLoggedIn:!1,walletEnabled:!1})}function hu(){var t=Dc.web3Version&&Dc.web3Version.slice(0,3);return fu.networkId(t)()}function vu(t){var n=Dc.web3Version&&Dc.web3Version.slice(0,3);return fu.nonce(n)(t)}function bu(){var h=0o;)Jt(r,e=n[o++])&&(~kt(i,e)||i.push(e));return i},St="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ft=Object.keys||function(t){return Et(t,St)},jt=Qt?Object.defineProperties:function(t,n){k(t);for(var e,r=Ft(n),o=r.length,i=0;idocument.F=Object<\/script>"),t.close(),It=t.F;e--;)delete It[Mt][St[e]];return It()},gn=Object.create||function(t,n){var e;return null!==t?(At[Mt]=k(t),e=new At,At[Mt]=null,e[Ot]=t):e=It(),void 0===n?e:jt(e,n)},Rt=Kt.f,Nt=sn("toStringTag"),Lt=function(t,n,e){t&&!Jt(t=e?t:t.prototype,Nt)&&Rt(t,Nt,{configurable:!0,value:n})},Bt={};$t(Bt,sn("iterator"),function(){return this});var Ut=function(t,n,e){t.prototype=gn(Bt,{next:Xt(1,e)}),Lt(t,n+" Iterator")},Dt=xt("IE_PROTO"),Vt=Object.prototype,mn=Object.getPrototypeOf||function(t){return t=en(t),Jt(t,Dt)?t[Dt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Vt:null},zt=sn("iterator"),Ht=!([].keys&&"next"in[].keys()),yn="@@iterator",_n="keys",wn="values",xn=function(){return this},kn=function(t,n,e,r,o,i,a){Ut(e,n,r);var c,s,u,l=function(t){if(!Ht&&t in h)return h[t];switch(t){case _n:case wn:return function(){return new e(this,t)}}return function(){return new e(this,t)}},f=n+" Iterator",d=o==wn,p=!1,h=t.prototype,v=h[zt]||h[yn]||o&&h[o],b=v||l(o),g=o?d?l("entries"):b:void 0,m="Array"==n&&h.entries||v;if(m&&(u=mn(m.call(new t)))!==Object.prototype&&u.next&&(Lt(u,f,!0),H||"function"==typeof u[zt]||$t(u,zt,xn)),d&&v&&v.name!==wn&&(p=!0,b=function(){return v.call(this)}),H&&!a||!Ht&&!p&&h[zt]||$t(h,zt,b),fn[n]=b,fn[f]=xn,o)if(c={values:d?b:l(wn),keys:i?b:l(_n),entries:g},a)for(s in c)s in h||A(h,s,c[s]);else nn(nn.P+nn.F*(Ht||p),n,c);return c},Cn=kn(Array,"Array",function(t,n){this._t=mt(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,_t(1)):_t(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values");fn.Arguments=fn.Array,Q("keys"),Q("values"),Q("entries"),nn(nn.S+nn.F*qt(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);t>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var ge=Math.exp;nn(nn.S,"Math",{cosh:function(t){return(ge(t=+t)+ge(-t))/2}});var me=Math.expm1,ye=!me||22025.465794806718>>16)*a+i*(e&o>>>16)<<16>>>0)}}),nn(nn.S,"Math",{log1p:le}),nn(nn.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}}),nn(nn.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}}),nn(nn.S,"Math",{sign:be});var Pe=Math.exp;nn(nn.S+nn.F*qt(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(ye(t)-ye(-t))/2:(Pe(t-1)-Pe(-t-1))*(Math.E/2)}});var Te=Math.exp;nn(nn.S,"Math",{tanh:function(t){var n=ye(t=+t),e=ye(-t);return n==1/0?1:e==1/0?-1:(n-e)/(Te(t)+Te(-t))}}),nn(nn.S,"Math",{trunc:function(t){return(0tr;tr++)Jt(Ye,nr=Ze[tr])&&!Jt(Qe,nr)&&We(Qe,nr,He(Ye,nr));Qe.prototype=Ke,Ke.constructor=Qe,A(Wt,qe,Qe)}nn(nn.S,"Number",{EPSILON:Math.pow(2,-52)});var er=Wt.isFinite;nn(nn.S,"Number",{isFinite:function(t){return"number"==typeof t&&er(t)}});var rr=Math.floor,or=function(t){return!Gt(t)&&isFinite(t)&&rr(t)===t};nn(nn.S,"Number",{isInteger:or}),nn(nn.S,"Number",{isNaN:function(t){return t!=t}});var ir=Math.abs;nn(nn.S,"Number",{isSafeInteger:function(t){return or(t)&&ir(t)<=9007199254740991}}),nn(nn.S,"Number",{MAX_SAFE_INTEGER:9007199254740991}),nn(nn.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991});var ar=Wt.parseFloat,cr=Ve.trim,sr=1/ar(Ie+"-0")!=-1/0?function(t){var n=cr(String(t),3),e=ar(n);return 0===e&&"-"==n.charAt(0)?-0:e}:ar;nn(nn.S+nn.F*(Number.parseFloat!=sr),"Number",{parseFloat:sr});var ur=Wt.parseInt,lr=Ve.trim,fr=/^[-+]?0[xX]/,dr=8!==ur(Ie+"08")||22!==ur(Ie+"0x16")?function(t,n){var e=lr(String(t),3);return ur(e,n>>>0||(fr.test(e)?16:10))}:ur;nn(nn.S+nn.F*(Number.parseInt!=dr),"Number",{parseInt:dr});var pr=Object.getOwnPropertySymbols,hr={f:pr},vr=Object.assign,br=!vr||qt(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=vr({},t)[e]||Object.keys(vr({},n)).join("")!=r})?function(t,n){for(var e=en(t),r=arguments.length,o=1,i=hr.f,a=Zn.f;oc;)void 0!==(e=o(r,n=i[c++]))&<(a,n,e);return a}});var Sr=Me.f,Fr={}.toString,jr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pr=function(t){try{return Sr(t)}catch(t){return jr.slice()}},Tr=function(t){return jr&&"[object Window]"==Fr.call(t)?Pr(t):Sr(mt(t))},Or={f:Tr};wr("getOwnPropertyNames",function(){return Or.f}),wr("getPrototypeOf",function(){return function(t){return mn(en(t))}});var Ar=ee.f;Qt&&nn(nn.P+gr,"Object",{__lookupGetter__:function(t){var n,e=en(this),r=Yt(t,!0);do{if(n=Ar(e,r))return n.get}while(e=mn(e))}});var Mr=ee.f;Qt&&nn(nn.P+gr,"Object",{__lookupSetter__:function(t){var n,e=en(this),r=Yt(t,!0);do{if(n=Mr(e,r))return n.set}while(e=mn(e))}});var Ir=Dn.onFreeze;wr("preventExtensions",function(n){return function(t){return n&&Gt(t)?n(Ir(t)):t}});var Rr=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n};nn(nn.S,"Object",{is:Rr}),wr("isFrozen",function(n){return function(t){return!Gt(t)||!!n&&n(t)}}),wr("isSealed",function(n){return function(t){return!Gt(t)||!!n&&n(t)}}),wr("isExtensible",function(n){return function(t){return!!Gt(t)&&(!n||n(t))}}),wr("keys",function(){return function(t){return Ft(en(t))}});var Nr=Dn.onFreeze;wr("seal",function(n){return function(t){return n&&Gt(t)?n(Nr(t)):t}});var Lr=yr(!1);nn(nn.S,"Object",{values:function(t){return Lr(t)}});var Br=sn("species"),Ur=function(t,n){var e,r=k(t).constructor;return void 0===r||null==(e=k(r)[Br])?n:M(e)},Dr=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)},Vr=Wt.process,zr=Wt.setImmediate,Hr=Wt.clearImmediate,Wr=Wt.MessageChannel,Gr=Wt.Dispatch,qr=0,Qr={},Yr="onreadystatechange",Kr,Xr,$r,Jr=function(){var t=+this;if(Qr.hasOwnProperty(t)){var n=Qr[t];delete Qr[t],n()}},Zr=function(t){Jr.call(t.data)};zr&&Hr||(zr=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return Qr[++qr]=function(){Dr("function"==typeof t?t:Function(t),n)},Kr(qr),qr},Hr=function(t){delete Qr[t]},"process"==K(Vr)?Kr=function(t){Vr.nextTick(tn(Jr,t,1))}:Gr&&Gr.now?Kr=function(t){Gr.now(tn(Jr,t,1))}:Wr?(Xr=new Wr,$r=Xr.port2,Xr.port1.onmessage=Zr,Kr=tn($r.postMessage,$r,1)):Wt.addEventListener&&"function"==typeof postMessage&&!Wt.importScripts?(Kr=function(t){Wt.postMessage(t+"","*")},Wt.addEventListener("message",Zr,!1)):Kr=Yr in E("script")?function(t){Tt.appendChild(E("script"))[Yr]=function(){Tt.removeChild(this),Jr.call(t)}}:function(t){setTimeout(tn(Jr,t,1),0)});var to={set:zr,clear:Hr},no=to.set,eo=Wt.MutationObserver||Wt.WebKitMutationObserver,ro=Wt.process,oo=Wt.Promise,io="process"==K(ro),ao=function(){var e,r,o,t=function(){var t,n;for(io&&(t=ro.domain)&&t.exit();e;){n=e.fn,e=e.next;try{n()}catch(t){throw e?o():r=void 0,t}}r=void 0,t&&t.enter()};if(io)o=function(){ro.nextTick(t)};else if(!eo||Wt.navigator&&Wt.navigator.standalone)if(oo&&oo.resolve){var n=oo.resolve(void 0);o=function(){n.then(t)}}else o=function(){no.call(Wt,t)};else{var i=!0,a=document.createTextNode("");new eo(t).observe(a,{characterData:!0}),o=function(){a.data=i=!i}}return function(t){var n={fn:t,next:void 0};r&&(r.next=n),e||(e=n,o()),r=n}};function co(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=M(e),this.reject=M(r)}var so=function(t){return new co(t)},uo={f:so},lo=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},fo=Wt.navigator,po=fo&&fo.userAgent||"",ho=function(t,n){if(k(t),Gt(n)&&n.constructor===t)return n;var e=uo.f(t);return(0,e.resolve)(n),e.promise},vo=to.set,bo=ao(),go="Promise",mo=Wt.TypeError,yo=Wt.process,_o=yo&&yo.versions,wo=_o&&_o.v8||"",xo=Wt[go],ko="process"==pn(yo),Co=function(){},Eo,So,Fo,jo,Po=So=uo.f,To=!!function(){try{var t=xo.resolve(1),n=(t.constructor={})[sn("species")]=function(t){t(Co,Co)};return(ko||"function"==typeof PromiseRejectionEvent)&&t.then(Co)instanceof n&&0!==wo.indexOf("6.6")&&-1===po.indexOf("Chrome/66")}catch(t){}}(),Oo=function(t){var n;return!(!Gt(t)||"function"!=typeof(n=t.then))&&n},Ao=function(l,e){if(!l._n){l._n=!0;var r=l._c;bo(function(){for(var s=l._v,u=1==l._s,t=0,n=function(t){var n,e,r,o=u?t.ok:t.fail,i=t.resolve,a=t.reject,c=t.domain;try{o?(u||(2==l._h&&Ro(l),l._h=1),!0===o?n=s:(c&&c.enter(),n=o(s),c&&(c.exit(),r=!0)),n===t.promise?a(mo("Promise-chain cycle")):(e=Oo(n))?e.call(n,i,a):i(n)):a(s)}catch(t){c&&!r&&c.exit(),a(t)}};r.length>t;)n(r[t++]);l._c=[],l._n=!1,e&&!l._h&&Mo(l)})}},Mo=function(i){vo.call(Wt,function(){var t,n,e,r=i._v,o=Io(i);if(o&&(t=lo(function(){ko?yo.emit("unhandledRejection",r,i):(n=Wt.onunhandledrejection)?n({promise:i,reason:r}):(e=Wt.console)&&e.error&&e.error("Unhandled promise rejection",r)}),i._h=ko||Io(i)?2:1),i._a=void 0,o&&t.e)throw t.v})},Io=function(t){return 1!==t._h&&0===(t._a||t._c).length},Ro=function(n){vo.call(Wt,function(){var t;ko?yo.emit("rejectionHandled",n):(t=Wt.onrejectionhandled)&&t({promise:n,reason:n._v})})},No=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),Ao(n,!0))},Lo=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw mo("Promise can't be resolved itself");(e=Oo(t))?bo(function(){var n={_w:r,_d:!1};try{e.call(t,tn(Lo,n,1),tn(No,n,1))}catch(t){No.call(n,t)}}):(r._v=t,r._s=1,Ao(r,!1))}catch(t){No.call({_w:r,_d:!1},t)}}};To||(xo=function(t){Bn(this,xo,go,"_h"),M(t),Eo.call(this);try{t(tn(Lo,this,1),tn(No,this,1))}catch(t){No.call(this,t)}},Eo=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Eo.prototype=Ln(xo.prototype,{then:function(t,n){var e=Po(Ur(this,xo));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=ko?yo.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&Ao(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),Fo=function(){var t=new Eo;this.promise=t,this.resolve=tn(Lo,t,1),this.reject=tn(No,t,1)},uo.f=Po=function(t){return t===xo||t===jo?new Fo(t):So(t)}),nn(nn.G+nn.W+nn.F*!To,{Promise:xo}),Lt(xo,go),Sn(go),jo=_[go],nn(nn.S+nn.F*!To,go,{reject:function(t){var n=Po(this);return(0,n.reject)(t),n.promise}}),nn(nn.S+nn.F*(H||!To),go,{resolve:function(t){return ho(H&&this===jo?xo:this,t)}}),nn(nn.S+nn.F*!(To&&vn(function(t){xo.all(t).catch(Co)})),go,{all:function(t){var a=this,n=Po(a),c=n.resolve,s=n.reject,e=lo(function(){var r=[],o=0,i=1;Un(t,!1,function(t){var n=o++,e=!1;r.push(void 0),i++,a.resolve(t).then(function(t){e||(e=!0,r[n]=t,--i||c(r))},s)}),--i||c(r)});return e.e&&s(e.v),n.promise},race:function(t){var n=this,e=Po(n),r=e.reject,o=lo(function(){Un(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}}),nn(nn.P+nn.R,"Promise",{finally:function(n){var e=Ur(this,_.Promise||Wt.Promise),t="function"==typeof n;return this.then(t?function(t){return ho(e,n()).then(function(){return t})}:n,t?function(t){return ho(e,n()).then(function(){throw t})}:n)}});var Bo=(Wt.Reflect||{}).apply,Uo=Function.apply;nn(nn.S+nn.F*!qt(function(){Bo(function(){})}),"Reflect",{apply:function(t,n,e){var r=M(t),o=k(e);return Bo?Bo(r,n,o):Uo.call(r,n,o)}});var Do=[].slice,Vo={},zo=function(t,n,e){if(!(n in Vo)){for(var r=[],o=0;ofi;)ui(li[fi++]);ii.constructor=ri,ri.prototype=ii,A(Wt,"RegExp",ri)}Sn("RegExp"),Qt&&"g"!=/./g.flags&&Kt.f(RegExp.prototype,"flags",{configurable:!0,get:ti});var di=function(c){return function(t,n){var e,r,o=String(N(t)),i=rn(n),a=o.length;return i<0||a<=i?c?"":void 0:(e=o.charCodeAt(i))<55296||56319")}),Pi=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}(),Ti=function(e,t,n){var r=sn(e),i=!qt(function(){var t={};return t[r]=function(){return 7},7!=""[e](t)}),o=i?!qt(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[Fi]=function(){return n}),n[r](""),!t}):void 0;if(!i||!o||"replace"===e&&!ji||"split"===e&&!Pi){var a=/./[r],c=n(N,r,""[e],function(t,n,e,r,o){return n.exec===Si?i&&!o?{done:!0,value:a.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),s=c[0],u=c[1];A(String.prototype,e,s),$t(RegExp.prototype,r,2==t?function(t,n){return u.call(t,this,n)}:function(t){return u.call(t,this)})}};Ti("match",1,function(r,o,u,l){return[function(t){var n=r(this),e=null==t?void 0:t[o];return void 0!==e?e.call(t,n):new RegExp(t)[o](String(n))},function(t){var n=l(u,t,this);if(n.done)return n.value;var e=k(t),r=String(this);if(!e.global)return bi(e,r);for(var o,i=e.unicode,a=[],c=e.lastIndex=0;null!==(o=bi(e,r));){var s=String(o[0]);""===(a[c]=s)&&(e.lastIndex=hi(r,an(e.lastIndex),i)),c++}return 0===c?null:a}]});var Oi=Math.max,Ai=Math.min,Mi=Math.floor,Ii=/\$([$&`']|\d\d?|<[^>]*>)/g,Ri=/\$([$&`']|\d\d?)/g,Ni=function(t){return void 0===t?t:String(t)};Ti("replace",2,function(o,i,_,w){return[function(t,n){var e=o(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e,n):_.call(String(e),t,n)},function(t,n){var e=w(_,t,this,n);if(e.done)return e.value;var r=k(t),o=String(this),i="function"==typeof n;i||(n=String(n));var a=r.global;if(a){var c=r.unicode;r.lastIndex=0}for(var s=[];;){var u=bi(r,o);if(null===u)break;if(s.push(u),!a)break;""===String(u[0])&&(r.lastIndex=hi(o,an(r.lastIndex),c))}for(var l="",f=0,d=0;d>>0,l=new RegExp(t.source,c+"g");(r=Si.call(l,e))&&!(s<(o=l[Vi])&&(a.push(e.slice(s,r.index)),1=u));)l[Vi]===r.index&&l[Vi]++;return s===e[Di]?!i&&l.test("")||a.push(""):a.push(e.slice(s)),a[Di]>u?a.slice(0,u):a}:"0"[Ui](void 0,0)[Di]?function(t,n){return void 0===t&&0===n?[]:b.call(this,t,n)}:b,[function(t,n){var e=o(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e,n):m.call(String(e),t,n)},function(t,n){var e=g(m,t,this,n,m!==b);if(e.done)return e.value;var r=k(t),o=String(this),i=Ur(r,RegExp),a=r.unicode,c=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(zi?"y":"g"),s=new i(zi?r:"^(?:"+r.source+")",c),u=void 0===n?4294967295:n>>>0;if(0===u)return[];if(0===o.length)return null===bi(s,o)?[o]:[];for(var l=0,f=0,d=[];fa;)i.call(t,r=o[a++])&&n.push(r);return n},Zi=Dn.KEY,ta=ee.f,na=Kt.f,ea=Or.f,ra=Wt.Symbol,oa=Wt.JSON,ia=oa&&oa.stringify,aa="prototype",ca=sn("_hidden"),sa=sn("toPrimitive"),ua={}.propertyIsEnumerable,la=W("symbol-registry"),fa=W("symbols"),da=W("op-symbols"),pa=Object[aa],ha="function"==typeof ra,va=Wt.QObject,ba=!va||!va[aa]||!va[aa].findChild,ga=Qt&&qt(function(){return 7!=gn(na({},"a",{get:function(){return na(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=ta(pa,n);r&&delete pa[n],na(t,n,e),r&&t!==pa&&na(pa,n,r)}:na,ma=function(t){var n=fa[t]=gn(ra[aa]);return n._k=t,n},ya=ha&&"symbol"==typeof ra.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof ra},_a=function(t,n,e){return t===pa&&_a(da,n,e),k(t),n=Yt(n,!0),k(e),Jt(fa,n)?(e.enumerable?(Jt(t,ca)&&t[ca][n]&&(t[ca][n]=!1),e=gn(e,{enumerable:Xt(0,!1)})):(Jt(t,ca)||na(t,ca,Xt(1,{})),t[ca][n]=!0),ga(t,n,e)):na(t,n,e)},wa=function(t,n){k(t);for(var e,r=Ji(n=mt(n)),o=0,i=r.length;oo;)Jt(fa,n=e[o++])||n==ca||n==Zi||r.push(n);return r},Sa=function(t){for(var n,e=t===pa,r=ea(e?da:mt(t)),o=[],i=0;r.length>i;)!Jt(fa,n=r[i++])||e&&!Jt(pa,n)||o.push(fa[n]);return o};ha||(ra=function(){if(this instanceof ra)throw TypeError("Symbol is not a constructor!");var n=Zt(0ja;)sn(Fa[ja++]);for(var Pa=Ft(sn.store),Ta=0;Pa.length>Ta;)$i(Pa[Ta++]);nn(nn.S+nn.F*!ha,"Symbol",{for:function(t){return Jt(la,t+="")?la[t]:la[t]=ra(t)},keyFor:function(t){if(!ya(t))throw TypeError(t+" is not a symbol!");for(var n in la)if(la[n]===t)return n},useSetter:function(){ba=!0},useSimple:function(){ba=!1}}),nn(nn.S+nn.F*!ha,"Object",{create:xa,defineProperty:_a,defineProperties:wa,getOwnPropertyDescriptor:Ca,getOwnPropertyNames:Ea,getOwnPropertySymbols:Sa}),oa&&nn(nn.S+nn.F*(!ha||qt(function(){var t=ra();return"[null]"!=ia([t])||"{}"!=ia({a:t})||"{}"!=ia(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(Gt(n)||void 0!==t)&&!ya(t))return $(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!ya(n))return n}),r[1]=n,ia.apply(oa,r)}}),ra[aa][sa]||$t(ra[aa],sa,ra[aa].valueOf),Lt(ra,"Symbol"),Lt(Math,"Math",!0),Lt(Wt.JSON,"JSON",!0),$i("asyncIterator");var Oa=/"/g,Aa=function(t,n,e,r){var o=String(N(t)),i="<"+n;return""!==e&&(i+=" "+e+'="'+String(r).replace(Oa,""")+'"'),i+">"+o+""},Ma=function(n,t){var e={};e[n]=t(Aa),nn(nn.P+nn.F*qt(function(){var t=""[n]('"');return t!==t.toLowerCase()||3>10),n%1024+56320))}return e.join("")}});var za="includes";nn(nn.P+nn.F*La(za),"String",{includes:function(t){return!!~Ra(this,t,za).indexOf(t,1=n.length?{value:void 0,done:!0}:(t=Ha(n,e),this._i+=t.length,{value:t,done:!1})}),Ma("link",function(n){return function(t){return n(this,"a","href",t)}});var Wa=function(t){var n=String(N(this)),e="",r=rn(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(n+=n))1&r&&(e+=n);return e},Ga=function(t,n,e,r){var o=String(N(t)),i=o.length,a=void 0===e?" ":String(e),c=an(n);if(c<=i||""==a)return o;var s=c-i,u=Wa.call(a,Math.ceil(s/a.length));return u.length>s&&(u=u.slice(0,s)),r?u+o:o+u};nn(nn.P+nn.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(po),"String",{padStart:function(t){return Ga(this,t,1>1,l=23===n?v(2,-24)-v(2,-77):0,f=0,d=t<0||0===t&&1/t<0?1:0;for((t=h(t))!=t||t===p?(o=t!=t?1:0,r=s):(r=b(g(t)/m),t*(i=v(2,-r))<1&&(r--,i*=2),2<=(t+=1<=r+u?l/i:l*v(2,1-u))*i&&(r++,i/=2),s<=r+u?(o=0,r=s):1<=r+u?(o=(t*i-1)*v(2,n),r+=u):(o=t*v(2,u-1)*v(2,n),r=0));8<=n;a[f++]=255&o,o/=256,n-=8);for(r=r<>1,c=o-7,s=e-1,u=t[s--],l=127&u;for(u>>=7;0>=-c,c+=n;0>8&255]}function P(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function T(t){return C(t,52,8)}function O(t){return C(t,23,4)}function A(t,n,e){r(t[a],n,{get:function(){return this[e]}})}function M(t,n,e,r){var o=rc(+e);if(o+n>t[x])throw d(f);var i=t[w]._b,a=o+t[k],c=i.slice(a,a+n);return r?c:c.reverse()}function I(t,n,e,r,o,i){var a=rc(+e);if(a+n>t[x])throw d(f);for(var c=t[w]._b,s=a+t[k],u=r(+o),l=0;lB;)(R=L[B++])in c||$t(c,R,l[R]);N.constructor=c}var U=new s(new c(2)),D=s[a].setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||Ln(s[a],{setInt8:function(t,n){D.call(this,t,n<<24>>24)},setUint8:function(t,n){D.call(this,t,n<<24>>24)}},!0)}else c=function(t){Bn(this,c,o);var n=rc(t);this._b=un.call(new Array(n),0),this[x]=n},s=function(t,n,e){Bn(this,s,i),Bn(t,c,i);var r=t[x],o=rn(n);if(o<0||r>24},getUint8:function(t){return M(this,1,t)[0]},getInt16:function(t){var n=M(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=M(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return S(M(this,4,t,arguments[1]))},getUint32:function(t){return S(M(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return E(M(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return E(M(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){I(this,1,t,F,n)},setUint8:function(t,n){I(this,1,t,F,n)},setInt16:function(t,n){I(this,2,t,j,n,arguments[2])},setUint16:function(t,n){I(this,2,t,j,n,arguments[2])},setInt32:function(t,n){I(this,4,t,P,n,arguments[2])},setUint32:function(t,n){I(this,4,t,P,n,arguments[2])},setFloat32:function(t,n){I(this,4,t,O,n,arguments[2])},setFloat64:function(t,n){I(this,8,t,T,n,arguments[2])}});Lt(c,o),Lt(s,i),$t(s[a],ec.VIEW,!0),n[o]=c,n[i]=s}),ic=Wt.ArrayBuffer,ac=oc.ArrayBuffer,cc=oc.DataView,sc=ec.ABV&&ic.isView,uc=ac.prototype.slice,lc=ec.VIEW,fc="ArrayBuffer";nn(nn.G+nn.W+nn.F*(ic!==ac),{ArrayBuffer:ac}),nn(nn.S+nn.F*!ec.CONSTR,fc,{isView:function(t){return sc&&sc(t)||Gt(t)&&lc in t}}),nn(nn.P+nn.U+nn.F*qt(function(){return!new ac(2).slice(1,void 0).byteLength}),fc,{slice:function(t,n){if(void 0!==uc&&void 0===n)return uc.call(k(this),t);for(var e=k(this).byteLength,r=on(t,e),o=on(void 0===n?e:n,e),i=new(Ur(this,ac))(an(o-r)),a=new cc(this),c=new cc(i),s=0;r, no stack trace)"}function G(){return"function"==typeof X}var q=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Y(t){var n=t.match(Q);if(n)return{fileName:n[1],line:parseInt(n[2],10)}}function K(t){this._parent=t,this._promisesCreated=0;var n=this._length=1+(void 0===t?0:t._length);X(this,K),32=i)return e[n]=t,this._queue.push(n),!1;null!==o&&(o[n]=t);var a=this._promise,c=this._callback,s=a._boundValue();a._pushContext();var u=b(c).call(s,t,n,r),l=a._popContext();if(v.checkForgottenReturns(u,l,null!==o?"Promise.filter":"Promise.map",a),u===g)return this._reject(u.e),!0;var f=h(u,this._promise);if(f instanceof p){var d=(f=f._target())._bitField;if(0==(50397184&d))return 1<=i&&this._inFlight++,(e[n]=f)._proxy(this,-1*(n+1)),!1;if(0==(33554432&d))return 0!=(16777216&d)?this._reject(f._reason()):this._cancel(),!0;u=f._value()}e[n]=u}return r<=++this._totalResolved&&(null!==o?this._filter(e,o):this._resolve(e),!0)},l.prototype._drainQueue=function(){for(var t=this._queue,n=this._limit,e=this._values;0>>16)){if(t===this){var e=s();return this._attachExtraTrace(e),this._reject(e)}this._setFulfilled(),this._rejectionHandler0=t,0<(65535&n)&&(0!=(134217728&n)?this._settlePromises():v.settlePromises(this),this._dereferenceTrace())}},S.prototype._reject=function(t){var n=this._bitField;if(!((117506048&n)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return v.fatalError(t,h.isNode);0<(65535&n)?v.settlePromises(this):this._ensurePossibleRejectionHandled()}},S.prototype._fulfillPromises=function(t,n){for(var e=1;e=this._length&&(this._resolve(this._values),!0)},n.prototype._promiseCancelled=function(){return this._cancel(),!0},n.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},n.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof c)t.cancel();else for(var n=0;n=this._length){var e;if(this._isMap)e=function(t){for(var n=new c,e=t.length/2|0,r=0;r>1},r.prototype.props=function(){return e(this)},r.props=function(t){return e(t)}}},{"./es5":13,"./util":36}],26:[function(t,n,e){function r(t){this._capacity=t,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(t){return this._capacity=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(t,n){var e=new r;return e._bitField=33554432,e._settledValueField=t,this._promiseResolved(n,e)},o.prototype._promiseRejected=function(t,n){var e=new r;return e._bitField=16777216,e._settledValueField=t,this._promiseResolved(n,e)},t.settle=function(t){return e.deprecated(".settle()",".reflect()"),new o(t).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(l,t,n){t.exports=function(t,n,o){var e=l("./util"),r=l("./errors").RangeError,i=l("./errors").AggregateError,a=e.isArray,c={};function s(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function u(t,n){if((0|n)!==n||n<0)return o("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var e=new s(t),r=e.promise();return e.setHowMany(n),e.init(),r}e.inherits(s,n),s.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var t=a(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},s.prototype.init=function(){this._initialized=!0,this._init()},s.prototype.setUnwrap=function(){this._unwrap=!0},s.prototype.howMany=function(){return this._howMany},s.prototype.setHowMany=function(t){this._howMany=t},s.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},s.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},s.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},s.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new i,n=this.length();nGet MetaMask now'}},2:{basic:function(){return"Now you have MetaMask installed, you’ll need to log into it. The first time you use it, you may need to set up an account with MetaMask which you can do right from the extension. When you’ve got that set up and you’re logged into MetaMask, let us know."},advanced:function(){return"We’ve detected you are not logged into MetaMask. Please log in to continue using the blockchain enabled features of this application."}},3:{basic:function(){return"Please allow connection to your wallet"},advanced:function(){return"Connect your wallet to interact with this Dapp"}},4:{basic:function(){return"Blockchain applications have different networks they can work on. Think of this like making sure you’re on Netflix vs Hulu to watch your favorite show. We’ve detected that you need to be on the ".concat(us(Dc.config.networkId)||"mainnet"," network for this application but you have MetaMask set to ").concat(us(Dc.userCurrentNetworkId),". Switch the network name in MetaMask and you’ll be ready to go.")},advanced:function(){return"We’ve detected that you need to be on the ".concat(us(Dc.config.networkId)||"mainnet"," network for this application but you have MetaMask set to ").concat(us(Dc.userCurrentNetworkId),". Please switch to the correct network.")}},5:{basic:function(){return"Blockchain applications sometimes require Ether to perform various functions. You’ll need at least ".concat(Dc.config.minimumBalance/1e18," Ether (ETH) for this application.")},advanced:function(){return"Blockchain applications sometimes require Ether to perform various functions. You’ll need at least ".concat(Dc.config.minimumBalance/1e18," Ether (ETH) for this application.")}},6:{basic:function(){return"You have successfully completed all the steps necessary to use this application. Welcome to the world of blockchain."}}},vs={0:{basic:"I’M READY"},1:{basic:"CHECK THAT I HAVE METAMASK"},2:{basic:"CHECK THAT I’M LOGGED IN",advanced:"CHECK THAT I’M LOGGED IN"},3:{basic:"CHECK THAT I'M CONNECTED",advanced:"CHECK THAT I'M CONNECTED"},4:{basic:"CHECK THAT I’M ON THE RIGHT NETWORK",advanced:"CHECK MY NETWORK"},5:{basic:"CHECK THAT I HAVE ETHER",advanced:"I HAVE ENOUGH ETH"},6:{basic:"BACK TO THE APP"}};function bs(t){switch(t){case"loggedIn":return"You are not currently logged in to MetaMask.";case"enabled":return"You have not yet approved the Connect request in MetaMask.";case"network":return"You currently have MetaMask set to the ".concat(os(us(Dc.userCurrentNetworkId))," ").concat("1"===Dc.userCurrentNetworkId?"Ethereum":"Test"," Network.");case"minimumBalance":return"Your current MetaMask account has less than the necessary minimum balance of\n ".concat(Dc.config.minimumBalance/1e18," ").concat(os(us(Dc.userCurrentNetworkId))," ").concat("1"===Dc.userCurrentNetworkId?"Ethereum":"Test"," Network Ether (ETH).");default:return}}var gs={blockNativeLogo:{src:"https://s3.amazonaws.com/bnc-assist/images/fJxOtIj.png",srcset:"https://s3.amazonaws.com/bnc-assist/images/UhcCuKF.png 2x"},mobile:{src:"https://s3.amazonaws.com/bnc-assist/images/EcUxQVJ.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/GS6owd9.jpg 2x"},browser:{src:"https://s3.amazonaws.com/bnc-assist/images/riXzN0X.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/xpWtOVX.jpg 2x"},chromeLogo:{src:"https://s3.amazonaws.com/bnc-assist/images/XAwAAmL.png",srcset:"https://s3.amazonaws.com/bnc-assist/images/maxXVIH.png 2x"},firefoxLogo:{src:"https://s3.amazonaws.com/bnc-assist/images/WjOSJTh.png",srcset:"https://s3.amazonaws.com/bnc-assist/images/kodZvyO.png 2x"},0:{src:"https://s3.amazonaws.com/bnc-assist/images/XUPOg7L.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/s8euD9T.jpg 2x"},1:{src:"https://s3.amazonaws.com/bnc-assist/images/EgcXT0z.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/4zplgXa.jpg 2x"},2:{src:"https://s3.amazonaws.com/bnc-assist/images/tKkRH5L.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/BEhzPx6.jpg 2x"},3:{src:"https://s3.amazonaws.com/bnc-assist/images/HuDHbXP.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/XLBqwPO.jpg 2x"},4:{src:"https://s3.amazonaws.com/bnc-assist/images/0VBtqGV.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/t7WS9Sc.jpg 2x"},5:{src:"https://s3.amazonaws.com/bnc-assist/images/1TWEHRY.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/jfdXqIU.jpg 2x"},6:{src:"https://s3.amazonaws.com/bnc-assist/images/8ptZott.jpg",srcset:"https://s3.amazonaws.com/bnc-assist/images/elR9xQ8.jpg 2x"}},ms={txPending:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has started")},txSent:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has been sent to the network")},txSendFail:function(){return"You rejected the transaction"},txStall:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has stalled")},txFailed:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has failed")},nsfFail:function(){return"You have insufficient funds to complete this transaction"},txRepeat:function(){return"This could be a repeat transaction"},txAwaitingApproval:function(){return"You have a previous transaction awaiting approval"},txConfirmReminder:function(){return"Please confirm your transaction to continue (hint: the transaction window may be behind your browser)"},txConfirmed:function(t){var n=t.transaction;return"Your transaction ID: ".concat(n.nonce," has succeeded")}};function ys(t,n){var e="\n \n \n \n \n \n \n "),r=t.createElement("iframe");t.body.appendChild(r),r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.height="100vh",r.style.width="100%",r.style.border="none",r.style.pointerEvents="none",r.style["z-index"]=999;var o=r.contentWindow,i=o.document;i.open(),i.write(e),i.close(),Vc({iframe:r,iframeDocument:i,iframeWindow:o})}function _s(t){Dc.iframe.style.top="",Dc.iframe.style.left="",Dc.iframe.style.bottom="0px",Dc.iframe.style.right="0px",Dc.iframe.style.height="".concat(Number(t.clientHeight)+Number(Rs("bn-transaction-branding").clientHeight)+7+40,"px"),Dc.iframe.style.width="".concat(t.clientWidth+17,"px"),Dc.iframe.style.pointerEvents="all"}function ws(){var t=Rs("blocknative-notifications");t&&(Dc.iframe.style.height="".concat(t.clientHeight,"px"),Dc.iframe.style.width="".concat(t.clientWidth,"px"),Dc.iframe.style.pointerEvents="all")}function xs(){Dc.iframe.style.top="0px",Dc.iframe.style.left="0px",Dc.iframe.style.bottom="",Dc.iframe.style.right="",Dc.iframe.style.height="100vh",Dc.iframe.style.width="100%",Dc.iframe.style.pointerEvents="none"}function ks(t,n,e){return"\n\t <".concat(t,' class="').concat(n,'">\n\t ').concat(e,"\n\t \n\t")}function Cs(t,n,e,r){var o=Dc.iframeDocument.createElement(t);return o.className=n||"",e&&"string"==typeof e&&(o.innerHTML=e),e&&"object"===y(e)&&o.appendChild(e),r&&(o.id=r),o}function Es(){var n=Dc.iframeDocument.querySelector(".bn-onboard-modal-shade");n.style.opacity="0",Dc.iframe.style.pointerEvents="none",setTimeout(function(){Dc.iframeDocument.body.removeChild(n);var t=Ns(".bn-notifications");t&&_s(t)},ls.removeElement)}function Ss(t){var n=1\n ')}function js(){var t=gs.chromeLogo,n=gs.firefoxLogo;return'\n

\n \n \n
\n Chrome\n
\n \n \n
\n Firefox\n
\n

\n ')}function Ps(){var t=gs.blockNativeLogo;return'\n
\n

Powered by\n \n \n \n

\n
\n ')}function Ts(t){var n=ds["".concat(t,"NotSupported")];return'\n
\n
\n \n \n \n ').concat(Fs(t),'\n

\n

').concat(n.heading,"

\n

").concat(n.description(),"

\n
\n ").concat("browser"===t?"".concat(js(),"
"):"","\n ").concat(Ps(),"\n
\n
\n ")}function Os(t){return'\n
\n

Setup Tasks

\n
    \n
  • \n ').concat(ps[1].basic,"\n
  • \n
  • \n ').concat(ps[2].basic,"\n
  • \n
  • \n ').concat(ps[3].basic,"\n
  • \n
  • \n ').concat(ps[4].basic,"\n
  • \n
  • \n ').concat(ps[5].basic,"\n
  • \n
\n ").concat(Ps(),"\n
\n ")}function As(t,n){var e=ps[n][t],r=hs[n][t](),o="function"==typeof vs[n][t]?vs[n][t]():vs[n][t],i=gs[n],a=Dc.config.images,c=fs(n),s=a&&a[c];return'\n \n
\n

').concat(e,"

\n

").concat(r,'

\n
\n
\n

\n ').concat(o,"\n \n

\n ")}function Ms(t,n){return'\n
\n
\n \n \n \n ').concat("basic"===t?Os(n):"","\n\t\t\t\t").concat("basic"===t?ks("div","bn-onboard-main",As(t,n)):As(t,n),"\n ").concat("advanced"===t?"
".concat(Ps()):"","\n
\n
\n ")}function Is(t){if(!Ns(".bn-onboard-warning")){var n=Cs("span","bn-onboard-warning",bs(t)),e=Cs("br"),r=Ns(".bn-onboard-main");if(r)r.appendChild(e),r.appendChild(n);else{var o=Ns(".bn-onboard-modal"),i=o.querySelector(".bn-onboarding-branding");o.insertBefore(n,i)}}}function Rs(t){return Dc.iframeDocument.getElementById(t)}function Ns(t){return Dc.iframeDocument.querySelector(t)}function Ls(){var t=Cs("a",null,null,"bn-transaction-branding");return t.href="https://www.blocknative.com/",t.target="_blank",t}function Bs(t,n){var e=2\n\t\t\t'.concat("progress"===t?'
\n\t\t\t\t
\n\t\t\t\t\tYou will be notified when this transaction is completed.\n\t\t\t\t
\n\t\t\t
':"",'\n\t\t\n\t\t
\n\t\t\t

').concat(n,'

\n\t\t\t

\n\t\t\t\t').concat(i,'\n\t\t\t\t - \n\t\t\t\t\t\n\t\t\t\t\t').concat(a,"\n\t\t\t\t\n\t\t\t

\n\t\t
\n\t")}function Us(t,r){var o=Rs(t);return o?setInterval(function(){var t=o.querySelector(".bn-duration");t.classList.contains("bn-duration-hidden")&&t.classList.remove("bn-duration-hidden");var n=t.querySelector(".bn-duration-time"),e=ts(Date.now()-r);n.innerHTML="".concat(e)},1e3):null}function Ds(t,n){setTimeout(function(){t.style.opacity="1",t.style.transform="translateX(0)"},n)}function Vs(t){setTimeout(function(){t.style.transform="translateX(600px)",t.style.opacity="0"},ls.hideElement)}function zs(t,n){setTimeout(function(){t.contains(n)&&(t.removeChild(n),ws(),t!==Dc.iframeDocument.body&&Gs())},ls.removeElement)}function Hs(t){var n=Ns(".bn-notifications");Vs(t),zs(n,t)}function Ws(t){var n=t.reduce(function(t,n){if(n){var e=Array.from(Dc.iframeDocument.querySelectorAll(n));return[].concat(b(t),b(e))}return t},[]);0c[1][i])return 1;if(c[0][i]===c[1][i]){if(i===a)return 0;i-=1}else if(c[0][i]"===t[0]?(n=1,e=t.substr(1)):"<"===t[0]?(n=-1,e=t.substr(1)):"="===t[0]?e=t.substr(1):"~"===t[0]&&(r=!0,e=t.substr(1)),(0,i.compareVersions)(o,e,r)===n}},{key:"isOS",value:function(t){return this.getOSName(!0)===String(t).toLowerCase()}},{key:"isPlatform",value:function(t){return this.getPlatformType(!0)===String(t).toLowerCase()}},{key:"is",value:function(t){return this.isBrowser(t)||this.isOS(t)||this.isPlatform(t)}},{key:"some",value:function(){var n=this,t=049",firefox:">52",opera:">36"}})})}var lu=new Error("undefined version of web3");lu.eventCode="initFail";var fu={networkId:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.version.getNetwork);case"1.0":return Dc.web3Instance.eth.net.getId;default:return function(){return Promise.reject(lu)}}},nonce:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.getTransactionCount);case"1.0":return Dc.web3Instance.eth.getTransactionCount;default:return function(){return Promise.reject(lu)}}},bigNumber:function(t){switch(t){case"0.2":return function(t){return Promise.resolve(Dc.web3Instance.toBigNumber(is(t)))};case"1.0":return function(t){return Promise.resolve(Dc.web3Instance.utils.toBN(is(t)))};default:return function(){return Promise.reject(lu)}}},gasPrice:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.getGasPrice);case"1.0":return Dc.web3Instance.eth.getGasPrice;default:return function(){return Promise.reject(lu)}}},contractGas:function(t){switch(t){case"0.2":return function(t,n,e){return Uc(t.estimateGas).apply(void 0,b(n).concat([e]))};case"1.0":return function(t,n,e){return t.apply(void 0,b(n)).estimateGas(e)};default:return function(){return Promise.reject(lu)}}},transactionGas:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.estimateGas);case"1.0":return Dc.web3Instance.eth.estimateGas;default:return function(){return Promise.reject(lu)}}},balance:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.getBalance);case"1.0":return Dc.web3Instance.eth.getBalance;default:return function(){return Promise.reject(lu)}}},accounts:function(t){switch(t){case"0.2":return Uc(Dc.web3Instance.eth.getAccounts);case"1.0":return Dc.web3Instance.eth.getAccounts;default:return function(){return Promise.reject(lu)}}}};function du(t){var n,e,r;t||(t=window.web3),t.default&&(t=t.default),r=t.version.api&&"string"==typeof t.version.api?(e=!(n=!0),t.version.api):t.version&&"string"==typeof t.version?(e=!(n=!1),t.version):void(e=n=!1),Vc({legacyWeb3:n,modernWeb3:e,web3Version:r,web3Instance:t})}function pu(){window.ethereum?Vc({currentProvider:wu(),validBrowser:!0,web3Wallet:!0,legacyWallet:!1,modernWallet:!0}):window.web3?Vc({currentProvider:wu(),validBrowser:!0,web3Wallet:!0,legacyWallet:!0,modernWallet:!1}):Vc({web3Wallet:!1,accessToAccounts:!1,walletLoggedIn:!1,walletEnabled:!1})}function hu(){var t=Dc.web3Version&&Dc.web3Version.slice(0,3);return fu.networkId(t)()}function vu(t){var n=Dc.web3Version&&Dc.web3Version.slice(0,3);return fu.nonce(n)(t)}function bu(){var h=0