mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
12 lines
16 KiB
JavaScript
12 lines
16 KiB
JavaScript
if (self.CavalryLogger) { CavalryLogger.start_js(["OeKOJ"]); }
|
|
|
|
__d("PagesLoggerEventEnum",[],(function(a,b,c,d,e,f){e.exports={CLICK:"click",CREATE:"create",DELETE:"delete",DRAG:"drag",HOVER:"hover",IMPRESSION:"impression",RECEIVE_REQUEST:"receive_request",RECEIVE_RESPONSE:"receive_response",SAVE:"save",SCROLL:"scroll",SEND_REQUEST:"send_request",SEND_RESPONSE:"send_response",UNSAVE:"unsave",UPDATE:"update"}}),null);
|
|
__d("PagesTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:PagesLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:PagesLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:PagesLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setConnectionClass=function(a){this.$1.connection_class=a;return this};c.setEvent=function(a){this.$1.event=a;return this};c.setEventLocation=function(a){this.$1.event_location=a;return this};c.setEventTarget=function(a){this.$1.event_target=a;return this};c.setLogSource=function(a){this.$1.log_source=a;return this};c.setPageID=function(a){this.$1.page_id=a;return this};c.setRawClientTime=function(a){this.$1.raw_client_time=a;return this};c.setSessionid=function(a){this.$1.sessionid=a;return this};c.setTags=function(a){this.$1.tags=b("GeneratedLoggerUtils").serializeVector(a);return this};c.setTime=function(a){this.$1.time=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};c.updateExtraData=function(a){a=b("nullthrows")(b("GeneratedLoggerUtils").serializeMap(a));b("GeneratedLoggerUtils").checkExtraDataFieldNames(a,g);this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.addToExtraData=function(a,b){var c={};c[a]=b;return this.updateExtraData(c)};return a}();var g={connection_class:!0,event:!0,event_location:!0,event_target:!0,log_source:!0,page_id:!0,raw_client_time:!0,sessionid:!0,tags:!0,time:!0,weight:!0};e.exports=a}),null);
|
|
__d("MPasswordPlainTextToggleSigils",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({INPUT:"password-plain-text-toggle-input",TOGGLE:"password-plain-text-toggle"})}),null);
|
|
__d("MPasswordPlainTextToggle",["invariant","CSS","KaiOSSpatialNavEvents","MPasswordPlainTextToggleSigils","Stratcom"],(function(a,b,c,d,e,f,g){"use strict";a={init:function(a,c,d,e){d!==null&&e!==null||g(0,4607),b("Stratcom").listen("click",b("MPasswordPlainTextToggleSigils").TOGGLE,function(c){a.type=="password"?(a.type="text",b("CSS").hide(d),b("CSS").show(e)):(a.type="password",b("CSS").hide(e),b("CSS").show(d)),c.kill()}),b("Stratcom").listen(["m:passwordinput:autoclear","input"],b("MPasswordPlainTextToggleSigils").INPUT,function(d){a.value==""?b("CSS").hide(c):b("CSS").show(c),b("Stratcom").invoke(b("KaiOSSpatialNavEvents").REFRESH,null,null)})}};e.exports=a}),null);
|
|
__d("MUFISocialSentence",["cx","fbt","Bootloader","CSS","DOM","MLiveData","Stratcom","SubscriptionsHandler"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,c,d,e,f,g){__p&&__p();if(!g&&!d)return;this.$1=a;this.$2=b("MLiveData").get(c);this.$3=e;this.$4=f;this.$5=g;this.$6=d;this.$7=new(b("SubscriptionsHandler"))();this.$7.addSubscriptions(this.$2.listen("change",this.onChange.bind(this)),b("Stratcom").listen("m:page:unload",null,this.onUnload.bind(this)))}var c=a.prototype;c.onChange=function(){__p&&__p();var a=this.$2.getData();if(a.request_id===this.$4)return;b("CSS").removeClass(this.$1,"like_opt");var c=this.$5&&a.like_count?a[this.$3][0]:null,d=this.$6&&a.comment_count?a.comment_count:null;if(c&&c.text){this.$8={text:c,ftid:a.ft_ent_identifier};c=c.text;this.$6||b("Bootloader").loadModules(["MReactComponentRenderer","MUFISocialSentenceTextWithEntities.react"],function(a,b){a(b,this.$1,this.$8)}.bind(this),"MUFISocialSentence");return}if(c){var e=this.$3!=="like_counts"&&!a.like_fallback&&d?"div":"span";c=b("DOM").create(e,null,c);b("CSS").addClass(c,"_28wy")}d&&(d=d>1?h._({"*":"{count} comments"},[h._param("count",d,[0])]):h._({"*":"{count} comment"},[h._param("count",d,[0])]),d=b("DOM").create("span",{},d),b("CSS").addClass(d,"_28wy"));b("DOM").setContent(this.$1,[c,d]);this.$9(a)};c.$9=function(a){var c=this.$5&&(a.like_count||a.reactioncount);a=this.$6&&a.comment_count;b("CSS").conditionShow(this.$1,!!(c||a))};c.onUnload=function(){this.$7.release(),this.$7=null};return a}();e.exports=a}),null);
|
|
__d("XFantailLogController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ajax/fantail/",{service:{type:"String",required:!0}})}),null);
|
|
__d("BanzaiOld",["BanzaiAdapter","NavigationMetrics","BanzaiConsts","BanzaiLazyQueue","BanzaiStreamPayloads","CurrentUser","ErrorUtils","ExecutionEnvironment","FBJSON","FBLogger","SetIdleTimeoutAcrossTransitions","TimeSlice","Visibility","WebStorage","emptyFunction","isInIframe","lowerFacebookDomain","pageID","performanceAbsoluteNow","WebStorageMutex"],(function(a,b,c,d,e,f){__p&&__p();var g=6e4,h=1e3,i=b("BanzaiAdapter"),j=b("isInIframe")(),k="bz:",l="ods:banzai",m="send_via_beacon_failure",n=0,o=1,p=2,q=null,r,s,t=[],u=null,v=[];function w(a){return a[2]>=b("performanceAbsoluteNow")()-((a=i.config.EXPIRY)!=null?a:K.EXPIRY)}function x(a,b){var c=a.__meta;c.status=n;a[3]=(a[3]||0)+1;c.retry===!1&&b>=400&&b<600&&t.push(a)}function y(a,c,d,e){a=[a,c,d,0];a.__meta={retry:e===!0,pageID:b("pageID"),userID:b("CurrentUser").getID(),status:n};return a}function z(){__p&&__p();var a=[];v.forEach(function(c){var d=c.cb();d.forEach(function(d){var e=c.route;if(e!=null||e!=""){e=y(e,d,b("performanceAbsoluteNow")());e.__meta.onSuccess=c.onSuccess;e.__meta.onFailure=c.onFailure;a.push(e)}})});v=[];var c=[],d=[];E(c,d,!0,a);if(c.length>0){c[0].send_method="beacon";c.map(i.prepWadForTransit);c=new Blob([i.addRequestAuthData(i.prepForTransit(c))],{type:"application/x-www-form-urlencoded"});c=navigator.sendBeacon(K.adapter.endpoint,c);c?d.forEach(function(a){a=a.__meta;a!=null&&a.onSuccess!=null&&a.onSuccess()}):d.forEach(function(a){a=a.__meta;a!=null&&a.onFailure!=null&&a.onFailure()})}}function A(a){__p&&__p();var c=b("performanceAbsoluteNow")()+a;if(s==null||c<s){s=c;b("SetIdleTimeoutAcrossTransitions").clear(r);c=function(){r=b("SetIdleTimeoutAcrossTransitions").start(B,a)};c();return!0}return!1}var B=b("TimeSlice").guard(function(){C(null,null)},"Banzai.send",{propagationType:b("TimeSlice").PropagationType.ORPHAN});function C(a,c){__p&&__p();s=null;A(K.BASIC.delay);if(!i.readyToSend()){c&&c();return}(K.isEnabled("flush_storage_periodically")||K.isEnabled("error_impact_test"))&&(J(),b("ErrorUtils").applyWithGuard(F.flush,F));i.inform(K.SEND);var d=[],e=[];t=E(d,e,!0,t);if(d.length<=0){i.inform(K.OK);a&&a();return}d[0].trigger=u;u=null;d[0].send_method="ajax";d.map(i.prepWadForTransit);i.send(d,function(){e.forEach(function(a){a=a.__meta;a.status=p;a.callback!=null&&a.callback()}),a&&a()},function(a){e.forEach(function(b){x(b,a)}),c&&c()})}function D(){__p&&__p();if(!(navigator&&navigator.sendBeacon&&i.isOkToSendViaBeacon()))return!1;var a=[],c=[];t=E(a,c,!1,t);if(a.length<=0)return!1;a[0].send_method="beacon";a.map(i.prepWadForTransit);a=new Blob([i.addRequestAuthData(i.prepForTransit(a))],{type:"application/x-www-form-urlencoded"});a=navigator.sendBeacon(K.adapter.endpoint,a);if(!a){c.forEach(function(a){t.push(a)});t.push(y(l,(a={},a[m]=[1],a),b("performanceAbsoluteNow")()));return!1}return!0}function E(a,b,c,d){__p&&__p();var e={};return d.filter(function(d){__p&&__p();var f=d.__meta;if(f.status>=p||!w(d))return!1;if(f.status>=o)return!0;var g=f.compress!=null?f.compress:!0,h=f.pageID+f.userID+(g?"compress":""),i=e[h];i||(i={user:f.userID,page_id:f.pageID,posts:[],snappy:g},e[h]=i,a.push(i));f.status=o;i.posts.push(d);b.push(d);return c&&!!f.retry})}var F,G,H=!1;function I(){H||(H=!0,G=b("WebStorage").getLocalStorage());return G}function J(){__p&&__p();F||(!j?F={store:function(){var a=I();if(a==null||t.length<=0)return;var c=t.map(function(a){return[a[0],a[1],a[2],a[3]||0,a.__meta]});t=[];b("WebStorage").setItemGuarded(a,k+b("pageID")+"."+b("performanceAbsoluteNow")(),b("FBJSON").stringify(c))},restore:function(){__p&&__p();var a=I();if(!a)return;var c=b("WebStorageMutex");new c("banzai").lock(function(c){__p&&__p();var d=[];for(var e=0;e<a.length;e++){var f=a.key(e);if(f==null||f==="")continue;f.indexOf(k)===0&&f.indexOf("bz:__")!==0&&d.push(f)}d.forEach(function(c){__p&&__p();var d=a.getItem(c);a.removeItem(c);if(d==null)return;c=b("FBJSON").parse(d);c.forEach(function(a){if(!a)return;var c=a.__meta=a.pop(),d=w(a);if(!d)return;d=b("CurrentUser").getID();(c.userID===d||d==="0")&&(c.status=n,t.push(a))})});c.unlock()})},flush:function(){var a=I();if(a){q===null&&(q=parseInt(a.getItem(b("BanzaiConsts").LAST_STORAGE_FLUSH),10));var c=q&&b("performanceAbsoluteNow")()-q>=b("BanzaiConsts").STORAGE_FLUSH_INTERVAL;c&&K._restore(!1);(c||!q)&&(q=b("performanceAbsoluteNow")(),b("WebStorage").setItemGuarded(a,b("BanzaiConsts").LAST_STORAGE_FLUSH,q.toString()))}}}:F={store:b("emptyFunction"),restore:b("emptyFunction"),flush:b("emptyFunction")})}var K={adapter:i,SEND:"Banzai:SEND",OK:"Banzai:OK",ERROR:"Banzai:ERROR",SHUTDOWN:"Banzai:SHUTDOWN",VITAL_WAIT:h,BASIC_WAIT:g,EXPIRY:30*6e4,VITAL:{delay:(c=b("BanzaiAdapter").config.MIN_WAIT)!=null?c:h},BASIC:{delay:(d=b("BanzaiAdapter").config.MAX_WAIT)!=null?d:g},isEnabled:function(a){return!!(i.config.gks&&i.config.gks[a])},post:function(c,d,e){__p&&__p();var f;(c==null||c==="")&&b("FBLogger")("banzai").mustfix("Banzai.post called without specifying a route");var h=e==null?void 0:e.retry;if(i.config.disabled===!0)return;if(!b("ExecutionEnvironment").canUseDOM)return;var k=i.config.blacklist;if(k&&(k.indexOf&&(typeof k.indexOf==="function"&&k.indexOf(c)!=-1)))return;if(j&&b("lowerFacebookDomain").isValidDocumentDomain()){var l;try{l=a.top.require("Banzai")}catch(a){l=null}if(l){l.post.apply(l,arguments);return}}var m=y(c,d,b("performanceAbsoluteNow")(),h),n=m.__meta;e!=null&&e.callback!=null&&(n.callback=e.callback);e!=null&&e.compress!=null&&(n.compress=e.compress);if(e!=null&&e.signal!=null){n.status=o;var q=[{user:b("CurrentUser").getID(),page_id:b("pageID"),posts:[m],trigger:c}];i.send(q,function(){n.status=p,n.callback&&n.callback()},function(a){x(m,a)},!0);if(h==null)return}t.push(m);var r=(f=e==null?void 0:e.delay)!=null?f:g;(A(r)||u==null||u==="")&&(u=c);var s=b("BanzaiLazyQueue").flushQueue();s.forEach(function(a){return K.post.apply(K,a)})},registerToSendWithBeacon:function(a,c,d,e){if(!(navigator&&navigator.sendBeacon&&i.isOkToSendViaBeacon()))return!1;if(!a){b("FBLogger")("banzai").mustfix("Banzai.registerToSendWithBeacon called without specifying a route");return!1}v.push({cb:c,route:a,onSuccess:d,onFailure:e});return!0},flush:function(a,c){b("SetIdleTimeoutAcrossTransitions").clear(r),C(a,c)},subscribe:i.subscribe,canUseNavigatorBeacon:function(){return navigator&&navigator.sendBeacon?i.isOkToSendViaBeacon():!1},_schedule:A,_store:function(a){J(),b("ErrorUtils").applyWithGuard(F.store,F)},_restore:function(a){J();b("ErrorUtils").applyWithGuard(F.restore,F);A((a=i.config.RESTORE_WAIT)!=null?a:h)},_testState:function(){return{postBuffer:t,triggerRoute:u}},_unload:function(){b("BanzaiStreamPayloads").unload(K.post),navigator&&navigator.sendBeacon&&i.isOkToSendViaBeacon()&&z(),i.cleanup(),i.inform(K.SHUTDOWN),t.length>0&&((!i.useBeacon||!D())&&(J(),b("ErrorUtils").applyWithGuard(F.store,F)))},_initialize:function(){b("ExecutionEnvironment").canUseDOM&&(i.useBeacon&&b("Visibility").isSupported()?(b("Visibility").addListener(b("Visibility").HIDDEN,function(){t.length>0&&(D()||(J(),b("ErrorUtils").applyWithGuard(F.store,F)))}),(K.isEnabled("enable_client_logging_clear_on_visible")||K.isEnabled("error_impact_test"))&&b("Visibility").addListener(b("Visibility").VISIBLE,function(){D()||b("ErrorUtils").applyWithGuard(F.restore,F)})):i.setHooks(K),i.setUnloadHook(K),b("NavigationMetrics").addListener(b("NavigationMetrics").Events.NAVIGATION_DONE,function(a,c){if(c.pageType!=="normal")return;K._restore();b("NavigationMetrics").removeCurrentListener()}))}};K._initialize();e.exports=K}),null);
|
|
__d("SimpleFBAuthenticatedXHRRequest",["invariant","CurrentUser","DTSG","DTSGUtils","ServerJSDefine","SprinkleConfig","XHRRequest","isFacebookURI"],(function(a,b,c,d,e,f,g){__p&&__p();var h=1;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d){c=a.call(this,c)||this;var e={__dyn:b("ServerJSDefine").getLoadedModuleHash(),__req:(h++).toString(36),__ajax__:1,__a:1,__user:b("CurrentUser").getID()};a.prototype.setData.call(babelHelpers.assertThisInitialized(c),babelHelpers["extends"]({},d,e));return c}var d=c.prototype;d.send=function(){__p&&__p();var c=this;if(!b("isFacebookURI")(this.getURI()))return a.prototype.send.call(this);if(b("DTSG").getCachedToken){var d=b("DTSG").getCachedToken();if(d)return this.sendOnDTSGToken(d);else{b("DTSG").getToken().done(function(a){return c.sendOnDTSGToken(a)});return this}}else this.sendOnDTSGToken(b("DTSG").getToken())};d.sendOnDTSGToken=function(c){if(c){a.prototype.setData.call(this,babelHelpers["extends"]({},this.getData(),{fb_dtsg:c}));if(b("SprinkleConfig").param_name){var d;a.prototype.setData.call(this,babelHelpers["extends"]({},this.getData(),(d={},d[b("SprinkleConfig").param_name]=b("DTSGUtils").getNumericValue(c),d)))}}return a.prototype.send.call(this)};d.setData=function(a){g(0,5518)};c.parseResponse=function(a){return JSON.parse(a.substr(9))};c.getPayload=function(a){a=c.parseResponse(a).payload;return a.payload?a.payload:a};return c}(b("XHRRequest"));e.exports=a}),null);
|
|
__d("FantailLogQueue",["ChannelClientID","CircularBuffer","PHPQuerySerializer","SimpleFBAuthenticatedXHRRequest","XFantailLogController","destroyOnUnload","setIntervalAcrossTransitions","sprintf"],(function(a,b,c,d,e,f){__p&&__p();var g={DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"};a=function(){"use strict";__p&&__p();function a(a){this.$2=a,this.$3=new(b("CircularBuffer"))(200),b("setIntervalAcrossTransitions")(this.$4.bind(this),30*1e3),b("destroyOnUnload")(this.$4.bind(this))}a.get=function(b){a.$1=a.$1||{};a.$1[b]=a.$1[b]||new a(b);return a.$1[b]};var c=a.prototype;c.debug=function(a){for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];this.$5.apply(this,[g.DEBUG,a].concat(c))};c.info=function(a){for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];this.$5.apply(this,[g.INFO,a].concat(c))};c.warn=function(a){for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];this.$5.apply(this,[g.WARN,a].concat(c))};c.error=function(a){for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];this.$5.apply(this,[g.ERROR,a].concat(c))};c.$5=function(a,c){for(var d=arguments.length,e=new Array(d>2?d-2:0),f=2;f<d;f++)e[f-2]=arguments[f];var g=b("sprintf").apply(void 0,[c].concat(e));this.$3.write({log_time:Date.now(),log:g,severity:a,device_id:b("ChannelClientID").getID()})};c.$4=function(){var a=this.$3.read();if(a.length>0){var c={log_time:[],log:[],severity:[],device_id:[]};a.forEach(function(a){c.log_time.push(a.log_time),c.log.push(a.log),c.severity.push(a.severity),c.device_id.push(a.device_id)});this.$3.clear();a=b("XFantailLogController").getURIBuilder().setString("service",this.$2).getURI();new(b("SimpleFBAuthenticatedXHRRequest"))(a,c).setMethod("POST").setDataSerializer(b("PHPQuerySerializer").serialize).setRequestHeader("Content-Type","application/x-www-form-urlencoded").send()}};return a}();e.exports=a}),null);
|
|
__d("PagesLogger",["PagesLoggerEventEnum","PagesTypedLogger"],(function(a,b,c,d,e,f){__p&&__p();var g="extra_data_";a={log:function(a,c,d,e,f,h){e===void 0&&(e=null);f===void 0&&(f=[]);var i={},j=h||{};Object.keys(j||{}).forEach(function(a){var b=j[a];(b instanceof Array||b instanceof Object)&&(b=JSON.stringify(b));i[g+a]=b});new(b("PagesTypedLogger"))().setPageID(a).setEvent(c).setEventTarget(d).setEventLocation(e).setLogSource("pages_logger").setTags(f).updateExtraData(i).log()},registerLogOnClick:function(a,c,d,e,f,g){var h=this;e===void 0&&(e=null);f===void 0&&(f=[]);g===void 0&&(g={});a.addEventListener("click",function(){h.log(c,b("PagesLoggerEventEnum").CLICK,d,e,f,g)})}};e.exports=a}),null); |