diff --git a/scripts/benchmark.js b/scripts/benchmark.js index 48a1bc058..6907a6872 100755 --- a/scripts/benchmark.js +++ b/scripts/benchmark.js @@ -20,15 +20,22 @@ let packagename, filename; const script = new Command("benchmark.js") .option("-o, --offline", "Only install package if not present; package not removed after testing") .option("-r, --runs ", "Number of times to run tests") + .option("-l, --local", "Use local file instead of a package") .usage("[options] [file]") .arguments(" [file]") - .action(function(pname, fname) { - packagename = pname; - filename = fname; + .action(function(pname, fname, command) { + if (command.local) { + packagename = ""; + filename = pname; + } + else { + packagename = pname; + filename = fname; + } }) .parse(process.argv); -if (!packagename) { +if (!packagename && !script.local) { console.error("Error: No package specified"); process.exit(1); } @@ -91,8 +98,14 @@ function uninstallPackage() { } function checkFile() { - // If filename has not been passed as an argument, attempt to resolve file from package.json - filename = filename ? path.join(pathToScripts, "node_modules", filename) : require.resolve(packagename.split("@")[0]); + + if (!script.local) { + // If filename has not been passed as an argument, attempt to resolve file from package.json + filename = filename + ? path.join(pathToScripts, "node_modules", filename) + : require.resolve(packagename.split("@")[0]); + } + console.log("file: " + path.basename(filename)); if (!filename || !pathExists(filename)) { @@ -224,7 +237,7 @@ function pathExists(path) { const packagePath = path.join(pathToScripts, "node_modules", packagename); -if (!pathExists(packagePath) || !script.offline) { +if ((!pathExists(packagePath) || !script.offline) && !script.local) { installPackage(); } @@ -232,6 +245,6 @@ checkFile(); testFile(); processResults(); -if (!script.offline) { +if (!script.offline && !script.local) { uninstallPackage(); } diff --git a/scripts/benchmark_assets/LICENSE-examples b/scripts/benchmark_assets/LICENSE-examples new file mode 100644 index 000000000..ad276aaa9 --- /dev/null +++ b/scripts/benchmark_assets/LICENSE-examples @@ -0,0 +1,11 @@ +Copyright (c) 2008-present, Facebook, Inc. All rights reserved. + +The examples provided by Facebook are for non-commercial testing and evaluation +purposes only. Facebook reserves all rights not expressly granted. + +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 +FACEBOOK 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. diff --git a/scripts/benchmark_assets/fb_pkg.js b/scripts/benchmark_assets/fb_pkg.js new file mode 100644 index 000000000..4c3a167a7 --- /dev/null +++ b/scripts/benchmark_assets/fb_pkg.js @@ -0,0 +1,184 @@ +/** + * Copyright 2008-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE-examples file in the root directory of this source tree. + * + */ + +if (self.CavalryLogger) { CavalryLogger.start_js(["Nbi4m"]); } + +if(!Array.from)Array.from=function(a){if(a==null)throw new TypeError('Object is null or undefined');var b=arguments[1],c=arguments[2],d=this,e=Object(a),f=typeof Symbol==='function'?typeof Symbol==='function'?Symbol.iterator:'@@iterator':'@@iterator',g=typeof b==='function',h=typeof e[f]==='function',i=0,j,k;if(h){j=typeof d==='function'?new d():[];var l=e[f](),m;while(!(m=l.next()).done){k=m.value;if(g)k=b.call(c,k,i);j[i]=k;i+=1;}j.length=i;return j;}var n=e.length;if(isNaN(n)||n<0)n=0;j=typeof d==='function'?new d(n):new Array(n);while(i>>0;for(var g=0;g>>0,f=arguments[1],g=f>>0,h=g<0?Math.max(e+g,0):Math.min(g,e),i=arguments[2],j=i===a?e:i>>0,k=j<0?Math.max(e+j,0):Math.min(j,e);while(h1?c(arguments[1]):0,i=h<0?Math.max(g+h,0):h,j=Number.isNaN(e);while(i=0?1:-1;}})(); + + + + +(function(){var a={},b=function i(j,k){if(!j&&!k)return null;var l={};if(typeof j!=='undefined')l.type=j;if(typeof k!=='undefined')l.signature=k;return l;},c=function i(j,k){return b(j&&/^[A-Z]/.test(j)?j:undefined,k&&(k.params&&k.params.length||k.returns)?'function('+(k.params?k.params.map(function(l){return /\?/.test(l)?'?'+l.replace('?',''):l;}).join(','):'')+')'+(k.returns?':'+k.returns:''):undefined);},d=function i(j,k,l){return j;},e=function i(j,k,l){if('sourcemeta' in __transform_includes)j.__SMmeta=k;if('typechecks' in __transform_includes){var m=c(k?k.name:undefined,l);if(m)__w(j,m);}return j;},f=function i(j,k,l){return l.apply(j,k);},g=function i(j,k,l,m){if(m&&m.params)__t.apply(j,m.params);var n=l.apply(j,k);if(m&&m.returns)__t([n,m.returns]);return n;},h=function i(j,k,l,m,n){if(n){if(!n.callId)n.callId=n.module+':'+(n.line||0)+':'+(n.column||0);var o=n.callId;a[o]=(a[o]||0)+1;}return l.apply(j,k);};if(typeof __transform_includes==='undefined'){__annotator=d;__bodyWrapper=f;}else{__annotator=e;if('codeusage' in __transform_includes){__annotator=d;__bodyWrapper=h;__bodyWrapper.getCodeUsage=function(){return a;};__bodyWrapper.clearCodeUsage=function(){a={};};}else if('typechecks' in __transform_includes){__bodyWrapper=g;}else __bodyWrapper=f;}})(); +if(typeof window!=='undefined'&&window.JSON&&JSON.stringify(['\u2028\u2029'])==='["\u2028\u2029"]')JSON.stringify=function(a){var b=/\u2028/g,c=/\u2029/g;return function d(e,f,g){var h=a.call(this,e,f,g);if(h){if(-1>10)+55296),String.fromCharCode(f%1024+56320));}}return a.join('');}; +if(!String.prototype.startsWith)String.prototype.startsWith=function(a){"use strict";if(this==null)throw TypeError();var b=String(this),c=arguments.length>1?Number(arguments[1])||0:0,d=Math.min(Math.max(c,0),b.length);return b.indexOf(String(a),c)==d;};if(!String.prototype.endsWith)String.prototype.endsWith=function(a){"use strict";if(this==null)throw TypeError();var b=String(this),c=b.length,d=String(a),e=arguments.length>1?Number(arguments[1])||0:c,f=Math.min(Math.max(e,0),c),g=f-d.length;if(g<0)return false;return b.lastIndexOf(d,g)==g;};if(!String.prototype.includes)String.prototype.includes=function(a){"use strict";if(this==null)throw TypeError();var b=String(this),c=arguments.length>1?Number(arguments[1])||0:0;return b.indexOf(String(a),c)!=-1;};if(!String.prototype.contains)String.prototype.contains=String.prototype.includes;if(!String.prototype.repeat)String.prototype.repeat=function(a){"use strict";if(this==null)throw TypeError();var b=String(this);a=Number(a)||0;if(a<0||a===Infinity)throw RangeError();if(a===1)return b;var c='';while(a){if(a&1)c+=b;if(a>>=1)b+=b;}return c;};if(!String.prototype.codePointAt)String.prototype.codePointAt=function(a){'use strict';if(this==null)throw TypeError('Invalid context: '+this);var b=String(this),c=b.length;a=Number(a)||0;if(a<0||c<=a)return undefined;var d=b.charCodeAt(a);if(55296<=d&&d<=56319&&c>a+1){var e=b.charCodeAt(a+1);if(56320<=e&&e<=57343)return (d-55296)*1024+e-56320+65536;}return d;}; +if(!String.prototype.trimLeft)String.prototype.trimLeft=function(){return this.replace(/^\s+/,'');};if(!String.prototype.trimRight)String.prototype.trimRight=function(){return this.replace(/\s+$/,'');}; + + +__t=function(a){return a[0];};__w=function(a){return a;}; +(function(a){var b=a.babelHelpers={},c=Object.prototype.hasOwnProperty;b.inherits=function(d,e){Object.assign(d,e);d.prototype=Object.create(e&&e.prototype);d.prototype.constructor=d;d.__superConstructor__=e;return e;};b._extends=Object.assign;b['extends']=b._extends;b.objectWithoutProperties=function(d,e){var f={};for(var g in d){if(!c.call(d,g)||e.indexOf(g)>=0)continue;f[g]=d[g];}return f;};b.taggedTemplateLiteralLoose=function(d,e){d.raw=e;return d;};b.bind=Function.prototype.bind;})(typeof global==='undefined'?self:global); + +(function(a){var b=a.performance;if(b&&b.setResourceTimingBufferSize){b.setResourceTimingBufferSize(100000);b.setResourceTimingBufferSize=function(){};}})(this); +(function a(b){if(b.require)return;var c={},d={};function e(ra,sa){ra.list.push(sa);ra.onAdd();}var f={list:[],index:0,action:function ra(sa){var ta=c[sa];if(ta&&ta.exports==null)aa.call(null,sa);},onAdd:function ra(){}},g={list:[],index:0,action:function ra(sa){var ta=c[sa];if(ta&&!ta.factoryFinished)ba(sa);},onAdd:function ra(){}},h={},i={},j=0,k=1,l=2,m=4,n={},o=Object.prototype.hasOwnProperty,p=Object.prototype.toString;function q(ra){var sa=Array.prototype.slice.call(ra),ta={},ua,va,wa,xa;while(sa.length){va=sa.shift();if(ta[va])continue;ta[va]=true;wa=c[va];if(!wa||!wa.waiting)continue;for(ua=0;ua0?ra.join(',')+'__':'')+j++,ra,sa,k,ta,1);}function ia(ra){return '__mod__'+(ra?ra+'__':'')+j++;}function ja(ra,sa){if(!ra.waitingMap[sa]&&ra.id!==sa){ra.waiting++;ra.waitingMap[sa]=1;h[sa]||(h[sa]={});h[sa][ra.id]=1;}}function ka(ra){var sa=[],ta=c[ra],ua,va,wa;for(va=0;va=l)return ['erx slice failure: %s',j];var o=j.substring(0,k),p=j.substring(n);j=j.substring(m,l);var q;try{q=JSON.parse(j);q[0]=o+q[0]+p;}catch(r){return ['erx parse failure: %s',j];}return q;};f.exports=h;}),null); +__d("removeFromArray",[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){var k=i.indexOf(j);if(k!==-1)i.splice(k,1);}f.exports=h;}),null); +__d('ErrorUtils',['Env','eprintf','erx','removeFromArray'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h='',i='',j=typeof window==='undefined'?'':'',k=/^https?:\/\//i,l=/^Type Mismatch for/,m=/(.*)[@\s][^\s]+$/,n=[],o=void 0,p=[],q=50,r=[],s=false,t=false,u=location.search.indexOf('nocatch')!==-1,v=['Unknown script code','Function code','eval code'];function w(ba){for(var ca=0;ca';var ja={column:ea,identifier:ga,line:da,script:ca};if(o)o(ja);ja.text=' at'+(ja.identifier?' '+ja.identifier+' (':' ')+ja.script+(ja.line?':'+ja.line:'')+(ja.column?':'+ja.column:'')+(ja.identifier?')':'');return ja;});}function y(ba){r.unshift(ba);s=true;}function z(){r.shift();s=r.length!==0;}var aa={ANONYMOUS_GUARD_TAG:h,GENERATED_GUARD_TAG:i,GLOBAL_ERROR_HANDLER_TAG:j,history:p,addListener:function ba(ca,da){n.push(ca);if(!da)p.forEach(ca);},removeListener:function ba(ca){c('removeFromArray')(n,ca);},setSourceResolver:function ba(ca){o=ca;},applyWithGuard:function ba(ca,da,ea,fa,ga){y(ga||h);if(c('Env').nocatch)u=true;if(u){var ha=void 0;try{ha=ca.apply(da,ea||[]);}finally{z();}return ha;}try{return ca.apply(da,ea||[]);}catch(ia){var ja=aa.normalizeError(ia);if(fa)fa(ja);if(ca)ja.callee=ca.toString().substring(0,100);if(ea)ja.args=Array.from(ea).toString().substring(0,100);ja.guard=r[0];ja.guardList=r.slice();aa.reportError(ja);}finally{z();}},guard:function ba(ca,da,ea){da=da||ca.name||i;function fa(){return aa.applyWithGuard(ca,ea||this,arguments,null,da);}if(ca.__SMmeta)fa.__SMmeta=ca.__SMmeta;return fa;},inGuard:function ba(){return s;},normalizeError:function ba(ca){if(!ca){return {};}else if(ca._originalError)return ca;var da=x(ca.stackTrace||ca.stack),ea=false;if(ca.framesToPop){var fa=ca.framesToPop,ga=void 0;while(fa>0&&da.length>0){ga=da.shift();fa--;ea=true;}if(l.test(ca.message)&&ca.framesToPop===2&&ga)if(k.test(ga.script))ca.message+=' at '+ga.script+(ga.line?':'+ga.line:'')+(ga.column?':'+ga.column:'');}var ha={line:ca.lineNumber||ca.line,column:ca.columnNumber||ca.column,name:ca.name,message:ca.message,messageWithParams:ca.messageWithParams,type:ca.type,script:ca.fileName||ca.sourceURL||ca.script,stack:da.map(function(ja){return ja.text;}).join('\n'),stackFrames:da,guard:ca.guard,guardList:ca.guardList,extra:ca.extra,snapshot:ca.snapshot};if(typeof ha.message==='string'){ha.messageWithParams=ha.messageWithParams||c('erx')(ha.message);}else{ha.messageObject=ha.message;ha.message=String(ha.message)+' ('+typeof ha.message+')';}if(ha.messageWithParams)ha.message=c('eprintf').apply(undefined,ha.messageWithParams);if(typeof window!=='undefined'&&window&&window.location)ha.windowLocationURL=window.location.href;if(o)o(ha);if(ea){delete ha.script;delete ha.line;delete ha.column;}if(da[0]){ha.script=ha.script||da[0].script;ha.line=ha.line||da[0].line;ha.column=ha.column||da[0].column;}ha._originalError=ca;for(var ia in ha)if(ha[ia]==null)delete ha[ia];return ha;},onerror:function ba(ca,da,ea,fa,ga){ga=ga||{};ga.message=ga.message||ca;ga.script=ga.script||da;ga.line=ga.line||ea;ga.column=ga.column||fa;ga.guard=j;ga.guardList=[j];aa.reportError(ga,true);},reportError:function ba(ca,da){if(t)return false;if(r.length>0){ca.guard=ca.guard||r[0];ca.guardList=r.slice();}ca=aa.normalizeError(ca);!da;if(p.length>q)p.splice(q/2,1);p.push(ca);t=true;for(var ea=0;ea1?j-1:0),l=1;l2?m-2:0),o=2;o2?l-2:0),n=2;n0||h(0);this.$CircularBuffer1=j;this.$CircularBuffer2=0;this.$CircularBuffer3=[];}i.prototype.write=function(j){'use strict';if(this.$CircularBuffer3.length1){var m=this.$ProfilingCounters1[this.$ProfilingCounters1.length-2];m.value+=l-m.lastStartTime;}return j;};h.stopTiming=function(i){'use strict';return h.$ProfilingCounters7().$ProfilingCounters9(i);};h.prototype.$ProfilingCounters9=function(i){'use strict';var j=c('performanceAbsoluteNow')(),k=this.$ProfilingCounters2[i];delete this.$ProfilingCounters2[i];if(k==null||this.$ProfilingCounters1[k]==null)return 0;var l=null,m=0;while(this.$ProfilingCounters1.length-1>k){var n=this.$ProfilingCounters1.pop();m+=n.value;delete this.$ProfilingCounters2[n.id];if(l==null&&n.lastStartTime!=null)l=n.lastStartTime;}var o=this.$ProfilingCounters1.pop();o.value+=j-(l||o.lastStartTime);o.value+=m;this.$ProfilingCounters4[o.counter]=this.$ProfilingCounters4[o.counter]||0;this.$ProfilingCounters4[o.counter]+=o.value;if(this.$ProfilingCounters1.length>0)this.$ProfilingCounters1[this.$ProfilingCounters1.length-1].lastStartTime=j;return o.value;};h.incrementCounter=function(i,j){'use strict';h.$ProfilingCounters7().$ProfilingCounters10(i,j);};h.prototype.$ProfilingCounters10=function(i,j){'use strict';this.$ProfilingCounters3[i]=this.$ProfilingCounters3[i]||0;this.$ProfilingCounters3[i]+=j;};h.getTotals=function(){'use strict';return h.$ProfilingCounters7().$ProfilingCounters11();};h.prototype.$ProfilingCounters11=function(){'use strict';return babelHelpers['extends']({},this.$ProfilingCounters4,this.$ProfilingCounters3);};h.$ProfilingCounters6=[];h.$ProfilingCounters5=1;h.startCapturing();b.ProfilingCounters=h;f.exports=h;}),3); +__d('wrapFunction',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={},i=function j(k,l,m){var n=l||'default';return function(){var o=n in h?h[n](k,m):k;return o.apply(this,arguments);};};i.setWrapper=function(j){var k=arguments.length<=1||arguments[1]===undefined?'default':arguments[1];h[k]=j;};f.exports=i;}),null); +__d('TimeSlice',['invariant','CircularBuffer','ErrorUtils','Env','LogBuffer','ProfilingCounters','performanceAbsoluteNow','wrapFunction'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=1,j=false,k=0,l=void 0,m=[],n=null;function o(fa,ga,ha,ia){if(fa==null||fa.length===0)return;var ja=0,ka=0;while(kaz){ba=true;return null;}else{var ga=function(){ha._lastEnabledStartTimeMs=ia;var ka=ca++,la={disable:function(){if(this._activeHeartbeatHandles[ka]!=null){delete this._activeHeartbeatHandles[ka];this._checkShouldDisable();}}.bind(ha),enabledTime:ha._lastEnabledStartTimeMs};ha._activeHeartbeatHandles[ka]=la;return {v:la};}();if(typeof ga==="object")return ga.v;}},_checkShouldDisable:function fa(){var ga,ha=this;if(this._enabled)(function(){var ia=c('performanceAbsoluteNow')(),ja=false;Object.keys(ha._activeHeartbeatHandles).forEach(function(ka){if(ia-this._activeHeartbeatHandles[ka].enabledTime>y){delete this._activeHeartbeatHandles[ka];}else ja=true;}.bind(ha));if(!ja){ha._enabled=false;clearInterval(ha._intervalHandle);ha._intervalHandle=null;ha._firstEnabledStartTimeMs=null;}})();},updateExecution:function fa(ga,ha,ia){if(!this._enabled)return;if(this._ignoredTimesliceNames[ia]){this._updateState({type:'ignored_exec',timeMs:ga},true);this._updateState({type:'ignored_exec',timeMs:ha},false);}else{this._updateState({type:'exec',timeMs:ga},true);this._updateState({type:'exec',timeMs:ha},false);}},_isIdleMarker:function fa(event){return event.type=='beat'||event.type=='ignored_exec';},_updateState:function fa(ga,ha){var ia=this._lastEvent.timeMs,ja=ga.timeMs;if(ha){var ka=this._expectedNextHeartbeatMs+this._idleGapThresholdMs,la=ja>ka;if(this._lastEvent.type==='exec'){if(ga.type==='exec'){this._outputBrowserBlock(ia,ja,la?'likely_btwn_exec':'btwn_exec');}else if(this._isIdleMarker(ga))this._outputBrowserBlock(ia,ja,la?'likely_post_exec':'post_exec');}else if(this._isIdleMarker(this._lastEvent))if(ga.type==='exec'){this._outputBrowserBlock(ia,ja,la?'likely_pre_exec':'pre_exec');}else if(this._isIdleMarker(this._lastEvent)&&la){var ma=ga.type==='beat'?'delayed_beat':'delayed_beat_btwn_ignored';this._outputBrowserBlock(ia,ja,ma);}}this._lastEvent=ga;},_outputBrowserBlock:function fa(ga,ha,ia){if(gay){this._activeHeartbeatHandles={};this._checkShouldDisable();return;}this._updateState({type:'beat',timeMs:ga},true);this._expectedNextHeartbeatMs=ga+this._delayMs;},isOn:function fa(){return this._enabled;}},ea={guard:function fa(ga,ha,ia){typeof ga==='function'||h(0);typeof ha==='string'||h(0);if(ga.__tsGuarded)return ga;if(!ia||!ia.root)ea.checkCoverage();var ja=void 0,ka=null;if(j){ja=k;if(m.length>0&&ia!=null&&ia.isContinuation){m.forEach(function(na){return na.refCount++;});ka=m;}}var la=false,ma=function na(){var oa=m;if(ka!=null)m=ka;var pa=void 0;if(j){pa=ga.apply(this,arguments);}else{var qa='TimeSlice'+(ha?': '+ha:'');c('ProfilingCounters').startCapturing();var ra=c('performanceAbsoluteNow')();j=true;k=i++;l=ha;pa=c('ErrorUtils').applyWithGuard(ga,this,arguments,null,qa);j=false;var sa=c('performanceAbsoluteNow')();v+=sa-ra;c('LogBuffer').write('time_slice',babelHelpers['extends']({begin:ra,end:sa,id:k,parentID:ja,guard:ha,counters:w?c('ProfilingCounters').getTotals():null,activeRefTreeIds:m.map(function(ta){return ta.rootContext;})},ia,ga.__SMmeta));c('ProfilingCounters').stopCapturing();da.updateExecution(ra,sa,ha);}if(ka!=null||n!=null&&n.rootContext===k){o(m,la,ha,k);m=oa;}la=true;return pa;};ma.__tsGuarded=true;return ma;},inGuard:function fa(){return j;},checkCoverage:function fa(){var ga=void 0;if(s!==r&&!j){if(x){ga=Error.stackTraceLimit;Error.stackTraceLimit=50;}var ha=new Error('Missing TimeSlice coverage');if(x)Error.stackTraceLimit=ga;ha.type='warn';if(s===q&&Math.random()=n){for(t in o){v.push(o[t].signal);u.push(o[t].error);}o={};}else for(t in o){var w=o[t].signal,x=window.getComputedStyle?getComputedStyle(w,null):w.currentStyle;if(x&&parseInt(x.height,10)>1){u.push(o[t].load);v.push(w);delete o[t];}}for(var y=0;y2?n-2:0),p=2;p-1;},matchesSelector:function k(l,m){var n=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.msMatchesSelector||function(o){return i(l,o);};return n.call(l,m);}};f.exports=j;}),null); +__d('isSocialPlugin',['CSSCore'],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){return document.body&&c('CSSCore').hasClass(document.body,'plugin');}f.exports=h;}),null); +__d('getAsyncParams',['CurrentCommunity','CurrentUserInitialData','DTSG','ISB','LSD','ServerJSDefine','SiteData','isSocialPlugin'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=1;function i(j){var k,l=(k={__user:c('CurrentUserInitialData').USER_ID,__a:1,__dyn:c('ServerJSDefine').getLoadedModuleHash(),__af:c('SiteData').features,__req:(h++).toString(36)},k[c('SiteData').be_key]=c('SiteData').be_mode,k[c('SiteData').pkg_cohort_key]=c('SiteData').pkg_cohort,k.__rev=c('SiteData').revision,k);window.location.search.slice(1).split('&').forEach(function(p){var q=p.split('='),r=q[0],s=q[1];if(r==='locale'||r==='cxobfus'||r==='js_debug'||r.substr(0,3)==='mh_')l[r]=s;});if(j=='POST'){var m=c('DTSG').getCachedToken?c('DTSG').getCachedToken():c('DTSG').getToken();if(m){l.fb_dtsg=m;var n='';for(var o=0;o0,ha={BOOTLOAD:'bootloader/bootload',HASTE_RESPONSE:'bootloader/hasteResponse'};c('ErrorUtils').addListener(function(ua){ua.loadingUrls=Object.keys(p);},true);function ia(ua){var va=l[ua];if(va)return va;throw new Error(c('ex')('Bootloader: %s is not in the component map',ua));}function ja(){if(!n)n=document.head||document.getElementsByTagName('head')[0]||document.body;return n;}function ka(){if(!ga)return false;var ua=t.length;if(ua4?ya-4:0),ab=4;ab0)(function(){var hb=c('BootloaderConfig').payloadEndpointURI,ib='async:'+ca++,jb=encodeURIComponent(eb.join(',')),kb=hb.indexOf('?')>-1?'&':'?';o[ib]={src:''+hb+kb+'modules='+jb,type:'async'};db.push(ib);eb.forEach(function(lb){m[lb]=ib;});})();qa(db,e.bind(null,cb,xa),null,{ref:ya,components:va,has_new_component:fb,first_identical_request:bb,async_resources_count:gb,async_resources_downloaded:eb.length});},loadResources:function ua(va,wa,xa,ya){var za;c('TimeSliceInteraction').informGlobally('Bootloader.loadResources').addSetAnnotation('hashes',va);sa();if(xa)(function(){var ab={};va.forEach(function(cb){ab[cb]=true;});for(var bb in j)if(!(bb in k||bb in ab||bb in x))pa(bb);x={};})();qa(va,wa,ya);},requestJSResource:function ua(va){ma('js',va,null,ja());},done:function ua(va,wa){if(wa!=null){q[wa]=c('performanceAbsoluteNow')()-p[wa];delete p[wa];}if(window.CavalryLogger)window.CavalryLogger.done_js(va);va.forEach(function(xa){if(xa!=null){j[xa]=true;ba.satisfyPersistentDependency(xa);if(o[xa]&&o[xa].type==='css'&&!u[xa])u[xa]=define(c('CSSLoader').moduleName(xa),[],'x',2,null,1);}});},enableBootload:function ua(va){for(var wa in va)if(!l[wa])l[wa]=va[wa];if(!z){sa();z=true;aa.forEach(function(xa){ta.loadModules.apply(ta,xa);});aa=[];}},setResourceMap:function ua(va){var wa=0,xa=0,ya=0;for(var za in va)if(!o[za]){o[za]=va[za];wa++;}else if(o[za].src===va[za].src){ya++;}else xa++;return [wa,xa,ya];},getURLToHashMap:function ua(){var va={};for(var wa in o)va[o[wa].src]=wa;return va;},loadPredictedResources:function ua(va,wa){va.forEach(function(xa){x[xa]=true;});qa(va,wa);},loadPredictedResourceMap:function ua(va,wa){ta.setResourceMap(va);ta.loadPredictedResources(Object.keys(va),wa);},getLoadingUrls:function ua(){var va={},wa=c('performanceAbsoluteNow')();for(var xa in p)va[xa]=wa-p[xa];return va;},getBootloadedComponents:function ua(){return v;},getLoadedUrlTimes:function ua(){return q;},getErrorUrls:function ua(){return Object.keys(r);},__debug:{callbackManager:ba,componentMap:l,requested:j,resources:o,retries:s,errors:r,loading:p,predictedResources:x,bootloaded:v},Events:ha};f.exports=ta;}),null); +__d('getMarkupWrap',['invariant','ExecutionEnvironment'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('ExecutionEnvironment').canUseDOM?document.createElement('div'):null,j={},k=[1,''],l=[1,'','
'],m=[3,'','
'],n=[1,'',''],o={'*':[1,'?
','
'],area:[1,'',''],col:[2,'','
'],legend:[1,'
','
'],param:[1,'',''],tr:[2,'','
'],optgroup:k,option:k,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:m,th:m},p=['circle','clipPath','defs','ellipse','g','image','line','linearGradient','mask','path','pattern','polygon','polyline','radialGradient','rect','stop','text','tspan'];p.forEach(function(r){o[r]=n;j[r]=true;});function q(r){!!i||h(0);if(!o.hasOwnProperty(r))r='*';if(!j.hasOwnProperty(r)){if(r==='*'){i.innerHTML='';}else i.innerHTML='<'+r+'>';j[r]=!i.firstChild;}return j[r]?o[r]:null;}f.exports=q;}),null); +__d('createNodesFromMarkup',['invariant','ExecutionEnvironment','getMarkupWrap'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('ExecutionEnvironment').canUseDOM?document.createElement('div'):null,j=/^\s*<(\w+)/;function k(m){var n=m.match(j);return n&&n[1].toLowerCase();}function l(m,n){var o=i;!!i||h(0);var p=k(m),q=p&&c('getMarkupWrap')(p);if(q){o.innerHTML=q[1]+m+q[2];var r=q[0];while(r--)o=o.lastChild;}else o.innerHTML=m;var s=o.getElementsByTagName('script');if(s.length){n||h(0);Array.from(s).forEach(n);}var t=Array.from(o.childNodes);while(o.lastChild)o.removeChild(o.lastChild);return t;}f.exports=l;}),null); +__d('evalGlobal',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){if(typeof i!='string')throw new TypeError('JS sent to evalGlobal is not a string. Only strings are permitted.');if(!i)return;var j=document.createElement('script');try{j.appendChild(document.createTextNode(i));}catch(k){j.text=i;}var l=document.getElementsByTagName('head')[0]||document.documentElement;l.appendChild(j);l.removeChild(j);}f.exports=h;}),null); +__d('HTML',['invariant','Bootloader','createNodesFromMarkup','emptyFunction','evalGlobal'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=/(<(\w+)[^>]*?)\/>/g,j={abbr:true,area:true,br:true,col:true,embed:true,hr:true,img:true,input:true,link:true,meta:true,param:true};function k(l){'use strict';if(l&&typeof l.__html==='string')l=l.__html;if(!(this instanceof k)){if(l instanceof k)return l;return new k(l);}if(l){var m=typeof l;m==='string'||h(0);}this._markup=l||'';this._defer=false;this._nodes=null;this._inlineJS=c('emptyFunction');this._rootNode=null;}k.prototype.toString=function(){'use strict';return this._markup;};k.prototype.getContent=function(){'use strict';return this._markup;};k.prototype.getNodes=function(){'use strict';this._fillCache();return this._nodes;};k.prototype.getRootNode=function(){'use strict';!this._rootNode||h(0);var l=this.getNodes();if(l.length===1){this._rootNode=l[0];}else{var m=document.createDocumentFragment();for(var n=0;n';}),m=null,n=c('createNodesFromMarkup')(l,function(o){m=m||[];m.push(o.src?c('Bootloader').requestJSResource.bind(c('Bootloader'),o.src):c('evalGlobal').bind(null,o.innerHTML));o.parentNode.removeChild(o);});if(m)this._inlineJS=function(){for(var o=0;o=u){this.$ArrayIterator1=undefined;return {value:undefined,done:true};}this.$ArrayIterator3=v+1;if(w===h){return {value:v,done:false};}else if(w===i){return {value:t[v],done:false};}else if(w===j)return {value:[v,t[v]],done:false};};s.prototype[typeof Symbol==='function'?Symbol.iterator:'@@iterator']=function(){'use strict';return this;};return s;}();return {keys:q?function(s){return s.keys();}:function(s){return new r(s,h);},values:q?function(s){return s.values();}:function(s){return new r(s,i);},entries:q?function(s){return s.entries();}:function(s){return new r(s,j);}};}(),l=function(){var q=m(String),r=void 0;if(!q)r=function(){function s(t){'use strict';this.$StringIterator1=t;this.$StringIterator2=0;}s.prototype.next=function(){'use strict';if(this.$StringIterator1==null)return {value:undefined,done:true};var t=this.$StringIterator2,u=this.$StringIterator1,v=u.length;if(t>=v){this.$StringIterator1=undefined;return {value:undefined,done:true};}var w=void 0,x=u.charCodeAt(t);if(x<55296||x>56319||t+1===v){w=u[t];}else{var y=u.charCodeAt(t+1);if(y<56320||y>57343){w=u[t];}else w=u[t]+u[t+1];}this.$StringIterator2=t+w.length;return {value:w,done:false};};s.prototype[typeof Symbol==='function'?Symbol.iterator:'@@iterator']=function(){'use strict';return this;};return s;}();return {keys:function s(){throw TypeError('Strings default iterator doesn\'t implement keys.');},values:q?function(s){return s[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();}:function(s){return new r(s);},entries:function s(){throw TypeError('Strings default iterator doesn\'t implement entries.');}};}();function m(q){return typeof q.prototype[typeof Symbol==='function'?Symbol.iterator:'@@iterator']==='function'&&typeof q.prototype.values==='function'&&typeof q.prototype.keys==='function'&&typeof q.prototype.entries==='function';}function n(q,r){'use strict';this.$ObjectIterator1=q;this.$ObjectIterator2=r;this.$ObjectIterator3=Object.keys(q);this.$ObjectIterator4=0;}n.prototype.next=function(){'use strict';var q=this.$ObjectIterator3.length,r=this.$ObjectIterator4,s=this.$ObjectIterator2,t=this.$ObjectIterator3[r];if(r>=q){this.$ObjectIterator1=undefined;return {value:undefined,done:true};}this.$ObjectIterator4=r+1;if(s===h){return {value:t,done:false};}else if(s===i){return {value:this.$ObjectIterator1[t],done:false};}else if(s===j)return {value:[t,this.$ObjectIterator1[t]],done:false};};n.prototype[typeof Symbol==='function'?Symbol.iterator:'@@iterator']=function(){'use strict';return this;};var o={keys:function q(r){return new n(r,h);},values:function q(r){return new n(r,i);},entries:function q(r){return new n(r,j);}};function p(q,r){if(typeof q==='string'){return l[r||i](q);}else if(Array.isArray(q)){return k[r||i](q);}else if(q[typeof Symbol==='function'?Symbol.iterator:'@@iterator']){return q[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();}else return o[r||j](q);}Object.assign(p,{KIND_KEYS:h,KIND_VALUES:i,KIND_ENTRIES:j,keys:function q(r){return p(r,h);},values:function q(r){return p(r,i);},entries:function q(r){return p(r,j);},generic:o.entries});f.exports=p;}),null); +__d('guid',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(){return 'f'+(Math.random()*(1<<30)).toString(16).replace('.','');}f.exports=h;}),null); +__d('isNode',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){var j=i?i.ownerDocument||i:document,k=j.defaultView||window;return !!(i&&(typeof k.Node==='function'?i instanceof k.Node:typeof i==='object'&&typeof i.nodeType==='number'&&typeof i.nodeName==='string'));}f.exports=h;}),null); +__d('Map',['guid','isNode','enumerate','_shouldPolyfillES6Collection'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=function(h,i){if(!c('_shouldPolyfillES6Collection')('Map'))return h.Map;var j='key',k='value',l='key+value',m='$map_',n=void 0,o='IE_HASH_';function p(ca){'use strict';if(!u(this))throw new TypeError('Wrong map object type.');t(this);if(ca!=null){var da=c('enumerate')(ca),ea=void 0;while(!(ea=da.next()).done){if(!u(ea.value))throw new TypeError('Expected iterable items to be pair objects.');this.set(ea.value[0],ea.value[1]);}}}p.prototype.clear=function(){'use strict';t(this);};p.prototype.has=function(ca){'use strict';var da=r(this,ca);return !!(da!=null&&this._mapData[da]);};p.prototype.set=function(ca,da){'use strict';var ea=r(this,ca);if(ea!=null&&this._mapData[ea]){this._mapData[ea][1]=da;}else{ea=this._mapData.push([ca,da])-1;s(this,ca,ea);this.size+=1;}return this;};p.prototype.get=function(ca){'use strict';var da=r(this,ca);if(da==null){return i;}else return this._mapData[da][1];};p.prototype['delete']=function(ca){'use strict';var da=r(this,ca);if(da!=null&&this._mapData[da]){s(this,ca,i);this._mapData[da]=i;this.size-=1;return true;}else return false;};p.prototype.entries=function(){'use strict';return new q(this,l);};p.prototype.keys=function(){'use strict';return new q(this,j);};p.prototype.values=function(){'use strict';return new q(this,k);};p.prototype.forEach=function(ca,da){'use strict';if(typeof ca!=='function')throw new TypeError('Callback must be callable.');var ea=ca.bind(da||i),fa=this._mapData;for(var ga=0;ga=k.length)break;n=k[m++];}else{m=k.next();if(m.done)break;n=m.value;}var o=n,p=o[0],q=o[1];j[p]=Array.from(q.values());}var r={};if(this.$TimeSliceAnnotationsImpl2!=null)for(var s=this.$TimeSliceAnnotationsImpl2,t=Array.isArray(s),u=0,s=t?s:s[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var v;if(t){if(u>=s.length)break;v=s[u++];}else{u=s.next();if(u.done)break;v=u.value;}var w=v,x=w[0],y=w[1];r[x]=y;}return {setProps:j,stringProps:r};};i.EmptyTimeSliceAnnotations=h;f.exports=i;}),null); +__d('performanceNow',['performance'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h;if(c('performance').now){h=function i(){return c('performance').now();};}else h=function i(){return Date.now();};f.exports=h;}),null); +__d("nativeRequestAnimationFrame",[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame;f.exports=h;}),null); +__d('requestAnimationFramePolyfill',['emptyFunction','nativeRequestAnimationFrame'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=0,i=c('nativeRequestAnimationFrame')||function(j){var k=Date.now(),l=Math.max(0,16-(k-h));h=k+l;return b.setTimeout(function(){j(Date.now());},l);};i(c('emptyFunction'));f.exports=i;}),null); +__d('IdleCallbackImplementation',['performanceNow','requestAnimationFramePolyfill'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=[],i=0,j=0,k=-1,l=false,m=1000/60,n=2;function o(y,z){var aa=j++;h[aa]=y;q();if(z!=null&&z.timeout>0)b.setTimeout(function(){return w(aa);},z.timeout);return aa;}function p(y){h[y]=null;}function q(){if(!l){l=true;c('requestAnimationFramePolyfill')(function(y){l=false;s(c('performanceNow')()-y);});}}function r(y){var z=m-n;if(yz||aak){var aa=r(y);if(aa>0){var ba=z+aa;v(ba);k=ba;}}if(t())q();}function t(){return i1){y.disable();}else y.trace().addStringAnnotation('initiatorType',v?'autoclosed':'manually_ended');return y;}function o(u){var v=n(u,true);if(v.isEnabled())c('TimeSlice').onAllChildrenFinished(function(){return v.finish();});return v;}function p(){if(j!=null)return j;j=new t('page');return j;}function q(){var u=c('ErrorUtils').normalizeError(Error()).stackFrames;if(u)u.forEach(function(v){return delete v.text;});return u;}function r(u,v){if(!s())return k;var w=c('performanceAbsoluteNow')(),x=new (c('TimeSliceAnnotationsImpl'))(),y=babelHelpers['extends']({ts:w,name:u,annotations:x,stacktrace:q()},h,v);x.addStringAnnotation('global_point','1');i.forEach(function(z){return z.push(y);});return x;}function s(){return i.size!==0;}function t(u){'use strict';this.$TimeSliceInteraction2=null;this.$TimeSliceInteraction3=null;this.$TimeSliceInteraction4=true;this.$TimeSliceInteraction5=null;this.$TimeSliceInteraction6=[];this.$TimeSliceInteraction7=false;this.$TimeSliceInteraction8=false;this.$TimeSliceInteraction9=[];this.$TimeSliceInteraction10=[];this.$TimeSliceInteraction11=new (c('TimeSliceAnnotationsImpl'))();this.$TimeSliceInteraction13=false;this.$TimeSliceInteraction14=null;this.$TimeSliceInteraction15=function(w){this.$TimeSliceInteraction13=false;Object.keys(w).forEach(function(x){var y=''+w[x];this.$TimeSliceInteraction11.addStringAnnotation(x,y);}.bind(this));if(this.$TimeSliceInteraction14)this.$TimeSliceInteraction14();}.bind(this);this.$TimeSliceInteraction1=u;this.$TimeSliceInteraction12=c('performanceAbsoluteNow')();i.set(this,[]);if(c('TimeSliceInteractionCoinflips').enable_heartbeat)this.$TimeSliceInteraction5=c('TimeSlice').enableHeartbeat();var v=c('TimeSlice').getContext();this.inform('trace_started',{type:c('ArtilleryJSPointTypes').TRACE_STARTED,pointGroup:'e2e',isPointOfInterest:true}).addStringAnnotation('timeslice_root_id',v!=null?v.id.toString():'');if(c('CurrentEventMeta').hasCurrentEvent()){this.$TimeSliceInteraction13=true;c('CurrentEventMeta').registerForCurrentEventData(this.$TimeSliceInteraction15);}}t.prototype.finish=function(){var u,v=this;'use strict';if(!this.$TimeSliceInteraction4)return;if(!(this===j))if(this.$TimeSliceInteraction8){c('ErrorUtils').reportError(new Error('Trace was already marked as ended'));}else (function(){v.$TimeSliceInteraction8=true;v.inform('trace_ended',{type:c('ArtilleryJSPointTypes').TRACE_STARTED,pointGroup:'e2e',isPointOfInterest:true});var w=c('performanceAbsoluteNow')(),x=i.get(v);i['delete'](v);if(v.$TimeSliceInteraction5)v.$TimeSliceInteraction5.disable();var y=function(){c('requestIdleCallbackAcrossTransitions')(function(){this.$TimeSliceInteraction16(w,x);this.$TimeSliceInteraction17();}.bind(this));}.bind(v);if(v.$TimeSliceInteraction13){v.$TimeSliceInteraction14=y;}else y();})();};t.prototype.inform=function(u,v){'use strict';if(!this.$TimeSliceInteraction4)return k;var w=c('performanceAbsoluteNow')(),x=new (c('TimeSliceAnnotationsImpl'))();this.$TimeSliceInteraction9.push(babelHelpers['extends']({ts:w,name:u,annotations:x,stacktrace:q()},h,v));return x;};t.prototype.invokeWithProfiling=function(u,v){'use strict';if(!this.$TimeSliceInteraction4)return v();var w=this.inform('start_'+u);this.$TimeSliceInteraction6.push(w);var x=c('ErrorUtils').applyWithGuard(v,b,null,null,u);this.inform('finished_'+u);this.$TimeSliceInteraction6.pop();return x;};t.prototype.getCurrentInvocation=function(){'use strict';if(!this.$TimeSliceInteraction4){return k;}else if(this.$TimeSliceInteraction6.length<1){return k;}else return this.$TimeSliceInteraction6[this.$TimeSliceInteraction6.length-1];};t.prototype.registerOnBeforeSend=function(u){'use strict';if(this.$TimeSliceInteraction4)this.$TimeSliceInteraction10.push(u);return this;};t.prototype.trace=function(){'use strict';if(!this.$TimeSliceInteraction4)return k;return this.$TimeSliceInteraction11;};t.prototype.isEnabled=function(){'use strict';return this.$TimeSliceInteraction4;};t.prototype.disable=function(){'use strict';this.$TimeSliceInteraction4=false;i['delete'](this);if(this.$TimeSliceInteraction5)this.$TimeSliceInteraction5.disable();this.$TimeSliceInteraction17();};t.prototype.setIsDefaultAsyncInteraction=function(){'use strict';this.$TimeSliceInteraction7=true;return this;};t.prototype.receiveAsyncResponse=function(u){'use strict';if(this.$TimeSliceInteraction4&&u!=null&&u.artillery_info){this.$TimeSliceInteraction19(u.artillery_info.artillery_id).$TimeSliceInteraction18(u.artillery_info.artillery_join_points);}else this.disable();return this;};t.prototype.$TimeSliceInteraction19=function(u){'use strict';if(!this.$TimeSliceInteraction4)return this;if(u==null){this.disable();}else this.$TimeSliceInteraction3=u;return this;};t.prototype.$TimeSliceInteraction18=function(u){'use strict';if(!this.$TimeSliceInteraction4)return this;this.$TimeSliceInteraction2=u;return this;};t.prototype.finishAsyncRequest=function(){'use strict';if(this.$TimeSliceInteraction7&&this.$TimeSliceInteraction4)if(this.$TimeSliceInteraction3!=null){this.finish();}else this.disable();};t.prototype.$TimeSliceInteraction16=function(u,v){'use strict';this.$TimeSliceInteraction10.forEach(function(y){return y();});var w=v!=null?this.$TimeSliceInteraction9.concat(v):this.$TimeSliceInteraction9,x=w.map(function(y){return babelHelpers['extends']({},y,{annotations:y.annotations.prepareToSend()});});c('Bootloader').loadModules(["Banzai","TimeSliceHelper"],function(y,z){var aa=z.getMetrics(this.$TimeSliceInteraction12,u,1,1,true),ba={trace_id:this.$TimeSliceInteraction3,join_points:this.$TimeSliceInteraction2,action_name:this.$TimeSliceInteraction1,points:x,traceAnnotations:this.$TimeSliceInteraction11.prepareToSend(),timeslices:z.formatMetricsForTransport(aa)};y.post(m,ba);}.bind(this),'TimeSliceInteraction');};t.prototype.$TimeSliceInteraction17=function(){'use strict';delete this.$TimeSliceInteraction9;delete this.$TimeSliceInteraction10;};t.create=n;t.getPageInteraction=p;t.createAutoclosed=o;t.informGlobally=r;f.exports=t;}),null); +__d('ConstBitMap',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={};'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_'.split('').forEach(function(m,n){h[m]=n;});function i(m){'use strict';if(m){var n=l(m,0),o=j(m);this.$ConstBitMap1=k(o,n);}else this.$ConstBitMap1=[];}i.prototype.contains=function(m){'use strict';return !!this.$ConstBitMap1[m];};i.prototype.__toBinaryString_FOR_TEST=function(){'use strict';var m='';for(var n=0;n=0&&p>5-n%6&1;}f.exports=i;}),null); +__d('memoizeStringOnly',[],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j={};return function(k){if(!j.hasOwnProperty(k))j[k]=i.call(this,k);return j[k];};}f.exports=h;}),null); +__d('AsyncFeature',['invariant','ConstBitMap','memoizeStringOnly'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(q){}var j=c('memoizeStringOnly')(function(q){return new (c('ConstBitMap'))(q);}),k=2,l=[],m={};function n(q){var r=k++;m[r]=j(q);l.push(r);return r;}function o(q){var r=l.length-1;if(r<0){i('AsyncFeature: Stack should not be empty!');return;}if(l[r]!==q){i('AsyncFeature: _pop token does not match!');return;}delete m[q];l.pop();}var p={SERVER_HAS_FEATURE:function q(r){h(0);},__serverHasFeatureImpl:function q(r){var s=l.length-1;if(s<0){i('SERVER_HAS_FEATURE stack is empty! You are calling it in at a point '+'where the AsyncResponse context has been lost! If you are using it in '+'a JS::call() or JS::instance(), make sure to use it synchronously! '+'You cannot use it in an asynchronous callback!');return true;}return m[l[s]].contains(r);},__invokeWithServerBitMap:function q(r,s){if(typeof r!=='string'||r===''){i('Invalid bitMapStr supplied to AsyncFeature.__invokeWithServerBitMap!');return s();}var t=n(r);try{return s();}finally{o(t);}},__getBitMapFromString:j};f.exports=p;}),null); +__d('ifRequired',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j,k){typeof k==='function'&&k();}f.exports=h;}),null); +__d('AsyncFeatureLogging',['AsyncFeatureDeployment','SiteData','ifRequired'],(function a(b,c,d,e,f,g){var h;if(c.__markCompiled)c.__markCompiled();var i={maybeLogServerJSCheck:function l(m,n,o){},maybeLogAsyncResponse:function l(m,n,o){}};function j(){return c('ifRequired')('URI',function(l){return String(l.getMostRecentURI());},function(){return null;});}function k(){return c('ifRequired')('URI',function(l){return String(l.getRequestURI());},function(){return null;});}if(c('AsyncFeatureDeployment').module)(function(){var l=c('AsyncFeatureDeployment').sampling,m=c('AsyncFeatureDeployment').module;function n(o,p,q){var r=l['default'];if(l.event[o+'::'+p]){r=l.event[o+'::'+p];}else if(l.event[o])r=l.event[o];return r[q?'all_good':'not_all_good'];}i.maybeLogServerJSCheck=function(o,p,q){var r=n('ServerJS',o,p);if(Math.random()<\/script\>');}var fa=ba.onload;ba.onload=c('TimeSlice').guard(function(){k('t_layout');fa&&fa();c('Arbiter').inform(c('PageEvents').NATIVE_ONLOAD,true,j);},'window.onload');ba.onbeforeunload=c('TimeSlice').guard(function(){var ga={};c('Arbiter').inform(c('PageEvents').NATIVE_ONBEFOREUNLOAD,ga,j);if(!ga.warn)c('Arbiter').inform(c('PageEvents').AJAXPIPE_ONUNLOAD,{transition_type:'normal'});return ga.warn;},'window.onbeforeunload');}var x=c('Arbiter').registerCallback(function(){var aa=c('performanceAbsoluteNow')();if(window.console&&console.timeStamp)console.timeStamp('perf_trace {"name": "e2e",'+' "parent": "PageEvents.BIGPIPE_ONLOAD"}');k('t_onload',aa);c('Arbiter').inform(c('PageEvents').BIGPIPE_ONLOAD,{ts:aa},j);},[c('PageEvents').NATIVE_ONLOAD]),y=c('Arbiter').registerCallback(function(){k('t_domcontent');var aa={timeTriggered:Date.now()};c('Arbiter').inform(c('PageEvents').BIGPIPE_DOMREADY,aa,j);},[c('PageEvents').NATIVE_DOMREADY]);if(c('ExecutionEnvironment').canUseDOM)w();var z={onLoad:m,onAfterLoad:n,onLeave:s,onBeforeUnload:o,onUnload:q,onAfterUnload:r,__domContentCallback:y,__onloadCallback:x,__removeHook:u};f.exports=z;}),null); +__d('TimerStorage',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={ANIMATION_FRAME:'ANIMATION_FRAME',IDLE_CALLBACK:'IDLE_CALLBACK',IMMEDIATE:'IMMEDIATE',INTERVAL:'INTERVAL',TIMEOUT:'TIMEOUT'},i={};Object.keys(h).forEach(function(k){return i[k]={};});var j=babelHelpers['extends']({},h,{set:function k(l,m){i[l][m]=true;},unset:function k(l,m){delete i[l][m];},clearAll:function k(l,m){Object.keys(i[l]).forEach(m);i[l]={};}});f.exports=j;}),null); +__d('setTimeoutAcrossTransitions',['TimeSlice'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=b.setTimeout.nativeBackup||b.setTimeout;f.exports=function(){for(var i=arguments.length,j=Array(i),k=0;k0;function n(u,v){if(u)for(var w=0;w0)this._informEventExternal('images_displayed',{pagelet:u.id,timeslice:c('TimeSlice').getContext().id,images:ca});this._informPageletEvent(c('PageletEventConstsJS').DISPLAY_END,u);this.arbiter.inform(u.id+'_displayed',true,j);};o.prototype._captureUsageSnapshot=function(){'use strict';var u=window.__bodyWrapper;if(!u.getCodeUsage)return {};var v=babelHelpers['extends']({},u.getCodeUsage()),w=document.body.outerHTML,x={};Array.from(document.styleSheets).forEach(function(y){if(y.href)x[y.href]=true;});return {js_calls:v,document_html:w,stylesheets:x};};o.prototype._onPhaseDisplayEnd=function(){'use strict';if(this._currentPhase===this._ttiPhase){var u=c('Bootloader').__debug.predictedResources,v=c('Bootloader').__debug.requested,w=0;for(var x in v)w+=!(x in u);var y={pre_tti_non_ef_resources:w},z=this._captureUsageSnapshot();if(!this.isAjax){y.cjs_factory_count_tti=c.__getTotalFactories();y.cjs_compile_time_tti=c.__getCompileTime();y.cjs_factory_time_tti=c.__getFactoryTime();}this._informEventExternal(o.Events.tti,{phase:this._ttiPhase,rid:this.rid,ajax:this.isAjax,metrics:y,usageSnapshot:z});this.arbiter.inform('tti_pagelet_displayed',true,j);if(this._secondFlushPayload){this.loadSecondFlushPayload(this._secondFlushPayload);delete this._secondFlushPayload;}}if(this._isRelevant()){if(this._currentPhase===this._lastRealPhase)this._fireDisplayDone();if(this._currentPhase===this._lastPhase){if(!this._displayDoneFired)this._fireDisplayDone();this.arbiter.inform('pagelet_displayed_all',true,j);}}this._currentPhase++;if(i<=8){c('setTimeout')(this._beginPhase.bind(this,this._currentPhase),20);}else this._beginPhase(this._currentPhase);};o.prototype._fireDisplayDone=function(){'use strict';this._displayDoneFired=true;this.arbiter.inform('display_done',true);};o.prototype._downloadJsForPagelet=function(u){'use strict';this._informPageletEvent(c('PageletEventConstsJS').JS_START,u);c('Bootloader').loadResources(u.allResources||[],function v(){this._informPageletEvent(c('PageletEventConstsJS').JS_END,u);u.requires=u.requires||[];if(!this.isAjax||u.phase>=1)u.requires.push('uipage_onload');var w=function(){this._informPageletEvent(c('PageletEventConstsJS').ONLOAD_START,u);if(this._isRelevantPagelet(u))n(u.onload);this._informPageletEvent(c('PageletEventConstsJS').ONLOAD_END,u);this.arbiter.inform('pagelet_onload',true);u.provides&&this.arbiter.inform(u.provides,true,j);}.bind(this),x=function(){this._isRelevantPagelet(u)&&n(u.onafterload);}.bind(this);this.arbiter.registerCallback(w,u.requires);this.arbiter.registerCallback(x,[this.onloadEvt]);}.bind(this),false,u.id);};o.prototype._getPagelet=function(u){'use strict';var v=this._getPageletRootID(u);return c('PageletSet').getPagelet(v);};o.prototype._getPageletRootID=function(u){'use strict';var v=u.append;if(v)return v==='bigpipe_root'?this.rootNodeID:v;return Object.keys(u.content)[0]||null;};o.prototype._isRelevant=function(){'use strict';return this==o._current_instance||this.automatic&&this._relevant_instance==o._current_instance||this.jsNonBlock||this.forceFinish||o._current_instance&&o._current_instance.allowIrrelevantRequests;};o.prototype._isRelevantPagelet=function(u){'use strict';if(!this._isRelevant())return false;var v=this._getPageletRootID(u);return !!this._livePagelets[v];};o.prototype._informEventExternal=function(u,v,w){'use strict';v=v||{};w=w||this.arbiter;v.ts=c('performanceAbsoluteNow')();if(m)console.timeStamp(u+' '+JSON.stringify(v));if(this.lid===null){this._awaitingLIDEventQueue.push([w,u,v]);}else{v.lid=this.lid;w.inform(u,v,k);}};o.prototype._informPageletEvent=function(u,v){'use strict';var w={event:u,id:v.id};if(v.phase)w.phase=v.phase;if(v.categories)w.categories=v.categories;if(v.allResources)w.allResources=v.allResources;if(v.displayResources)w.displayResources=v.displayResources;this._informEventExternal('pagelet_event',w);};o.getCurrentInstance=function(){'use strict';return o._current_instance;};o.prototype.loadSecondFlushPayload=function(u){'use strict';var v={id:'second_flush'};this._informPageletEvent(c('PageletEventConstsJS').CSS_START,v);this.arbiter.registerCallback(this._displayDoneCallback,['pagelet_prefetch']);c('Bootloader').loadPredictedResourceMap(u.resources||{},function(){this._informPageletEvent(c('PageletEventConstsJS').CSS_END,v);this._informPageletEvent(c('PageletEventConstsJS').DISPLAY_START,v);if(u.jsmods)this._serverJS.handlePartial(u.jsmods);this._informPageletEvent(c('PageletEventConstsJS').DISPLAY_END,v);this.arbiter.inform('pagelet_prefetch',true);}.bind(this));};Object.assign(o.prototype,{beforePageletArrive:function u(v){c('TimeSlice').guard(function(){return (this._informPageletEvent(c('PageletEventConstsJS').ARRIVE_START,{id:v}));}.bind(this),'beforePageletArrive '+v,{root:true})();},setSecondFlushPayload:function u(v){if(v.immediate_start||this._ttiPhase!=undefined&&this._currentPhase>this._ttiPhase){this.loadSecondFlushPayload(v);}else this._secondFlushPayload=v;},setPageID:function u(v){this.lid=v;this._awaitingLIDEventQueue.forEach(function(w){var x=w[0],y=w[1],z=w[2];z.lid=v;x.inform(y,z,k);});this._awaitingLIDEventQueue=[];},onPageletArrive:c('ErrorUtils').guard(function(u){this._informPageletEvent(c('PageletEventConstsJS').ARRIVE_END,u);u.content=u.content||{};if(c('BigPipeExperiments').preparse_content=='on_arrive'){s(u);}else if(c('BigPipeExperiments').preparse_content=='after_tti'){this.arbiter.registerCallback(function(){return s(u);},['tti_pagelet_displayed']);}else if(c('BigPipeExperiments').preparse_content=='on_idle'){if(b.requestIdleCallback){b.requestIdleCallback(function(){return s(u);});}else c('setTimeout')(function(){return s(u);},1);}else if(c('BigPipeExperiments').preparse_content=='on_idle_after_tti'){this.arbiter.registerCallback(function(){if(b.requestIdleCallback){b.requestIdleCallback(function(){return s(u);});}else c('setTimeout')(function(){return s(u);},1);},['tti_pagelet_displayed']);}else if(c('BigPipeExperiments').preparse_content=='on_idle_after_tti_ric')this.arbiter.registerCallback(function(){if(b.requestIdleCallback)b.requestIdleCallback(function(){return s(u);});},['tti_pagelet_displayed']);var v=u.phase;if(!this._phaseDisplayEndCallbacks[v])this._phaseDisplayEndCallbacks[v]=this.arbiter.registerCallback(this._onPhaseDisplayEnd.bind(this),['phase_arrived_'+v]);this.arbiter.registerCallback(this._phaseDisplayEndCallbacks[v],[u.id+'_displayed']);var w=this._getPageletRootID(u),x=c('PageletSet').getOrCreatePagelet(w);if(u.last_pagelet)this._lastRealPhase=v;if(u.the_end)this._lastPhase=v;if(u.tti_phase!==undefined)this._ttiPhase=u.tti_phase;this._livePagelets[x.id]=true;x.addDestructor(function(){delete this._livePagelets[x.id];}.bind(this));if(u.jscc_map){var y=(eval)(u.jscc_map),z=c('JSCC').init(y);x.addDestructor(z);}c('Bootloader').setResourceMap(u.resource_map||{});if(u.bootloadable)c('Bootloader').enableBootload(u.bootloadable);h.add(u.ixData);this._informPageletEvent(c('PageletEventConstsJS').SETUP,u);var aa=['phase_begin_'+u.phase,u.id+'_css_end'];(u.display_dependency||[]).forEach(function(fa){return aa.push(fa+'_displayed');});if(u.display_group){var ba=document.body.getElementsByClassName('pagelet-group');for(var ca=0;ca=0;m--)k[i[m]]=l?j[m]:j;return k;}f.exports=h;}),null); +__d('isElementNode',['isNode'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){return c('isNode')(i)&&i.nodeType==1;}f.exports=h;}),null); +__d('DOMQuery',['CSS','ErrorUtils','containsNode','createArrayFromMixed','createObjectFrom','ge','ifRequired','isElementNode','isNode'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=/^\.-?[_a-zA-Z]+[\w-]*$/;function i(k,l){return k.hasAttribute?k.hasAttribute(l):k.getAttribute(l)!==null;}var j={find:function k(l,m){var n=j.scry(l,m);return n[0];},findPushSafe:function k(l,m,n){var o=j.scry(l,m),p=j.scry(l,n),q;if(o.length===1&&p.length===1&&o[0]===p[0]){q=o;}else q=o.concat(p);return q[0];},scry:function k(l,m){if(!l||!l.getElementsByTagName)return [];var n=m.split(' '),o=[l];for(var p=0;p0){n[x-1]=u;o(c('TimeSpentPageTransitionCause').REPLACE_OVERLAY_VIEW,v);}else{n.push(u);o(c('TimeSpentPageTransitionCause').OPEN_OVERLAY_VIEW,v);}}},closeOverlayView:function t(u,v){var w=n.lastIndexOf(u);if(w===-1)return;j=Object.assign({},k);if(k)if(w>0){k.topViewEndpoint=n[w-1];}else k.topViewEndpoint=null;n=n.slice(0,w);o(c('TimeSpentPageTransitionCause').CLOSE_OVERLAY_VIEW,v);},setClickPointInfo:function t(u){m=u;q();},getClickPointInfo:function t(){return m;},getScriptPath:p,getCategoryToken:function t(){return k?k.categoryToken:undefined;},getTopViewEndpoint:function t(){var u=n.length;return u>0?n[u-1]:p();},getPageInfo:function t(){return k;},getSourcePageInfo:function t(){return j;},subscribe:function t(u){return l.add(u);},shutdown:function t(){q();}};f.exports=s;}),null); +__d("Scroll",[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(j,k){return !!k&&(j===k.documentElement||j===k.body);}var i={getTop:function j(k){var l=k.ownerDocument;return h(k,l)?l.body.scrollTop||l.documentElement.scrollTop:k.scrollTop;},setTop:function j(k,l){var m=k.ownerDocument;if(h(k,m)){m.body.scrollTop=m.documentElement.scrollTop=l;}else k.scrollTop=l;},getLeft:function j(k){var l=k.ownerDocument;return h(k,l)?l.body.scrollLeft||l.documentElement.scrollLeft:k.scrollLeft;},setLeft:function j(k,l){var m=k.ownerDocument;if(h(k,m)){m.body.scrollLeft=m.documentElement.scrollLeft=l;}else k.scrollLeft=l;}};f.exports=i;}),null); +__d('VersionRange',['invariant'],(function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=/\./,j=/\|\|/,k=/\s+\-\s+/,l=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,m=/^(\d*)(.*)/;function n(fa,ga){var ha=fa.split(j);if(ha.length>1){return ha.some(function(ia){return ea.contains(ia,ga);});}else{fa=ha[0].trim();return o(fa,ga);}}function o(fa,ga){var ha=fa.split(k);ha.length>0&&ha.length<=2||h(0);if(ha.length===1){return p(ha[0],ga);}else{var ia=ha[0],ja=ha[1];y(ia)&&y(ja)||h(0);return (p('>='+ia,ga)&&p('<='+ja,ga));}}function p(fa,ga){fa=fa.trim();if(fa==='')return true;var ha=ga.split(i),ia=w(fa),ja=ia.modifier,ka=ia.rangeComponents;switch(ja){case '<':return q(ha,ka);case '<=':return r(ha,ka);case '>=':return t(ha,ka);case '>':return u(ha,ka);case '~':case '~>':return v(ha,ka);default:return s(ha,ka);}}function q(fa,ga){return da(fa,ga)===-1;}function r(fa,ga){var ha=da(fa,ga);return ha===-1||ha===0;}function s(fa,ga){return da(fa,ga)===0;}function t(fa,ga){var ha=da(fa,ga);return ha===1||ha===0;}function u(fa,ga){return da(fa,ga)===1;}function v(fa,ga){var ha=ga.slice(),ia=ga.slice();if(ia.length>1)ia.pop();var ja=ia.length-1,ka=parseInt(ia[ja],10);if(x(ka))ia[ja]=ka+1+'';return (t(fa,ha)&&q(fa,ia));}function w(fa){var ga=fa.split(i),ha=ga[0].match(l);ha||h(0);return {modifier:ha[1],rangeComponents:[ha[2]].concat(ga.slice(1))};}function x(fa){return !isNaN(fa)&&isFinite(fa);}function y(fa){return !w(fa).modifier;}function z(fa,ga){for(var ha=fa.length;haga){return 1;}else if(fai;},ie64:function z(){return y.ie()&&s;},firefox:function z(){return x()||j;},opera:function z(){return x()||k;},webkit:function z(){return x()||l;},safari:function z(){return y.webkit();},chrome:function z(){return x()||m;},windows:function z(){return x()||p;},osx:function z(){return x()||o;},linux:function z(){return x()||q;},iphone:function z(){return x()||t;},mobile:function z(){return x()||t||u||r||w;},nativeApp:function z(){return x()||v;},android:function z(){return x()||r;},ipad:function z(){return x()||u;}};f.exports=y;}),null); +__d('event-form-bubbling',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.Event=b.Event||function(){};b.Event.__inlineSubmit=function(h,event){var i=b.Event.__getHandler&&b.Event.__getHandler(h,'submit');return (i&&i!==h.onsubmit?null:b.Event.__bubbleSubmit(h,event));};b.Event.__bubbleSubmit=function(h,event){if(document.documentElement.attachEvent){var i;while(i!==false&&(h=h.parentNode))i=h.onsubmit?h.onsubmit(event):b.Event.__fire&&b.Event.__fire(h,'submit',event);return i;}};}),3); +__d('getDocumentScrollElement',[],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=typeof navigator!=='undefined'&&navigator.userAgent.indexOf('AppleWebKit')>-1;function i(j){j=j||document;return !h&&j.compatMode==='CSS1Compat'?j.documentElement:j.body;}f.exports=i;}),null); +__d("getObjectValues",[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){var j=[];for(var k in i)j.push(i[k]);return j;}f.exports=h;}),null); +__d('requestAnimationFrameAcrossTransitions',['TimeSlice','requestAnimationFramePolyfill'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=function h(){for(var i=arguments.length,j=Array(i),k=0;k-1),ca=ba?new b.CustomEvent('test').timeStamp:b.document.createEvent('KeyboardEvent').timeStamp;if(ca&&ca<=b.performance.now())return function(event){return event.timeStamp;};return aa;}();function t(aa){var ba=[];while(aa&&aa instanceof HTMLElement){var ca=aa,da=ca.id,ea=ca.nodeName,fa=aa.getAttribute('class');ea=ea?ea.replace(/^#/,''):'unknown';da=da?'#'+da:'';fa=fa?' '+fa.replace(/\s+/g,' ').trim():'';ba.push(':'+ea+da+fa);aa=aa.parentElement;}ba.reverse();return ba;}var u=function aa(ba,event){var ca=c('performanceNow')();event.id=event.id||c('uniqueID')();c('CurrentEventMeta').__setCurrentEventID(event.id);try{event=m(event);if(!c('DataStore').get(this,j))throw new Error('Bad listenHandler context.');var da=c('DataStore').get(this,j)[ba];if(!da)throw new Error('No registered handlers for `'+ba+"'.");if(ba=='click'){var ea=c('Parent').byTag(event.getTarget(),'a');c('ifRequired')('clickRefAction',function(ma){ma('click',ea,event);});}var fa=i.getPriorities();for(var ga=0;ga=0&&p-j[s]._ue_ts10)j.shift();c('Arbiter').inform("ClickRefAction/new",{cfa:t,node:m,mode:n,event:event,extra_data:o},c('Arbiter').BEHAVIOR_PERSISTENT);i++;return t;}f.exports=b.clickRefAction=k;}),null); +__d("nullthrows",[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=function i(j){if(j!=null)return j;throw new Error("Got unexpected null or undefined");};f.exports=h;}),null); +__d('trackReferrer',['Parent'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){i=c('Parent').byAttribute(i,'data-referrer');if(i){var k=/^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/.exec(j)[1]||'';if(!k)return;var l=k+'|'+i.getAttribute('data-referrer'),m=new Date();m.setTime(Date.now()+1000);document.cookie="x-src="+encodeURIComponent(l)+"; "+"expires="+m.toGMTString()+";path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}return i;}f.exports=h;}),null); +__d('Primer',['Arbiter','Bootloader','CSS','ErrorUtils','Event','PageNavigationStageLogger','PageNavigationStageLoggerGK','Parent','TimeSlice','TimeSliceInteraction','clickRefAction','ifRequired','nullthrows','performanceNow','trackReferrer','uniqueID'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=null,i=/async(?:-post)?|dialog(?:-post)?|theater|toggle/,j=document.documentElement,k={};function l(w,x){var y=c('nullthrows')(w.id);if(!(y in k))k[y]=0;if(k[y]===0)c('CSS').addClass(w,'bootloading');k[y]+=x;}function m(w){var x=c('nullthrows')(w.id);k[x]--;if(k[x]===0)c('CSS').removeClass(w,'bootloading');}function n(w,x){w=c('Parent').byAttribute(w,x);if(!w)return;do{o(w,x);}while(w=c('Parent').byAttribute(w.parentNode,x));return false;}function o(w,x){var y=c('Parent').byClass(w,'stat_elem')||w;y.id||y.setAttribute('id',c('uniqueID')());var z=JSON.parse(w.getAttribute(x));l(y,z.length);z.forEach(function(aa){var ba=aa[0],ca=aa[1];c('Bootloader').loadModules.call(c('Bootloader'),[ba],function(da){m(y);da[ca](w);},'Primer: addEventHandler');});}function p(w){return !!w.match(/^(http(s)?(:\/\/))?(www\.)?([\w.-]*\.)?facebook\.com/i);}c('Event').listen(j,'click',function(w){w=w||window.event;h=w.target||w.srcElement;var x=c('Parent').byTag(h,'A');if(!x)return n(h,'data-onclick');var y=x.getAttribute('ajaxify'),z=x.href,aa=y||z;if(aa)c('clickRefAction')('a',x,w).coalesce_namespace('primer');if(y&&z&&!/#$/.test(z)){var ba=w.which&&w.which===2,ca=w.altKey||w.ctrlKey||w.metaKey||w.shiftKey;if(ba||ca)return;}var da=n(h,'data-onclick');c('trackReferrer')(x,aa);var ea=x.rel&&x.rel.match(i);ea=ea&&ea[0];if(z&&!ea&&!y&&c('PageNavigationStageLoggerGK').gk_check&&p(z)){var fa=JSON.stringify({timestamp:Date.now(),load_stage:c('PageNavigationStageLogger').getLoadStage(),load_time:c('performanceNow')()});document.cookie='pnl_data='+fa+';path=/;max-age=1';}var ga='Primer: '+ea;switch(ea){case 'dialog':case 'dialog-post':c('Bootloader').loadModules(["AsyncDialog"],function(ka){ka.bootstrap(aa,x,ea);},ga);break;case 'async':case 'async-post':c('Bootloader').loadModules(["AsyncRequest"],function(ka){ka.bootstrap(aa,x);},ga);break;case 'theater':var ha=c('TimeSliceInteraction').createAutoclosed('snowlift_open_autoclosed'),ia=c('TimeSliceInteraction').create('snowlift_open'),ja=c('ifRequired')('PhotoSnowlift',function(){return '1';},function(){return '0';});ha.trace().addStringAnnotation('is_bootloaded',ja);ia.trace().addStringAnnotation('is_bootloaded',ja);c('Arbiter').subscribeOnce('PhotoSnowlift.IMAGE_LOADED',function(){ha.inform('image_loaded');ia.finish();});setTimeout(function(){ia.disable();ia.finish();},20000);c('Bootloader').loadModules(["PhotoSnowlift"],function(ka){ka.bootstrap(aa,x);ia.inform('bootloaded');},ga);break;case 'toggle':c('CSS').toggleClass(x.parentNode,'openToggler');c('Bootloader').loadModules(["Toggler"],function(ka){ka.bootstrap(x);},ga);break;default:return da;}return false;});j.onsubmit=c('ErrorUtils').guard(function(w){w=w||window.event;var x=w.target||w.srcElement;if(x&&x.nodeName=='FORM'&&x.getAttribute('rel')=='async'){c('clickRefAction')('f',x,w).coalesce_namespace('primer');var y=h;c('Bootloader').loadModules(["FormSubmit"],function(z){z.send(x,y);},'Primer: async');return false;}},'Primer submit');var q=null,r=function w(x,y){y=y||window.event;q=y.target||y.srcElement;n(q,'data-on'+x);t();if(x==='mouseover')u();},s=function w(x,y){y=y||window.event;q=y.relatedTarget||y.toElement;},t=function w(){var x=q,y=c('Parent').byAttribute(q,'data-hover');if(y){switch(y.getAttribute('data-hover')){case 'tooltip':c('Bootloader').loadModules(["Tooltip"],function(z){if(q===x)z.process(y,q);},'Primer: tooltip');break;}return;}},u=function w(){var x=q,y=c('Parent').byAttribute(x,'data-hovercard');if(y)c('Bootloader').loadModules(["Hovercard"],function(z){if(q===x)z.processNode(y);},'Primer: hovercard');};j.onmouseover=c('TimeSlice').guard(r.bind(null,'mouseover'),'Primer mouseover');j.onmouseout=c('TimeSlice').guard(s.bind(null,'mouseout'),'Primer mouseout');var v=c('TimeSlice').guard(r.bind(null,'focus'),'Primer focus');if(j.addEventListener){j.addEventListener('focus',v,true);}else j.attachEvent('onfocusin',v);}),null); +__d('SidebarPrelude',['Arbiter'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={addSidebarMode:function i(j){var k=document.documentElement;if(k.clientWidth>j){k.className+=' sidebarMode';c('Arbiter').inform('sidebar/visibility',true,c('Arbiter').BEHAVIOR_STATE);}}};f.exports=h;}),null); +__d('SubmitOnEnterListener',['Bootloader','CSS'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();document.documentElement.onkeydown=function(h){h=h||window.event;var i=h.target||h.srcElement,j=h.keyCode==13&&!h.altKey&&!h.ctrlKey&&!h.metaKey&&!h.shiftKey&&c('CSS').hasClass(i,'enter_submit');if(j){c('Bootloader').loadModules(["DOM","Input","trackReferrer","Form"],function(k,l,m,n){if(!l.isEmpty(i)){var o=i.form,p=k.scry(o,'.enter_submit_target')[0]||k.scry(o,'[type="submit"]')[0];if(p){var q=n.getAttribute(o,'ajaxify')||n.getAttribute(o,'action');if(q)m(o,q);p.click();}}},'SubmitOnEnterListener');return false;}};}),null); +__d('CookieCore',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=/^.*(\.(facebook|messenger|oculus|instagram)\..*)$/i,i={set:function k(l,m,n,o,p){var q=Date.now();if(n>q){n-=q;}else if(n==1){i.clear(l,o);return;}document.cookie=l+'='+encodeURIComponent(m)+'; '+(n?'expires='+new Date(q+n).toGMTString()+'; ':'')+'path='+(o||'/')+'; domain='+window.location.hostname.replace(h,'$1')+(p?'; secure':'');},clear:function k(l,m){m=m||'/';document.cookie=l+'=; expires=Thu, 01-Jan-1970 00:00:01 GMT; '+'path='+m+'; domain='+window.location.hostname.replace(h,'$1');},get:function k(l){var m=document.cookie.match('(?:^|;\\s*)'+l+'=(.*?)(?:;|$)');return m?decodeURIComponent(m[1]):m;}},j=void 0;f.exports=i;}),null); +__d('Cookie',['CookieCore','Env'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(j,k,l,m,n){if(c('Env').no_cookies)return;c('CookieCore').set(j,k,l,m,n);}function i(j,k,l,m,n){if(window.self!=window.top)return;h(j,k,l,m,n);}f.exports=babelHelpers['extends']({},c('CookieCore'),{set:h,setIfFirstPartyContext:i});}),null); +__d('SyntaxErrorMonitor',['Cookie','ErrorUtils'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h='js_ver',i=86400000,j=1.262304e+12,k=null;function l(o){return o.name=='SyntaxError'||/syntaxerror/i.test(o.message);}function m(o){if(l(o)){var p=c('Cookie').get(h),q=Math.floor((Date.now()-j)/i);if(!p||q-p>=k.bump_freq_day){c('Cookie').set(h,q,k.cookie_ttl_sec*1000);if(!p)p=q;var r=encodeURIComponent(k.cdn_config),s='/ajax/js_bump/?cdn_config='+r+'&days='+q+'&last_update='+p,t=new Image();t.src=s;}}}var n={init:function o(p){k=p;c('ErrorUtils').addListener(m);}};f.exports=n;}),null); +__d('URLFragmentPrelude',['ScriptPath','URLFragmentPreludeConfig'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=/^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/,i='',j=/^[^\/\\#!\.\?\*\&\^=]+$/;window.location.href.replace(h,function(k,l,m,n){var o,p,q,r;o=p=l+(m?'?'+m:'');if(n){if(c('URLFragmentPreludeConfig').incorporateQuicklingFragment){var s=n.replace(/^(!|%21)/,'');q=s.charAt(0);if(q=='/'||q=='\\')o=s.replace(/^[\\\/]+/,'/');}if(c('URLFragmentPreludeConfig').hashtagRedirect)if(p==o){var t=n.match(j);if(t&&!m&&l=='/')o='/hashtag/'+n;}}if(o!=p){r=c('ScriptPath').getScriptPath();if(r)document.cookie="rdir="+r+"; path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');window.location.replace(i+o);}});}),null); +__d('legacy:arbiter',['Arbiter'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.Arbiter=c('Arbiter');}),3); +__d('legacy:bootloader',['Bootloader'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.Bootloader=c('Bootloader');}),3); +__d('legacy:constructor-cache',['JSCC'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.JSCC=c('JSCC');}),3); +__d('legacy:css',['CSS'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.CSS=c('CSS');}),3); +__d('legacy:dom-core',['$','ge'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.$=b.$||c('$');b.ge=c('ge');}),3); +__d('legacy:emptyFunction',['emptyFunction'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.emptyFunction=c('emptyFunction');}),3); +__d("ReloadPage",[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={now:function i(j){b.window.location.reload(j);},delay:function i(j){b.setTimeout(this.now.bind(this),j);}};f.exports=h;}),null); +__d('URISchemes',['createObjectFrom'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('createObjectFrom')(['blob','cmms','fb','fbatwork','fb-ama','fb-messenger','fb-page-messages','fb-pma','fbcf','fbconnect','fbmobilehome','fbrpc','file','ftp','http','https','mailto','ms-app','intent','itms','itms-apps','itms-services','market','svn+ssh','fbstaging','tel','sms','pebblejs','sftp','whatsapp','moments','fblite','chrome-extension','webcal','fb124024574287414','fb124024574287414rc','fb124024574287414master','fb1576585912599779','fb929757330408142','designpack']),i={isAllowed:function j(k){if(!k)return true;return h.hasOwnProperty(k.toLowerCase());}};f.exports=i;}),null); +__d('goURI',['ReloadPage','URISchemes'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j,k){i=i.toString();if(/^([^.:/?#]+):/.test(i)&&!c('URISchemes').isAllowed(RegExp.$1))throw new Error('goURI: URI scheme rejected, URI: '+i);if(!j&&b.PageTransitions){b.PageTransitions.go(i,k);}else if(window.location.href==i){c('ReloadPage').now();}else if(k){window.location.replace(i);}else window.location.href=i;}f.exports=h;}),null); +__d('legacy:goURI',['goURI'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.goURI=c('goURI');}),3); +__d('legacy:onload',['Run','PageEvents'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.PageEvents=c('PageEvents');b.onloadRegister_DEPRECATED=c('Run').onLoad;b.onloadRegister=function(){return c('Run').onLoad.apply(this,arguments);};b.onafterloadRegister_DEPRECATED=c('Run').onAfterLoad;b.onafterloadRegister=function(){return c('Run').onAfterLoad.apply(this,arguments);};b.onleaveRegister=c('Run').onLeave;b.onbeforeunloadRegister=c('Run').onBeforeUnload;b.onunloadRegister=c('Run').onUnload;}),3); +__d('legacy:parent',['Parent'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();b.Parent=c('Parent');}),3); +__d('lowerFacebookDomain',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=window.location.hostname.match(/\.(facebook\.sg|facebookcorewwwi\.onion)$/),i=h?h[1]:'facebook.com';j.setDomain=function(k){i=k;};j.isValidDocumentDomain=function(){if(document.domain==i)return true;return false;};function j(){document.domain=i;}f.exports=j;}),null); +__d('lowerDomain',['lowerFacebookDomain'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();if(document.domain.toLowerCase().match(/(^|\.)facebook\..*/))c('lowerFacebookDomain')();}),null); +__d('markJSEnabled',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=document.documentElement;h.className=h.className.replace('no_js','');}),null); +__d('prepareJsWhileIdle',['Env','performanceNow'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=1,i=2;function j(u){return u.list.length!==0;}function k(u){var v=u.list[u.index++];if(u.index===u.list.length){u.list=[];u.index=0;}return v;}var l={list:[],index:0,action:function u(){}},m=l,n=l,o=b.requestIdleCallback?{fn:b.requestIdleCallback,name:'ric'}:b.requestAnimationFrame?{fn:b.requestAnimationFrame,name:'raf'}:{fn:function u(v){return b.setTimeout(v,16);},name:'st'},p=false;function q(){if(!p){var u=b.TimeSlice?b.TimeSlice.guard:function(v){return v;};p=true;o.fn.call(b,u(r,'prepareJsWhileIdle-'+o.name));}}function r(u){p=false;var v=c('performanceNow')(),w=function z(){if(u&&u.timeRemaining)return u.timeRemaining()>0;return c('performanceNow')()-v<5;};while(w()){var x=[m,n].find(function(z){return j(z);});if(x==null)return;var y=k(x);x.action(y);}q();}var s=c('Env').prepJs||0;if(s&h){m=c.__eagerInitializationQueue;m.onAdd=q;q();}if(s&i){n=c.__eagerParsingQueue;n.onAdd=q;q();}var t={};f.exports=t;}),3); +__d('wait_for_load',['Run'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j,k){k=k.bind(i,j);if(window.domready)return k();switch((j||event).type){case 'load':case 'focus':c('Run').onAfterLoad(k);return;case 'click':var l=i.style,m=document.body.style;l.cursor=m.cursor='progress';c('Run').onAfterLoad(function(){l.cursor=m.cursor='';if(i.tagName.toLowerCase()=='a'){if(false!==k()&&i.href)window.location.href=i.href;}else if(i.click)i.click();});break;}return false;}b.wait_for_load=h;}),3);