(function(window){window.ringba_known_numbers = [{"int":"+18727621017","loc":"(872) 762-1017","jstag":"JSd249b52fe9f642d7a0f5dd8c236e251f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18727627851","loc":"(872) 762-7851","jstag":"JS179f9271f5d34198a1e0672efaead1d1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18339391532","loc":"(833) 939-1532","jstag":"JS6c1e7e720a4d46cb939e51ba7e763b14","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18666993041","loc":"(866) 699-3041","jstag":"JScd656a87dbd54472a4cd7ee59efbc9de","replaceWithInt":"+18666993041","replaceWithLoc":"(866) 699-3041","replaceLeftToRight":true},{"int":"+18772890390","loc":"(877) 289-0390","jstag":"JSf043512bc1504ab994ee50f3c3a6f3b6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337343554","loc":"(833) 734-3554","jstag":"JS9936a7440c414d6da740a681bae1f856","replaceWithInt":"+18337343554","replaceWithLoc":"(833) 734-3554","replaceLeftToRight":true},{"int":"+18337324656","loc":"(833) 732-4656","jstag":"JS7d571e8822484dbc9f31ee0cf62a4e68","replaceWithInt":"+18337324656","replaceWithLoc":"(833) 732-4656","replaceLeftToRight":true},{"int":"+18777291172","loc":"(877) 729-1172","jstag":"JS9a4ee448fd004352be43a6ebfceadb94","replaceWithInt":"+18777291172","replaceWithLoc":"(877) 729-1172","replaceLeftToRight":true},{"int":"+18556940186","loc":"(855) 694-0186","jstag":"JS3cb012d9ccfc4e9394b855e07e4b13bd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556022551","loc":"(855) 602-2551","jstag":"JSddea3e7546ad4ebf843f16c855af65a1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556760535","loc":"(855) 676-0535","jstag":"JS56d36cb6c4e948e398cdfbf8c85e0634","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18665151772","loc":"(866) 515-1772","jstag":"JS55d209325d2840178927da864503f01b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18774170622","loc":"(877) 417-0622","jstag":"JS575ca018403f4a3d995a05c39aac1797","replaceWithInt":"+18774170622","replaceWithLoc":"(877) 417-0622","replaceLeftToRight":true},{"int":"+18778450027","loc":"(877) 845-0027","jstag":"JS80f45ce66eb5421bb03dbb35b160312f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18447341357","loc":"(844) 734-1357","jstag":"JSc0d0458b7b704a1c87395bfd7264567e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333803259","loc":"(833) 380-3259","jstag":"JSe2f13c12b0cd44dfbeb1fa388c35a9e3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556880887","loc":"(855) 688-0887","jstag":"JSb9e84f943a3b44e7aef18786fbd03daf","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337541901","loc":"(833) 754-1901","jstag":"JS7d5481d9e6bc4ee5ad35fd4e54a7b3ef","replaceWithInt":"+18337541901","replaceWithLoc":"(833) 754-1901","replaceLeftToRight":true},{"int":"+18337543840","loc":"(833) 754-3840","jstag":"JSb3688795c7c14d53a152bbf5998c9e24","replaceWithInt":"+18337543840","replaceWithLoc":"(833) 754-3840","replaceLeftToRight":true},{"int":"+18337594207","loc":"(833) 759-4207","jstag":"JSafacdb83478a456687e2a0c81d705a38","replaceWithInt":"+18337594207","replaceWithLoc":"(833) 759-4207","replaceLeftToRight":true},{"int":"+18667755601","loc":"(866) 775-5601","jstag":"JS13628cd4f61b4d8c851682cb2d49fe31","replaceWithInt":"+18667755601","replaceWithLoc":"(866) 775-5601","replaceLeftToRight":true},{"int":"+18444480965","loc":"(844) 448-0965","jstag":"JS71d0be369760413dabb20395b63b3c14","replaceWithInt":"+18444480965","replaceWithLoc":"(844) 448-0965","replaceLeftToRight":true},{"int":"+18443109739","loc":"(844) 310-9739","jstag":"JS29a5188386da4f2fb18d1bffab8219fb","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18339151477","loc":"(833) 915-1477","jstag":"JS8beca318348743608e41d88bf05c12ed","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18443110275","loc":"(844) 311-0275","jstag":"JSafe7e24138cc43f7985dc59dbe56b02d","replaceWithInt":"+18443110275","replaceWithLoc":"(844) 311-0275","replaceLeftToRight":true},{"int":"+18669938510","loc":"(866) 993-8510","jstag":"JS8905043fc93b43bdab6452ad42bfa51a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18558547363","loc":"(855) 854-7363","jstag":"JSc367b15796ba4436ade790be4ffd991d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18334479801","loc":"(833) 447-9801","jstag":"JS32a21d8201ec4c29babebd2ffb2e0b84","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18669930659","loc":"(866) 993-0659","jstag":"JS47f88b6ff37941038e5e502896ca1cfa","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18669932731","loc":"(866) 993-2731","jstag":"JSce409d2baa9f42c79188d36dc8cc0b6b","replaceWithInt":"+18669932731","replaceWithLoc":"(866) 993-2731","replaceLeftToRight":true},{"int":"+18558547357","loc":"(855) 854-7357","jstag":"JSf0e9ce6aae9a4d73b039cf1acb82f600","replaceWithInt":"+18558547357","replaceWithLoc":"(855) 854-7357","replaceLeftToRight":true},{"int":"+18445830797","loc":"(844) 583-0797","jstag":"JS09afd81c974845fd9f06592943a06bbd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883183246","loc":"(888) 318-3246","jstag":"JS5c52b8b129dd4990bd2ea001c23fd989","replaceWithInt":"+18883183246","replaceWithLoc":"(888) 318-3246","replaceLeftToRight":true},{"int":"+18003011844","loc":"(800) 301-1844","jstag":"JS37f7cc61a2e04b0d8da825813ea3ae7e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337261790","loc":"(833) 726-1790","jstag":"JSae2a2ad2782f4225a86a8c432480c528","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18557193658","loc":"(855) 719-3658","jstag":"JS03275f0be2674b4f84b12b0b75b3b27f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18336634143","loc":"(833) 663-4143","jstag":"JS76d95b969b084dcd8b89c0fa14df3671","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18449790543","loc":"(844) 979-0543","jstag":"JS035c51410e1940fd89445eef0e0ed9f1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333393008","loc":"(833) 339-3008","jstag":"JS192681e9c70948a089a60fd9dd5f2a4d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18666633690","loc":"(866) 663-3690","jstag":"JSd67e74600d464c769bc27953753c676d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18559194593","loc":"(855) 919-4593","jstag":"JS02bb508dabd74e2c9c115dbe527796eb","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18442472614","loc":"(844) 247-2614","jstag":"JS102612ade27e43acbb51a77f1d0c0fe3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18774765962","loc":"(877) 476-5962","jstag":"JS7042028fd34b4029961524d17b5a4444","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333303230","loc":"(833) 330-3230","jstag":"JS06311f07ee9340bb951d546197f11798","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18665810376","loc":"(866) 581-0376","jstag":"JSb598f3dc278b4d43b0aec64880ed5799","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18774950758","loc":"(877) 495-0758","jstag":"JSde2d39dd418c4732b92a43d3da557566","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);