whoami7 - Manager
:
/
home
/
rattkxnv
/
byattorney.com
/
wp-content
/
plugins
/
everest-forms
/
assets
/
js
/
mailcheck
/
Upload File:
files >> /home/rattkxnv/byattorney.com/wp-content/plugins/everest-forms/assets/js/mailcheck/mailcheck.min.js
var Mailcheck={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","edu.au","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu","uk"],run:function(e){e.domains=e.domains||Mailcheck.defaultDomains,e.secondLevelDomains=e.secondLevelDomains||Mailcheck.defaultSecondLevelDomains,e.topLevelDomains=e.topLevelDomains||Mailcheck.defaultTopLevelDomains,e.distanceFunction=e.distanceFunction||Mailcheck.sift4Distance;var n=function(e){return e},o=e.suggested||n,n=e.empty||n,e=Mailcheck.suggest(Mailcheck.encodeEmail(e.email),e.domains,e.secondLevelDomains,e.topLevelDomains,e.distanceFunction);return e?o(e):n()},suggest:function(e,n,o,t,i){e=e.toLowerCase();e=this.splitEmail(e);if(!o||!t||-1===o.indexOf(e.secondLevelDomain)||-1===t.indexOf(e.topLevelDomain)){if(n=this.findClosestDomain(e.domain,n,i,this.domainThreshold))return n!=e.domain&&{address:e.address,domain:n,full:e.address+"@"+n};o=this.findClosestDomain(e.secondLevelDomain,o,i,this.secondLevelThreshold),t=this.findClosestDomain(e.topLevelDomain,t,i,this.topLevelThreshold);if(e.domain){n=e.domain,i=!1;if(o&&o!=e.secondLevelDomain&&(n=n.replace(e.secondLevelDomain,o),i=!0),t&&t!=e.topLevelDomain&&""!==e.secondLevelDomain&&(n=n.replace(new RegExp(e.topLevelDomain+"$"),t),i=!0),i)return{address:e.address,domain:n,full:e.address+"@"+n}}}return!1},findClosestDomain:function(e,n,o,t){t=t||this.topLevelThreshold;var i,a=Infinity,l=null;if(!e||!n)return!1;o=o||this.sift4Distance;for(var c=0;c<n.length;c++){if(e===n[c])return e;(i=o(e,n[c]))<a&&(a=i,l=n[c])}return a<=t&&null!==l&&l},sift4Distance:function(e,n,o){if(o===undefined&&(o=5),!e||!e.length)return n?n.length:0;if(!n||!n.length)return e.length;for(var t=e.length,i=n.length,a=0,l=0,c=0,s=0,r=0,m=[];a<t&&l<i;){if(e.charAt(a)==n.charAt(l)){s++;for(var d=!1,u=0;u<m.length;){var h=m[u];if(a<=h.c1||l<=h.c2){(d=Math.abs(l-a)>=Math.abs(h.c2-h.c1))?r++:h.trans||(h.trans=!0,r++);break}a>h.c2&&l>h.c1?m.splice(u,1):u++}m.push({c1:a,c2:l,trans:d})}else{c+=s,s=0,a!=l&&(a=l=Math.min(a,l));for(var f=0;f<o&&(a+f<t||l+f<i);f++){if(a+f<t&&e.charAt(a+f)==n.charAt(l)){a+=f-1,l--;break}if(l+f<i&&e.charAt(a)==n.charAt(l+f)){a--,l+=f-1;break}}}l++,(t<=++a||i<=l)&&(c+=s,s=0,a=l=Math.min(a,l))}return c+=s,Math.round(Math.max(t,i)-c+r)},splitEmail:function(e){var n=(e=null!==e?e.replace(/^\s*/,"").replace(/\s*$/,""):null).split("@");if(n.length<2)return!1;for(var o=0;o<n.length;o++)if(""===n[o])return!1;var e=n.pop(),t=e.split("."),i="",a="";if(0===t.length)return!1;if(1==t.length)a=t[0];else{for(var i=t[0],l=1;l<t.length;l++)a+=t[l]+".";a=a.substring(0,a.length-1)}return{topLevelDomain:a,secondLevelDomain:i,domain:e,address:n.join("@")}},encodeEmail:function(e){return encodeURI(e).replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};"undefined"!=typeof module&&module.exports&&(module.exports=Mailcheck),"function"==typeof define&&define.amd&&define("mailcheck",[],function(){return Mailcheck}),"undefined"!=typeof window&&window.jQuery&&(jQuery.fn.mailcheck=function(e){var n,o,t=this;e.suggested&&(n=e.suggested,e.suggested=function(e){n(t,e)}),e.empty&&(o=e.empty,e.empty=function(){o.call(null,t)}),e.email=this.val(),Mailcheck.run(e)});
Copyright ©2021 || Defacer Indonesia