(function(window){window.ringba_known_numbers = [{"int":"+13802131297","loc":"(380) 213-1297","jstag":"JS2a8d315c407046c7a61f7738742e9270","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18588380305","loc":"(858) 838-0305","jstag":"JSd3e134c643804311abac28ad9d53303d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13213951666","loc":"(321) 395-1666","jstag":"JS121dd609fa1a43f8a4354d2a9f02bd47","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18312309260","loc":"(831) 230-9260","jstag":"JSdb027e2652ed42829a6ef6c55be6c93e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18887730161","loc":"(888) 773-0161","jstag":"JS49841da479884398a93641bebb12f44c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884491636","loc":"(888) 449-1636","jstag":"JS7680ae663f8c48058f9815654a164d4a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333361508","loc":"(833) 336-1508","jstag":"JS9182005512c047b187b93e4d35e06fcd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18663031175","loc":"(866) 303-1175","jstag":"JS1d02e88d503542a0a7d0404e1629d625","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16073180154","loc":"(607) 318-0154","jstag":"JS6473604b78dc4f76b87a35c17884e62f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18663640302","loc":"(866) 364-0302","jstag":"JSc19ac5492a494e37829492c48347485b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333322380","loc":"(833) 332-2380","jstag":"JS892ce02adee24610be29fcc68ec919d2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18775890508","loc":"(877) 589-0508","jstag":"JS992cbb0d3bd0460faaeda54966495c3f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18557094657","loc":"(855) 709-4657","jstag":"JSef65f622ba174d3a936f18083a8631be","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18554871297","loc":"(855) 487-1297","jstag":"JS67d6478398dd412680b8f9417759da42","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18557502307","loc":"(855) 750-2307","jstag":"JSbb9f60c07ed84f3fa9f6d0db48f3e489","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883770214","loc":"(888) 377-0214","jstag":"JSfeb6f5dc6df34a618d506b0906275bf7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18339691785","loc":"(833) 969-1785","jstag":"JSa63b9be0d336483f962b90797670ead6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18887031066","loc":"(888) 703-1066","jstag":"JS7a12ed23019441e9b018577998eee747","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556090613","loc":"(855) 609-0613","jstag":"JS834493465f384bbba0837af45c87bab7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556091086","loc":"(855) 609-1086","jstag":"JS5e153196d7d84a27aa4903abf2fdc672","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556940091","loc":"(855) 694-0091","jstag":"JS670554f3bead46b69a6b6f740ca4322d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556950001","loc":"(855) 695-0001","jstag":"JSd3e06352635d490ca8ba4c5cacd53833","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18775522069","loc":"(877) 552-2069","jstag":"JS96d6f6446a954a43a802641f17171d47","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556950441","loc":"(855) 695-0441","jstag":"JS2249a3ce75a3419ea8982dc89e1d09f5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556950390","loc":"(855) 695-0390","jstag":"JS40c72891a14f4acea0339dd933504085","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556950579","loc":"(855) 695-0579","jstag":"JSc3a3070e23f84340a459c160ba69cd9b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556920139","loc":"(855) 692-0139","jstag":"JS9bbc7e3792504d55b0ab4528323d9e3d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556870312","loc":"(855) 687-0312","jstag":"JS151bf95fed994e91832279a9c3151190","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18553970521","loc":"(855) 397-0521","jstag":"JSf2bc0c2b0ef2401faa4bde5988e3db42","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18554670898","loc":"(855) 467-0898","jstag":"JSc3352700ca954b4bbc05be47cddbba57","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18554670938","loc":"(855) 467-0938","jstag":"JSb91d4032546d4a44a3812f4102b9282b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18446940135","loc":"(844) 694-0135","jstag":"JS7f2f9ef7919649dcaeb940a2c4bcbaf3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18554680084","loc":"(855) 468-0084","jstag":"JS9cd84ff3e24746f4bcb970acf15f15ed","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18554670940","loc":"(855) 467-0940","jstag":"JSeb918c98852e40f481478d5f7bb3836c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18555372551","loc":"(855) 537-2551","jstag":"JSf2e3e1d2908b4828bac0f557fda15d77","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802131276","loc":"(380) 213-1276","jstag":"JS9f569744712e486da2ec5bf0f1e28563","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18885122664","loc":"(888) 512-2664","jstag":"JS886b4645c271426aa283cc42f7328ee3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886941248","loc":"(888) 694-1248","jstag":"JSb639f2f110cf4544b872e5aabf4d15fc","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16073051737","loc":"(607) 305-1737","jstag":"JSa651f69136004ad3b51bd21b49f5cdec","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883520734","loc":"(888) 352-0734","jstag":"JS7fd3974fd9d04a3c85142f016a9cd8c5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18773521402","loc":"(877) 352-1402","jstag":"JS3a9f6ba9f03b428ea6da72b523e5092f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13802570815","loc":"(380) 257-0815","jstag":"JS318084bff8dc4812b7fcfde9eae56b49","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18887172485","loc":"(888) 717-2485","jstag":"JS359a31480e0a4778a73c1ffb1e598a2b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17733028783","loc":"(773) 302-8783","jstag":"JS4449d843f13843308f1027ab42554e69","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883424917","loc":"(888) 342-4917","jstag":"JS4b5741c69a3f46529b22dedb1d290119","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18775191527","loc":"(877) 519-1527","jstag":"JS4ffd63d1ee7b46969cdef6bee0bbb96a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18668811264","loc":"(866) 881-1264","jstag":"JS794782ebd1ab4528801568bf2c36ffd2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18888131966","loc":"(888) 813-1966","jstag":"JS4f0b0740a2124517a44bc8a48564c96d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18445412431","loc":"(844) 541-2431","jstag":"JSb2b851cd87eb44408c7f2a0c54e1d338","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18776930938","loc":"(877) 693-0938","jstag":"JS708406a8b7734bc98b4ffed58d608a01","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556112538","loc":"(855) 611-2538","jstag":"JSbdd8d394395c46d889e99b021f699fd1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17028997022","loc":"(702) 899-7022","jstag":"JS55b044dd70274470854951067c663da7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18777621892","loc":"(877) 762-1892","jstag":"JSa54f5ccb1c4249a8af6cf309d3dc9545","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18556752558","loc":"(855) 675-2558","jstag":"JS41c7dbcea13b492eabccbd0391b04bab","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13238311216","loc":"(323) 831-1216","jstag":"JS7ddaa84eb50144369b7380be00e95e62","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337232806","loc":"(833) 723-2806","jstag":"JS80274c0dfc334d93a18eeab7ea9a499e","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);