(function(window){window.ringba_known_numbers = [{"int":"+18886172238","loc":"(888) 617-2238","jstag":"JS9126b794a2a1429a919b9485888daba6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18339136464","loc":"(833) 913-6464","jstag":"JS25a53f33e1cb4c73b7c4ce7f7bb94e06","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18447130427","loc":"(844) 713-0427","jstag":"JS083a00ae7c43482fad0eb124506ced73","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18447910068","loc":"(844) 791-0068","jstag":"JS205f1dfea16845a9814327187088b99d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18773010147","loc":"(877) 301-0147","jstag":"JS0a08b05d2b8c426e8bf8e673285ba040","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333340335","loc":"(833) 334-0335","jstag":"JSaacf5537033248a3822cea8cb5e6783f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18335220967","loc":"(833) 522-0967","jstag":"JSb5522c25b01e4fd38d48c0e6ea52c587","replaceWithInt":"+18335220967","replaceWithLoc":"(833) 522-0967","replaceLeftToRight":true},{"int":"+18333491626","loc":"(833) 349-1626","jstag":"JS7d0290e3e2664c37a34fac0cee90a7ca","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802211509","loc":"(380) 221-1509","jstag":"JS2a9d8e0c693444ca8ec75f871d1cef62","replaceWithInt":"+13802211509","replaceWithLoc":"(380) 221-1509","replaceLeftToRight":true},{"int":"+18773491692","loc":"(877) 349-1692","jstag":"JS59a926f42fc847acb573178230ce7cdb","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18773514680","loc":"(877) 351-4680","jstag":"JSe5f0a1622ad04b889d9aa9090bca71a2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18445002905","loc":"(844) 500-2905","jstag":"JS64e425871b83424cb8ad0769dd15d4b2","replaceWithInt":"+18445002905","replaceWithLoc":"(844) 500-2905","replaceLeftToRight":true},{"int":"+18337682919","loc":"(833) 768-2919","jstag":"JSec96873f11eb41c5925f7ae9ecb48476","replaceWithInt":"+18337682919","replaceWithLoc":"(833) 768-2919","replaceLeftToRight":true},{"int":"+18446128732","loc":"(844) 612-8732","jstag":"JSdf24034abacd4daba47db7760f0fee3e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18446520163","loc":"(844) 652-0163","jstag":"JS52b1737475ee4aa09bf727a76aa84386","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18447990898","loc":"(844) 799-0898","jstag":"JSa27f7d2e12a04a0693169653347f589e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18554681672","loc":"(855) 468-1672","jstag":"JSe124a40627ff4433a434c12af339e715","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18665964367","loc":"(866) 596-4367","jstag":"JS2cc2a8f90fa0469c963308d4e466878d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18666580799","loc":"(866) 658-0799","jstag":"JS0ee4ed28426b44fcbc5fedd30e3353a2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886270629","loc":"(888) 627-0629","jstag":"JSe84b4fa7d6924346aaa1ab401f117c8c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18555130974","loc":"(855) 513-0974","jstag":"JS1fe9e320b6c2411ebae579e28891efb6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12137688241","loc":"(213) 768-8241","jstag":"JSec9fb7dd9960476bb75a77d556741f06","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18667890363","loc":"(866) 789-0363","jstag":"JSb29ce5876245440f9de001b315c4f125","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18558679057","loc":"(855) 867-9057","jstag":"JS0d2eb515e795490ea56cb20536be8ab0","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883260320","loc":"(888) 326-0320","jstag":"JS8175f683804c486386508795dab67b5d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18776410036","loc":"(877) 641-0036","jstag":"JSa81594088c7e48d399126574e33e51c7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18775510058","loc":"(877) 551-0058","jstag":"JSed20dd639c194ff0b5a9c33a6eab00cd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18887065195","loc":"(888) 706-5195","jstag":"JS7f4bacc6d32b482aa9c5c918bb126f22","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18888130895","loc":"(888) 813-0895","jstag":"JScf6b54dac7e5475dbd6700f83e83bd5b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18669490165","loc":"(866) 949-0165","jstag":"JS1b835b0429f1416ab230868f8cff5b68","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333142424","loc":"(833) 314-2424","jstag":"JS3e224c44c91b4759810714b941fc8d0f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18557271339","loc":"(855) 727-1339","jstag":"JSd48bbe1e67224ed3b30b19a51ec12f85","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333303786","loc":"(833) 330-3786","jstag":"JS72f68a62fa67407cbcc70b283980c8b9","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18332906030","loc":"(833) 290-6030","jstag":"JSc8c0ad879ebf4243a698b73e0e31ba42","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884062499","loc":"(888) 406-2499","jstag":"JS669db6f5fd2145e3a118f4f80ea07957","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18334853698","loc":"(833) 485-3698","jstag":"JS6a03655c219143ab89bd856c743b47b4","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18336097448","loc":"(833) 609-7448","jstag":"JS9e6f76f2032a4f5f9dc0267153ad008c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333767847","loc":"(833) 376-7847","jstag":"JS4c758ced718b46ecb47b7062728865f1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18335314944","loc":"(833) 531-4944","jstag":"JSec16d295badf47008bcb1a5a7f579693","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18334170180","loc":"(833) 417-0180","jstag":"JS94fb380476d9405093e5b2b3bbfc8a11","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333787568","loc":"(833) 378-7568","jstag":"JS135b4d91e3754ace820ec5eba197e654","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true}];!function(e){function t(){this.tagId="",this.id="",this.displayNumber="",this.phoneNumber="",this.impressionQueryPath="",this.maxEpoch=0,this.timeBetweenTicks=0,this.heartBeatMs=0,this.exp=0,this.displayFmt=0,this.heartBeatTimeout=null,this.ready=!0}var n=function(){function t(e){return JSON.stringify(e)}return{postRequest:function(n,r,a,i){if("XDomainRequest"in e&&null!==e.XDomainRequest){var o=new XDomainRequest;o.open("POST",n),o.onload=function(){result=o.responseText,a(result)},o.onerror=function(){i&&i()},o.send(t(r))}else{if(navigator.userAgent.indexOf("MSIE")!=-1&&parseInt(navigator.userAgent.match(/MSIE ([\d.]+)/)[1],10)<8)return!1;var u=new XMLHttpRequest;u.onreadystatechange=function(){4==u.readyState&&(200==u.status?a(u.responseText):i&&i())},u.open("POST",n,!0),u.setRequestHeader("Content-type","text/plain"),u.send(t(r))}}}};"undefined"!=typeof e.localStorage&&"undefined"!=typeof e.sessionStorage||function(){var t=function(t){function n(e,t,n){var r,a;n?(r=new Date,r.setTime(r.getTime()+24*n*60*60*1e3),a="; expires="+r.toGMTString()):a="",document.cookie=e+"="+t+a+"; path=/"}function r(e){var t,n,r=e+"=",a=document.cookie.split(";");for(t=0;t-1&&t>-1;i--){var r=e.charAt(i);n="n"==r||"N"==r?this.phoneNumber.charAt(t--)+n:r+n}return n}return this.displayNumber},t.prototype.save=function(){var e=JSON.parse(JSON.stringify(this));delete e.ready,delete e.heartBeatTimeout,localStorage.setItem("ringbaNumber_"+this.tagId,JSON.stringify(e))},t.prototype.isExpired=function(){var e=(new Date).getTime();return e>this.exp||this.maxEpoch>0&&e>this.maxEpoch},t.prototype.incrementExp=function(){this.exp=(new Date).getTime()+this.timeBetweenTicks,this.save()};var r=function(r){function a(e){if(""==e)return{};for(var t=[],n=0;n0&&!D&&p();null!=e&&e.length>0;){var t=e.pop();o(t)}k.length?N():l()}function s(e,t){if(e&&e.length){var n=JSON.parse(t);e.forEach(function(e){var t=n[e];t&&(c(e,t),A.push(e))})}l()}function l(){if(A&&A.length){var e=[];F&&A.forEach(function(t){var n=x[t];n&&e.push({tagId:t,number:n.phoneNumber,numberLocal:n.phoneNumberLocal,displayNumber:n.displayNumber})}),A=[],F&&setTimeout(function(){F(e)},0)}}function c(e,n){var r=t.getNumberFromResult(e,n);r.save(),x[e]=r,h(r),w(r)}function f(e,t){return e.getFmtNumber(t)}function h(e){var t=e.tagId,n=L[t];if(null!=n)for(var r=0;r0?(l=t[r],r+=n?1:-1,a--,u==i&&n&&a>0&&(l+=t.slice(-a))):l=" "),o=n?o+l:l+o}return o}function u(e){var t={replacement:null,foundMatch:!1,missingReplacements:!1,missingNumbers:null};if(!e)return t;var n=a(e);return n.forEach(function(n){var r=s(t.replacement||e,n);r?t.replacement=r:(t.missingReplacements=!0,(t.missingNumbers=t.missingNumbers||[]).push(n))}),t.foundMatch=n.length>0,t}function s(e,t){var n=t.isInternational,r=n?t.number.replaceWithInt:t.number.replaceWithLoc,a=null;return r&&(r=r.replace("+",""),r=o(t.format,r,t.number.replaceLeftToRight),a=e.replace(t.str,r)),a}function l(){return{Text_Data:{get:function(e){return e&&e.data},set:function(e,t){e&&e.data!=t&&(e.data=t)}},IMG_Alt:{get:function(e){return e&&e.alt},set:function(e,t){e&&e.alt!=t&&(e.alt=t)}},Anchor_HRef:{get:function(e){return e&&e.href},set:function(e,t){e&&e.href!=t&&(e.href=t)}}}}function c(e,t){var n=t.get(e),r=u(n);return r.replacement&&t.set(e,r.replacement),r.missingNumbers}function f(e,t,n){this.node=e,this.actionsGetSet=t,this.missingNumbers=n}function h(e,t){var n=c(e,t);return n&&n.length>0?new f(e,t,n):null}function p(e){var t=[],n=null;if(e){var r=e.nodeType;if(8==r)return t;if(3==r)n=h(e,O.Text_Data);else if(1==r&&!(e.className&&e.className.toString().indexOf("rb-ignore-number")>=0)){"IMG"==e.tagName?n=h(e,O.IMG_Alt):"A"==e.tagName&&(n=h(e,O.Anchor_HRef));var a=e.childNodes;if(a)for(var i=a.length;i--;i>=0){var o=a[i],u=p(o);u.forEach(function(e){t.push(e)})}}return n&&t.push(n),t}}function g(e){var t=[];return e?(e.forEach(function(e){var n=h(e.node,e.actionsGetSet);n&&t.push(n)}),t):t}function m(e){var t={},n=[];return e.forEach(function(e){e.missingNumbers.forEach(function(e){var r=e.number.jstag;t[r]||(t[r]=!0,n.push(e.number.jstag))})}),n}function d(e){return D=p(e||t.body),T(D)}function b(){return D=g(D),T(D)}function v(e){y(e),b()}function y(e){e.forEach(function(e){N(e)})}function N(e){if(!(e instanceof n))throw"'numberInfo' should be an instance of 'JSTagNumberInfo'";var t=_[e.jstag];if(!t)throw"Unknown jstag";t.replaceWithInt=i(e.numberInternational,!0),t.replaceWithLoc=i(e.numberLocal),t.replaceLeftToRight=e.formatLeftToRight}function T(e){if(!e)return null;var t=m(e);return w(t),t}function w(e){e&&e.forEach(function(e){I(e)}),S()}function I(e){var t=_[e];t&&(t.infoRequested||(t.infoRequested=!0,M.push(e)))}function S(){M.length>0&&R&&(R(M),M=[])}function E(e){if(null!=e&&"function"!=typeof e)throw"'cbFunction' should be a function";R=e,S()}var L=[];r&&r.length&&r.forEach(function(e){L.push({"int":i(e["int"],!0),loc:i(e.loc),jstag:e.jstag,replaceWithInt:i(e.replaceWithInt,!0),replaceWithLoc:i(e.replaceWithLoc),replaceLeftToRight:e.replaceLeftToRight})});var x={},_={},D=null,R=null,M=[];L.forEach(function(e){x[e["int"].replace("+","")]={number:e,isInternational:!0},x[e.loc]={number:e,isInternational:!1},_[e.jstag]=e});var O=l(),q=function(){var t=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver,n=e.addEventListener;return function(e,r){var a=!1,i=function(){a||(a=!0,setTimeout(function(){a=!1,r()},0))};if(t){var o=new t(function(e,t){(e[0].addedNodes.length||e[0].removedNodes.length||e[0].target)&&i()});o.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}else n&&(e.addEventListener("DOMNodeInserted",i,!1),e.addEventListener("DOMNodeRemoved",i,!1),e.addEventListener("DOMCharacterDataModified",i,!1),e.addEventListener("DOMAttrModified",i,!1))}}();return{InitialPass:d,FollowUp:b,SetNumberInfoAndFollowup:v,SetNewTagCallback:E,SetupObserver:function(e){q(e||t.body,function(){d()})}}};e.ringba&&(e.ringba.SetupNumberReplacement=i),t&&t.body?i():t.addEventListener("DOMContentLoaded",i)}(window,document);})(window);