blockchain-a-z-learn-how-to.../Module 3 - Create a Smart C.../etherwallet-v3.11.2.4/js/etherwallet-static.min.js

1 line
26 KiB
JavaScript
Raw Permalink Normal View History

2023-08-21 14:49:53 +00:00
!function(){function t(t){for(var e=0;e<a.length;e++)a[e]=0;for(var e=0;e<t.length;e++)a[e%4]=(a[e%4]<<5)-a[e%4]+t.charCodeAt(e)}function e(){var t=a[0]^a[0]<<11;return a[0]=a[1],a[1]=a[2],a[2]=a[3],a[3]=a[3]^a[3]>>19^t^t>>8,(a[3]>>>0)/(1<<31>>>0)}function o(){return"hsl("+Math.floor(360*e())+","+(60*e()+40)+"%,"+25*(e()+e()+e()+e())+"%)"}function r(t){for(var o=t,r=t,i=Math.ceil(o/2),n=o-i,a=[],s=0;s<r;s++){for(var l=[],h=0;h<i;h++)l[h]=Math.floor(2.3*e());var u=l.slice(0,n);u.reverse(),l=l.concat(u);for(var d=0;d<l.length;d++)a.push(l[d])}return a}function i(t,e,o,r,i){var n=document.createElement("canvas"),a=Math.sqrt(t.length);n.width=n.height=a*o;var s=n.getContext("2d");s.fillStyle=r,s.fillRect(0,0,n.width,n.height),s.fillStyle=e;for(var l=0;l<t.length;l++){var h=Math.floor(l/a),u=l%a;s.fillStyle=1==t[l]?e:i,t[l]&&s.fillRect(u*o,h*o,o,o)}return n}function n(e){e=e||{};var n=e.size||8,a=e.scale||4;t(e.seed||Math.floor(Math.random()*Math.pow(10,16)).toString(16));var s=e.color||o(),l=e.bgcolor||o(),h=e.spotcolor||o();return i(r(n),s,a,l,h)}var a=new Array(4);window.blockies={create:n}}(),function(t){"undefined"!=typeof module&&"object"==typeof exports?"undefined"!=typeof window?module.exports=t():module.exports=t:window.Modal=t()}(function(){var t=function(t,e){e=e||{},this.isIE=null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1),this.modal="object"==typeof t?t:document.querySelector(t),this.options={},this.options.backdrop="false"!==e.backdrop,this.options.keyboard="false"!==e.keyboard,this.options.content=e.content,this.duration=e.duration||300,this.options.duration=this.isIE&&this.isIE<10?0:this.duration,this.scrollbarWidth=0,this.dialog=this.modal.querySelector(".modal-dialog"),this.timer=0,this.init()},e=function(){var t=document.documentElement.getBoundingClientRect();return window.innerWidth||t.right-Math.abs(t.left)};t.prototype={init:function(){this.actions(),this.trigger(),this.options.content&&void 0!==this.options.content&&this.content(this.options.content)},actions:function(){var t=this;this.open=function(){this._open()},this.close=function(){this._close()},this._open=function(){var e=document.querySelector(".modal.in");e&&(clearTimeout(e.getAttribute("data-timer")),this.removeClass(e,"in"),setTimeout(function(){e.setAttribute("aria-hidden",!0),e.style.display=""},t.options.duration/2)),this.options.backdrop?this.createOverlay():this.overlay=null,this.overlay&&setTimeout(function(){t.addClass(t.overlay,"in")},0),clearTimeout(t.modal.getAttribute("data-timer")),this.timer=setTimeout(function(){t.modal.style.display="block",t.checkScrollbar(),t.adjustDialog(),t.setScrollbar(),t.resize(),t.dismiss(),t.keydown(),t.addClass(document.body,"modal-open"),t.addClass(t.modal,"in"),t.modal.setAttribute("aria-hidden",!1)},t.options.duration/2),this.modal.setAttribute("data-timer",t.timer)},this._close=function(){this.overlay&&this.removeClass(this.overlay,"in"),this.removeClass(this.modal,"in"),this.modal.setAttribute("aria-hidden",!0),clearTimeout(t.modal.getAttribute("data-timer")),this.timer=setTimeout(function(){t.removeClass(document.body,"modal-open"),t.resize(),t.resetAdjustments(),t.resetScrollbar(),t.dismiss(),t.keydown(),t.modal.style.display=""},t.options.duration/2),this.modal.setAttribute("data-timer",t.timer),setTimeout(function(){document.querySelector(".modal.in")||t.removeOverlay()},t.options.duration)},this.content=function(t){return this.modal.querySelector(".modal-content").innerHTML=t},this.createOverlay=function(){var t=document.createElement("div"),e=document.querySelector(".modal-backdrop");t.setAttribute("class","modal-backdrop fade"),e?this.overlay=e:(this.overlay=t,document.body.appendChild(t))},this.removeOverlay=function(){var t=document.querySelector(".modal-backdrop");null!==t&&void 0!==t&&document.body.removeChild(t)},this.keydown=function(){function e(e){t.options.keyboard&&27==e.which&&t.close()}/in/.test(this.modal.className)?document.removeEventListener("keydown",e,!1):document.addEventListener("keydown",e,!1)},this.trigger=function(){v