|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){var g=a.fbq;g.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var t=a.postMessage||function(){};if(!g){t({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");if("error"in console)console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return false}return true}())return;"use strict";var h=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof t};if(!g.__fbeventsModules){g.__fbeventsModules={};g.__fbeventsResolvedModules={};g.getFbeventsModules=function(t){if(!g.__fbeventsResolvedModules[t])g.__fbeventsResolvedModules[t]=g.__fbeventsModules[t]();return g.__fbeventsResolvedModules[t]};g.fbIsModuleLoaded=function(t){return!!g.__fbeventsModules[t]};g.ensureModuleRegistered=function(t,e){if(!g.fbIsModuleLoaded(t))g.__fbeventsModules[t]=e}}g.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";function i(t){this.plugin=t;this.__fbEventsPlugin=1;return this}e.exports=i})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsParamList",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var t="deep",u="shallow";function v(y){if(typeof JSON==="undefined"||JSON===null||!JSON.stringify)return Object.prototype.toString.call(y);else return JSON.stringify(y)}function w(y){if(y===null||y===undefined)return true;var z=typeof y==="undefined"?"undefined":h(y);return z==="number"||z==="boolean"||z==="string"}function x(y){this._params=[];this._piiTranslator=y}x.ERROR_PII_WITH_NO_TRANSLATOR="Provide a PII Translation function in order to append PII data to the ParamList.";x.prototype.addRange=function(y){var z=this;y.each(function(A,B){return z.append(A,B)})};x.prototype.containsKey=function(y){for(var z=0;z<this._params.length;z++)if(this._params[z].name===y)return true;return false};x.prototype.get=function(y){var z=y;for(var A=0;A<this._params.length;A++)if(this._params[A].name===z)return this._params[A].value;return null};x.prototype.append=function(y,z,A){this._append(encodeURIComponent(y),z,t,A);return this};x.prototype.appendHash=function(y,z){for(var A in y)if(Object.prototype.hasOwnProperty.call(y,A))this._append(A,y[A],t,z);return this};x.fromHash=function(y,z){return new x(z).appendHash(y)};x.prototype._append=function(y,z,A,B){if(w(z))this._appendPrimitive(y,z,B);else if(A===t)this._appendObject(y,z,B);else this._appendPrimitive(y,v(z),B)};x.prototype._translateValue=function(y,z,A){if(typeof z==="boolean")return z?"true":"false";if(!A)return""+z;if(!this._piiTranslator)throw new Error(x.ERROR_PII_WITH_NO_TRANSLATOR);return this._piiTranslator(y,""+z)};x.prototype._appendPrimitive=function(y,z,A){if(z!=null){var B=this._translateValue(y,z,A);if(B!=null)this._params.push({name:y,value:B})}};x.prototype._appendObject=function(y,z,A){var B=null;for(var C in z)if(Object.prototype.hasOwnProperty.call(z,C)){var D=y+"["+encodeURIComponent(C)+"]";try{this._append(D,z[C],u,A)}catch(E){if(B==null)B=E}}if(B!=null)throw B};x.prototype.each=function(y){for(var z=0;z<this._params.length;z++){var A=this._params[z],B=A.name,C=A.value;y(B,C)}};x.prototype.toQueryString=function(){var y=[];this.each(function(z,A){y.push(z+"="+encodeURIComponent(A))});return y.join("&")};x.prototype.toFormData=function(){var y=new FormData();this.each(function(z,A){y.append(z,A)});return y};e.exports=x})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var t="console",u="error",v="Facebook Pixel Error",w="Facebook Pixel Warning",x="warn",y=g.getFbeventsModules("SignalsParamList"),z=Object.prototype.toString,A=!("addEventListener"in b),B=function B(){},C=a[t]||{},D=a.postMessage||B;function E(S){return Array.isArray?Array.isArray(S):z.call(S)==="[object Array]"}function F(S){return typeof S==="number"||typeof S==="string"&&/^\d+$/.test(S)}var G={};function H(S){if(Object.prototype.hasOwnProperty.call(G,S.message)===false){G[S.message]=true;I(S)}}function I(S){try{D({action:"FB_LOG",logType:v,logMessage:S.toString()},"*")}catch(T){}try{var U=Math.random();if(U<.01){var V=new y(null);V.append("p","pixel");V.append("v",a.fbq&&a.fbq.version?a.fbq.version:"unknown");V.append("e",S.toString());if(S instanceof Error){V.append("f",S.fileName);V.append("s",S.stackTrace||S.stack)}R(V,"https://connect.facebook.net/log/error")}}catch(T){}if(u in C)C[u](v+": "+S.toString())}function J(S){D({action:"FB_LOG",logType:w,logMessage:S},"*");if(x in C)C[x](w+": "+S)}function K(S,T,U){T=A?"on"+T:T;var V=A?S.attachEvent:S.addEventListener,W=A?S.detachEvent:S.removeEventListener,X=function X(){if(W)W.call(S,T,X,false);U()};if(V)V.call(S,T,X,false)}function ma(S,T,U){var V=S[T],W=l(U);S[T]=function(){var X=V.apply(this,arguments);W.apply(this,arguments);return X}}var L=Object.prototype.hasOwnProperty,na=!{toString:null}.propertyIsEnumerable("toString"),M=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],oa=M.length;function N(S){if(Object.keys)return Object.keys(S);if((typeof S==="undefined"?"undefined":h(S))!=="object"&&(typeof S!=="function"||S===null))throw new TypeError("Object.keys called on non-object");var T=[];for(var U in S)if(L.call(S,U))T.push(U);if(na)for(var V=0;V<oa;V++)if(L.call(S,M[V]))T.push(M[V]);return T}function O(S,T){if(Array.prototype.map)return Array.prototype.map.call(S,T);var U=void 0,V=void 0;if(S==null)throw new TypeError(" array is null or not defined");var W=Object(S),X=W.length>>>0;if(typeof T!=="function")throw new TypeError(T+" is not a function");U=new Array(X);V=0;while(V<X){var Y,Z;if(V in W){Y=W[V];Z=T.call(null,Y,V,W);U[V]=Z}V++}return U}function P(S){if(this==null)throw new TypeError("Array.prototype.some called on null or undefined");if(typeof S!=="function")throw new TypeError();var T=Object(this),U=T.length>>>0,V=arguments.length>=2?arguments[1]:void 0;for(var W=0;W<U;W++)if(W in T&&S.call(V,T[W],W,T))return true;return false}function pa(S){return N(S).length===0}function qa(S){if(this===void 0||this===null)throw new TypeError();var T=Object(this),U=T.length>>>0;if(typeof S!=="function")throw new TypeError();var V=[],W=arguments.length>=2?arguments[1]:void 0;for(var X=0;X<U;X++)if(X in T){var Y=T[X];if(S.call(W,Y,X,T))V.push(Y)}return V}function Q(S){this.items=S==null?[]:S}Q.prototype.has=function(S){return P.call(this.items,function(T){return T===S})};Q.prototype.add=function(S){this.items.push(S)};function l(S){if(typeof S!=="function")return S;return function(){try{return S.apply(this,arguments)}catch(T){ta.logError(T)}return undefined}}function ra(S,T){var U=S.toQueryString(),V=T+"?"+U;if(V.length<2048){var W=new Image();W.src=V;return true}return false}function R(S,T){var U="fb"+Math.random().toString().replace(".",""),V=b.createElement("form");V.method="post";V.action=T;V.target=U;V.acceptCharset="utf-8";V.style.display="none";var W=!!(a.attachEvent&&!a.addEventListener),X=W?'<iframe name="'+U+'">':"iframe",Y=b.createElement(X);Y.src="javascript:false";Y.id=U;Y.name=U;V.appendChild(Y);K(Y,"load",function(){S.each(function(U,Z){var $=b.createElement("input");$.name=U;$.value=Z;V.appendChild($)});K(Y,"load",function(){if(V.parentNode)V.parentNode.removeChild(V)});V.submit()});b.body.appendChild(V);return true}function sa(S,T){if(a.navigator&&a.navigator.sendBeacon){a.navigator.sendBeacon(T,S.toFormData());return true}return false}var ta={injectMethod:ma,isArray:E,isEmptyObject:pa,isNumber:F,keys:N,listenOnce:K,logError:I,logErrorOnce:H,logWarning:J,makeSafe:l,map:O,sendGET:ra,sendPOST:R,sendBeacon:sa,FBSet:Q,each:function k(S,T){O.call(this,S,T)},some:function S(T,U){return P.call(T,U)},filter:function S(T,U){return qa.call(T,U)}};e.exports=ta})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("signalsFBEventsMakeSafeString",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var t=Object.assign||function(D){for(var E=1;E<arguments.length;E++){var F=arguments[E];for(var G in F)if(Object.prototype.hasOwnProperty.call(F,G))D[G]=F[G]}return D},u=g.getFbeventsModules("SignalsFBEventsUtils"),k=u.each,v=/[^\s\"]/,w=/[^\s:+\"]/;function x(D,E,F){if(F==null){if(v.test(E)){if(E==="@")return null;return{start:D,userOrDomain:"user"}}return null}if(E==="@"){if(F.userOrDomain==="domain")return null;return t({},F,{userOrDomain:"domain"})}if(E==="."){if(F.userOrDomain==="domain"&&F.lastDotIndex===D-1)return null;return t({},F,{lastDotIndex:D})}if(F.userOrDomain==="domain"&&w.test(E)===false||F.userOrDomain==="user"&&v.test(E)===false){if(F.lastDotIndex===D-1)return null;return t({},F,{end:D-1})}return F}function y(D,E){return D.userOrDomain==="domain"&&D.lastDotIndex!=null&&D.lastDotIndex!==E-1&&D.start!=null&&D.end!=null&&D.end!==D.lastDotIndex}function z(D){var E=null,F=[];for(var G=0;G<D.length;G++){E=x(G,D[G],E);if(E!=null){if(y(E,D.length))F.push(E);else if(G===D.length-1){E.end=G;if(y(E,D.length))F.push(E)}if(E.end!=null)E=null}}k(F.reverse(),function(H){var I=H.start,J=H.end;if(J==null)return;D=D.slice(0,I)+"@"+D.slice(J+1)});return D}var A=/[\d]+(\.[\d]+)?/g;function B(D){while(/\d\.\d/.test(D))D=D.replace(A,"0");D=D.replace(A,"0");return D}function C(D){return{safe:B(z(D))}}e.exports=C})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("undefined",function(){return undefined});"use strict";var i=g.getFbeventsModules("SignalsFBEventsPlugin"),j=g.getFbeventsModules("SignalsFBEventsUtils"),aa=g.getFbeventsModules("signalsFBEventsMakeSafeString"),k=j.each,l=j.makeSafe,m=100,ba=300,ca=15,da="input,textarea,select,button",n=["input[type='button']","input[type='submit']","button","[class*=btn]","[class*=Btn]","[class*=button]","[class*=Button]","[role*=button]","[href^='tel:']","[href^='callto:']","[href^='mailto:']","[href^='sms:']","[href^='skype:']","[href^='whatsapp:']"].join(", "),ea=["[href^='tel:']","[href^='callto:']","[href^='sms:']","[href^='skype:']","[href^='whatsapp:']"].join(", "),o=[];function p(t,u){var v=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(x){var p=(this.document||this.ownerDocument).querySelectorAll(x),y=p.length;while(--y>=0&&p.item(y)!==this);return y>-1},w=v.call(t,u);if(typeof w!=="boolean")throw"result of matches was a "+(typeof w==="undefined"?"undefined":h(w))+", not a boolean";return w}function fa(t){if(!t||t.disabled||t===b.body)return false;if(t.innerText&&t.innerText.length>m)return false;var u=typeof t.getBoundingClientRect==="function"&&t.getBoundingClientRect().height||t.offsetHeight;if(u!=undefined&&u!=null&&u>ba)return false;return true}function q(t){if(!t||t.disabled||t===b.body)return null;else if(!fa(t))return null;else if(p(t,n))return t;else return q(t.parentElement)}function ga(t){var u="";if(t.nodeName==="BUTTON"){var v=t;u=v.innerText||v.value||""}else u=t.value||t.innerText||"";return u.substr(0,m)}function ha(t,u){var v=t.name,w=t.id,x=t.tagName,y=t.value,z=t.innerText,A=x.toLowerCase(),B=t.classList&&t.classList.value?String(t.classList.value):"",C=t.querySelectorAll(n).length,D=null;if(t.tagName==="A"&&t.href)D=t.href;else if(u&&u.action)D=u.action;if(typeof D!=="string")D="";return{name:v,id:w,tag:A,classList:B,value:y,innerText:z,numChildButtons:C,destination:D}}function ia(t){var u={};u.name=t.name;u.id=t.id;u.tag=t.tagName.toLowerCase();if(u.tag=="input")u.inputType=t.getAttribute("type");if(Object.prototype.hasOwnProperty.call(t,"value")&&t.value==="")u.valueMeaning="empty";return u}function ja(t,u){if(!u)return[];var v=u.querySelectorAll(da),w={},x=[];for(var y=0;y<v.length;y++){var z=v[y],A=z.tagName+(typeof z.type!=="undefined"?z.type:"");if(!Object.prototype.hasOwnProperty.call(w,A))w[A]=0;w[A]+=1;if(w[A]>ca)continue;if(z==t)continue;x.push(ia(z))}return x}function r(t){if(t.form)return t.form;if(p(t,ea))return null;var u=t;while(u.nodeName!=="FORM"){if(!u.parentElement)return null;u=u.parentElement}return u}function ka(t){o.push(t)}function s(t,u,v){var w={labelledEvent:v,buttonText:aa(ga(t)).safe,buttonFeatures:ha(t,u),formFeatures:ja(t,u)};k(o,function(x){w[x.property]=x.method()});return w}function la(t){return function u(v){var w=q(v.target);if(w){var x=s(w,r(w));k(t.getOptedInPixels("InferredEvents"),function(y){return t.trackSingleCustom(y,"SubscribedButtonClick",x)})}}}e.exports=new i(function(g,t){g.once("fired",function(){var u=l(la(t));b.addEventListener?b.addEventListener("click",u,{capture:true,passive:true,once:false}):a.attachEvent("onclick",u)})});e.exports.getForm=r;e.exports.getPayload=s;e.exports.addPayloadAnnotator=ka;e.exports.BUTTON_SELECTORS=n;if(g.registerPlugin)g.registerPlugin("fbevents.plugins.inferredevents",e.exports);g.ensureModuleRegistered("fbevents.plugins.inferredevents",function(){return e.exports})})();return e.exports})(window,document,location,history); |
|
(function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){var g=a.fbq;g.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var m=a.postMessage||function(){};if(!g){m({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");if("error"in console)console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return false}return true}())return;"use strict";var h=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol==="function"&&m.constructor===Symbol&&m!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof m};if(!g.__fbeventsModules){g.__fbeventsModules={};g.__fbeventsResolvedModules={};g.getFbeventsModules=function(m){if(!g.__fbeventsResolvedModules[m])g.__fbeventsResolvedModules[m]=g.__fbeventsModules[m]();return g.__fbeventsResolvedModules[m]};g.fbIsModuleLoaded=function(m){return!!g.__fbeventsModules[m]};g.ensureModuleRegistered=function(m,e){if(!g.fbIsModuleLoaded(m))g.__fbeventsModules[m]=e}}g.ensureModuleRegistered("SignalsParamList",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var m="deep",n="shallow";function o(r){if(typeof JSON==="undefined"||JSON===null||!JSON.stringify)return Object.prototype.toString.call(r);else return JSON.stringify(r)}function p(r){if(r===null||r===undefined)return true;var s=typeof r==="undefined"?"undefined":h(r);return s==="number"||s==="boolean"||s==="string"}function q(r){this._params=[];this._piiTranslator=r}q.ERROR_PII_WITH_NO_TRANSLATOR="Provide a PII Translation function in order to append PII data to the ParamList.";q.prototype.addRange=function(r){var s=this;r.each(function(t,u){return s.append(t,u)})};q.prototype.containsKey=function(r){for(var s=0;s<this._params.length;s++)if(this._params[s].name===r)return true;return false};q.prototype.get=function(r){var s=r;for(var t=0;t<this._params.length;t++)if(this._params[t].name===s)return this._params[t].value;return null};q.prototype.append=function(r,s,t){this._append(encodeURIComponent(r),s,m,t);return this};q.prototype.appendHash=function(r,s){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))this._append(t,r[t],m,s);return this};q.fromHash=function(r,s){return new q(s).appendHash(r)};q.prototype._append=function(r,s,t,u){if(p(s))this._appendPrimitive(r,s,u);else if(t===m)this._appendObject(r,s,u);else this._appendPrimitive(r,o(s),u)};q.prototype._translateValue=function(r,s,t){if(typeof s==="boolean")return s?"true":"false";if(!t)return""+s;if(!this._piiTranslator)throw new Error(q.ERROR_PII_WITH_NO_TRANSLATOR);return this._piiTranslator(r,""+s)};q.prototype._appendPrimitive=function(r,s,t){if(s!=null){var u=this._translateValue(r,s,t);if(u!=null)this._params.push({name:r,value:u})}};q.prototype._appendObject=function(r,s,t){var u=null;for(var v in s)if(Object.prototype.hasOwnProperty.call(s,v)){var w=r+"["+encodeURIComponent(v)+"]";try{this._append(w,s[v],n,t)}catch(x){if(u==null)u=x}}if(u!=null)throw u};q.prototype.each=function(r){for(var s=0;s<this._params.length;s++){var t=this._params[s],u=t.name,v=t.value;r(u,v)}};q.prototype.toQueryString=function(){var r=[];this.each(function(s,t){r.push(s+"="+encodeURIComponent(t))});return r.join("&")};q.prototype.toFormData=function(){var r=new FormData();this.each(function(s,t){r.append(s,t)});return r};e.exports=q})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var m="console",n="error",o="Facebook Pixel Error",p="Facebook Pixel Warning",q="warn",r=g.getFbeventsModules("SignalsParamList"),s=Object.prototype.toString,t=!("addEventListener"in b),u=function u(){},v=a[m]||{},w=a.postMessage||u;function x(S){return Array.isArray?Array.isArray(S):s.call(S)==="[object Array]"}function y(S){return typeof S==="number"||typeof S==="string"&&/^\d+$/.test(S)}var z={};function A(S){if(Object.prototype.hasOwnProperty.call(z,S.message)===false){z[S.message]=true;B(S)}}function B(S){try{w({action:"FB_LOG",logType:o,logMessage:S.toString()},"*")}catch(T){}try{var U=Math.random();if(U<.01){var V=new r(null);V.append("p","pixel");V.append("v",a.fbq&&a.fbq.version?a.fbq.version:"unknown");V.append("e",S.toString());if(S instanceof Error){V.append("f",S.fileName);V.append("s",S.stackTrace||S.stack)}P(V,"https://connect.facebook.net/log/error")}}catch(T){}if(n in v)v[n](o+": "+S.toString())}function C(S){w({action:"FB_LOG",logType:p,logMessage:S},"*");if(q in v)v[q](p+": "+S)}function D(S,T,U){T=t?"on"+T:T;var V=t?S.attachEvent:S.addEventListener,W=t?S.detachEvent:S.removeEventListener,X=function X(){if(W)W.call(S,T,X,false);U()};if(V)V.call(S,T,X,false)}function E(S,T,U){var V=S[T],W=N(U);S[T]=function(){var X=V.apply(this,arguments);W.apply(this,arguments);return X}}var F=Object.prototype.hasOwnProperty,ma=!{toString:null}.propertyIsEnumerable("toString"),G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],H=G.length;function j(S){if(Object.keys)return Object.keys(S);if((typeof S==="undefined"?"undefined":h(S))!=="object"&&(typeof S!=="function"||S===null))throw new TypeError("Object.keys called on non-object");var T=[];for(var U in S)if(F.call(S,U))T.push(U);if(ma)for(var V=0;V<H;V++)if(F.call(S,G[V]))T.push(G[V]);return T}function I(S,T){if(Array.prototype.map)return Array.prototype.map.call(S,T);var U=void 0,V=void 0;if(S==null)throw new TypeError(" array is null or not defined");var W=Object(S),X=W.length>>>0;if(typeof T!=="function")throw new TypeError(T+" is not a function");U=new Array(X);V=0;while(V<X){var Y,Z;if(V in W){Y=W[V];Z=T.call(null,Y,V,W);U[V]=Z}V++}return U}function J(S){if(this==null)throw new TypeError("Array.prototype.some called on null or undefined");if(typeof S!=="function")throw new TypeError();var T=Object(this),U=T.length>>>0,V=arguments.length>=2?arguments[1]:void 0;for(var W=0;W<U;W++)if(W in T&&S.call(V,T[W],W,T))return true;return false}function K(S){return j(S).length===0}function L(S){if(this===void 0||this===null)throw new TypeError();var T=Object(this),U=T.length>>>0;if(typeof S!=="function")throw new TypeError();var V=[],W=arguments.length>=2?arguments[1]:void 0;for(var X=0;X<U;X++)if(X in T){var Y=T[X];if(S.call(W,Y,X,T))V.push(Y)}return V}function M(S){this.items=S==null?[]:S}M.prototype.has=function(S){return J.call(this.items,function(T){return T===S})};M.prototype.add=function(S){this.items.push(S)};function N(S){if(typeof S!=="function")return S;return function(){try{return S.apply(this,arguments)}catch(T){R.logError(T)}return undefined}}function O(S,T){var U=S.toQueryString(),V=T+"?"+U;if(V.length<2048){var W=new Image();W.src=V;return true}return false}function P(S,T){var U="fb"+Math.random().toString().replace(".",""),V=b.createElement("form");V.method="post";V.action=T;V.target=U;V.acceptCharset="utf-8";V.style.display="none";var W=!!(a.attachEvent&&!a.addEventListener),X=W?'<iframe name="'+U+'">':"iframe",Y=b.createElement(X);Y.src="javascript:false";Y.id=U;Y.name=U;V.appendChild(Y);D(Y,"load",function(){S.each(function(U,Z){var $=b.createElement("input");$.name=U;$.value=Z;V.appendChild($)});D(Y,"load",function(){if(V.parentNode)V.parentNode.removeChild(V)});V.submit()});b.body.appendChild(V);return true}function Q(S,T){if(a.navigator&&a.navigator.sendBeacon){a.navigator.sendBeacon(T,S.toFormData());return true}return false}var R={injectMethod:E,isArray:x,isEmptyObject:K,isNumber:y,keys:j,listenOnce:D,logError:B,logErrorOnce:A,logWarning:C,makeSafe:N,map:I,sendGET:O,sendPOST:P,sendBeacon:Q,FBSet:M,each:function S(T,U){I.call(this,T,U)},some:function S(T,U){return J.call(T,U)},filter:function S(T,U){return L.call(T,U)}};e.exports=R})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";function i(l){this.plugin=l;this.__fbEventsPlugin=1;return this}e.exports=i})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEventsConstants",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";e.exports={ERRORS:{PREFIX:function m(n,o){if(n!=null)return"[ID:"+(typeof n==="string"?n:n.id)+"] "+o;else return o},PII_INVALID:function m(n,o){return"An invalid "+n+" was specified for '"+o+"'. This data will not be sent with any events for this Pixel."}}}})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("sha256_with_dependencies_new",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){var m=function J(K){var L="",M,N;for(var O=0;O<K.length;O++){M=K.charCodeAt(O);N=O+1<K.length?K.charCodeAt(O+1):0;if(55296<=M&&M<=56319&&56320<=N&&N<=57343){M=65536+((M&1023)<<10)+(N&1023);O++}if(M<=127)L+=String.fromCharCode(M);else if(M<=2047)L+=String.fromCharCode(192|M>>>6&31,128|M&63);else if(M<=65535)L+=String.fromCharCode(224|M>>>12&15,128|M>>>6&63,128|M&63);else if(M<=2097151)L+=String.fromCharCode(240|M>>>18&7,128|M>>>12&63,128|M>>>6&63,128|M&63)}return L};function n(J,K){return K>>>J|K<<32-J}function o(J,K,L){return J&K^~J&L}function p(J,K,L){return J&K^J&L^K&L}function q(J){return n(2,J)^n(13,J)^n(22,J)}function r(J){return n(6,J)^n(11,J)^n(25,J)}function s(J){return n(7,J)^n(18,J)^J>>>3}function t(J){return n(17,J)^n(19,J)^J>>>10}function u(z,J){return z[J&15]+=t(z[J+14&15])+z[J+9&15]+s(z[J+1&15])}var v=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),w=new Array(8),x=new Array(2),y=new Array(64),z=new Array(16),A="0123456789abcdef";function B(J,K){var L=(J&65535)+(K&65535),M=(J>>16)+(K>>16)+(L>>16);return M<<16|L&65535}function C(){x[0]=x[1]=0;w[0]=1779033703;w[1]=3144134277;w[2]=1013904242;w[3]=2773480762;w[4]=1359893119;w[5]=2600822924;w[6]=528734635;w[7]=1541459225}function D(){var J,K,L,M,N,O,P,Q,R,S;J=w[0];K=w[1];L=w[2];M=w[3];N=w[4];O=w[5];P=w[6];Q=w[7];for(var T=0;T<16;T++)z[T]=y[(T<<2)+3]|y[(T<<2)+2]<<8|y[(T<<2)+1]<<16|y[T<<2]<<24;for(var U=0;U<64;U++){R=Q+r(N)+o(N,O,P)+v[U];if(U<16)R+=z[U];else R+=u(z,U);S=q(J)+p(J,K,L);Q=P;P=O;O=N;N=B(M,R);M=L;L=K;K=J;J=B(R,S)}w[0]+=J;w[1]+=K;w[2]+=L;w[3]+=M;w[4]+=N;w[5]+=O;w[6]+=P;w[7]+=Q}function E(J,K){var L,M,N=0;M=x[0]>>3&63;var O=K&63;if((x[0]+=K<<3)<K<<3)x[1]++;x[1]+=K>>29;for(L=0;L+63<K;L+=64){for(var P=M;P<64;P++)y[P]=J.charCodeAt(N++);D();M=0}for(var P=0;P<O;P++)y[P]=J.charCodeAt(N++)}function F(){var J=x[0]>>3&63;y[J++]=128;if(J<=56)for(var K=J;K<56;K++)y[K]=0;else{for(var K=J;K<64;K++)y[K]=0;D();for(var K=0;K<56;K++)y[K]=0}y[56]=x[1]>>>24&255;y[57]=x[1]>>>16&255;y[58]=x[1]>>>8&255;y[59]=x[1]&255;y[60]=x[0]>>>24&255;y[61]=x[0]>>>16&255;y[62]=x[0]>>>8&255;y[63]=x[0]&255;D()}function ma(){var J=0,K=new Array(32);for(var L=0;L<8;L++){K[J++]=w[L]>>>24&255;K[J++]=w[L]>>>16&255;K[J++]=w[L]>>>8&255;K[J++]=w[L]&255}return K}function G(){var J=new String();for(var K=0;K<8;K++)for(var L=28;L>=0;L-=4)J+=A.charAt(w[K]>>>L&15);return J}function H(y){var J=0;for(var K=0;K<8;K++)for(var L=28;L>=0;L-=4)y[J++]=A.charCodeAt(w[K]>>>L&15)}function I(J,y){C();E(J,J.length);F();if(y)H(y);else return G()}function k(J,K,y){if(J===null||J===undefined)return null;K=typeof K=="undefined"?true:K;if(K)J=m(J);return I(J,y)}e.exports=k})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("undefined",function(){return undefined});"use strict";var aa=g.getFbeventsModules("SignalsFBEventsUtils"),i=g.getFbeventsModules("SignalsFBEventsPlugin"),ba=g.getFbeventsModules("SignalsFBEventsConstants"),ca=ba.ERRORS,j=aa.keys,k=g.getFbeventsModules("sha256_with_dependencies_new"),da=/^[A-Fa-f0-9]{64}$|^[A-Fa-f0-9]{32}$/,ea=/^[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/i,fa=/^\s+|\s+$/g,ga=Object.prototype.hasOwnProperty;function ha(m){return!!m&&ea.test(m)}function ia(m){if(typeof m==="string")return m.replace(fa,"")}function ja(m){if(typeof m==="string")return m.toLowerCase()}function ka(m,n){if(m==="ud[em]"||m==="ud[email]"){var o=ia(ja(n));if(o==null||o=="")return null;if(!ha(o)){var p=/ud\[(em|email)\]/.exec(m)[1];throw new Error(ca.PII_INVALID("email address",p))}return o}return n}function la(m,n){if(n!=null)if(da.test(n))return n.toLowerCase();else{n=ka(m,n);if(n!=null)return k(n)}return null}var l=new i(function(g){g.piiTranslator=la});l.piiTranslator=la;e.exports=l;if(g.registerPlugin)g.registerPlugin("fbevents.plugins.identity",e.exports);g.ensureModuleRegistered("fbevents.plugins.identity",function(){return e.exports})})();return e.exports})(window,document,location,history); |
|
(function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){var g=a.fbq;g.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var q=a.postMessage||function(){};if(!g){q({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");if("error"in console)console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return false}return true}())return;"use strict";var h=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol==="function"&&q.constructor===Symbol&&q!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof q};if(!g.__fbeventsModules){g.__fbeventsModules={};g.__fbeventsResolvedModules={};g.getFbeventsModules=function(q){if(!g.__fbeventsResolvedModules[q])g.__fbeventsResolvedModules[q]=g.__fbeventsModules[q]();return g.__fbeventsResolvedModules[q]};g.fbIsModuleLoaded=function(q){return!!g.__fbeventsModules[q]};g.ensureModuleRegistered=function(q,e){if(!g.fbIsModuleLoaded(q))g.__fbeventsModules[q]=e}}g.ensureModuleRegistered("SignalsFBEventsPlugin",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";function i(q){this.plugin=q;this.__fbEventsPlugin=1;return this}e.exports=i})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsParamList",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var q="deep",r="shallow";function s(v){if(typeof JSON==="undefined"||JSON===null||!JSON.stringify)return Object.prototype.toString.call(v);else return JSON.stringify(v)}function t(v){if(v===null||v===undefined)return true;var w=typeof v==="undefined"?"undefined":h(v);return w==="number"||w==="boolean"||w==="string"}function u(v){this._params=[];this._piiTranslator=v}u.ERROR_PII_WITH_NO_TRANSLATOR="Provide a PII Translation function in order to append PII data to the ParamList.";u.prototype.addRange=function(v){var w=this;v.each(function(x,y){return w.append(x,y)})};u.prototype.containsKey=function(v){for(var w=0;w<this._params.length;w++)if(this._params[w].name===v)return true;return false};u.prototype.get=function(v){var w=v;for(var x=0;x<this._params.length;x++)if(this._params[x].name===w)return this._params[x].value;return null};u.prototype.append=function(v,w,x){this._append(encodeURIComponent(v),w,q,x);return this};u.prototype.appendHash=function(v,w){for(var x in v)if(Object.prototype.hasOwnProperty.call(v,x))this._append(x,v[x],q,w);return this};u.fromHash=function(v,w){return new u(w).appendHash(v)};u.prototype._append=function(v,w,x,y){if(t(w))this._appendPrimitive(v,w,y);else if(x===q)this._appendObject(v,w,y);else this._appendPrimitive(v,s(w),y)};u.prototype._translateValue=function(v,w,x){if(typeof w==="boolean")return w?"true":"false";if(!x)return""+w;if(!this._piiTranslator)throw new Error(u.ERROR_PII_WITH_NO_TRANSLATOR);return this._piiTranslator(v,""+w)};u.prototype._appendPrimitive=function(v,w,x){if(w!=null){var y=this._translateValue(v,w,x);if(y!=null)this._params.push({name:v,value:y})}};u.prototype._appendObject=function(v,w,x){var y=null;for(var z in w)if(Object.prototype.hasOwnProperty.call(w,z)){var A=v+"["+encodeURIComponent(z)+"]";try{this._append(A,w[z],r,x)}catch(B){if(y==null)y=B}}if(y!=null)throw y};u.prototype.each=function(v){for(var w=0;w<this._params.length;w++){var x=this._params[w],y=x.name,z=x.value;v(y,z)}};u.prototype.toQueryString=function(){var v=[];this.each(function(w,x){v.push(w+"="+encodeURIComponent(x))});return v.join("&")};u.prototype.toFormData=function(){var v=new FormData();this.each(function(w,x){v.append(w,x)});return v};e.exports=u})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("SignalsFBEventsUtils",function(){return function(a,b,c,d){var e={exports:{}},f=e.exports;(function(){"use strict";var q="console",r="error",s="Facebook Pixel Error",t="Facebook Pixel Warning",u="warn",v=g.getFbeventsModules("SignalsParamList"),w=Object.prototype.toString,x=!("addEventListener"in b),y=function y(){},z=a[q]||{},A=a.postMessage||y;function B(S){return Array.isArray?Array.isArray(S):w.call(S)==="[object Array]"}function C(S){return typeof S==="number"||typeof S==="string"&&/^\d+$/.test(S)}var D={};function E(S){if(Object.prototype.hasOwnProperty.call(D,S.message)===false){D[S.message]=true;F(S)}}function F(S){try{A({action:"FB_LOG",logType:s,logMessage:S.toString()},"*")}catch(T){}try{var U=Math.random();if(U<.01){var V=new v(null);V.append("p","pixel");V.append("v",a.fbq&&a.fbq.version?a.fbq.version:"unknown");V.append("e",S.toString());if(S instanceof Error){V.append("f",S.fileName);V.append("s",S.stackTrace||S.stack)}Q(V,"https://connect.facebook.net/log/error")}}catch(T){}if(r in z)z[r](s+": "+S.toString())}function G(S){A({action:"FB_LOG",logType:t,logMessage:S},"*");if(u in z)z[u](t+": "+S)}function H(S,T,U){T=x?"on"+T:T;var V=x?S.attachEvent:S.addEventListener,W=x?S.detachEvent:S.removeEventListener,X=function X(){if(W)W.call(S,T,X,false);U()};if(V)V.call(S,T,X,false)}function I(S,T,U){var V=S[T],W=P(U);S[T]=function(){var X=V.apply(this,arguments);W.apply(this,arguments);return X}}var J=Object.prototype.hasOwnProperty,K=!{toString:null}.propertyIsEnumerable("toString"),L=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],M=L.length;function l(S){if(Object.keys)return Object.keys(S);if((typeof S==="undefined"?"undefined":h(S))!=="object"&&(typeof S!=="function"||S===null))throw new TypeError("Object.keys called on non-object");var T=[];for(var U in S)if(J.call(S,U))T.push(U);if(K)for(var V=0;V<M;V++)if(J.call(S,L[V]))T.push(L[V]);return T}function N(S,T){if(Array.prototype.map)return Array.prototype.map.call(S,T);var U=void 0,V=void 0;if(S==null)throw new TypeError(" array is null or not defined");var W=Object(S),X=W.length>>>0;if(typeof T!=="function")throw new TypeError(T+" is not a function");U=new Array(X);V=0;while(V<X){var Y,Z;if(V in W){Y=W[V];Z=T.call(null,Y,V,W);U[V]=Z}V++}return U}function O(S){if(this==null)throw new TypeError("Array.prototype.some called on null or undefined");if(typeof S!=="function")throw new TypeError();var T=Object(this),U=T.length>>>0,V=arguments.length>=2?arguments[1]:void 0;for(var W=0;W<U;W++)if(W in T&&S.call(V,T[W],W,T))return true;return false}function ga(S){return l(S).length===0}function ha(S){if(this===void 0||this===null)throw new TypeError();var T=Object(this),U=T.length>>>0;if(typeof S!=="function")throw new TypeError();var V=[],W=arguments.length>=2?arguments[1]:void 0;for(var X=0;X<U;X++)if(X in T){var Y=T[X];if(S.call(W,Y,X,T))V.push(Y)}return V}function m(S){this.items=S==null?[]:S}m.prototype.has=function(S){return O.call(this.items,function(T){return T===S})};m.prototype.add=function(S){this.items.push(S)};function P(S){if(typeof S!=="function")return S;return function(){try{return S.apply(this,arguments)}catch(T){R.logError(T)}return undefined}}function ia(S,T){var U=S.toQueryString(),V=T+"?"+U;if(V.length<2048){var W=new Image();W.src=V;return true}return false}function Q(S,T){var U="fb"+Math.random().toString().replace(".",""),V=b.createElement("form");V.method="post";V.action=T;V.target=U;V.acceptCharset="utf-8";V.style.display="none";var W=!!(a.attachEvent&&!a.addEventListener),X=W?'<iframe name="'+U+'">':"iframe",Y=b.createElement(X);Y.src="javascript:false";Y.id=U;Y.name=U;V.appendChild(Y);H(Y,"load",function(){S.each(function(U,Z){var $=b.createElement("input");$.name=U;$.value=Z;V.appendChild($)});H(Y,"load",function(){if(V.parentNode)V.parentNode.removeChild(V)});V.submit()});b.body.appendChild(V);return true}function ja(S,T){if(a.navigator&&a.navigator.sendBeacon){a.navigator.sendBeacon(T,S.toFormData());return true}return false}var R={injectMethod:I,isArray:B,isEmptyObject:ga,isNumber:C,keys:l,listenOnce:H,logError:F,logErrorOnce:E,logWarning:G,makeSafe:P,map:N,sendGET:ia,sendPOST:Q,sendBeacon:ja,FBSet:m,each:function aa(S,T){N.call(this,S,T)},some:function k(S,T){return O.call(S,T)},filter:function S(T,U){return ha.call(T,U)}};e.exports=R})();return e.exports}(a,b,c,d)});g.ensureModuleRegistered("undefined",function(){return undefined});"use strict";var i=g.getFbeventsModules("SignalsFBEventsPlugin"),j=g.getFbeventsModules("SignalsFBEventsUtils"),aa=j.each,k=j.some,l=j.keys,m=j.FBSet,n=500,ba=1e3;function o(q){if(typeof q!=="string")return"";if(q.length>n)return q.substr(0,n);return q}function ca(){function q(L){var M=L.tagName.toLowerCase(),D=undefined;switch(M){case"meta":D=L.getAttribute("content");break;case"audio":case"embed":case"iframe":case"img":case"source":case"track":case"video":D=L.getAttribute("src");break;case"a":case"area":case"link":D=L.getAttribute("href");break;case"object":D=L.getAttribute("data");break;case"data":case"meter":D=L.getAttribute("value");break;case"time":D=L.getAttribute("datetime");break;default:D=L.innerText;break}if(typeof D==="string")return o(D)}var r=b.querySelectorAll("[itemscope]"),s=[],t=new m();for(var u=0;u<r.length;u++)t.add(r[u]);for(var v=r.length-1;v>=0;v--){var w=r[v],x=w.querySelectorAll("[itemprop]"),y=w.getAttribute("itemtype");if(typeof y!=="string"||y==="")continue;var z={};for(var A=0;A<x.length;A++){var B=x[A];if(!t.has(B)){t.add(B);var C=B.getAttribute("itemprop");if(typeof C==="string"&&C!==""){var D=q(B);if(D!=null)z[C]=D}}}s.unshift({schema:{type:y,properties:z,subscopes:[]},scope:w})}var E=[],F=[];for(var G=0;G<s.length;G++){var H=s[G],I=H.scope,J=H.schema;for(var K=F.length-1;K>=0;K--)if(F[K].scope.contains(I)){F[K].schema.subscopes.push(J);break}else F.pop();if(F.length===0)E.push(J);F.push({scope:I,schema:J})}return E}function da(){var q=new m(["og","product","music","video","article","book","profile","website","twitter"]),r={},s=b.querySelectorAll("meta[property]");for(var t=0;t<s.length;t++){var u=s[t],v=u.getAttribute("property"),w=u.getAttribute("content");if(typeof v==="string"&&v.indexOf(":")!==-1&&typeof w==="string"&&q.has(v.split(":")[0]))r[v]=o(w)}return r||undefined}var ea={description:true,keywords:true};function fa(){var q=b.querySelector("title"),r={title:o(q&&q.innerText)},s=b.querySelectorAll("meta[name]");for(var t=0;t<s.length;t++){var u=s[t],v=u.getAttribute("name"),w=u.getAttribute("content");if(typeof v==="string"&&typeof w==="string")if(ea[v])r["meta:"+v]=o(w)}return r||undefined}function p(q,r){var s=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1,t=ca(),u=da(),v=fa();if(t.length===0&&l(u).length===0&&s>0){setTimeout(function(){return p(q,r,s-1)},ba);return}else if(t.length>0||l(u).length>0||l(v).length>0){var w={"Schema.org":t,OpenGraph:u,Meta:v};r.trackSingleCustom(q,"Microdata",w)}}e.exports=new i(function(g,q){var r={};g.on("fired",function(s,t){var u=t.get("id");if(Object.prototype.hasOwnProperty.call(r,u))return;var v=k(q.getOptedInPixels("Microdata"),function(w){return w.id===u});if(v){r[u]=true;setTimeout(function(){p(u,q)},500)}})});if(g.registerPlugin)g.registerPlugin("fbevents.plugins.microdata",e.exports);g.ensureModuleRegistered("fbevents.plugins.microdata",function(){return e.exports})})();return e.exports})(window,document,location,history); |
|
fbq.registerPlugin("590758314440297", {__fbEventsPlugin: 1, plugin: function(fbq, instance) { if (!instance.pixelsByID.hasOwnProperty("590758314440297")) { fbq.init("590758314440297"); }instance.optIn("590758314440297", "InferredEvents", true); |
|
instance.optIn("590758314440297", "Microdata", true);instance.configLoaded("590758314440297"); }}); |