(function(window){window.ringba_known_numbers = [{"int":"+16198538684","loc":"(619) 853-8684","jstag":"JSbc1214bd857549fba73c6821b04702d4","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802371540","loc":"(380) 237-1540","jstag":"JS898fa617d04f4ff78daa1376fa4b92de","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802693778","loc":"(380) 269-3778","jstag":"JS9043581fa42940c4b79ce0e77d0b2be5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17089070402","loc":"(708) 907-0402","jstag":"JS7081f454636c4736a5af965df3e43e6a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17082218969","loc":"(708) 221-8969","jstag":"JSed50b00ce64640d98dc513fd192ad111","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17084196687","loc":"(708) 419-6687","jstag":"JS3288008227ff43eb9deeaeed8c2c9559","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17256778583","loc":"(725) 677-8583","jstag":"JS885e2d852e874555801e9c00c31a9c8a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17253329194","loc":"(725) 332-9194","jstag":"JSbe7aec5f46ab43a8a0393ab5a51941c6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13232208858","loc":"(323) 220-8858","jstag":"JS7af0b6dbe5e54c6d8398fd28e8504a70","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13235161970","loc":"(323) 516-1970","jstag":"JS7e482e85ddb246fa98ef582686ffd716","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17253098187","loc":"(725) 309-8187","jstag":"JSccbe42df50894ead94b20253e0a0e672","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13234876382","loc":"(323) 487-6382","jstag":"JS2debb1dbfbc44dd7b470e829ee47cd80","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16199277504","loc":"(619) 927-7504","jstag":"JScfd4cbabc20f4cdc8ac2191318d33a54","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17252521728","loc":"(725) 252-1728","jstag":"JS180113369e3a40de9b57e28ae79501c0","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18588985609","loc":"(858) 898-5609","jstag":"JSb477c325ced8448fb07d72c4147dbf6c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802470680","loc":"(380) 247-0680","jstag":"JS37cb426505904a009f0aecca7c9f77d6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16075871067","loc":"(607) 587-1067","jstag":"JS3f948953f7184b7db7c1c1a650c8f0ff","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18312150187","loc":"(831) 215-0187","jstag":"JS67e4b7968b984721a09ed60caa40ea71","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18583060437","loc":"(858) 306-0437","jstag":"JSb6c68dcf10e34815a5bdb478b8ff31e8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18588985207","loc":"(858) 898-5207","jstag":"JS7e0f517650d44e9487e2f1389386f271","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802529141","loc":"(380) 252-9141","jstag":"JSa1be584cd87c42a89cdd99f1f96af440","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18312301718","loc":"(831) 230-1718","jstag":"JS51ff5a551f004060b07fe051cead0d27","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802470868","loc":"(380) 247-0868","jstag":"JS21c132e7c22e434b8e13fb913069ad4b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13214712803","loc":"(321) 471-2803","jstag":"JS9ba3ad599b414c12bedc82fb55e42caf","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16147050360","loc":"(614) 705-0360","jstag":"JS8d7d295ee8604b4989dc1a6dc9fc646c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13218689095","loc":"(321) 868-9095","jstag":"JS0cdb7cdf76254805b450000c477a8d18","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17027605037","loc":"(702) 760-5037","jstag":"JS62d6839e75e44e9ba271c917a94bf77a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17733372788","loc":"(773) 337-2788","jstag":"JSa1231016d0704614a4ecec36539a66c7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802210971","loc":"(380) 221-0971","jstag":"JSc53b569dd3bc4c95bbb728a157aaa236","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13803330581","loc":"(380) 333-0581","jstag":"JSa12d3272e35a489c828683c5e35a14f1","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);