(function(window){window.ringba_known_numbers = [{"int":"+18555440307","loc":"(855) 544-0307","jstag":"JS7c0e434d27a74512bf10c6f1ac6a5c04","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18555440605","loc":"(855) 544-0605","jstag":"JSe7d67fb6362d4f1a9c91597a534205f2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18555980765","loc":"(855) 598-0765","jstag":"JS72b3b109015a47e6a4ccb8b5654305dd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18555980428","loc":"(855) 598-0428","jstag":"JSbc3a9092ed6d46a591b09bf4841481f6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18555980430","loc":"(855) 598-0430","jstag":"JS7dd9ab8a958441fb8979c60a674eab6e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556080314","loc":"(855) 608-0314","jstag":"JS9a26aae590d04010a926e96294be661b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556951579","loc":"(855) 695-1579","jstag":"JScfc2a0ff064d45bc802a4c79c64f7140","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18557392285","loc":"(855) 739-2285","jstag":"JS0f4988bab49d489ca1bb2cf7a9f0fee6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18557173464","loc":"(855) 717-3464","jstag":"JS3a75e66e9728470098576f2fc9f77b8d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18663470052","loc":"(866) 347-0052","jstag":"JSfb55fa7cd9a44b97895d22618e1d6044","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18887065195","loc":"(888) 706-5195","jstag":"JS3c93ddc258574b3c9f6de9f137e4b2ad","replaceWithInt":"+18887065195","replaceWithLoc":"(888) 706-5195","replaceLeftToRight":true},{"int":"+18555282159","loc":"(855) 528-2159","jstag":"JS3e7c071ff73548799193f09fab5eb04c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886561146","loc":"(888) 656-1146","jstag":"JSed20281eefcd4a9d9f3b88c395e7e36c","replaceWithInt":"+18886561146","replaceWithLoc":"(888) 656-1146","replaceLeftToRight":true},{"int":"+18557030136","loc":"(855) 703-0136","jstag":"JS2c7a65b11ad04fb0a6385ebcc280ecef","replaceWithInt":"+18557030136","replaceWithLoc":"(855) 703-0136","replaceLeftToRight":true},{"int":"+18558679057","loc":"(855) 867-9057","jstag":"JSe224070049c94dbea9e94603e0380154","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883210570","loc":"(888) 321-0570","jstag":"JS2e5b97e6759d40ebb897760dc8d26c4b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802211530","loc":"(380) 221-1530","jstag":"JS86f65f6b60534e96a903f6164c68e6c8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18668951312","loc":"(866) 895-1312","jstag":"JSfc6b361c27ae4ee889c1e0de5c96bdec","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16199270341","loc":"(619) 927-0341","jstag":"JSb004f5308f4149148dcad189e1ebda35","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18774695011","loc":"(877) 469-5011","jstag":"JS102f8b474f9d4a1b96e5fcc87f3378b6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16194737418","loc":"(619) 473-7418","jstag":"JS9235cc637ba744a087c03ecd60bdaae7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18315257595","loc":"(831) 525-7595","jstag":"JS080692cc5a334db0b9d0b5c080d11721","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12137688241","loc":"(213) 768-8241","jstag":"JSba15bd1cfbef4799be59447b37737d0e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18772791623","loc":"(877) 279-1623","jstag":"JSd32c5483326745a2ba85266885e3fcee","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18666729341","loc":"(866) 672-9341","jstag":"JSaa1d5f8e0a6245d1bafdcc579f3ca18b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18559565824","loc":"(855) 956-5824","jstag":"JS9f95c6e38be94134b91ce2a8f0111bfe","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18667122227","loc":"(866) 712-2227","jstag":"JS1b6b42d501094d5b9d7bc705128ef128","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18446311593","loc":"(844) 631-1593","jstag":"JS756241fbd3294b0d8346f851414d47b4","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18555130974","loc":"(855) 513-0974","jstag":"JS411dbf8dfdc4468c90dcb39ac6ebe3ab","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18667890363","loc":"(866) 789-0363","jstag":"JSee68292ebbd74fb781ac82babd30bfca","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18668990322","loc":"(866) 899-0322","jstag":"JSb527b352144e45c484733dbdf1658e9d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18669600956","loc":"(866) 960-0956","jstag":"JS505284b94649410da10dd2aab399d4bc","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884181694","loc":"(888) 418-1694","jstag":"JSff8118687be34cebaecb1c49542f8bad","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886460306","loc":"(888) 646-0306","jstag":"JS417670d6a492455a9c7727c113fae64a","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);