You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
137 KiB
5 lines
137 KiB
5 years ago
|
try{!function(){window.___baidu_union_||(window.___baidu_union_={}),window.___baidu_union_dup_||(window.___baidu_union_dup_={});var t,e='___delivery___global___counter___';window._SF_&&window._SF_._global_&&window._SF_._global_._ssp?(t=window._SF_._global_._ssp,t.DUP_4_SF=!0,t.destroy=function(){try{top[e]={}}catch(t){window[e]={}}}):t=window._ssp_global=window._ssp_global||{};try{top.location;t.counter=top[e]=top[e]||{}}catch(n){t.counter=window[e]=window[e]||{}}var o={global:t,proxyName:!1,basePath:'https://cpro.baidustatic.com/cpro/ui/dup/'};!function(){var e={name:"oojs",namespace:"",classes:{},noop:function(){},$oojs:function(){var e={};if("undefined"!=typeof window&&window&&"undefined"!=typeof document&&document?(this.runtime="browser",e.global=window):(this.runtime="node",e.global=t),e.proxyName="proxy",e.path="node"===this.runtime?process.cwd()+"/src/":"/src/","undefined"!=typeof o)for(var i in o)i&&o.hasOwnProperty(i)&&(e[i]=o[i]);this.global=e.global,e.proxyName&&(Function.prototype[e.proxyName]=this.proxy),this.setPath(e.path),this.global.oojs=this.global.oojs||this},path:{},pathCache:{},getPath:function(t){var e=t?t.split("."):!1,i=this.path;if(e)for(var n=0,o=e.length;o>n;n++){var s=e[n].toLowerCase();if(!i[s])break;i=i[s]}return i.pathValue},setPath:function(t,e){var i=this.path;if("object"!=typeof t){if(e)for(var n=t.split("."),o=0,s=n.length;s>o;o++){var r=n[o].toLowerCase();i[r]=i[r]||{pathValue:i.pathValue},i=i[r]}else e=t;i.pathValue=e,this.pathCache={}}else for(var a in t)a&&t.hasOwnProperty(a)&&this.setPath(a,t[a])},getClassPath:function(t){if(!this.pathCache[t]){this.pathCache[t]=this.getPath(t)+t.replace(/\./gi,"/")+".js";var e=this.getPath(t),i=e.length-1;e.lastIndexOf("\\")!==i&&e.lastIndexOf("/")!==i&&(e+="/"),this.pathCache[t]=e+t.replace(/\./gi,"/")+".js"}return this.pathCache[t]},loadDeps:function(t,e){e=e||{};var i=t.__deps,n=(t.__namespace,[]);for(var o in i)if(i.hasOwnProperty(o)&&i[o]){var s;if("string"!=typeof i[o]?(t[o]=i[o],t[o]&&t[o].__name&&(s=t[o].__full)):(s=i[o],t[o]=this.find(s)),!s||e[s])continue;if(e[s]=!0,t[o])t[o].__deps&&(n=n.concat(this.loadDeps(t[o],e)));else{if("node"===this.runtime)try{t[o]=require(this.getClassPath(s))}catch(r){n.push(s)}t[o]||n.push(s)}}return n},fastClone:function(t){var e=function(){};e.prototype=t;var i=new e;return i},deepClone:function(t,e){"number"!=typeof e&&(e=10);var i,n=e-1;if(e>0)if(t instanceof Date)i=new Date,i.setTime(t.getTime());else if(t instanceof Array){i=[];for(var o=0,s=t.length;s>o;o++)i[o]=this.deepClone(t[o],n)}else if("object"==typeof t){i={};for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];i[r]=this.deepClone(a,n)}}else i=t;else i=t;return i},proxy:function(t,e){var i=Array.prototype.slice.apply(arguments),n=i.shift(),o="function"==typeof this?this:i.shift();return function(){var t=Array.prototype.slice.apply(arguments);return o.apply(n,t.concat(i))}},find:function(t){var e,i=t.split(".");e=this.classes[i[0]];for(var n=1,o=i.length;o>n;n++){if(!e||!e[i[n]]){e=null;break}e=e[i[n]]}return e},reload:function(t){var e=this.find(t);if(e)if(e.__registed=!1,"node"===this.runtime){var i=this.getClassPath(t);delete require.cache[require.resolve(i)],e=require(i)}else e=this.define(e);else e=this.using(t);return e},create:function(t,e,i,n,o,s){"string"==typeof t&&(t=this.using(t));var r=new t.__constructor(e,i,n,o,s);return r},using:function(t){var e=this.find(t);return e||"node"===this.runtime&&(require(this.getClassPath(t)),e=this.find(t)),e},define:function(t){var e=t.name||"__tempName",i=t.namespace||"";t.__name=e,t.__namespace=i,t.__full=i.length>1?i+"."+e:e,t.__deps=t.deps,t.__oojs=this,t.__constructor=function(t,e,i,n,o){if(this.__clones&&this.__clones.length>0)for(var s=0,r=this.__clones.length;r>s;s++){var a=this.__clones[s];this[a]=this.__oojs.deepClone(this[a])}this.__constructorSource(t,e,i,n,o)},t.__constructorSource=t[e]||this.noop,t.__staticSource=t["$"+e]||this.noop,t.__staticUpdate=function(){var e=[];for(var i in this)if(this.hasOwnProperty(i)){var n=this[i];"object"!=typeof n||null===n||"deps"===i||0===i.indexOf("__"
|
||
|
var t=!0;return this.browser.ie&&(this.browser.ie<7||"BackCompat"===document.compatMode)&&(t=!1),t},setStyle:function(t,e,i){var n=this.dom.g(t);n.style[e]=i},setStyles:function(t,e){for(var i in e)e.hasOwnProperty(i)&&this.setStyle(t,i,e[i]);return t},getDefaultStyle:function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,!1)[e]},isVisible:function(t){return"none"!==this.getDefaultStyle(t,"display")&&"hidden"!==this.getDefaultStyle(t,"visibility")&&100===this.getOpacity(t)},getDebugStyle:function(t){var e=["<div ",'style="position: absolute; right: 0px; top: 0px; z-index: 9999999;line-height:1.2;','font-size: 12px;background:#ff0000;font-weight: 700;">',"BAIDU_AD<br>",t.clientWidth,"*",t.clientHeight,"</div>"].join(""),i=document.createElement("div");i.innerHTML=e;var n=t.style;n.border="1px solid #ff0000",n.boxSizing="broder-box",n.position="relative",t.appendChild(i)},getVisibilityInWin:function(t){for(var e=t,i=this.dom.getWindow(e);e&&e.tagName;){var n="hidden"!==i.getComputedStyle(e,null).visibility;if(!n)return!1;e=e.parentNode}return!0},getVisibility:function(t){var e=this.dom.g(t),i=this.dom.getWindow(e),n=this.getVisibilityInWin(e);if(!n)return!1;for(var o=0,s=10;o++<s&&this.dom.isInIframe(i)&&!this.dom.isInCrossDomainIframe(i)&&i.frameElement;){if(n=this.getVisibilityInWin(i.frameElement),!n)return!1;i=i.parent}return!0},onPageVisible:function(t){this.dom.bind(window,"load",t),this.dom.bind(window,"pageshow",t),document.visibilityState&&this.dom.bind(document,"visibilitychange",t)},offPageVisible:function(t){this.dom.unBind(window,"load",t),this.dom.unBind(window,"pageshow",t),document.visibilityState&&this.dom.unBind(document,"visibilitychange",t)},onPageHidden:function(t){this.dom.bind(window,"unload",t),this.dom.bind(window,"beforeunload",t),this.dom.bind(window,"pagehide",t),document.visibilityState&&this.dom.bind(document,"visibilitychange",t)},offPageHidden:function(t){this.dom.unBind(window,"unload",t),this.dom.unBind(window,"beforeunload",t),this.dom.unBind(window,"pagehide",t),document.visibilityState&&this.dom.unBind(document,"visibilitychange",t)}}),s.define({name:"url",namespace:"dup.common.utility",deps:{dom:"dup.common.utility.dom"},getQueryValue:function(t,e,i){var n=new RegExp("(\\?|&|#)"+e+"=([^&#]*)(&|#)?"),o=t.match(n),s="";return o&&(s=o[2]),i&&(s=decodeURIComponent(s)),s},getTopWindowUrl:function(t){var e=this.dom.getNotCrossDomainTopWindow(t),i="";return this.dom.isInIframe(e)&&(i=e.document.referrer),i=i||e.location.href},getMainDomain:function(t){t=t||document.domain,0===t.indexOf("www.")&&(t=t.substr(4)),"."===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1));var e=["com","cn","net","org","gov","info","la","cc","co","jp","us","hk","tv","me","biz","in","be","io","tk","cm","li","ru","ws","hn","fm","tw","ma","in","vn","name","mx","gd","im"],i=new RegExp("([a-z0-9][a-z0-9\\-]*?\\.(?:"+e.join("|")+")(?:\\.(?:cn|jp|tw|ru|th))?)$","i"),n=t.match(i);return n?n[0]:t},queryToJson:function(t){for(var e,i,n,o,s=t.substr(t.indexOf("?")+1),r=s.split("&"),a=r.length,d={},l=0;a>l;l++)o=r[l].split("="),e=o[0],i=o[1],n=d[e],"undefined"==typeof n?d[e]=i:"[object Array]"==Object.prototype.toString.call(n)?n.push(i):d[e]=[n,i];return d}}),s.define({name:"data",namespace:"dup.common.utility",deps:{lang:"dup.common.utility.lang",dom:"dup.common.utility.dom"},$data:function(){this.pageInfo={}},data:function(){this.topWin=this.dom.getNotCrossDomainTopWindow(),this.globalInfo=this.topWin.BAIDU_SSP__info||(this.topWin.BAIDU_SSP__info={})},forEach:function(t,e){var i,n,o,s=t.length;if("function"==typeof e)for(o=0;s>o&&(n=t[o],i=e.call(t,n,o),i!==!1);o++);return t},putInfo:function(t,e,i){var n,o=i?this.globalInfo:this.pageInfo;if("string"===this.lang.getType(t)){for(var s=t.split("."),r=o;s.length;){var a=s.shift();r[a]=s.length?void 0!==r[a]?r[a]:{}:e,r=r[a]}n=e}return n},removeInfo:function(t,e){var i=e?this.globalInfo:this.pageInfo;switch(this.lang.getType(t)){default:return!1;case"string":for(var n=t.split(".");n.length;){var o=n.shift();if(!n.length||void 0===i[o])ret
|
||
|
e||(e=this.url.getQueryValue(i,this.DUP_PREFIX+t)),e},getInfo:function(){var t,e=this.getValue("sid"),i=this.getValue("mid"),n=this.getValue("vc"),o=+this.getValue("ts"),s=+new Date;return 3e4>=s-o&&(t={sid:e,mid:i,vc:n}),this.getInfo=function(){return t},t},isUnionPreview:function(t){var e=!1;return t?/cpro_template=/gi.test(t)&&(this.data.putInfo("#unionPreviewSwitch",!0),e=!0):e=!!this.data.getInfo("#unionPreviewSwitch"),e},setUnionPreviewData:function(t){this.data.putInfo("#unionPreviewData",t)},getUnionPreviewData:function(){var t=this.data.getInfo("#unionPreviewData");return t?"prev="+encodeURIComponent(t)+"&pt=union":""},clearUnionPreviewData:function(){this.data.removeInfo("#unionPreviewSwitch"),this.data.removeInfo("#unionPreviewData")},getSearchParams:function(t){var e={},i=this.getInfo();return i&&t==i.sid&&(e.mid=i.mid,e.sid=i.vc,this.config.IS_PREVIEW=!0),e}}),s.define({name:"log",namespace:"dup.common.utility",deps:{config:"dup.common.config",lang:"dup.common.utility.lang",event:"dup.common.utility.event",storage:"dup.common.utility.storage"},storageKey:"BAIDU_DUP_log_storage",loadImage:function(t,e){var i=new Image,n="BAIDU_DUP_log_"+Math.floor(2147483648*Math.random()).toString(36);window[n]=i,i.onload=i.onerror=i.onabort=function(){i.onload=i.onerror=i.onabort=null,window[n]=null,i=null,e&&e(this.storageKey,t,!0)},i.src=t},resendLog:function(){var t=this.storage.getItem(this.storageKey);if(t){t=t.split("|");for(var e=0,i=t.length;i>e;e++)this.loadImage(decodeURIComponent(t[e]),this.storage.spliceItem)}},sendLogRequest:function(t){var e=new Image,i=+new Date,n="baidu_dan_log_"+i;window[n]=e,e.onload=e.onerror=e.onabort=function(){try{delete window[n]}catch(t){window[n]=void 0}e=null},t+=t.indexOf("?")>-1?"&":"?",t+="stamp="+Math.random(),e.src=t},sendLog:function(t){t="object"===this.lang.getType(t)?t:{};var e=t.url||this.config.LOG_URL,i=t.data||{},n=t.option||"now",o=this.lang.serialize(i);switch(e+=(e.indexOf("?")>=0?"&":"?")+o+(o?"&":"")+"rdm="+ +new Date,n){case"now":this.loadImage(e);break;case"block":break;case"unload":default:this.storage.addItem(this.storageKey,e,!0),this.event.bind(window,"unload",function(){this.loadImage(e,this.storage.spliceItem)})}},sendEclickLog:function(t,e,i,n){if(!t||!e)return"";var o="//eclick.baidu.com/"+t+"?type="+e;o+=i?"&key="+i:"",o+=n?n:"",this.sendLog({url:o,option:"now"})}}),s.define({name:"monitor",namespace:"dup.business",deps:{config:"dup.common.config",log:"dup.common.utility.log"},expLog:function(t){var e,i=t.id?t.id:"",n=t.async?t.async:"",o=t.type?t.type:"ssplog",s=t.pos?t.pos:"",r=t.status?t.status:"",a=t.mes?encodeURIComponent(t.mes):"",d=t.exps?t.exps:"";e="mip"===o?this.config.SBD_LOG:this.config.LOG_URL,e+=["?type="+o,"id="+i,"pos="+s,"status="+r,"async="+n,"mes="+a,"exps="+d,"from=ssp"].join("&"),this.log.sendLogRequest(e)},sendLog:function(t){if(t.response){var e=t.response.pdb_deliv.deliv_des,i=e._html,n=i&&i.monitorUrl;if(n){var o=new Image,s="log"+ +new Date;window[s]=o,"http"==n.substr(0,4).toLowerCase()?("http://"==n.substr(0,7).toLowerCase()&&(n=n.replace("http://","//")),"https://"==n.substr(0,8).toLowerCase()&&(n=n.replace("https://","//"))):n="//"+n;var r=function(){o.onload=o.onerror=o.onabort=null;try{delete window[s]}catch(t){window[s]=void 0}};o.onload=o.onerror=o.onabort=r,o.src=n}}}}),s.define({name:"painterSelector",namespace:"dup.business",deps:{asserter:"dup.ui.assertion.asserter"},getPainter:function(t){if(t.response){var e=this.asserter.assert(t);if(e)return"dup.ui.painter."+e;for(var i=t.response,n=["bottomSearchBar","inlayFix","baiduRec","dynamicFloat","insideText","mobile.inlayFix","mobile.float","mobile.insideText"],o=0,r=n.length;r>o;o++){var a=s.using("dup.ui.assertion."+n[o]);if(a&&a.assert(i))return"dup.ui.painter."+n[o]}e||(t.errors=t.errors||[],t.errors.push("painterName is empty"))}}}),s.define({name:"businessParam",namespace:"dup.business.parameter",deps:{config:"dup.common.config",preview:"dup.business.preview",dom:"dup.common.utility.dom",origentation:"dup.business.origentation"},paramsList:[{key:"dcb",value:funct
|
||
|
if("invokeMethod"===i.type)switch(i.method){case"expand":e.expandAd(i.parameters[0]);break;case"close":e.collapseAd(i.parameters[0])}}var e=this;(window.addEventListener||window.attachEvent)&&JSON&&JSON.parse&&this.event.bind(window,"message",t),this.event.bind(window,"scroll",function(){e.adjustPosWhenViewportChanged()}),this.event.bind(window,"resize",function(){e.adjustPosWhenViewportChanged()})},adjustPosWhenViewportChanged:function(){var t=this.scrollObserver;for(var e in t)for(var i in t[e]){var n=t[e][i];if(!n.isExpand)return;var o=n.origin,s=o.getElementsByTagName("iframe")[0],r=(n.targetWidth,n.targetHeight,n.originWidth);n.originHeight;switch(e){case"up":var a=parseInt(this.getComputedWidth(o),10);s.style.left=0;break;case"down":var a=parseInt(this.getComputedWidth(o),10);s.style.left=0;break;case"left":var a=parseInt(this.getComputedWidth(o));s.style.right=a-r+"px";break;case"right":var a=parseInt(this.getComputedWidth(o));s.style.left=0}}},$expand:function(){this.observerObjs=[],this.expandStatus={},this.timers={},this.hasInit=!1,this.maxExpandTime=5e3,this.canFixed=this.style.canFixed(),this.scrollObserver={up:{},down:{},left:{},right:{}}},registerScrollSubject:function(t,e,i,n,o,s,r){if(!this.scrollObserver[t][e]){var a=this.scrollObserver[t][e]={};a.isExpand=!0,a.origin=i,a.originWidth=n,a.originHeight=o,a.targetWidth=s,a.targetHeight=r}},expand2Up:function(t,e,i,n,o,s){this.registerScrollSubject("up",t,e,i,n,o,s);var r=e.getElementsByTagName("iframe")[0];r.style.bottom=0,r.style.left=0},expand2Down:function(t,e,i,n,o,s){this.registerScrollSubject("down",t,e,i,n,o,s);var r=e.getElementsByTagName("iframe")[0];r.style.top=0,r.style.left=0},expand2Left:function(t,e,i,n,o,s){this.registerScrollSubject("left",t,e,i,n,o,s);var r=e.getElementsByTagName("iframe")[0],a=parseInt(this.getComputedWidth(e));r.style.bottom=0,r.style.right=a-i+"px"},expand2Right:function(t,e,i,n,o,s){this.registerScrollSubject("right",t,e,i,n,o,s);var r=e.getElementsByTagName("iframe")[0];r.style.bottom=0,r.style.left=0},expandAd:function(t){if(!this.expandStatus[t]){this.expandStatus[t]=!0;var e=this.slot.getSlotInfoByRawId(t),i=e.response.placement.container,n=i.width,o=i.height,s=e.response.placement.container.slide,r=s.slideWidth,a=s.slideHeight,d=1e3*parseInt(s.extendTime,10),l=parseInt(s.slideMode,10),c=parseInt(s.direction,10),h=e.containerId,u=this.dom.g(h),p=u.getElementsByTagName("iframe")[0];if(1===c||2===c?(p.setAttribute("height",a),p.style.height=a+"px"):3!==c&&4!==c||(p.setAttribute("width",r),p.style.width=r+"px"),2==l&&2==c||2==l&&4==c)switch(c){case 2:p.setAttribute("height",a),p.style.height=a+"px";break;case 4:p.setAttribute("width",r),p.style.width=r+"px"}else switch(u.style.position="relative",p.style.position="absolute",u.style.height=o+"px",c){case 1:this.expand2Up(t,u,n,o,r,a);break;case 2:this.expand2Down(t,u,n,o,r,a);break;case 3:this.expand2Left(t,u,n,o,r,a);break;case 4:this.expand2Right(t,u,n,o,r,a)}var m=this;this.timers[t]=setTimeout(function(){m.expandStatus[t]&&m.collapseAd(t)},Math.min(d))}},collapseAd:function(t){if(this.expandStatus[t]){this.expandStatus[t]=!1,clearTimeout(this.timers[t]);var e=this.slot.getSlotInfoByRawId(t),i=e.response.placement.container,n=i.width,o=i.height,s=e.containerId,r=this.dom.g(s),a=r.getElementsByTagName("iframe")[0];r.style.position="",r.style.width="",r.style.height="",r.style.top="",r.style.left="",a.style.position="",a.style.display="",a.style.top="",a.style.left="",a.style.right="",a.style.width="",a.style.height="",a.setAttribute("height",o),a.setAttribute("width",n);for(var d in this.scrollObserver)for(var l in this.scrollObserver[d])l===t&&(this.scrollObserver[d][l].isExpand=!1)}},observer:function(t){var t=this.slot.getSlotInfoByRawId(t.slotId),e=t.containerId,i=this.dom.g(e);i.style.textAlign="left",this.hasInit||(this.hasInit=!0,this.init())},fire:function(t,e){var i,n=function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=this.slot.getSlotInfoByRawId(e),s=o.response.placement.container.slide;s&&(i=s.trigger);var r=n(i)?i[0]:i?i:0,a=["","BE
|
||
|
e.style["-o-transition"]=t+" 0.75s",e.style[t]=-1*i+"px";var n=e.id,o=n&&n+"_closebtn_inside",s=document.getElementById(o);"top"===t?(s.style.marginTop="3px",s.innerText=String.fromCharCode(65088)):(s.style.marginTop="-4px",s.innerText=String.fromCharCode(65087))},validate:function(t){var e=!0,i="bd_close_"+this.id,n=this.cookie.get(i,window);return 2===t.closeType&&n&&(e=!1),e},render:function(t){if(!this.slot.adInfoIsAvailable(t))return!1;this.slot.setStatus(t.id,this.config.STATUS_RENDERED),this.id=t.id,t.displayType="inlay-mobile";var e=this.processSlotInfo(t);if(this.validate(e)){this.monitor.sendLog(t);var i=this.richMaterial.render(t);if(!i){var n=this.dom.g(t.containerId);if(n&&(t.width=e.width,t.height=e.height,this.containerFilter(t))){this.decorateContainer(n,e);var o=this.parseCloseButtonHtml(e);if(2===e.sizeType){var r=t.response.pdb_deliv.deliv_des;if(r&&r._html){r=r._html;var a=r.type;"text"!==a&&"image"!==a&&"flash"!==a||(r.width=t.width,r.height=t.height)}this.data.defineOnce("BAIDU_SSP_floatShow",s.proxy(this,this.showFloatAd))}var d={id:t.id,width:n.clientWidth,height:e.height,closeBtnHtml:o,iframeHtml:this.frame.getFrameHTML(t)},l=this.parseHtmlSnippet(d);n.innerHTML=l,window.location.href.indexOf("DUP_DEBUG_FLAG")>-1&&this.style.getDebugStyle(n);var c=this.dom.g(t.containerId+"_closebtn");c&&this.dom.bind(c,"click",s.proxy(this,this.closeBtnOnClickHandler,t,e)),this.hiddenFloatAd.render(t),t.isPdbAd||this.slot.setStatus(t.id,this.config.STATUS_FINISH)}}}},showFloatAd:function(t,e,i){this.body=document.body,e="2"===e?"top":"bottom",this.dom.bind(this.body,"touchstart",s.proxy(this,this.touchStart)),this.dom.bind(this.body,"touchend",s.proxy(this,this.touchEnd,t,e,i))},touchStart:function(t){this.startY=t.targetTouches[0]&&t.targetTouches[0].pageY},touchEnd:function(t,e,i,n){this[i]=this[i]||!1,this.pageY=t.changedTouches[0]&&t.changedTouches[0].pageY;var o=this.pageY-this.startY;if(-10>o&&!this[i]&&n===this.upSlideAnimation||o>10&&!this[i]&&n===this.downSlideAnimation){this[i]=!0;var s=document.getElementById(e);this.showAdContainer(i,s)}},getFloatingState:function(t,e){return t.styleOpenApi&&t.styleOpenApi.floatingState?t.styleOpenApi.floatingState:2===e?this.upSlideAnimation:this.directDisplay}}),s.define({name:"clbDelivery",namespace:"dup.business.delivery",deps:{slot:"dup.business.slot",frame:"dup.business.frame","interface":"dup.business.interface",config:"dup.common.config",log:"dup.common.utility.log",origentation:"dup.business.origentation",data:"dup.common.utility.data"},clbSlotArr:{BAIDU_CLB_fillSlot:!0,BAIDU_CLB_singleFillSlot:!0,BAIDU_CLB_fillSlotWithSize:!0,BAIDU_CLB_fillSlotAsync:!0,BAIDU_CLB_preloadSlots:!0},launch:function(){var t;try{var e=window.BAIDU_CLB_SLOT_ID;window.BAIDU_CLB_SLOT_ID=null,e&&(t=this.slot.createSlot({slotId:e,productLine:"clb",isAsync:!1}),this.slot.addSlot(t),this.slot.process());for(var i in this.clbSlotArr)"BAIDU_CLB_preloadSlots"===i?this.data.defineOnce(i,s.proxy(this,this.reSet)):this.data.defineOnce(i,s.proxy(this,this.getClbFillSlot));this.updateApi()}catch(n){}},reSet:function(){},getClbFillSlot:function(t,e){var i;t&&!e&&(i=this.slot.createSlot({slotId:t,productLine:"clb",isAsync:!1})),t&&e&&(i=this.slot.createSlot({slotId:t,productLine:"clb",isAsync:!0}),i.containerId=e),this.slot.addSlot(i),this.slot.process()},updateApi:function(){try{this.data.defineOnce("BAIDU_CLB_prepareMoveSlot",s.proxy(this,this.prepareMove)),this.data.defineOnce("BAIDU_DUP_addSlotStatusCallback",s.proxy(this.origentation,this.origentation.addSlotStatusCallback)),this.data.defineOnce(this.config.DUP_PREFIX+"renderFrame",s.proxy(this.frame,this.frame.renderFrame)),this.data.defineOnce("BAIDU_CLB_setConfig",s.proxy(this.data,this.data.putConfig)),this.data.defineOnce("BAIDU_CLB_addOrientation",s.proxy(this.origentation,this.origentation.addOrientation)),this.data.defineOnce("BAIDU_CLB_addOrientationOnce",s.proxy(this.origentation,this.origentation.addOrientationOnce)),this.data.defineOnce("BAIDU_CLB_setOrientationOnce",s.proxy(this.origentation,this.origentation.setOrientationOnce
|