Format: text/html
⬇ Download File (33.9 KB)
   1  <!DOCTYPE html><html><head><title>SuperSonic</title><meta id="viewport" name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,viewport-fit=contain"><link rel="icon" href="data:image/x-icon;," type="image/x-icon"></head><body><!-- inject:partial:js --><script>!function e(n,o,r){function i(l,a){if(!o[l]){if(!n[l]){var s="function"==typeof require&&require;if(!a&&s)return s(l,!0);if(t)return t(l,!0);var u=new Error("Cannot find module '"+l+"'");throw u.code="MODULE_NOT_FOUND",u}var c=o[l]={exports:{}};n[l][0].call(c.exports,(function(e){return i(n[l][1][e]||e)}),c,c.exports,e,n,o,r)}return o[l].exports}for(var t="function"==typeof require&&require,l=0;l<r.length;l++)i(r[l]);return i}({1:[function(e,n,o){n.exports=function(){var e,n=0,o=2;function r(){n===o&&(e(),n=0)}return{setCallback:function(n){e=n},onFinishedControllerABGroupLogic:function(){n++,r()},onFinishedSonicGetVersionConfig:function(){n++,r()}}}},{}],2:[function(e,n,o){n.exports=function(e,n,o){var r,i={getUserData:{eventName:"getUserData",parameters:{key:n.ABGROUP_KEY,success:"getABGroupSuccess",fail:"getABGroupFail",stage:"",acknowledgeWith:"acknowledgeMessage",declineWith:"errorTest"}},setUserData:{eventName:"setUserData",parameters:{key:n.ABGROUP_KEY,value:"",success:"setABGroupSuccess",fail:"setABGroupFail",stage:"",acknowledgeWith:"acknowledgeMessage",declineWith:"errorTest"}}},t=!1;function l(t){clearTimeout(r);var l=decodeURI(t);!function(r){(r.hasOwnProperty(n.ABGROUP_KEY)?r.ControllerABGroup:n.defaultABGroup)!==SuperSonicGlobalConfig.controllerConfig.abTest.toString()?(a(!0),i.setUserData.parameters.value=SuperSonicGlobalConfig.controllerConfig.abTest,e.postMessage(i.setUserData)):a(!1);o.onFinishedControllerABGroupLogic()}(JSON.parse(l))}function a(e){t=e}return e.addListener("getABGroupSuccess",l),e.addListener("setABGroupSuccess",(function(e){})),{getABGroup:function(){e.postMessage(i.getUserData),r=setTimeout((function(){e.removeListener(l),o.onFinishedControllerABGroupLogic()}),1e3)},getShouldDownloadController:function(){return t}}}},{}],3:[function(e,n,o){n.exports=function(e,n){var o=e.eventsSecuredDomainUrl||"https://ae.iads.unity3d.com/logs";return{sendEvent:function(r,i){try{if(!r.name||!r.id)return!1;var t=n.extend(JSON.parse(JSON.stringify(e)),i);t.eventname=r.name,t.eventid=r.id,t.abtest=window.SuperSonicGlobalConfig.controllerConfig.abTest,t.ett=function(){var e=(window.SuperSonicGlobalConfig.controllerConfig.epConfig||{}).ett;if(e&&Array.isArray(e)&&e.length>0)return e.toString()}(),t.platformABGroup=window.SuperSonicGlobalConfig.controllerConfig.controllerConfigGroup,t.controllerversion=window.SuperSonicGlobalConfig.mobileSDKSettings.controllerVersion,t.usertype=window.SuperSonicGlobalConfig.userType||-1,t.auid=window.SuperSonicGlobalConfig.controllerConfig.auid;var l={data:t,table:"supersonic.adunitanalytics.ad_unit_events"};if(function(e){return window.SuperSonicGlobalConfig&&window.SuperSonicGlobalConfig.controllerConfig&&window.SuperSonicGlobalConfig.controllerConfig.networkConfig&&window.SuperSonicGlobalConfig.controllerConfig.networkConfig.events&&window.SuperSonicGlobalConfig.controllerConfig.networkConfig.events.disabledEventsObj?function(e,n){if(!e||!n)return!1;for(var o in e)if(e.hasOwnProperty(o)&&(!(o in n)||n[o]!==e[o]))return!1;return!0}(window.SuperSonicGlobalConfig.controllerConfig.networkConfig.events.disabledEventsObj[e.eventname],e):["clusterSelected","initAd"].indexOf(e.eventname)>-1}(t))return!1;!function(e){var n;try{n=btoa(JSON.stringify(e))}catch(o){e.data.applicationUserId="badName",e.data.userId="badName",e.data.eventname="errorEvent",n=btoa(JSON.stringify(e))}var r=o+"?data="+n,i=new XMLHttpRequest;i.open("GET",r,!0),i.send()}(l)}catch(e){}}}}},{}],4:[function(e,n,o){n.exports=function(e){var n,o=20,r=100,i={test:0,group:0},t="undefined",l="controllerVersion",a="adunitVersion",s="adunitConfig",u="ext";function c(e){return e&&function(e){var n,o=0;if(0===(e=e.slice(0,-1)).length)return o;for(n=0;n<e.length;n++)o=(o<<5)-o+e.charCodeAt(n),o|=0;return o}(function(e){if(e)return e.replace(/[^A-Z0-9]/gi,"")}(e.auid))}function g(e,n){var o=e%n;return o<0&&(o*=-1),o}function f(e,n,o){for(var r in n)if(n.hasOwnProperty(r)){var i=n[r].clusters;if(Array.isArray(i)&&i.indexOf(o)>-1)return{test:e,group:r}}}function d(e){if(e&&e.auid){var n=c(e);if(n)return g(n,o)}}function S(e,n){return e&&typeof e.test!==t&&typeof e.group!==t?typeof window.mobileControllerTestMap[e.test]===t||typeof window.mobileControllerTestMap[e.test][e.group]===t?null:window.mobileControllerTestMap[e.test][e.group][n]:null}function p(){return window.mobileControllerTestMap&&void 0!==window.mobileControllerTestMap[0]&&void 0!==window.mobileControllerTestMap[0][0]}function C(){return window.mobileAdunitConfig||{}}return{fetchABTestsMap:function(e,n,o){var r=function(e){return e.rootPath+"/abTestMap.json"}(e),i=new XMLHttpRequest;i.open("GET",r),i.timeout=5e3,i.onerror=function(e){o({fn:"onerror",url:r})},i.ontimeout=function(e){o({fn:"timeout",url:r})},i.onload=function(){200===i.status?n({fn:"onload",response:i.responseText,url:r}):o({fn:"onload",status:i.statusText,url:r})},i.send()},getControllerVersionByGroup:function(e){return S(e,l)},getAdunitVersionByGroup:function(e){var n=S(e,a);return!n&&p()&&(n=S(i,a)),n||null},getAdunitConfigByGroup:function(n){var o=S(n,s);return(o=e.extend(C(),o))||{}},getExtDataByGroup:function(e){var n=S(e,u);return!n&&p()&&(n=S(i,u)),n||{}},getUserGroupId:function(e){var n,o,t,l,a,s,u=function(e){var n=d(e);if(n||0===n){var o,r=window.mobileControllerTestMap;for(var t in r)if(r.hasOwnProperty(t)&&"0"!==t&&(o=f(t,r[t],n)))return o;return i}}(e)||i,S=(n=c(e),t=g(n,r),l=0,a=0,s=window.mobileControllerTestMap,Object.keys(s).forEach((function(e){return 0==e||(Object.keys(s[e]).forEach((function(n){if(a+=s[e][n].weight?s[e][n].weight:0,t>=l&&t<a)return!(o={test:e,group:n})})),l=a,!o)})),o||i||i);return S!==i?S:u},isMainstreamMapDefined:p,getTestId:function(e){var o;try{n||(n=e&&e.test&&e.group?e:i),o=function(e,n){var o,r,i=1;if(!e&&"number"!=typeof e||!n&&"number"!=typeof n)return"number"==typeof e?e:-2;try{"string"==typeof(o="string"==typeof n?n:n.toString())&&(i=o.length),r=parseInt(e)+parseInt(n)/Math.pow(10,i)}catch(e){r=-2}return r}(n.test,n.group)}catch(e){o=-2}return o},getAdunitConfig:C,parseAndGetTesterUserGroup:function(e){var n=e.indexOf(".");if(-1!==n){var o=e.substring(0,n),r=e.substring(n+1);if(o&&r)return{test:o,group:r}}return null},getUserClusterFromId:d}}},{}],5:[function(e,n,o){n.exports=function(e,n){var o="ios"===n?function(){e.postMessage(r.loaded)}:function(){window.shouldReportReady=!1;try{e.postMessage(r.loaded),e.postMessage(r.ready)}catch(e){console.log("Error running function _reportCtrlReadyAndroid error:"+JSON.stringify(e))}},r={loaded:{eventName:"initController",parameters:{stage:"loaded",acknowledgeWith:"acknowledgeMessage",declineWith:"errorTest"}},ready:{eventName:"initController",parameters:{stage:"ready",acknowledgeWith:"acknowledgeMessage",declineWith:"errorTest"}},readyFailed:{eventName:"initController",parameters:{stage:"failed",errMsg:"",acknowledgeWith:"acknowledgeMessage",declineWith:"errorTest"}}};function i(){window.shouldReportReady&&"ios"===SuperSonicGlobalConfig.mobileSDKSettings.deviceOs.toLowerCase()&&(window.shouldReportReady=!1,setTimeout((function(){e.postMessage(r.ready),e.removeListener("acknowledgeMessage")}),1))}return window.shouldReportReady=!0,e.addListener("acknowledgeMessage",i),{reportCtrlReady:function(){o()},reportCtrlFailed:function(n){r.readyFailed.parameters.errMsg=n,e.postMessage(r.readyFailed)},acknowledgeMessage:i}}},{}],6:[function(e,n,o){n.exports=function(){function e(e,n,o){o=void 0===o?window.location.href:o,e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(o);return r&&r[1]||n}function n(e){if(/iP(hone|od|ad)/.test(e)){var n=e.match(/OS (\d+)_(\d+)_?(\d+)?/),o=e.match(/iOS (\d+).(\d+).?(\d+)?/),r=n||o;return[r[1],r[2],r[3]||"0"]}}return{getQueryKeys:function(n){for(var o={},r=0;r<n.length;r++)o[n[r]]=e(n[r],null);return o},loadScript:function(e,n,o,r){var i=document.createElement("script");if(i.type="text/javascript",n){if(document.getElementById(n))return;i.id=n}i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,o&&o())}:(i.onload=function(){o&&o()},i.onerror=function(){i.parentNode.removeChild(i),r&&r(e)}),i.src=e,document.getElementsByTagName("head")[0].appendChild(i)},isUniqueId:function(e){if(!e)return!1;var n=new RegExp("[0-]*");return e.match(n)[0]===e&&sendEvent("nonUniqueId"),e.match(n)[0]!==e},extend:function e(){for(var n=1;n<arguments.length;n++)for(var o in arguments[n])arguments[n].hasOwnProperty(o)&&("object"==typeof arguments[0][o]&&"object"==typeof arguments[n][o]?e(arguments[0][o],arguments[n][o]):void 0!==arguments[n][o]&&(arguments[0][o]=arguments[n][o]));return arguments[0]},versionCompare:function(e,n){var o,r,i=function(e){for(var n=e.split(".").map((function(e){return parseInt(e)}));n.length<4;)n.push(0);return n};"5.02"===e&&(e="5.0.2");try{o=i(e.toString()),r=i(n.toString())}catch(e){throw"Parse Error - VersionCompare"}for(let e=0;e<4;e++){if(o[e]>r[e])return 1;if(o[e]<r[e])return-1}return 0},getBrowserInfo:function(e){var o="unknown";try{if(e.indexOf("Chrome/")>-1)return{name:"chrome",version:e.split("Chrome/")[1].split(".")};if(/iP(hone|od|ad)/.test(e))return{name:"safari",version:n(e)}}catch(e){o=JSON.stringify(e)}return{name:e,error:!0,errorMessage:o,version:[1e3]}},isSupportedBrowser:function(e,n){try{if(e&&Array.isArray(n))for(var o=0;o<n.length;o++){var r=n[o];if(r.name===e.name&&r.version>=parseInt(e.version[0]))return!1}}catch(e){}return!0},cloneObject:function e(n){var o=n instanceof Array?[]:{};for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];i&&"object"==typeof i&&(i=e(i)),o[r]=i}return o}}}},{}],7:[function(e,n,o){n.exports=function(e,n,o,r){var i,t,l;function a(n){var a;e.removeListener("handleControllerConfigSuccess"),(null==(a=n)||""===a||"{}"===a)&&o.sendEvent(r.controllerConfigurationIsEmpty);try{i=JSON.parse(decodeURIComponent(n))}catch(e){return console.log("----onControllerConfigFailed "+JSON.stringify(e)),void l()}t()}function s(n){e.removeListener("handleControllerConfigSuccess"),l()}return{getControllerConfig:function(){return i||JSON.parse(decodeURIComponent(n.getQueryKeys(["controllerConfig"]).controllerConfig))},fetchExpandedControllerConfig:function(o,r,i){t=r,l=i;try{if(-1===n.versionCompare(o.SDKVersion,"5.42"))return void l();e.addListener("handleControllerConfigSuccess",a);e.postMessage({eventName:"getControllerConfig",parameters:{success:"handleControllerConfigSuccess",fail:"handleControllerConfigSuccess",acknowledgeWith:"",declineWith:"errorTest"}},s)}catch(e){l()}}}}},{}],8:[function(e,n,o){n.exports=function(){var n=new(e("./_controllerBootstrapUtils")),o={android:{sdkVersion:"5.77",controllerVersion:"3.1.9",adunitVersion:"3.1.5"},ios:{sdkVersion:"5.69",controllerVersion:"3.1.9",adunitVersion:"3.1.5"}},r={graphicAssets:{sprite:"../../../assets/sprite-images.17da817a.png",transparent:"../../../assets/transparent.25cf5aed.png"},libs:{externalAPI:"../assets/externalAPI/1.0.5/externalAPI.js",dapi:"../assets/dapi/1.0.18/dapi.js",externalObfuscation:"../assets/obfuscators/externalObfuscation/1.0.0/obfuscateV2.html",adunitLibsFile:"../assets/libs/1.0.0/adunitLibs.min.js"}};return{isLockedVersion:function(e,r){if(!e||!r)return!1;var i=o[e].sdkVersion;return n.versionCompare(r,i)<=0},getControllerLockedVersion:function(e){return o[e].controllerVersion},getAdunitLockedVersion:function(e){return o[e].adunitVersion},getAdunitConfig:function(){return r}}}},{"./_controllerBootstrapUtils":6}],9:[function(e,n,o){n.exports=function(){function e(e,n){return e<<n|e>>>32-n}function n(e,n){var o,r,i,t,l;return i=2147483648&e,t=2147483648&n,l=(1073741823&e)+(1073741823&n),(o=1073741824&e)&(r=1073741824&n)?2147483648^l^i^t:o|r?1073741824&l?3221225472^l^i^t:1073741824^l^i^t:l^i^t}function o(o,r,i,t,l,a,s){return o=n(o,n(n(function(e,n,o){return e&n|~e&o}(r,i,t),l),s)),n(e(o,a),r)}function r(o,r,i,t,l,a,s){return o=n(o,n(n(function(e,n,o){return e&o|n&~o}(r,i,t),l),s)),n(e(o,a),r)}function i(o,r,i,t,l,a,s){return o=n(o,n(n(function(e,n,o){return e^n^o}(r,i,t),l),s)),n(e(o,a),r)}function t(o,r,i,t,l,a,s){return o=n(o,n(n(function(e,n,o){return n^(e|~o)}(r,i,t),l),s)),n(e(o,a),r)}function l(e){var n,o="",r="";for(n=0;n<=3;n++)o+=(r="0"+(e>>>8*n&255).toString(16)).substr(r.length-2,2);return o}return{hashToMd5:function(e){var a,s,u,c,g,f,d,S,p,C=Array();for(e=function(e){e=e.replace(/\r\n/g,"\n");for(var n="",o=0;o<e.length;o++){var r=e.charCodeAt(o);r<128?n+=String.fromCharCode(r):r>127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}(e),C=function(e){for(var n,o=e.length,r=o+8,i=16*((r-r%64)/64+1),t=Array(i-1),l=0,a=0;a<o;)l=a%4*8,t[n=(a-a%4)/4]=t[n]|e.charCodeAt(a)<<l,a++;return l=a%4*8,t[n=(a-a%4)/4]=t[n]|128<<l,t[i-2]=o<<3,t[i-1]=o>>>29,t}(e),f=1732584193,d=4023233417,S=2562383102,p=271733878,a=0;a<C.length;a+=16)s=f,u=d,c=S,g=p,f=o(f,d,S,p,C[a+0],7,3614090360),p=o(p,f,d,S,C[a+1],12,3905402710),S=o(S,p,f,d,C[a+2],17,606105819),d=o(d,S,p,f,C[a+3],22,3250441966),f=o(f,d,S,p,C[a+4],7,4118548399),p=o(p,f,d,S,C[a+5],12,1200080426),S=o(S,p,f,d,C[a+6],17,2821735955),d=o(d,S,p,f,C[a+7],22,4249261313),f=o(f,d,S,p,C[a+8],7,1770035416),p=o(p,f,d,S,C[a+9],12,2336552879),S=o(S,p,f,d,C[a+10],17,4294925233),d=o(d,S,p,f,C[a+11],22,2304563134),f=o(f,d,S,p,C[a+12],7,1804603682),p=o(p,f,d,S,C[a+13],12,4254626195),S=o(S,p,f,d,C[a+14],17,2792965006),f=r(f,d=o(d,S,p,f,C[a+15],22,1236535329),S,p,C[a+1],5,4129170786),p=r(p,f,d,S,C[a+6],9,3225465664),S=r(S,p,f,d,C[a+11],14,643717713),d=r(d,S,p,f,C[a+0],20,3921069994),f=r(f,d,S,p,C[a+5],5,3593408605),p=r(p,f,d,S,C[a+10],9,38016083),S=r(S,p,f,d,C[a+15],14,3634488961),d=r(d,S,p,f,C[a+4],20,3889429448),f=r(f,d,S,p,C[a+9],5,568446438),p=r(p,f,d,S,C[a+14],9,3275163606),S=r(S,p,f,d,C[a+3],14,4107603335),d=r(d,S,p,f,C[a+8],20,1163531501),f=r(f,d,S,p,C[a+13],5,2850285829),p=r(p,f,d,S,C[a+2],9,4243563512),S=r(S,p,f,d,C[a+7],14,1735328473),f=i(f,d=r(d,S,p,f,C[a+12],20,2368359562),S,p,C[a+5],4,4294588738),p=i(p,f,d,S,C[a+8],11,2272392833),S=i(S,p,f,d,C[a+11],16,1839030562),d=i(d,S,p,f,C[a+14],23,4259657740),f=i(f,d,S,p,C[a+1],4,2763975236),p=i(p,f,d,S,C[a+4],11,1272893353),S=i(S,p,f,d,C[a+7],16,4139469664),d=i(d,S,p,f,C[a+10],23,3200236656),f=i(f,d,S,p,C[a+13],4,681279174),p=i(p,f,d,S,C[a+0],11,3936430074),S=i(S,p,f,d,C[a+3],16,3572445317),d=i(d,S,p,f,C[a+6],23,76029189),f=i(f,d,S,p,C[a+9],4,3654602809),p=i(p,f,d,S,C[a+12],11,3873151461),S=i(S,p,f,d,C[a+15],16,530742520),f=t(f,d=i(d,S,p,f,C[a+2],23,3299628645),S,p,C[a+0],6,4096336452),p=t(p,f,d,S,C[a+7],10,1126891415),S=t(S,p,f,d,C[a+14],15,2878612391),d=t(d,S,p,f,C[a+5],21,4237533241),f=t(f,d,S,p,C[a+12],6,1700485571),p=t(p,f,d,S,C[a+3],10,2399980690),S=t(S,p,f,d,C[a+10],15,4293915773),d=t(d,S,p,f,C[a+1],21,2240044497),f=t(f,d,S,p,C[a+8],6,1873313359),p=t(p,f,d,S,C[a+15],10,4264355552),S=t(S,p,f,d,C[a+6],15,2734768916),d=t(d,S,p,f,C[a+13],21,1309151649),f=t(f,d,S,p,C[a+4],6,4149444226),p=t(p,f,d,S,C[a+11],10,3174756917),S=t(S,p,f,d,C[a+2],15,718787259),d=t(d,S,p,f,C[a+9],21,3951481745),f=n(f,s),d=n(d,u),S=n(S,c),p=n(p,g);return(l(f)+l(d)+l(S)+l(p)).toLowerCase()}}}},{}],10:[function(e,n,o){window=window||{},window.sonicVersionByConfig={defaultVersion:"2544",buildNumber:"2544"};var r=e("./_mobileControllerConstants"),i=new(e("./_controllerBootstrapUtils")),t=i.getQueryKeys(["deviceOs","SDKVersion","webviewType","debug"]);if(!i||!t)return;var l=["cdn.iads.unity3d.com","networksdk.ssacdn.com"];let a={cloudFront:l,china:["scc.ssacdn.com","scc.ssadscdn.cn"]};var s={new:1,new_controller:2,returning:3};window.SuperSonicGlobalConfig={mobileSDKSettings:{deviceOs:t.deviceOs||"",SDKVersion:t.SDKVersion||"",debug:t.debug?t.debug:0,protocol:"http:",defaultProtocol:"http:",securedProtocol:"https:",cdn:l[0],scdn:l[0],_domain:l[0],domain:"www.supersonicads.com",serviceCdn:"www.ssacdn.com",webviewType:t.webviewType||"ui",purgeCampaignsCache:!1,purgeGlobalsCache:!1,controllerPathFolder:"controller_",rootCacheFolder:"ios"===t.deviceOs?"SSAPublisher":"supersonicads",isProd:!0,env:"prod",adunitConfig:{adunitVersion:null},ext:{}},controllerConfig:{isSecured:!1,abTest:0,controllerConfigGroup:null,adunitVersionToDownload:"",abTestMap:void 0},userType:s.returning};let u=new(e("./_networkConfig"))(SuperSonicGlobalConfig);function c(){try{return JSON.parse(decodeURIComponent(i.getQueryKeys(["controllerConfig"]).controllerConfig)).applicationKey}catch(e){}return null}var g=e("./_analyticsLite.js");window.analyticsLite=new g({sdkversion:window.SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion,controllerbn:window.sonicVersionByConfig.buildNumber,deviceos:window.SuperSonicGlobalConfig.mobileSDKSettings.deviceOs,producttype:"controller",origin:"analyticsLite",applicationkey:c(),eventsSecuredDomainUrl:u.getNetworkConfigValueByKey("endpoint")},i);var f=e("./_timerService");window.timerService=new f;var d=null;window.timerService&&(d=window.timerService.startTimer());var S=e("./_nativeCommunicatorLite"),p=e("./_controllerBootstrapModule"),C=e("./_controllerABService"),b=e("./_lockedVersionService"),m=e("./_controllerConfigService"),w=e("./_abGroupDecisionService"),v=e("./_abGroupService"),G=new(e("./_secureMessagingService"));window.nativeCommunicator=new S(SuperSonicGlobalConfig.mobileSDKSettings.deviceOs,SuperSonicGlobalConfig.mobileSDKSettings.webviewType,G,window.analyticsLite,r);var y,h=new C(i),_=new b,E=new p(nativeCommunicator,SuperSonicGlobalConfig.mobileSDKSettings.deviceOs.toLowerCase()),D=new m(nativeCommunicator,i,window.analyticsLite,r),R=-1,A="sonic-jquery",T=new w,O=new v(window.nativeCommunicator,r,T);function N(e,n){window.analyticsLite&&window.analyticsLite.sendEvent(e,n)}G.init(function(e){e.fetchExpandedControllerConfig(SuperSonicGlobalConfig.mobileSDKSettings,k,k)}.bind(null,D));var K=i.getBrowserInfo(window.navigator.userAgent);function V(e,n,o){if(function(e,n){return a.china.indexOf(e)>-1||a.china.indexOf(n.chinaCDN)>-1}(e,n)){var i=n.chinaCDN||e;"scc.ssacdn.com"!==n.chinaCDN&&"scc.ssacdn.com"!==e||(i="scc.ssadscdn.cn",N(r.oldChinaCdn,{generalmessage:"domain: "+e+" chinaCDN: "+n.chinaCDN})),SuperSonicGlobalConfig.mobileSDKSettings.cdn=i,SuperSonicGlobalConfig.mobileSDKSettings.scdn=i,SuperSonicGlobalConfig.controllerConfig.cdnCn=1}else o&&e&&(SuperSonicGlobalConfig.mobileSDKSettings.cdn=e,SuperSonicGlobalConfig.mobileSDKSettings.scdn=e);return{cdn:SuperSonicGlobalConfig.mobileSDKSettings.cdn,cdnCn:SuperSonicGlobalConfig.controllerConfig.cdnCn}}function B(e){var n,o,i=(n=r.HTML_REPORTING_KEY,(o=u.getNetworkConfigValueByKey("features"))&&o[n]);return i&&i[e]}function I(e,n,o){e((function(r,i){if(r&&n>0)return setTimeout((function(){I(e,n-1,o)}),1e3*n);o(r,i)}))}function M(e){return SuperSonicGlobalConfig.mobileSDKSettings.isProd=function(e){return!e||""===e||a.china.indexOf(e)>-1||a.cloudFront.indexOf(e)>-1}(e),SuperSonicGlobalConfig.mobileSDKSettings.isProd}function k(){var e=(i.extend(SuperSonicGlobalConfig.controllerConfig,D.getControllerConfig()),SuperSonicGlobalConfig.controllerConfig);u.applyProdDomains(a),u.isValid()||N(r.noNetworkConfig);var n=u.getNetworkConfigValueByKey("browser");if(n&&!i.isSupportedBrowser(K,n.limitations)&&!_.isLockedVersion(SuperSonicGlobalConfig.mobileSDKSettings.deviceOs,SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion))return E.reportCtrlFailed("Unsupported browser version: "+JSON.stringify(K)),void N(r.browserBlocked,{generalmessage:JSON.stringify(K)});var o=(SuperSonicGlobalConfig.mobileSDKSettings._domain=i.getQueryKeys(["domain"]).domain,SuperSonicGlobalConfig.mobileSDKSettings._domain);!function(){var e;try{e=SuperSonicGlobalConfig.mobileSDKSettings.debug,e=parseInt(e),isNaN(e)&&(e=0)}catch(n){e=0}SuperSonicGlobalConfig.mobileSDKSettings.debug=e}();var t=function(){var e=i.getQueryKeys(["protocol"]).protocol;return SuperSonicGlobalConfig.mobileSDKSettings.protocol=e===SuperSonicGlobalConfig.mobileSDKSettings.securedProtocol?SuperSonicGlobalConfig.mobileSDKSettings.securedProtocol:SuperSonicGlobalConfig.mobileSDKSettings.defaultProtocol,SuperSonicGlobalConfig.mobileSDKSettings.protocol}(),l=M(o),s=V(o,e,l);!function(e){e||(SuperSonicGlobalConfig.mobileSDKSettings.domain=SuperSonicGlobalConfig.mobileSDKSettings._domain)}(l);var c=function(e,n){return e||(SuperSonicGlobalConfig.mobileSDKSettings.env=n.split(".")[0]),SuperSonicGlobalConfig.mobileSDKSettings.env}(l,o);!function(e,n,o,r,i){var t;e?(t=n+"//"+r,SuperSonicGlobalConfig.mobileSDKSettings.rootPath=t+"/mobileSDKController"):(t=n+"//"+o,SuperSonicGlobalConfig.mobileSDKSettings.rootPath=t+"/users/staging/"+i+"/controller"),SuperSonicGlobalConfig.mobileSDKSettings.rootPath}(l,t,o,s.cdn,c),function(e,n,o){SuperSonicGlobalConfig.mobileSDKSettings.jQueryUrls=[e+"//code.jquery.com/jquery-1.9.1.min.js",e+"//"+n+"/libs/jquery-1.9.1.min.js",e+"//code.jquery.com/jquery-1.9.1.min.js",e+"//"+n+"/libs/jquery-1.9.1.min.js",e+"//code.jquery.com/jquery-1.9.1.min.js",e+"//"+n+"/libs/jquery-1.9.1.min.js"],y=["../"+SuperSonicGlobalConfig.mobileSDKSettings.rootCacheFolder+"/assets/jquery-1.9.1.min.js"],1===o||"1"===o?(y.push(SuperSonicGlobalConfig.mobileSDKSettings.jQueryUrls[1]),y.push(SuperSonicGlobalConfig.mobileSDKSettings.jQueryUrls[0]),y.push(SuperSonicGlobalConfig.mobileSDKSettings.jQueryUrls[1]),y.push(SuperSonicGlobalConfig.mobileSDKSettings.jQueryUrls[0])):Array.prototype.push.apply(y,SuperSonicGlobalConfig.mobileSDKSettings.jQueryUrls)}(t,s.cdn,s.cdnCn),function(){J();var e=SuperSonicGlobalConfig.controllerConfig.abTestMap;e?F({response:JSON.stringify(e)}):h.fetchABTestsMap(SuperSonicGlobalConfig.mobileSDKSettings,F,F)}()}function P(){window.jQuery?(j(r.READY_TRIGGER.jqueryJS),U()):(SuperSonicGlobalConfig.userType=s.new,J())}function U(){window.jQuery&&void 0!==window.mobileControllerTestMap&&function(){T.setCallback(y);var e,n,o,t={},l=(f=SuperSonicGlobalConfig.mobileSDKSettings.domain,"@@localIp"===f),a=-1,c="sonic-jssdk",g=!1;var f;function d(){if(!SuperSonicGlobalConfig.controllerConfig)return null;var e=SuperSonicGlobalConfig.controllerConfig.auid,n=i.isUniqueId(SuperSonicGlobalConfig.controllerConfig.advId);return e||(e=n?SuperSonicGlobalConfig.controllerConfig.advId:null),{country:SuperSonicGlobalConfig.controllerConfig.country,auid:e,applicationKey:SuperSonicGlobalConfig.controllerConfig.applicationKey}}function S(){var e={controllerVersion:null,adunitConfig:{adunitVersion:null},ext:{}},n=null;try{if(_.isLockedVersion(SuperSonicGlobalConfig.mobileSDKSettings.deviceOs,SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion))e.controllerVersion=_.getControllerLockedVersion(SuperSonicGlobalConfig.mobileSDKSettings.deviceOs),e.adunitConfig=_.getAdunitConfig(),e.adunitConfig.adunitVersion=_.getAdunitLockedVersion(SuperSonicGlobalConfig.mobileSDKSettings.deviceOs),SuperSonicGlobalConfig.controllerConfig.abTest=r.AB_MAPPING_LOCKED_VERSION,SuperSonicGlobalConfig.controllerConfig.abUserCluster=r.AB_USER_CLUSTER_DEFAULT_CONTROLLER_VERSION;else if(SuperSonicGlobalConfig.controllerConfig&&SuperSonicGlobalConfig.controllerConfig.testerABGroup){var o=SuperSonicGlobalConfig.controllerConfig.testerABGroup;SuperSonicGlobalConfig.controllerConfig.abUserCluster="Not Relevant",n=h.parseAndGetTesterUserGroup(o),e.controllerVersion=h.getControllerVersionByGroup(n),e.adunitConfig=h.getAdunitConfigByGroup(n),e.adunitConfig.adunitVersion=h.getAdunitVersionByGroup(n),e.ext=h.getExtDataByGroup(n)}else{var t=d();if(t&&t.auid){var l=h.getUserGroupId(t);SuperSonicGlobalConfig.controllerConfig.abTest=h.getTestId(l),SuperSonicGlobalConfig.controllerConfig.abUserCluster=h.getUserClusterFromId(t),e.controllerVersion=h.getControllerVersionByGroup(l),e.adunitConfig=h.getAdunitConfigByGroup(l),e.adunitConfig.adunitVersion=h.getAdunitVersionByGroup(l),e.ext=h.getExtDataByGroup(l),SuperSonicGlobalConfig.controllerConfig.abTest!==r.defaultABGroup&&(g=!0,O.getABGroup())}else h.isMainstreamMapDefined()&&(SuperSonicGlobalConfig.controllerConfig.abTest=r.AB_MAPPING_JSON_ERROR_GROUP2,SuperSonicGlobalConfig.controllerConfig.abUserCluster=r.AB_USER_CLUSTER_UNRECOGNIZED,e.controllerVersion=h.getControllerVersionByGroup({test:0,group:0}),e.adunitConfig=h.getAdunitConfigByGroup({test:0,group:0}),e.adunitConfig.adunitVersion=h.getAdunitVersionByGroup({test:0,group:0}))}N(r.clusterSelected,{generalmessage:SuperSonicGlobalConfig.controllerConfig.controllerABValue,callfailreason:SuperSonicGlobalConfig.controllerConfig.abUserCluster.toString()})}catch(e){N(r.mappingError)}if(SuperSonicGlobalConfig.controllerConfig.abTest||(SuperSonicGlobalConfig.controllerConfig.abTest=h.getTestId(n)),e.controllerVersion||(SuperSonicGlobalConfig.controllerConfig.abTest=r.AB_MAPPING_JSON_ERROR_GROUP,e.controllerVersion=sonicVersionByConfig.defaultVersion,SuperSonicGlobalConfig.controllerConfig.abUserCluster=r.AB_USER_CLUSTER_DEFAULT_CONTROLLER_VERSION,N(r.mappingError2)),e.adunitConfig.adunitVersion||N(r.adunitVersionMappingError),SuperSonicGlobalConfig.controllerConfig.abTest!==r.AB_MAPPING_LOCKED_VERSION){var a=u.getNetworkConfigValueByKey("browser");a&&!i.isSupportedBrowser(K,a.deprecations)&&(SuperSonicGlobalConfig.controllerConfig.abTest=a.deprecations_id||r.AB_MAPPING_JAVASCRIPT_DEPRECATED)}return SuperSonicGlobalConfig.controllerConfig.sdkAbName=SuperSonicGlobalConfig.controllerConfig.abTest,e}function p(e){return"../"+SuperSonicGlobalConfig.mobileSDKSettings.rootCacheFolder+"/"+SuperSonicGlobalConfig.mobileSDKSettings.controllerPathFolder+e}function C(e){return p(e)+"/sdk_controller"+(SuperSonicGlobalConfig.mobileSDKSettings.isProd?".min.gz":"")+".js"}function b(e){var n="/versions/",o=SuperSonicGlobalConfig.mobileSDKSettings.isProd?".min.gz":"";return SuperSonicGlobalConfig.mobileSDKSettings.controllerJSUrl=SuperSonicGlobalConfig.mobileSDKSettings.rootPath+n+e+"/sdk_controller"+o+".js",SuperSonicGlobalConfig.mobileSDKSettings.controllerJSUrl}function m(){j(r.READY_TRIGGER.controllerJS)}function w(e){C(SuperSonicGlobalConfig.mobileSDKSettings.controllerVersion)===e&&SuperSonicGlobalConfig.userType===s.returning&&(SuperSonicGlobalConfig.userType=s.new_controller),v()}function v(){function n(n){SuperSonicGlobalConfig.controllerConfig.abTest=r.AB_RECOVERED_VIA_RETRY_SESSION,SuperSonicGlobalConfig.controllerConfig.sdkAbName=SuperSonicGlobalConfig.controllerConfig.abTest,i.loadScript(e[a-1],c,m,n)}++a<e.length?i.loadScript(e[a],c,m,w):(o=SuperSonicGlobalConfig.controllerConfig.abTest,I(n,2,(function(e,n){e&&(SuperSonicGlobalConfig.controllerConfig.abTest=o,SuperSonicGlobalConfig.controllerConfig.sdkAbName=SuperSonicGlobalConfig.controllerConfig.abTest,B(r.REPORT_CTRL_FAILED_JS_KEY)&&E.reportCtrlFailed("Failed to download JS"),N(r.failedDownloadJS,{generalmessage:JSON.stringify(e)}))})))}function y(){SuperSonicGlobalConfig.mobileSDKSettings.controllerVersion=n.controllerVersion,SuperSonicGlobalConfig.mobileSDKSettings.adunitConfig=i.cloneObject(n.adunitConfig),SuperSonicGlobalConfig.mobileSDKSettings.ext=i.cloneObject(n.ext);var o=SuperSonicGlobalConfig.mobileSDKSettings.controllerVersion;SuperSonicGlobalConfig.mobileSDKSettings.cacheFolderPath=p(o),e=[b(o)];var r=O.getShouldDownloadController();return l||r||e.unshift(C(o)),SuperSonicGlobalConfig.controllerConfig.adunitVersionToDownload=n.adunitConfig.adunitVersion?n.adunitConfig.adunitVersion:"",v(),t}window.sonicAsyncInit=function(){SonicCore.init(SuperSonicGlobalConfig,G)},n=S(),T.onFinishedSonicGetVersionConfig(),g||y()}()}function L(e){window.mobileControllerTestMap={},SuperSonicGlobalConfig.controllerConfig.abTest=r.AB_MAPPING_JSON_ERROR_GROUP,N(r.jsonRequestFailed,{generalmessage:e})}function F(e){try{if(e.response){var n=JSON.parse(e.response);"object"==typeof n?(window.mobileControllerTestMap=n.config?n.config:n,window.mobileAdunitConfig=n.adunitConfig?n.adunitConfig:{}):L(e.response)}else L(JSON.stringify(e))}catch(e){L(e)}U()}function J(){++R<y.length?i.loadScript(y[R],A,P,P):(B(r.REPORT_CTRL_FAILED_JQUERY_KEY)&&E.reportCtrlFailed("Failed to download jQuery"),N(r.failedDownloadJQ))}function j(e){if(function(e){var n=u.getNetworkConfigValueByKey(r.INIT_CONFIG);return(n&&n[r.INIT_CONFIG_READY_TRIGGER])===r.READY_TRIGGER.controllerJS?e===r.READY_TRIGGER.controllerJS:e!==r.READY_TRIGGER.controllerJS}(e)&&(E.reportCtrlReady(),d&&B(r.REPORT_CTRL_READY_EVENT))){var n=window.timerService.stopTimer(d);SuperSonicGlobalConfig.controllerConfig.controllerLoadingTime=n,N(r.reportCtrlReady,{timingvalue:n,generalmessage:e||"unknown"})}}K.error&&N(r.browserInfoFailed,{generalmessage:K.name,custom_a:K.errorMessage})},{"./_abGroupDecisionService":1,"./_abGroupService":2,"./_analyticsLite.js":3,"./_controllerABService":4,"./_controllerBootstrapModule":5,"./_controllerBootstrapUtils":6,"./_controllerConfigService":7,"./_lockedVersionService":8,"./_mobileControllerConstants":11,"./_nativeCommunicatorLite":12,"./_networkConfig":13,"./_secureMessagingService":14,"./_timerService":15}],11:[function(e,n,o){n.exports={jsonRequestFailed:{name:"jsonRequestFailed",id:252},mappingError:{name:"mappingError",id:253},mappingError2:{name:"mappingError2",id:254},adunitVersionMappingError:{name:"adunitVersionMappingError",id:255},failedDownloadJS:{name:"failedDownloadJS",id:256},controllerConfigurationIsEmpty:{name:"controllerConfigurationIsEmpty",id:276},androidBridgeMissing:{name:"androidBridgeMissing",id:221},clusterSelected:{name:"clusterSelected",id:308},browserInfoFailed:{name:"browserInfoFailed",id:400},browserBlocked:{name:"browserBlocked",id:401},noNetworkConfig:{name:"noNetworkConfig",id:402},oldChinaCdn:{name:"oldChinaCdn",id:409},failedDownloadJQ:{name:"failedDownloadJQ",id:300},reportCtrlReady:{name:"reportCtrlReady",id:258},defaultABGroup:0,AB_MAPPING_JSON_ERROR_GROUP:-4,AB_MAPPING_JSON_ERROR_GROUP2:-5,AB_MAPPING_LOCKED_VERSION:-6,AB_MAPPING_JAVASCRIPT_DEPRECATED:-7,AB_RECOVERED_VIA_RETRY_SESSION:-10,AB_USER_CLUSTER_UNRECOGNIZED:"-12",AB_USER_CLUSTER_DEFAULT_CONTROLLER_VERSION:"-13",ABGROUP_KEY:"ControllerABGroup",HTML_REPORTING_KEY:"htmlReporting",REPORT_CTRL_FAILED_JQUERY_KEY:"reportCtrlFailedjQuery",REPORT_CTRL_FAILED_JS_KEY:"reportCtrlFailedJS",REPORT_CTRL_READY_EVENT:"reportCtrlReadyEvent",INIT_CONFIG:"init",INIT_CONFIG_READY_TRIGGER:"ready",READY_TRIGGER:{jqueryJS:"jqueryJS",controllerJS:"controllerJS"}}},{}],12:[function(e,n,o){n.exports=function(e,n,o,r,i){var t="ios"===e?l:a;function l(e,o,r){function i(e){return e||""}try{var t=function(e,n,o){var r="supersonicads://"+e+"?success="+i(n.success)+"&fail="+i(n.fail)+"&stage="+i(n.stage)+"&acknowledgeWith="+i(n.acknowledgeWith)+"&declineWith="+i(n.declineWith);return o&&(r+="&key="+i(n.key)+"&value="+i(n.value)),r}(e,o,"getUserData"===e||"setUserData"===e);if(n&&"wk"===n.toLowerCase())void 0!==window.webkit.messageHandlers&&void 0!==window.webkit.messageHandlers.supersonicMainMsgHandler&&window.webkit.messageHandlers.supersonicMainMsgHandler.postMessage(t);else{var l=document.createElement("IFRAME");l.setAttribute("src",t),document.documentElement.appendChild(l),l.parentNode.removeChild(l),l=null}}catch(e){console.log("Error running function _sendDataiOS error:"+JSON.stringify(e)),"function"==typeof r&&r("Error running function _sendDataiOS error:"+JSON.stringify(e))}}function a(e,n,t){var l,a,s=o.getTokenForMessaging();if(l=window.Android,a=s?"messageHandler":e,void 0!==l&&l[a])try{s?function(e,n){var r={message:"removeJSBridge"},i=o.hashMessage("removeMessagingInterface",r);Android.messageHandler("removeMessagingInterface",JSON.stringify(r),i),i=o.hashMessage(e,n),Android.messageHandler(e,JSON.stringify(n),i)}(e,n):function(e,n){Android[e](JSON.stringify(n))}(e,n)}catch(e){!function(e,n){console.log("Error running function _sendDataAndroid error: "+e),"function"==typeof n&&n("Error running function _sendDataAndroid error: "+e)}(JSON.stringify(e),t)}else r.sendEvent(i.androidBridgeMissing,{generalmessage:e,custom_b:s?1:0,custom_c:void 0!==window.Android?1:0})}function s(e){return"string"!=typeof e?{}:{name:e.split(/\?(.+)/)[0],parameters:e.split(/parameters=(.+)/)[1]}}function u(e){var n={};if("string"!=typeof e)return null;try{n=JSON.parse(e)}catch(e){console.log(e.message)}return n}window.queueValidMessages={initRewardedVideo:1,initBrandConnect:2,initOfferWall:3,initInterstitial:4,loadInterstitial:5,getUserCredits:6,initBanner:7,loadBanner:8},window.nativeQueue=[];var c={};function g(e,n,o){var r=s(e);try{return void 0!==r.name&&(c[r.name]?c[r.name](r.parameters):nativeQueue.push({name:r.name,parameters:u(r.parameters),successCallback:n,errorCallback:o})),!0}catch(e){return console.log("error running function:"+r.name+", error:"+e),!1}}return window.SSA_CORE={SDKController:{runFunction:g}},{postMessageiOS:l,postMessageAndroid:a,postMessage:function(e,n){e&&e.parameters&&"RewardedVideo"===e.parameters.productType&&"A"!==e.parameters.integrationType&&(e.parameters.productType="Interstitial"),t(e.eventName,e.parameters,n)},getFunctionQueryAsObj:s,parseJSON:u,addListener:function(e,n){c[e]=n},removeListener:function(e){c[e]&&delete c[e]},runFunction:g}}},{}],13:[function(e,n,o){n.exports=class{constructor(e){this.globalConfig=e}applyProdDomains(e){let n=this.getNetworkConfigValueByKey("prodDomains");n&&(e.cloudFront=n);let o=this.getNetworkConfigValueByKey("chinaProdDomains");o&&(e.china=o)}getNetworkConfigValueByKey(e){return this.globalConfig.controllerConfig&&this.globalConfig.controllerConfig.networkConfig&&this.globalConfig.controllerConfig.networkConfig[e]}isValid(){return this.globalConfig.controllerConfig&&this.globalConfig.controllerConfig.networkConfig}}},{}],14:[function(e,n,o){var r=e("./_md5hashing");n.exports=function(){var e,n;return{getTokenForMessaging:function(){return n},hashMessage:function(o,r){var i=o+JSON.stringify(r)+n;return e.hashToMd5(i)},init:function(o){var i,t;e=r(),i=window.GenerateTokenForMessaging,t="getTokenForMessaging",n=void 0!==i&&i[t]?GenerateTokenForMessaging.getTokenForMessaging():null,setTimeout((function(){o()}),350)}}}},{"./_md5hashing":9}],15:[function(e,n,o){n.exports=function(){var e={};function n(n){return void 0!==e[n]}function o(o){return n(o)?(new Date).getTime()-e[o]:-1}return{startTimer:function(){var n=""+Math.random();return e[n]=(new Date).getTime(),n},stopTimer:function(r){if(n(r)){var i=o(r);return delete e[r],i}return-1},reset:function(){e={}},timeElapsed:o}}},{}]},{},[10]);</script><!-- endinject --></body></html>