html/multibox/index_files/fbevents.js.download

32 lines
101 KiB
Plaintext
Raw Permalink Normal View History

2023-01-22 20:32:16 +00:00
/**
* Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
* copy, modify, and distribute this software in source code or binary form for use
* in connection with the web services and APIs provided by Facebook.
*
* As with any software that integrates with the Facebook platform, your use of
* this software is subject to the Facebook Platform Policy
* [http://developers.facebook.com/policy/]. This copyright notice shall be
* included in all copies or substantial portions of the software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
fbq.version="2.9.84";
fbq._releaseSegment = "stable";
fbq.pendingConfigs=["global_config"];
fbq.__openBridgeRollout = 1.0;
(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g=a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),a;!(d=(a=g.next()).done);d=!0){c.push(a.value);if(b&&c.length===b)break}}catch(a){e=!0,f=a}finally{try{!d&&g["return"]&&g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(b))return a(b,c);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(b,c,d){c&&a(b.prototype,c);d&&a(b,d);return b}}(),i=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a};function j(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function l(a,b,c){b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c;return a}function m(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}else return Array.from(a)}function n(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)});f.ensureModuleRegistered("SignalsConvertNodeToHTMLElement",function(){return function(f,g,h,j){var k={exports:{}};k.exports;(function(){"use strict";function a(a){if((typeof HTMLElement==="undefined"?"undefined":i(HTMLElement))==="object")return a instanceof HTMLElement;else return a!==null&&(typeof a==="undefined"?"undefined":i(a))==="object"&&a.nodeType===Node.ELEMENT_NODE&&typeof a.nodeName==="string"}function b(b){return!a(b)?null:b}k.exports=b})();return k.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsEventValidation",function(){return function(g,h,i,j){var k={exports:{}};k.exports;(function(){"use strict";var a=f.getFbeventsModules("SignalsFBEventsLogging"),b=a.logUserError,c=/^[+-]?\d+(\.\d+)?$/,d="number",e="currency_code",g={AED:1,ARS:1,AUD:1,BOB:1,BRL:1,CAD:1,CHF:1,CLP:1,CNY:1,COP:1,CRC:1,CZK:1,DKK:1,EUR:1,GBP:1,GTQ:1,HKD:1,HNL:1,HUF:1,IDR:1,ILS:1,INR:1,ISK:1,JPY:1,KRW:1,MOP:1,MXN:1,MYR:1,NIO:1,NOK:1,NZD:1,PEN:1,PHP:1,PLN:1,PYG:1,QAR:1,RON:1,RUB:1,SAR:1,SEK:1,SGD:1,THB:1,TRY:1,TWD:1,USD:1,UYU:1,VEF:1,VND:1,ZAR:1};a={value:{isRequired:!0,type:d},currency:{isRequired:!0,type:e}};var h={AddPaymentInfo:{},AddToCart:{},AddToWishlist:{},CompleteRegistration:{},Contact:{},CustomEvent:{validationSchema:{event:{isRequired:!0}}},CustomizeProduct:{},Donate:{},FindLocation:{},InitiateCheckout:{},Lead:{},PageView:{},PixelInitialized:{},Pur
(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)});f.ensureModuleRegistered("signalsFBEventsGetIwlUrl",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a=f.getFbeventsModules("signalsFBEventsGetTier");e.exports=function(b,c){c=a(c);c=c==null?"www.facebook.com":"www."+c+".facebook.com";return"https://"+c+"/signals/iwl.js?pixel_id="+b}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("signalsFBEventsGetTier",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a=/^https:\/\/www\.([A-Za-z0-9\.]+)\.facebook\.com\/tr\/?$/,b=["https://www.facebook.com/tr","https://www.facebook.com/tr/"];e.exports=function(c){if(b.indexOf(c)!==-1)return null;var d=a.exec(c);if(d==null)throw new Error("Malformed tier: "+c);return d[1]}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEvents.plugins.iwlbootstrapper",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var c=f.getFbeventsModules("SignalsFBEventsIWLBootStrapEvent"),d=f.getFbeventsModules("SignalsFBEventsLogging"),g=f.getFbeventsModules("SignalsFBEventsNetworkConfig"),h=f.getFbeventsModules("SignalsFBEventsPlugin"),i=f.getFbeventsModules("signalsFBEventsGetIwlUrl"),j=f.getFbeventsModules("signalsFBEventsGetTier"),k=d.logUserError,l=/^https:\/\/.*\.facebook\.com$/i,m="FACEBOOK_IWL_CONFIG_STORAGE_KEY",n=a.sessionStorage?a.sessionStorage:{getItem:function(a){return null},removeItem:function(a){},setItem:function(a,b){}};e.exports=new h(function(d,e){function h(c,d){var e=b.createElement("script");e.async=!0;e.onload=function(){if(!a.FacebookIWL||!a.FacebookIWL.init)return;var b=j(g.ENDPOINT);b!=null&&a.FacebookIWL.set&&a.FacebookIWL.set("tier",b);d()};a.FacebookIWLSessionEnd=function(){n.removeItem(m),a.close()};e.src=i(c,g.ENDPOINT);b.body&&b.body.appendChild(e)}var o=!1,p=function(a){return!!(e&&e.pixelsByID&&Object.prototype.hasOwnProperty.call(e.pixelsByID,a))};function q(){if(o)return;var b=n.getItem(m);if(!b)return;b=JSON.parse(b);var c=b.pixelID,d=b.graphToken,e=b.sessionStartTime;o=!0;h(c,function(){var b=p(c)?c:null;a.FacebookIWL.init(b,d,e)})}function r(b){if(o)return;h(b,function(){return a.FacebookIWL.showConfirmModal(b)})}function s(a,b,c){n.setItem(m,JSON.stringify({graphToken:a,pixelID:b,sessionStartTime:c})),q()}c.listen(function(b){var c=b.graphToken;b=b.pixelID;s(c,b);a.FacebookIWLSessionEnd=function(){return n.removeItem(m)}});function d(a){var b=a.data,c=b.graphToken,d=b.msg_type,f=b.pixelID;b=b.sessionStartTime;if(e&&e.pixelsByID&&e.pixelsByID[f]&&e.pixelsByID[f].codeless==="false"){k({pixelID:f,type:"SITE_CODELESS_OPT_OUT"});return}if(n.getItem(m)||!l.test(a.origin)||!(a.data&&(d==="FACEBOOK_IWL_BOOTSTRAP"||d==="FACEBOOK_IWL_CONFIRM_DOMAIN")))return;switch(d){case"FACEBOOK_IWL_BOOTSTRAP":a.source.postMessage("FACEBOOK_IWL_BOOTSTRAP_ACK",a.origin);s(c,f,b);break;case"FACEBOOK_IWL_CONFIRM_DOMAIN":a.source.postMessage("FACEBOOK_IWL_CONFIRM_DOMAIN_ACK",a.origin);r(f);break}}if(n.getItem(m)){q();return}a.opener&&a.addEventListener("message",d)})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.iwlbootstrapper");f.registerPlugin&&f.registerPlugin("fbevents.plugins.iwlbootstrapper",e.exports);f.ensureModul
(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)});f.ensureModuleRegistered("SignalsFBEventsOptTrackingOptions",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";e.exports={AUTO_CONFIG_OPT_OUT:1<<0,AUTO_CONFIG:1<<1,CONFIG_LOADING:1<<2,SUPPORTS_DEFINE_PROPERTY:1<<3,SUPPORTS_SEND_BEACON:1<<4,HAS_INVALIDATED_PII:1<<5,SHOULD_PROXY:1<<6,IS_HEADLESS:1<<7,IS_SELENIUM:1<<8,HAS_DETECTION_FAILED:1<<9,HAS_CONFLICTING_PII:1<<10,HAS_AUTOMATCHED_PII:1<<11}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEventsProxyState",function(){return function(f,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var a=!1;e.exports={getShouldProxy:function(){return a},setShouldProxy:function(b){a=b}}})();return e.exports}(a,b,c,d)});f.ensureModuleRegistered("SignalsFBEvents.plugins.opttracking",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var b=f.getFbeventsModules("SignalsFBEventsEvents"),c=b.getCustomParameters,d=b.piiAutomatched,g=b.piiConflicting,h=b.piiInvalidated,i=f.getFbeventsModules("SignalsFBEventsOptTrackingOptions");b=f.getFbeventsModules("SignalsFBEventsPlugin");var j=f.getFbeventsModules("SignalsFBEventsProxyState"),k=f.getFbeventsModules("SignalsFBEventsUtils"),l=k.some,m=!1;function n(){try{Object.defineProperty({},"test",{})}catch(a){return!1}return!0}function o(){return!!(a.navigator&&a.navigator.sendBeacon)}function p(a,b){return a?b:0}var q=["_selenium","callSelenium","_Selenium_IDE_Recorder"],r=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped"];function s(){if(u(q))return!0;var b=l(r,function(b){return a.document[b]?!0:!1});if(b)return!0;b=a.document;for(var c in b)if(c.match(/\$[a-z]dc_/)&&b[c].cache_)return!0;if(a.external&&a.external.toString&&a.external.toString().indexOf("Sequentum")>=0)return!0;if(b.documentElement&&b.documentElement.getAttribute){c=l(["selenium","webdriver","driver"],function(b){return a.document.documentElement.getAttribute(b)?!0:!1});if(c)return!0}return!1}function t(){if(u(["_phantom","__nightmare","callPhantom"]))return!0;return/HeadlessChrome/.test(a.navigator.userAgent)?!0:!1}function u(b){b=l(b,function(b){return a[b]?!0:!1});return b}function v(){var a=0,b=0,c=0;try{a=p(s(),i.IS_SELENIUM),b=p(t(),i.IS_HEADLESS)}catch(a){c=i.HAS_DETECTION_FAILED}return{hasDetectionFailed:c,isHeadless:b,isSelenium:a}}k=new b(function(a,b){if(m)return;var e={};h.listen(function(a){a!=null&&(e[typeof a==="string"?a:a.id]=!0)});var k={};g.listen(function(a){a!=null&&(k[typeof a==="string"?a:a.id]=!0)});var l={};d.listen(function(a){a!=null&&(l[typeof a==="string"?a:a.id]=!0)});c.listen(function(c){var d=b.optIns,f=p(c!=null&&d.isOptedOut(c.id,"AutomaticSetup"),i.AUTO_CONFIG_OPT_OUT);d=p(c!=null&&d.isOptedIn(c.id,"AutomaticSetup"),i.AUTO_CONFIG);var g=p(a.disableConfigLoading!==!0,i.CONFIG_LOADING),h=p(n(),i.SUPPORTS_DEFINE_PROPERTY),m=p(o(),i.SUPPORTS_SEND_BEACON),q=p(c!=null&&k[c.id],i.HAS_CONFLICTING_PII),r=p(c!=null&&e[c.id],i.HAS_INVALIDATED_PII);c=p(c!=null&&l[c.id],i.HAS_AUTOMATCHED_PII);var s=p(j.getShouldProxy(),i.
(function(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g=a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),a;!(d=(a=g.next()).done);d=!0){c.push(a.value);if(b&&c.length===b)break}}catch(a){e=!0,f=a}finally{try{!d&&g["return"]&&g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(b))return a(b,c);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function h(a){return Array.isArray(a)?a:Array.from(a)}function i(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}else return Array.from(a)}f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)});f.ensureModuleRegistered("SignalsFBEvents",function(){return function(a,b,c,d){var e={exports:{}};e.exports;(function(){"use strict";var j=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},f=a.fbq;f.execStart=a.performance&&typeof a.performance.now==="function"?a.performance.now():null;var k=f.getFbeventsModules("SignalsFBEventsNetworkConfig"),l=f.getFbeventsModules("SignalsFBEventsQE"),m=f.getFbeventsModules("SignalsParamList"),n=f.getFbeventsModules("signalsFBEventsSendEvent"),o=f.getFbeventsModules("SignalsFBEventsUtils"),p=f.getFbeventsModules("SignalsFBEventsLogging"),q=f.getFbeventsModules("SignalsEventValidation"),r=f.getFbeventsModules("SignalsFBEventsFBQ"),s=f.getFbeventsModules("SignalsFBEventsJSLoader"),t=f.getFbeventsModules("SignalsFBEventsFireLock"),u=f.getFbeventsModules("SignalsFBEventsMobileAppBridge"),v=f.getFbeventsModules("signalsFBEventsInjectMethod"),w=f.getFbeventsModules("signalsFBEventsMakeSafe"),x=f.getFbeventsModules("signalsFBEventsResolveLegacyArguments"),y=f.getFbeventsModules("SignalsFBEventsPluginManager"),z=f.getFbeventsModules("signalsFBEventsCoercePixelID"),A=f.getFbeventsModules("SignalsFBEventsEvents"),B=f.getFbeventsModules("SignalsFBEventsTyped"),aa=B.coerce,ba=B.Typed,C=o.each;B=o.FBSet;var D=o.isEmptyObject,E=o.isPlainObject,F=o.isNumber,G=o.keys;o=A.execEnd;var H=A.fired,I=A.getCustomParameters,ca=A.iwlBootstrap,J=A.piiInvalidated,da=A.setIWLExtractors,K=A.validateCustomParameters,ea=A.validateUrlParameters,fa=p.logError,L=p.logUserError,M=t.global,N=-1,ga="b68919aff001d8366249403a2544fba2d833084f1ad22839b6310aadacb6a138",ha=Array.prototype.slice,O=Object.prototype.hasOwnProperty,P=c.href,Q=!1,ia=!1,R=[],S={},ja;b.referrer;var T={PageView:new B(),PixelInitialized:new B()},U=new r(f,S),V=new y(U,M),ka=new B(["eid"]);function la(a){for(var b in a)O.call(a,b)&&(this[b]=a[b]);return this}function W(){try{var a=ha.call(arguments);if(M.isLocked()&&a[0]!=="consent"){f.queue.push(arguments);return}var b=x(a),c=[].concat(i(b.args)),d=b.isLegacySyntax,e=c.shift();switch(e){case"addPixelId":Q=!0;X.apply(this,c);break;case"init":ia=!0;X.apply(this,c);break;case"set":ma.apply(this,c);break;case"track":if(F(c[0])){qa.apply(this,c);break}if(d){Y.apply(this,c);break}pa.apply(this,c);break;case"trackCustom":Y.apply(this,c);break;case"send":ra.apply(this,c);break;case"on":var j=h(c),k=j[0],l=j.slice(1),m=A[k];m&&m.triggerWeakly(l);break;case"loadPlugin":V.loadPlugin(
fbq.registerPlugin("global_config", {__fbEventsPlugin: 1, plugin: function(fbq, instance, config) { fbq.loadPlugin("commonincludes");
fbq.loadPlugin("opttracking");
fbq.set("experiments", [{"allocation":0.02,"code":"a","name":"skip_x_frame_post","passRate":0.5},{"allocation":0.02,"code":"b","name":"network_retry_when_not_success","passRate":0.5},{"allocation":0.02,"code":"c","name":"no_op_exp","passRate":0.5},{"allocation":0.02,"code":"d","name":"disallow_pii_on_strict_non_submit","passRate":0.5}]);
config.set(null, "batching", {"batchWaitTimeMs":501,"maxBatchSize":10});
config.set(null, "microdata", {"waitTimeMs":500});instance.configLoaded("global_config"); }});