CINXE.COM
磁力引擎|快手广告投放|快手营销服务平台|快手新市井商业
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="format-detection" content="telephone=no"> <meta name="baidu-site-verification" content="code-NMDeCOWGvP"> <meta name="dns-prefetch" content="//p2-ad.adkwai.com"> <meta name="description" content="磁力引擎是快手商业化营销服务平台,旗下拥有磁力聚星、磁力金牛、信息流广告等一系列广告产品、商业服务工具和平台,助力品牌打造快手营销新主场。2021年,磁力引擎提出“新市井商业”全新定位,在公域有广度、私域有粘性、商域有闭环的生态下,品牌可以持续在快手实现扩圈、连接、经营和洞察四大价值。"> <meta name="keywords" content="磁力引擎,新市井商业,快手广告,快手营销平台,快手商业化,快手推广"> <script>window['kConf_ad.frontend.magnet_engine_blank_detect_config']={"containers":["#root"],"ignoreContainers":[".bp"],"emptyElementsPercent":0.9,"sameElementsPercent":0.9}</script><script>window.kfxEnv={"channelId":"","version":"20240333"}</script><script crossorigin="anonymous">var __radarSeedFunc__=function(e){"use strict";var n=console,t="ksurl.cn/csHfgepO, radar:",a=(n.log.bind(n,t),n.warn.bind(n,t),n.error.bind(n,t)),L={unknown:0,none:1,wifi:2,"4g":3,"3g":4,"2g":5,"5g":7,"slow-2g":5},o=window,r=o.location,i=o.navigator,c="__RADAR_PERFORMANCE_TIMING_",u="__radarSeedStore__",s="isCoreReady",d="isRuning",l="radarSessionId",f="resource",v="error",B="event",F="load",n="Queue",T=v+n,q=f+n,z=B+n,_="oInc",g="dimension",m="projectId",p="connection",h="immediate",x="commonData",G="customDimensions",k="config",y="queue";function w(e){return"function"==typeof e}function H(){for(var e=arguments,n=e[0],t=1;t<e.length;t++){var r=e[t];if(r)for(var a in r)n[a]=r[a]}return n}function b(e,n,t){return void 0===t&&(t={}),(Object.assign||H)({},e,n,t)}function R(e){return JSON.stringify(e)}function j(e,n,t,r){e.addEventListener(n,t,r)}function I(e,n,t,r){e.removeEventListener(n,t,r)}function J(e,n){o[e=void 0===e?c:e]=b(o[e]||{},n)}function K(){var e=S(l,null,c);e||(e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)}),Q(l,e,c))}function S(e,n,t){return o[t=void 0===t?c:t]&&void 0!==o[t][e]?o[t][e]:void 0===n?null:n}function Q(e,n,t){o[t=void 0===t?c:t]||J(t,{}),o[t][e]=n}function A(e,n){return S(e,n=void 0===n?null:n,u)}function D(e,n){Q(e,n,u)}function U(e,n){try{o[u][e].push(n),(r=A("flush"))&&w(r)&&(t=A(y,[]),(A(h)||20<t.length)&&r())}catch(e){a("1000")}var t,r}var V="unhandledrejection",C="beforeunload",W="visibilitychange",X={name:"RadarSeedCollect",version:"1.2.8"};function Y(e,n){var t="getAttribute";return w(e[t])&&e[t](n)||""}function Z(e){var n=e.target;return{failed:!0,file:Y(n,"src")||Y(n,"href"),res_path:(n=e&&e.path||e&&e.composedPath&&e.composedPath(),Array.isArray(n)?n.map(function(e){var n=Y(e,"class")||e.className,t=e.tagName||"";return e.id&&(t+="#"+e.id),n&&(t+=n.split(/\s+/g).map(function(e){return"."+e}).join("")),t}).filter(function(e){return e}).join(","):"")}}var $=i.userAgent,t=o.screen,ee={domain:r.hostname,url:r.href,hash:r.hash,online:i.onLine,downlink:i[p]&&i[p].downlink,rtt:i[p]&&i[p].rtt,screen_width:t.width,screen_height:t.height,device_pixel_ratio:o.devicePixelRatio||1};function ne(){var e={page:r.href},n=S(l),t=A(m);return{h5_extra_attr:R(ee),refer_url_package:e,url_package:e,project_id:t,radar_session_id:n}}function te(){var e=A(k,{})[G]||{};return b({event_client_timestamp:Date.now(),collect_version:X.version,collect_name:X.name},e)}function re(e,n){void 0===n&&(n=1);var t,r=e.data,a=e.key,e=e.dimension||{},o={};t=A(_,0)+1,D(_,t);switch(a){case f:o=Z(r);break;case v:o=function(e){try{var n=e.reason,t=e.error||(n&&n.message?n:void 0),r=t&&t.message||e.message||e.reason;return{error_type:"script",error_cons_type:t&&t.name||e.name,msg:r,stack:e.stack||t&&t.stack,file:e.filename,line:e.lineno,col:e.colno}}catch(e){return{}}}(r)}return b(e,{sample_rate:n,other_session_increase_id:t},o||{})}function N(){I(o,v,O,!0),I(o,V,O),I(o,C,N)}function O(e){var n;A(s)?N():(n=(n=e).message||null!=n.lineno||n.type===V,U(y,((n={key:n?v:f,data:e})[g]=te(),n[x]=ne(),n)))}var P=null;function ae(e){var n=A(k,{}),e=function(e,n){n=function(e){return{identity_package:{device_id:E("did")||E("_did")||E("weblogger_did"),global_id:E("egid"),user_id:E("userId")||E("ud")||E("userName")},app_package:{language:i.language,product_name:e,version_name:E("appver")||""},device_package:{ua:$},service_name:"radarSDK",network_package:{type:function(){var e="",n=i[p]||i.mozConnection||i.webkitConnection;n&&(e=n.type||n.effectiveType);return L[e]||0}()},h5_extra_attr:R(ee)}}(n.product_name),e=(e||[]).map(function(e){var n,t=re(e);return b(((n={key:e.key,value:e.value||{}})[g]=t,n),e[x])});return{common:n,logs:[{client_timestamp:Date.now(),stat_package:{custom_stat_event:{key:"radar_log",value:R({data:e})}}}]}}(e,n),e=R(e),n="https://"+({oversea:"logsdk.kwai-pro.com",logger:"data-track.corp.kuaishou.com"}[n.env]||"log-sdk.ksapisrv.com")+"/rest/wd/common/log/collect/radar",e=(n={url:n,data:e}).url,n=n.data;if(i&&w(i.sendBeacon))try{i.sendBeacon(e,n)}catch(e){a("1003")}else a("1002")}function E(e){if(!P){P={};for(var n,t=document.cookie.split("; "),r=0;r<t.length;r++)n=t[r].split("="),P[n[0]]=decodeURIComponent(n[1]||"")}return P[e]||""}function oe(){I(o,C,ce),I(document,W,M)}function ie(){oe(),N()}function ce(){M(),ie()}function M(){try{A(s)&&oe();var e=A(y,[]);e.length&&(ae(e),D(y,[]))}catch(e){a("1001")}}return e.destroy=ie,e.event=function(e,n){var t,e=b(te(),e);U(y,((t={key:B})[g]=e,t.value=n,t[x]=ne(),t))},e.init=function(e){var n,t,r;A(d)||("object"==typeof e&&e?(n=e[m])&&"string"==typeof n?((r={})[m]=n,r.flush=M,r[k]=e,r[h]=!!e[h],n=r,K(),r=b(((r={})[d]=!1,r[s]=!1,r[_]=0,r[y]=[],r[T]=[],r[q]=[],r[z]=[],r),n),J(u,r),null!=(n=e.error)&&!n||(j(o,v,O,!0),j(o,V,O,!0),j(o,C,N,!0)),j(o,C,ce,!0),j(document,W,M,!0),D(d,!0),e.unInit||(D("radar_init_time",Date.now()),ae([function(e,n){var e=b(te(),e),t={key:F};return t[g]=e,t.value=n,t[x]=ne(),t}({event_name:"radar_init"},t)]))):a("109"):a("108"))},e.push=function(e){O(e)},Object.defineProperty(e,"__esModule",{value:!0}),e}({}); </script> <script crossorigin="anonymous">__radarSeedFunc__.init({ customDimensions: { release_tag: window.kfxEnv && window.kfxEnv.channelId, product_version: window.kfxEnv && window.kfxEnv.version }, projectId: "478143c476" })</script> <script crossorigin="anonymous">!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ksCdnProtector=e()}(this,(function(){"use strict";var t=window,e=window.document,r=t.HTMLScriptElement,n=t.HTMLLinkElement,o=t.HTMLImageElement,i="script",a="link",c="_cdnRetryListenerList",d="_cdnRetryOnError",u="_cdnRetryOnLoad",s="data-cdn-hooked",l="data-cdn-id",f=function(t,e){var r,n=new Set(null===(r=t.retryUrls)||void 0===r?void 0:r.map(y)),o=y(t.errorUrl);n.add(o);var i=e.filter((function(t){return!n.has(t)}))[0];return i||(i=e[t.retryTimes%e.length]),t.errorUrl.replace(o,i)},y=function(t){if(!t)return"";try{0===t.indexOf("//")?t="http:"+t:-1!==t.indexOf("http")||t.startsWith("/")||(t="http://"+t);var e=new URL(t);return e.hostname+(e.port?":"+e.port:"")}catch(t){return""}},v=function(t,e,r,n){if(!r)return!1;var o=y(r);return(!e||!e.some((function(t){return o===t})))&&!(n&&!t.some((function(t){return o===t})))},h=function(t){return t},m=function(){},p=function(t,n,o,a){void 0===o&&(o=m),void 0===a&&(a=!1);var d=t.getAttribute(l)||"",u="".concat(d,"_").concat(_()),s=a||t.defer||t.async;if("loading"!==e.readyState||/Edge|MSIE|rv:/i.test(navigator.userAgent)||s){var f=e.createElement(i);Object.keys(r.prototype).forEach((function(e){if("src"!==e&&t[e]&&"object"!=typeof t[e])try{f[e]=t[e]}catch(t){}})),f.src=n,f.onload=t.onload,f.onerror=t.onerror,f.setAttribute(l,u),f[c]=t[c];var y=t.getAttribute("nonce");y&&f.setAttribute("nonce",y),e.getElementsByTagName("head")[0].appendChild(f)}else{var v=t.outerHTML.replace(/data-cdn-id="[^"]+"/,"").replace(/src=(?:"[^"]+"|.+)([ >])/,"".concat(l,"=").concat(u,' src="').concat(n,'"$1'));e.write(v);var h=e.querySelector("script[".concat(l,'="').concat(u,'"]'));h&&(h.onload=o)}},g=function(t,r,o){var i=t.getAttribute(l)||"",d="".concat(i,"_").concat(_()),u=e.createElement(a);Object.keys(n.prototype).forEach((function(e){if("href"!==e&&t[e]&&"object"!=typeof t[e])try{u[e]=t[e]}catch(t){}})),u.href=r,u.onload=o||t.onload,u.onerror=t.onerror,u.setAttribute(l,d),u[c]=t[c],t.insertAdjacentElement("afterend",u)},_=function(){return Math.random().toString(36).slice(2)},x=function(t){var e=void 0;if(t instanceof HTMLScriptElement||t instanceof HTMLImageElement||t instanceof HTMLAudioElement||t instanceof HTMLVideoElement||t instanceof HTMLSourceElement?e=t.src:t instanceof HTMLLinkElement&&(e=t.href),!e||(t.getAttribute("src")||t.getAttribute("href"))&&0===e.indexOf("http"))return e},E=function(t){return(t instanceof HTMLScriptElement||t instanceof HTMLImageElement||t instanceof HTMLLinkElement)&&!t.hasAttribute("data-cdn-ignore")},b=function(t){return t.target||t.srcElement};var L="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),T={},C={};window.__cdn_protector__={retryCaches:T,options:C};var w,A,R=(w=!1,t.addEventListener("load",(function(){w=!0})),function(){return w}),I=(A=!1,t.addEventListener("beforeunload",(function(){A=!0})),t.addEventListener("pagehide",(function(t){t.persisted||(A=!0)})),t.addEventListener("pageshow",(function(t){t.persisted&&(A=!1)})),function(){return A}),D=function(t,e){var r=window[t];if(r&&"string"==typeof r){var n=y(r);n&&(window[t]=r.replace(n,e))}},S=function(e,r){t.__radarSeedFunc__&&t.__radarSeedFunc__.event({name:"cdn_protector_error",message:e,extra_info:r})};function U(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function M(t,e,i){void 0===i&&(i=!1);var a=e.onRetry,c=e.domain,d=x(t)||"",u=k(t),s=u.retryCache,y=u.newTarget,v=(null==s?void 0:s.retryId)||_();y&&t.setAttribute(l,v);var h=s||{retryId:v,retryUrls:[],retryTimes:0,errorUrl:d},E=a(f(h,c),d);if(null===E)return!1;if("string"!=typeof E)throw new Error("a string should be returned in `onRetry` function");h.retryTimes++,h.retryUrls.push(E),T[v]=h,t instanceof o&&t.src?(t.src=E,y||t.setAttribute(l,"".concat(u.targetRetryId,"_").concat(_()))):t instanceof r&&t.src?p(t,E,m,i):t instanceof n&&t.href&&g(t,E)}var k=function(t){var e=null==t?void 0:t.getAttribute(l),r=null==e?void 0:e.split("_"),n=null==r?void 0:r[0],o=n?T[n]:void 0;return{newTarget:!e,retryId:n,targetRetryId:e,retryCount:(null==o?void 0:o.retryTimes)||0,nodeName:t.nodeName,asyncHooked:t.getAttribute(s),retryCache:o}},H=function(t,e,r){setTimeout((function(){var n=t.getAttribute(l)||"";n&&n.split("_").length>1||r({status:"error",hooked:!!n,nodeName:t.nodeName||"",errorId:n||"",errorUrl:e,retryUrl:"",retryTimes:0})}),0)},N=function(t,e,r){t[c]&&(t[c].filter((function(t){return t.type===r})).forEach((function(r){return n=r.listener,o=t,i=e,"function"!=typeof n?null:n.call(o,i);var n,o,i})),t[c]=[])},O=function(t,r,n){var o=x(r);if(o){var i=y(o),a=null==n?void 0:n.ignoreDomain;if(!a||!a.some((function(t){return i===t}))){var c=new Event(t);Object.defineProperty(c,"target",{value:r}),e.dispatchEvent(c)}}},j=function(t,e){void 0===e&&(e=!1),t.onload=function(r){return e&&O("load",t),(n=t[u],function(t){n&&!n._called&&(n._called=!0,n.call(this,t)),N(this,t,"load")}).call(t,r);var n},Object.defineProperty(t,"onload",{get:function(){return this[u]},set:function(t){this[u]=t}})},P=function(t,e,r){void 0===r&&(r=!1),t.onerror=function(n){return r&&O("error",t,e),function(t,e){return function(r){var n=this;if("string"!=typeof r){var o=function(){t&&t.call(n,r),N(n,r,"error")};r.stopPropagation&&r.stopPropagation();var i=x(this);return E(this)&&v(e.domain,e.ignoreDomain,i,e.onlyDispatchRetry)?k(this).retryCount>=e.maxRetryCount||!1===M(this,e,!0)?o():void 0:o()}}}(t[d],e).call(t,n)},Object.defineProperty(t,"onerror",{get:function(){return this[d]},set:function(t){this[d]=t}})},K=function(t){var e=t.addEventListener;t[c]=t[c]||[],t.addEventListener=function(t,r,n){if("error"===t||"load"===t){var o="function"==typeof r?r:r.handleEvent;this[c].push({type:t,listener:o})}else e.call(this,t,r,n)}};var F=function(t,e){return C.onRetry?C.onRetry(t,e):t},q=function(e){!function(e){t.__radarSeedFunc__?t.__radarSeedFunc__.event({name:"cdn_protector",event_type:y(e.errorUrl),category:String(e.hooked),src:e.errorUrl,result_type:e.status,message:e.retryUrl||"",extra_info:JSON.stringify({onload:R(),sdk_version:"0.3.2",error_id:e.errorId,error_node_name:e.nodeName,htmlId:L,onLine:String(navigator.onLine)})},{event_count:e.retryTimes}):console.warn("[KsCdnProtector] 未找到 Radar 种子包!",e)}(e)};return function(t){try{!function(t){C.domain=t.domain||[],C.ignoreDomain=t.ignoreDomain,C.retryTimes=t.retryTimes||3,C.onRetry=t.onRetry||h,C.onlyDispatchRetry=t.onlyDispatchRetry||!1,C.htmlCdnDispatchKey=t.htmlCdnDispatchKey||"cdn_public_path"}(t);var r={maxRetryCount:C.retryTimes||3,domain:C.domain,ignoreDomain:C.ignoreDomain,onlyDispatchRetry:C.onlyDispatchRetry,htmlCdnDispatchKey:C.htmlCdnDispatchKey,onSuccess:q,onFail:q,onError:q,onRetry:F};!function(t){var r=e.createElement;e.createElement=function(n,o){try{var c=r.call(e,n,o);return n!==i&&n!==a||(c.setAttribute(s,"true"),j(c),P(c,t),K(c)),c}catch(t){return S("initAsync",t),r.call(e,n,o)}};var n=window.Image;window.Image=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{var o=new(n.bind.apply(n,U([void 0],e,!1)));return o.setAttribute(s,"true"),o[c]=[],j(o,!0),P(o,t,!0),K(o),o}catch(t){return S("initImageAsync",t),new(n.bind.apply(n,U([void 0],e,!1)))}}}(r),function(t){var r=t.onSuccess,n=t.onFail,o=t.onError,i=t.maxRetryCount;e.addEventListener("error",(function(e){var r;if(e&&!I()){var a=b(e),c=x(a);if(a&&c&&(H(a,c,o),E(a)&&v(t.domain,t.ignoreDomain,c,t.onlyDispatchRetry))){var d=k(a);if(d.retryCount>=i)return n({status:"fail",hooked:!0,nodeName:d.nodeName,errorId:d.retryId||"",errorUrl:(null===(r=d.retryCache)||void 0===r?void 0:r.errorUrl)||"",retryUrl:c,retryTimes:d.retryCount}),void(d.retryCache&&(d.retryCache.status="fail"));a.getAttribute(s)||M(a,t)}}}),!0),e.addEventListener("load",(function(e){var n;if(e){var o=b(e),i=x(o);if(o&&i&&E(o)){var a=k(o);a.retryId&&(r({status:"success",hooked:!0,nodeName:a.nodeName,errorId:a.retryId||"",errorUrl:(null===(n=a.retryCache)||void 0===n?void 0:n.errorUrl)||"",retryUrl:i,retryTimes:a.retryCount}),a.retryCache&&(a.retryCache.status="success"),t.htmlCdnDispatchKey&&D(t.htmlCdnDispatchKey,y(i)))}}}),!0)}(r)}catch(t){S("initCdnProtector",t)}}}));</script> <script crossorigin="anonymous">window.ksCdnProtector({domain:["p2-ad_adkwai_com","p3-ad_adkwai_com","p2-ad_adbkwai_com","p3-ad_adbkwai_com","p1-ad_adkwai_com","p1-ad_adbkwai_com","p4-ad_adkwai_com","p4-ad_adbkwai_com","p5-ad_adkwai_com","p5-ad_adbkwai_com"].map(i=>i.replace(/_/g,'.')),ignoreDomain:["hm.baidu.com"],htmlCdnDispatchKey:"cdn_public_path"});</script> <script crossorigin="anonymous">var cdn_public_path = '//p2-ad.adkwai.com';</script> <link rel="shortcut icon" href="//p2-ad.adkwai.com/kos/proj-ks-ad-fe/a3MtYWQtZmU/udata/pkg/ks-ad-fe/favico-2020.png"> <title>磁力引擎|快手广告投放|快手营销服务平台|快手新市井商业</title> <link rel="stylesheet" href="//p2-ad.adkwai.com/udata/pkg/ad-bp/static/bp/assets/kmi.b4475f96.css"> <script crossorigin="anonymous">var isMobile = /(mobile)|(iphone)|(ipod)|(ipad)|(android)|(adr)|(Windows Phone)/i.test( navigator.userAgent ); function redirect() { isMobile && location.hash === '#/e/home' && location.replace('/m/#/e/home'); } redirect(); window.addEventListener('hashchange', redirect); window.CDN_URL_KS_AD_FE = '/kos/proj-ks-ad-fe/a3MtYWQtZmU/udata/pkg/ks-ad-fe/'; window.CDN_URL_AD_BP = '/kos/proj-ad-bp/YWQtYnA/udata/pkg/ad-bp/'; </script> </head> <body> <script crossorigin="anonymous">!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ksBlankScreenDetector={})}(this,(function(e){"use strict";var t,n,r="blank_screen",o="one_second_".concat(r),i="two_second_".concat(r),a="three_second_".concat(r),c=["HTML","BODY"],s="0.0.24",d="".concat(r,"_other"),l=["IFRAME"],m="data-ignore-blank-detect",u=["visibilitychange","pagehide","beforeunload","unload"],p=function(e){return!!e&&(e.hasAttribute(m)&&"false"!=e.getAttribute(m))},f=function(e){if(!e)return"";return-1!==l.indexOf(e.nodeName)?e.nodeName:e.id?"#".concat(e.id):e.className&&"string"==typeof e.className?"."+e.className.split(" ").filter((function(e){return!!e})).join("."):e.nodeName||""},g=function(e){for(var t=0,n=[],r=[],o=e.singleDirectionSamplePoints||9,i=o+1,a=o,c=window.innerWidth,s=window.innerHeight,d=function(o){var d=function(){performance.now();var d=c*o/i,l=s*o/i,m=document.elementsFromPoint(d,s/2),u=[];if(u.push(m),o!==i/2){var g=document.elementsFromPoint(c/2,l),v=document.elementsFromPoint(d,l),T=document.elementsFromPoint(d,s-l);u.push(g,v,T)}u.forEach((function(o){var i=function(e){var t=e.element,n=e.containers,r=e.ignoreContainers,o=f(t),i=!1;return n.indexOf(o)>=0&&-1===(r||[]).indexOf(o)&&!p(t)&&(i=!0),{checkRes:i,serializeElement:o}}({element:o[0],containers:e.containers,ignoreContainers:e.ignoreContainers}),a=i.checkRes,c=i.serializeElement;a&&t++,n.push(o),r.push(c)})),--a||e.getSamplePointsCb({emptyPoints:t,samplePoints:n,sampleSerializePoints:r})};if(e.sync)d();else{var l=0+16.6*(o-1);window.setTimeout(d,l)}},l=1;l<=o;l++)d(l)},v=function(e){var t=performance.now(),n=(e.ignoreContainers||[]).concat(l);g({containers:c.concat(e.containers||[]),singleDirectionSamplePoints:e.singleDirectionSamplePoints,getSamplePointsCb:function(r){var o=r.emptyPoints,i=r.samplePoints,a=r.sampleSerializePoints,c=!e.closeSameElesCheck&&function(e){for(var t,n,r,o,i=e.elements,a=e.paramPercentThreshold,c=e.ignoreContainers,s={},d=0,l=void 0,m=function(e){s[e].length>d&&(d=s[e].length,l=e)},u=0;u<i.length;u++){var g=i[u],v=!1;if(g&&g.length)for(var T in s){for(var _=!0,S=0;S<5;S++)if(s[T][0][S]!==g[S]){_=!1;break}if(_){s[T].push(g),v=!0,m(T);break}}v||(s[String(u)]=[g],m(String(u)))}var b=0;if(l){var h=f(null===(n=null===(t=s[l])||void 0===t?void 0:t[0])||void 0===n?void 0:n[0]);-1!==(c||[]).indexOf(h)||p(null===(o=null===(r=s[l])||void 0===r?void 0:r[0])||void 0===o?void 0:o[0])||(b=d)}return b&&b/i.length>(a||.8)}({elements:i,paramPercentThreshold:e.sameElementsPercent,ignoreContainers:n}),s=o/i.length>(e.emptyElementsPercent||.8),d=c||s;e.detectCb({blank:d,detectCostTime:performance.now()-t,sampleSerializePoints:a})},sync:e.sync,ignoreContainers:n})},T=(t=!1,n=0,window.addEventListener("load",(function(){n=performance.now(),t=!0}),!0),function(){return{isOnload:t,onloadTime:n}}),_=function(){return!!window.__radarSeedFunc__},S=function(){for(var e=arguments,t=e[0],n=1;n<e.length;n++){var r=e[n];if(r)for(var o in r)t[o]=r[o]}return t},b=function(e,t,n){return void 0===n&&(n={}),(Object.assign||S)({},e,t,n)},h="__yodaBridge__",y="tool",k="__ks_blank_detector_canuse_cb__",w=window,C=!1,D=function(){return C};function E(e){if(D()){var t=e.detectTriggerType;w[h]&&w[h].invoke&&"function"==typeof w[h].invoke&&function(e,t){w[k]=function(e){t(e),w[k]=null};try{w[h].invokeCallback(y,"canIUse",JSON.stringify(e),k)}catch(e){w[k]()}}({namespace:"tool",name:"whiteScreenCheck"},(function(n){n&&1===n.result&&n.canUse&&w[h].invoke("tool","whiteScreenCheck",JSON.stringify({delayMs:0,reportMsg:{url:location.href,detectTriggerType:t,invokeId:e.invokeId||""},needImgUpload:!0,checkTime:"bridge"}),"")}))}}var O=function(){return"visible"===document.visibilityState},P=!1,N=function(e){var t=T(),n=t.isOnload,o=t.onloadTime,i={name:e.radarEventName||r,result_type:e.result_type,message:n?"isOnload":"",extra_info:{url:location.href,isOnload:n,onloadTime:o,sdk_version:s,page_load_duration:performance.now(),detect_trigger_type:e.detectTriggerType,detect_cost_time:e.detectCostTime,sample_serialize_points:e.sampleSerializePoints,invokeId:e.invokeId}};return 1===e.result_type&&(i.extra_info.blank_screen_time=e.blankScreenTime,i.extra_info.error_extra=e.errorGroup),i},G=function(e){e.logImmediate&&window.__radarSeedStore__&&!window.__radarSeedStore__.immediate&&window.__radarSeedStore__.flush()},I=function(e){if(_()){var t=N(b(e,{result_type:1}));window.__radarSeedFunc__.event(t),G({logImmediate:e.logImmediate})}},x=function(e){if(_()){var t=N(b(e,{result_type:0}));window.__radarSeedFunc__.event(t),G({logImmediate:e.logImmediate})}},z=function(e){_()&&window.__radarSeedFunc__.event({name:d,result_type:"info",extra_info:{url:location.href,sdk_version:s,message:e.message}})};P=function(){try{var e=window.__yodaCommonDataObject__.sampleData,t="string"==typeof e?JSON.parse(e):e;if(t){if(t.extra&&void 0!==t.extra.blank){var n=Math.random();return!!t.isHit&&n<=t.extra.blank}return!!t.isHit}return!0}catch(e){return!0}}();var H={debounceDuration:1500,errorGroup:[],apiErrorGroup:[],blankScreen:!0,blankScreenTime:0,detectOptions:{close123SDetect:!0,close1SDetect:!0,close2SDetect:!0,close3SDetect:!0}},F=function(){H.errorGroup=[],H.apiErrorGroup=[]},L=function(e){H[e]&&clearTimeout(H[e]),H[e]=0},M=function(e){void 0===e&&(e={});var t,n=e.options||H.detectOptions||{};return!O()||!P||(t=!0,window.MutationObserver||(t=!1,z({message:"不支持MutationObserver"})),document.elementsFromPoint||(t=!1,z({message:"不支持elementsFromPoint"})),!t)||n.doNotDetect},R=function(e){var t=e.blank,n=e.detectCostTime,r=e.sampleSerializePoints,o=e.pageUnloadTrigger;if(t){var i=H.errorGroup,a=H.apiErrorGroup;if(!H.blankScreen||(o||function(e){var t=e.errorGroup,n=void 0===t?[]:t,r=e.apiErrorGroup,o=void 0===r?[]:r;return!!n.length||!!o.length}({errorGroup:i,apiErrorGroup:a})||T().isOnload)&&!H.hasLogBlankScreen){var c=Date.now();I({blankScreenTime:H.blankScreenTime,detectTriggerType:H.detectTriggerType,errorGroup:H.errorGroup,detectCostTime:n,apiErrorGroup:H.apiErrorGroup,sampleSerializePoints:r,logImmediate:!0,invokeId:c}),-1===u.indexOf(H.detectTriggerType)&&E({detectTriggerType:H.detectTriggerType,invokeId:c}),H.hasLogBlankScreen=!0,F()}H.blankScreen=!0}else H.blankScreen&&(H.pageHasRenderContent||H.hasLogBlankScreen)&&x({detectCostTime:n,detectTriggerType:H.detectTriggerType,sampleSerializePoints:r,logImmediate:!0}),H.blankScreen=!1,H.pageHasRenderContent=!0},B=function(e){H.detecting||(L("detectTimer"),H.blankScreenTime=Date.now(),H.detectTimer=window.setTimeout((function(){if(O()){!function(){H.detecting=!0;v(b(e,{detectCb:function(e){R(e),H.detectTimer=0,H.detecting=!1}}))}()}}),H.debounceDuration))};e.blankStore=H,e.clearDetectTimer=L,e.createDetectTimer=B,e.detectForApiHook=function(e){M()||(H.apiErrorGroup.push({url:e?e.url:"",code:e?e.code:""}),B(H.detectOptions))},e.resetCollectData=F,e.startBlankScreenDetect=function(e){if(void 0===e&&(e={}),!M({options:e})&&!H.hasStartDetecting){var t;t=e.yodaBridgeSampleRate||1,C=Math.random()<=t,H.debounceDuration=e.debounceDuration||1500,H.detectOptions=b(H.detectOptions,e||{}),["error","unhandledrejection"].forEach((function(e){window.addEventListener(e,(function(e){!function(e){if(O()){try{var t=e.event,n=t.reason,r=t.error||(n&&n.message?n:void 0),o=r&&r.message||t.message||t.reason;H.errorGroup.push({name:r&&r.name||t.name,message:o})}catch(e){}B(H.detectOptions)}}({event:e})}),!0)}));var n=function(e){if(!H.pageUnloadHasHandled){H.pageUnloadHasHandled=!0,H.detectTriggerType=e.detectTriggerType,H.blankScreenTime=Date.now();(H.detectTimer||H.blankScreen)&&(H.detectTimer&&L("detectTimer"),v(b(H.detectOptions,{detectCb:function(e){R(b(e,{pageUnloadTrigger:!0}))},sync:!0}))),L(o),L(i),L(a)}};window.addEventListener(u[0],(function(){"visible"===document.visibilityState?(H.pageUnloadHasHandled=!1,H.detectTriggerType="".concat(u[0],"-visible"),B(H.detectOptions)):n({detectTriggerType:u[0]})}),!0),[u[1],u[2],u[3]].forEach((function(e){window.addEventListener(e,(function(){n({detectTriggerType:e})}),!0)})),new MutationObserver((function(t){!O()||e.ignoreElesWhenDomChange&&e.ignoreElesWhenDomChange.length&&!t.some((function(t){return-1===e.ignoreElesWhenDomChange.indexOf(f(t.target))}))||(H.detectTriggerType="mutationObserver",B(H.detectOptions))})).observe(document.body,{childList:!0,subtree:!0}),H.detectOptions.close123SDetect||function(e){var t=function(e){var t=e.detectRes,n=e.detectTriggerType,r=e.blankScreenTime,o=e.radarEventName,i=t.blank,a=t.detectCostTime,c=t.sampleSerializePoints;i?I({radarEventName:o,blankScreenTime:r,detectTriggerType:n,errorGroup:H.errorGroup,detectCostTime:a,apiErrorGroup:H.apiErrorGroup,sampleSerializePoints:c,logImmediate:!0}):x({radarEventName:o,detectCostTime:a,detectTriggerType:n,sampleSerializePoints:c,logImmediate:!0})},n=performance.now();[{timerName:o,close:e.close1SDetect,second:1e3},{timerName:i,close:e.close2SDetect,second:2e3},{timerName:a,close:e.close3SDetect,second:3e3,detectCb:"threeSecondCb"}].concat(e.customSecondsDetect||[]).forEach((function(r,o){if(!r.close&&O()){var i=function(t){r.detectCb&&("function"==typeof r.detectCb?r.detectCb(t):"function"==typeof e[r.detectCb]&&e[r.detectCb](t))},c=r.second-n;if(c>=0)H[r.timerName]=window.setTimeout((function(){if(O()){var e=Date.now();v(b(H.detectOptions,{detectCb:function(n){t({detectRes:n,detectTriggerType:r.timerName,blankScreenTime:e,radarEventName:r.timerName}),H[r.timerName]=0,i(n)}})),r.timerName===a&&E({detectTriggerType:a})}}),c);else if("htmlEnd"!==e.insertHTMLPos){var s={blank:!0,detectCostTime:0,sampleSerializePoints:[]};t({detectRes:s,detectTriggerType:r.timerName,blankScreenTime:Date.now(),radarEventName:r.timerName}),i(s)}}}))}(H.detectOptions),H.hasStartDetecting=!0}}}));</script><script crossorigin="anonymous"> if (window['kConf_' + 'ad.frontend.magnet_engine_blank_detect_config'] && Object.prototype.toString.call(window['kConf_' + 'ad.frontend.magnet_engine_blank_detect_config']).toLowerCase() === '[object object]') { window.ksBlankScreenDetector.startBlankScreenDetect(window['kConf_' + 'ad.frontend.magnet_engine_blank_detect_config']); } else { window.ksBlankScreenDetector.startBlankScreenDetect({"containers":["#app"],"emptyElementsPercent":0.9,"sameElementsPercent":0.9,"kConfKey":"ad.frontend.magnet_engine_blank_detect_config"}); } </script><div id="app"></div> <script crossorigin="anonymous">window.FIREFLY_API = 'p2-ad.adkwai.com'</script> <script crossorigin="anonymous" src="//p2-ad.adkwai.com/udata/pkg/ad-bp/static/bp/assets/polyfill.f3b2e6ae.js"></script> <script crossorigin="anonymous" src="//p2-ad.adkwai.com/udata/pkg/ad-bp/static/bp/assets/framework.7b025853.js"></script> <script crossorigin="anonymous" src="//p2-ad.adkwai.com/udata/pkg/ad-bp/static/bp/assets/kmi.92bd4f0a.js"></script> </body></html>