").css({position:"fixed",left:0,top:0,"z-index":9001}).appendTo("body")),this.$box},_getMask:function(){return this.$mask||(this.$mask=i("
").css({position:"fixed",top:0,left:0,right:0,bottom:0,background:"#000",opacity:".6","z-index":9e3}).appendTo("body")),this.$mask}};t.exports=a},vBeg:function(t,e,n){"use strict";var i=n(1);t.exports={bindCommonKeyEvents:function(t,e,n){"undefined"==typeof n&&(n=e,e=""),n=i.extend({onConfirm:i.noop,onNext:i.noop,onPrev:i.noop,onPrevTab:i.noop,onTab:i.noop,onEsc:i.noop},n),i(t).off("keydown.aria").on("keydown.aria",e,function(t){switch(t.keyCode){case 13:case 32:n.onConfirm.call(this,t);break;case 37:case 38:n.onPrev.call(this,t);break;case 39:case 40:n.onNext.call(this,t);break;case 9:n.onTab.call(this,t);break;case 27:n.onEsc.call(this,t)}})}}},Agcf:function(t,e,n){"use strict";var i=n(1),o=n("YHhD"),a=n("YYEp"),r=n("zUp6"),s=768;t.exports=i.extend({},a,{doLogin:function(){var t=/^\/(login|register)/.test(location.pathname)?"":"?s_url="+encodeURIComponent(location.href);location.href="https://"+this.DOMAIN_MAIN+"/login"+t},doLogout:function(t){var e=i.extend({toLoginPage:!1,onBeforeToLoginPage:i.noop},t),n="/",r=a.COOKIE_DOMAIN;o.delCookie("skey",n,r),o.delCookie("uin",n,r),o.delCookie("nick",n,r),o.delCookie("ownerUin",n,r),o.delCookie("userinfo",n,r),o.delCookie("appid",n,r),o.delCookie("moduleId",n,r),o.delCookie("projectId",n,r),o.delCookie("regionId",n,r),e.toLoginPage&&(e.onBeforeToLoginPage(),location.href="https://"+this.DOMAIN_MAIN+"/login?s_url="+encodeURIComponent(location.href))},doRegister:function(){var t=/^\/(login|register)/.test(location.pathname)?"":"?s_url="+encodeURIComponent(location.href);location.href="https://"+this.DOMAIN_MAIN+"/register"+t},goToIntlHome:function(){location.href="https://"+this.DOMAIN_MAIN_INTL},isNarrowMode:function(){return r.getWindowWidth()<=s},onReceive:function(t){switch(t){case"resize":this.onResize();break;case"scroll":this.onScroll();break;case"resizeNarrow":this.onResizeNarrow();break;case"resizeWide":this.onResizeWide()}},onScroll:function(){},onResize:function(){},onResizeNarrow:function(){},onResizeWide:function(){},onMaskClick:function(){},showMask:function(){var t="qcGlobalMask",e=i("#"+t);e.length||(e=i('
').attr("id",t).css({position:"fixed","z-index":999}).appendTo(i("body")),e.on("click",i.proxy(this.onMaskClick,this))),e.is(":visible")||e.show()},hideMask:function(){var t="qcGlobalMask",e=i("#"+t);e.is(":visible")&&e.hide()}})},zUp6:function(t,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={debounce:function(t,e,n){var i,o,a,r,s,c=function c(){var h=(new Date).getTime()-r;h
=0?i=setTimeout(c,e-h):(i=null,n||(s=t.apply(a,o),i||(a=o=null)))};return function(){a=this,o=arguments,r=(new Date).getTime();var h=n&&!i;return i||(i=setTimeout(c,e)),
h&&(s=t.apply(a,o),a=o=null),s}},tmpl:function(){var t={},e=function(t){return 0==t?t:(t=(t||"").toString(),t.replace(/&(?!\w+;)/g,"&").replace(//g,">").replace(/\"/g,"""))},i=function(t,e){if(e)for(var n in e){var i=new RegExp("<%#\\s?"+n+"%>","g");t=t.replace(i,e[n])}return t};return function o(a,r,s){var c=!/\W/.test(a);!c&&(a=i(a,s));var h=c?t[a]=t[a]||o(i(document.getElementById(a).innerHTML,s)):new Function("obj","_escape","var _p='';with(obj){_p+='"+a.replace(/[\r\t\n]/g," ").split("\\'").join("\\\\'").split("'").join("\\'").split("<%").join("\t").replace(/\t-(.*?)%>/g,"'+$1+'").replace(/\t=(.*?)%>/g,"'+_escape($1)+'").split("\t").join("';").split("%>").join("_p+='")+"';} return _p;"),l=function(t){return"object"==("undefined"==typeof t?"undefined":n(t))&&(t.QCCONSOLE_HOST=window.QCCONSOLE_HOST,t.QCMAIN_HOST=window.QCMAIN_HOST,t.QCBUY_HOST=window.QCBUY_HOST),h(t,e)};return r?l(r):l}}(),isIE:function(){return/MSIE/i.test(navigator.userAgent)},getWindowWidth:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},shuffle:function(t){if(!Array.isArray(t))return t;for(var e=[].slice.apply(t),n=e.length-1;n>0;n--){var i=Math.floor(Math.random()*(n+1)),o=e[n];e[n]=e[i],e[i]=o}return e}}},IdoP:function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(1),a=n("lj6U"),r=n("2PxX"),s=r.pinyinUtil,c=12,h=20,l=200,u=200,d={normal_width:300,product_width_max:950,product_width_min:850,product_addon_width:240},p={init:function(t){return this.opts=t,this.mountComponent(),this.initVariables(),this.setupSubscriber(),this.start(),this},mountComponent:function(){o(this.opts.rawContent).appendTo("body")},initVariables:function(){if(this.$win=o(window),this.$leftNavSwitcher=o("#qcLeftNavSwitcher"),this.$leftNav=o("#qcLeftNav"),this.$leftNavCol=o(".J-qcLeftNavCol"),this.$fstLeftNav=o("#qcFstLeftNav"),this.$sndLeftNav=o("#qcSndLeftNav"),this.$trdLeftNav=o("#qcTrdLeftNav"),this.$subscriber=null,0===this.$leftNavSwitcher.length)throw new Error("Please make sure the left navigation its id named qcLeftNavSwitcher exists!");this.winWidth=this.$win.width(),this.leftSwitcherHeight=this.$leftNavSwitcher.outerHeight(!0),this.leftNavColWidths=[0].concat(o.map(o(".J-qcLeftNavCol"),function(t){return o(t).width()})),this.leftNavColPosLeft=this.leftNavColWidths.reduce(function(t,e,n){return 0!=n&&(t[n]=t[n]+t[n-1]),t},this.leftNavColWidths),this.activePath=[]},setupSubscriber:function(){var t=this;t.$subscriber=o({}),t.$subscriber.off().on("activePathChange",function(){t.performLeftNavTransform()})},start:function(){this.resetLeftNavHeight(),this.setupPCNavigation(),this.setupCurrNavPath(),this.setupProductSearchBar(),this.extractSearchSourceList(this.EXTRACT_SEARCH_SOURCE_TYPE.solution)},onResize:function(){this.resetLeftNavHeight()},onScroll:function(){this.resetLeftNavHeight()},commitActivePath:a.debounce(function(t){this.activePath=t,this.$subscriber.trigger("activePathChange")},160),resetLeftNavHeight:function(){var t=this.$leftNavSwitcher.get(0).getBoundingClientRect().top,e=t+this.leftSwitcherHeight;if(e>0){this.$leftNav.css("top",e);var n=this.$win.height()-e;this.$leftNav.height(n),this.$leftNavCol.height(n)}},setupPCNavigation:function(){var t=this;t.$leftNav.show(),t.$fstLeftNav.css({left:-l+"px"}).hide(),t.$sndLeftNav.css({left:"0px"}).hide(),t.$trdLeftNav.css({left:u+"px"}).hide(),t.$leftNavCol.find("[data-root], .J-sndLevelMenu, .J-trdLevelMenu").show(),t.$leftNavSwitcher.off().on("mouseenter",function(){t.commitActivePath([0]),a.checkImgLazyLoad(t.$trdLeftNav)}).on("mouseleave",function(){t.commitActivePath([])}),t.$leftNav.off().on("mouseenter",function(){t.commitActivePath([0])}).on("mouseleave",function(){t.commitActivePath([])}).on("mouseenter",".J-qcLeftNavCol",function(){var e=o(this),n=e.data("col");if(n>1){var i=t.activePath.slice(0,n-1),a=e.find("[data-parent]:visible").data("parent");i.push(a),t.commitActivePath(i)}}).on("mouseenter",".J-qcLeftNavCol .menu-link",function(){var e=o(this),n=e.closest(".J-qcLeftNavCol").data("col"),i=e.data("id"),a=e.data("action"),r=t.activePath.slice(0,n),s=e.data("layout");3!=n&&("expand"==a&&r.push(i),s&&t.$trdLeftNav.addClass("product-menu"),setTimeout(function(){t.commitActivePath(r)},0))}),a.simulateScrollY({$ctx:t.$leftNav,targetSelector:".J-qcLeftNavCol, .J-qcLeftPdMenuWrapper",forceSimulate:!0})},performLeftNavTransform:function(){this.resetLeftNavHeight();var t=this,e=+t.$fstLeftNav.is(":visible"),n=+t.$sndLeftNav.is(":visible"),i=+t.$trdLeftNav.is(":visible"),o=e+n+i,a=t.activePath,r=a.length,s=160,c=[];if(3==r){t.$trdLeftNav.find("[data-parent]:visible").data("parent");t.$trdLeftNav.find("[data-parent],[data-root]").hide();var h=t.$trdLeftNav.find('[data-parent="'+a[2]+'"]');t.adaptTrdColProductWidth(h),h.show().closest("[data-root]").show(),t.$trdLeftNav.scrollTop(0),t.$trdLeftNav.find(".J-qcLeftPdMenuWrapper").scrollTop(0).scrollLeft(0)}if(r>=2){t.$sndLeftNav.find("[data-parent]:visible").data("parent");t.$sndLeftNav.find("[data-parent]").hide(),t.$sndLeftNav.find('[data-parent="'+a[1]+'"]').show()}if(2==r&&t.$sndLeftNav.scrollTop(0),t.$fstLeftNav.find("[data-id]").removeClass("actived").find("a").attr("aria-expanded",!1),t.$sndLeftNav.find("[data-id]").removeClass("actived").find("a").attr("aria-expanded",!1),t.$leftNavSwitcher.toggleClass("actived",a.length>0),t.$leftNavSwitcher.attr("aria-expanded",a.length>0),a[1]&&t.$fstLeftNav.find('[data-id="'+a[1]+'"]').addClass("actived").find("a").attr("aria-expanded",!0),a[2]&&t.$sndLeftNav.find('[data-id="'+a[2]+'"]').addClass("actived").find("a").attr("aria-expanded",!0),r>o){var d=Array.apply(null,Array(o)).map(function(){return 0}),p=Array.apply(null,Array(Math.abs(r-o))).map(function(){return s});c=d.concat(p),t.$fstLeftNav.show().stop().animate({left:"0px"},c[0],function(){t.$leftNav.width(l),r>1&&t.$sndLeftNav.show().stop().animate({left:l+"px"},c[1],function(){t.$leftNav.width(l+u),r>2&&t.$trdLeftNav.show().stop().animate({left:l+u+"px"},c[2],function(){t.$leftNav.width(l+u+t.$trdLeftNav.width()),t.adaptTrdColProductHeight()})})})}if(r=3&&3>r;f&&t.$leftNav.width(l+u),t.$trdLeftNav.stop().animate({left:l+u-t.$trdLeftNav.width()+"px"},f?s:0,function(){t.$trdLeftNav.removeClass("product-menu"),t.$trdLeftNav.hide(),f=o>=2&&2>r,f&&t.$leftNav.width(l),r<2&&t.$sndLeftNav.stop().animate({left:"0px"},f?s:0,function(){t.$sndLeftNav.hide(),f=o>=1&&1>r,f&&t.$leftNav.width(0),r<1&&t.$fstLeftNav.stop().animate({left:-l+"px"},f?s:0,function(){t.$fstLeftNav.hide()})})})}},adaptTrdColProductHeight:function(){var t=this.$leftNavCol.height(),e=this.$trdLeftNav.find(".J-qcPdDropDownMenu"),n=e.closest(".c-scrollbar").eq(0),i=n.width(),o=e.outerWidth(!0),a=i>=o?0:c,r=t-a;this.$trdLeftNav.find(".J-qcPdMenuMain, .J-qcPdMenuRt").css({minHeight:r})},adaptTrdColProductWidth:function(t){var e=t.find(".J-qcPdDropDownMenu");if(e.length){var n=this.$win.width()-l-u-h;n>d.product_width_max?(e.outerWidth(d.product_width_max),t.width("auto")):n-1&&(i=""),/^(\/product\/[\w-]+)(?:\/[\w-]+)?$/.test(location.pathname)&&(e="https://cloud.tencent.com"+RegExp.$1);var a=o("#qcTrdLeftNav").find("[href"+i+'="'+e+'"]').not("[href*=match_ignore]").not(function(){return o(this).closest(".J-qcPdMenuRt").length>0}),r=a.filter(function(){return"product-hot"===o(this).closest(".J-qcLeftPdMenuWrapper").data("parent")});r.length&&(a=a.not(function(){return"product-hot"===o(this).closest(".J-qcLeftPdMenuWrapper").data("parent")}),r.eq(0).addClass("curr"));for(var s=0,c=a.length;s0?o("#qcSndLeftNav").find('.menu-area .menu-link[data-id="'+p+'"]'):o("#qcSndLeftNav").find(".menu-item [href"+i+'="'+e+'"],.menu-area-tit [href'+i+'="'+e+'"]').not("[href*=match_ignore]").eq(0).parent(".menu-item,.menu-area-tit");var v=f.closest(".nav-dropdown-menu-inner").data("parent"),m=o("#qcFstLeftNav").find('.menu-area .menu-link[data-id="'+v+'"]');if([m,f,d].forEach(function(t){t.length>0&&t.addClass("curr")}),d.length>0)if(d.hasClass("hasitem")){var g=d.find('[href="'+t+'"]').parent();g.is("li")&&!g.hasClass("menu-item")&&g.addClass("curr")}else d.hasClass("J-qcPdMenuChildProduct")&&d.closest(".p-menu-p-card").find(">.J-qcPdMenuProduct").addClass("curr")},setupProductSearchBar:function(){var t=this.extractSearchSourceList(this.EXTRACT_SEARCH_SOURCE_TYPE.product),e=this.$leftNav.find(".J-qcPdMenuSearchBar");e.each(function(){new r({el:this,sourceList:t})})},EXTRACT_SEARCH_SOURCE_CONFIG:{product:{WINDOW_STORAGE_KEY:"__PRODUCT_SEARCH_SOURCE_LIST",extractRawList:function(){var t=[],e=o("#qcLeftNav .J-qcPdMenuBox");return e.each(function(){var e=o(this),n=o.trim(e.find(".J-qcPdMenuCategory").text()),i=e.find(".J-qcPdMenuProduct,.J-qcPdMenuChildProduct");i.each(function(){var e=o(this),i=e.html().trim(),a=e.data("desc"),r=e.attr("href"),s=e.data("search-keywords");t.push({title:i,desc:a,keywords:s,url:r,parent:n})})}),t}},solution:{WINDOW_STORAGE_KEY:"__SOLUTION_SEARCH_SOURCE_LIST",extractRawList:function(){var t=[],e=o("#qcSndLeftNav.J-qcLeftNavCol").find('[data-parent="solution"] .menu-area .menu-link'),n={};e.each(function(){n[o(this).data("id")]=o(this).text().trim()});var i=o("#qcLeftNav #qcTrdLeftNav").find('[data-root="solution"] .nav-dropdown-menu-inner');return i.each(function(){var e=o(this).find(".menu-item"),i=n[o(this).attr("data-parent").trim()];e.each(function(){var e=o(this).find("a"),n=e.find("h3").html().trim(),a=e.children("span").text().trim(),r=e.attr("href"),s=o(this).data("search-keywords");if(t.push({title:n,keywords:s,desc:a,url:r,parent:i}),o(this).hasClass("hasitem")){var c=o(this).find(".menu-item-child ul li a");c.each(function(){var e=o(this),n=e.text().trim(),r=e.attr("href"),s=e.data("desc"),c=e.data("search-keywords");t.push({title:n+"\u89e3\u51b3\u65b9\u6848",keywords:c,desc:s||a,url:r,parent:i})})}})}),t}}},EXTRACT_SEARCH_SOURCE_TYPE:{product:"product",solution:"solution"},extractSearchSourceList:function(t){function e(t){var e=/\/([^\/]+?)($|\?)/,n=e.exec(t);return n&&n.length>1?n[1]:""}function n(t){var n=t.title,i=t.desc,o=t.keywords,a=t.url,c=t.parent;if(n&&i&&a){var h=//g;n=n.replace(h,"");var l=n.replace(/\s/g,"").toLowerCase(),u=c?c.replace(/\s/g,"").toLowerCase():"";if(r.indexOf(n)<0&&r.indexOf(a)<0)return r.push(n),r.push(a),{title:n,desc:i,url:a,slug:e(a),pinyin:s.getPinyin(l),pinyinFirstLetter:s.getFirstLetter(l).join(""),parent:c,parentPinyin:s.getPinyin(u),keywords:o}}}var o=this.EXTRACT_SEARCH_SOURCE_CONFIG[t],a=window[o.WINDOW_STORAGE_KEY];if(a&&"object"==("undefined"==typeof a?"undefined":i(a)))return a;var r=[],c=o.extractRawList(),h=c.map(n).filter(Boolean);return window[o.WINDOW_STORAGE_KEY]=h,h}};t.exports=p},"2PxX":function(t,e,n){"use strict";function i(t){this.opts=t||{},this.handleItemClick=t.handleItemClick,this.$el=this.$productSearchBar=o(t.el),this.$searchInput=this.$(t.input||".J-qcTopNavSearchInput"),this.$searchList=this.$(t.list||".J-qcTopNavAllSearchList"),this.searchItemSelector=t.item||".J-qcTopNavSearchItem",this.handleNoTipsEnterPressed=t.handleNoTipsEnterPressed,this.sourceList=t.sourceList||[],this.$searchInput.val(""),this.tipsList=[],t.renderList&&(this.renderTipsList=t.renderList),this.renderTipsList(this.tipsList),this.bindEvents(),this.doRecommend=a.debounce(this.doRecommend,150)}var o=n(1),a=n("lj6U"),r=n("Mjm+"),s=160;i.prototype={constructor:i,getKeywords:function(){return o.trim(this.$searchInput.val()).toLowerCase().replace(/(\'|\s)/g,"")},bindEvents:function(){var t=this;t.$searchList.on("mouseenter",this.searchItemSelector,function(){if(t.preventMouseEnter)return void(t.preventMouseEnter=!1);var e=o(this).parent().children(t.searchItemSelector).index(o(this));t.setActivedTips(e)}).on("mousewheel DOMMouseScroll",function(t){var e=t.originalEvent,n=e.wheelDelta||-e.detail;this.scrollTop+=25*(n<0?1:-1),t.preventDefault()}).on("mousedown",this.searchItemSelector+" a",function(t){location.href=o(this).attr("href"),t.preventDefault()}),t.$searchInput.on("search",function(){var e=t.getKeywords();return e&&t.goToSearchPage(),!1}).on("blur",function(e){t.slideUpTipsList()}).on("input",function(e){t.doRecommend()}).on("keydown",function(e){var n=e.which;switch(n){case 38:case 40:return t.getKeywords()?t.moveInTipsList(38===n?-1:1):t.blurInput(),!1}}).on("keyup",function(e){var n=e.which,i=t.getKeywords();switch(n){case 27:t.slideUpTipsList();break;case 13:i&&t.goToSearchPage();break;case 37:case 39:break;case 38:case 40:}})},moveInTipsList:function(t){var e=this.activedTips+t;if(0<=e&&eh?(this.preventMouseEnter=!0,this.$searchList.scrollTop(c+s-h)):o-1){e.each(function(){o(this).removeClass("actived")});var n=e.eq(t);n.addClass("actived"),this.activedTips=t}},goToSearchPage:function(){if(this.tipsList&&this.activedTips>-1&&this.activedTips-1&&(i[e.url]=e),t.matchPinyin(n,e.pinyin)&&(a[e.url]=e),e.slug&&e.slug.toLowerCase().indexOf(n)>-1&&(h[e.url]=e),e.desc&&e.desc.replace(/\s/g,"").toLowerCase().indexOf(n)>-1&&(c[e.url]=e),e.parent&&e.parent.replace(/\s/g,"").toLowerCase().indexOf(n)>-1&&(r[e.url]=e),t.matchPinyin(n,e.parentPinyin)&&(s[e.url]=e),e.pinyinFirstLetter&&e.pinyinFirstLetter.indexOf(n)>-1&&(l[e.url]=e),e.keywords&&e.keywords.replace(/\s/g,"").toLowerCase().indexOf(n)>-1&&(u[e.url]=e)});var d=o.extend({},i,a,h,c,r,s,l,u),p=t.values(d);t.renderTipsList(p)},matchPinyin:function(t,e){if(!t||!e||!o.isArray(e)||e.length<1)return!1;var n=e.join("").replace(/\s/g,"").toLowerCase();if(0===n.indexOf(t))return!0;if(n.indexOf(t)>0)for(var i=0,a=e.length;i0){var r=[];e.forEach(function(t){a.forEach(function(e){var n=t.slice();n.push(e),r.push(n)})}),e=r}else e.forEach(function(t){t.push(o)})}var s=[];return e.forEach(function(t){t.forEach(function(t){s.push(t)})}),s}function o(t){if(!t||/^ +$/g.test(t))return"";var e=[];e.push("");for(var n=0,i=t.length;n0){var s=[];e.forEach(function(t){r.forEach(function(e){r.length>0&&s.push(t+e[0])})}),e=s}else e=e.map(function(t){return t+o})}return 0===e.indexOf("")&&e.shift(),a(e)}function a(t){for(var e=[],n={},i=0;i950?950:a<850?850:a,e.width(Math.min(r,a)),e.find(".J-qcTopNavBubbleMenuCon").css({minWidth:800}),this.$topNavSheetWrapper.find(".J-qcPdMenuMain").width("auto");var s=this.$topNavSheetWrapper.find(".J-qcPdMenuMain, .J-qcPdMenuRt"),c=s.closest(".J-qcTopNavBubbleInner").height();s.css({minHeight:c})},bindEvents:function(){function t(){var t=$(this),n=t.data("id"),i=t.data("action");"expand"==i?e.activedSheetId=n:e.activedSheetId=0,e.emit("sheetStateChange")}var e=this,n=e.$topNavList.find(".J-qcTopNavDropdownWrapper");e.$topNavList.on("mouseenter",".J-qcTopNavItem",t).on("mouseenter",".J-qcTopNavMore",function(){e.activedSheetId=0,e.emit("sheetStateChange"),n.show()}).on("mouseleave",function(){e.activedSheetId=0,e.emit("sheetStateChange")}).on("mouseleave",".J-qcTopNavMore",function(){n.hide()}).on("click",".J-qcTopNavMore .J-qcTopNavOption",function(){t.apply(this,arguments),n.hide()}),e.$topNavSheetWrapper.on("mouseenter","[data-parent]",function(){e.activedSheetId=$(this).data("parent"),e.emit("sheetStateChange")}).on("mouseleave","[data-parent]",function(){e.activedSheetId=0,e.searchBars&&e.searchBars.forEach(function(t){return t.resetState()}),e.isNeedRender=!0,e.emit("sheetStateChange")}),e.$topNavSheetWrapper.find(".J-qcTopNavBubbleMenuLt").menuAim({activate:e.activePdItem.bind(e),rowSelector:".J-qcTopNavBubbleMenuItem"}),e.$topNavSndOpera.on("mouseleave",".J-qcTopNavProfile",function(){$(this).find(".J-qcTopNavProfileDropdown").hide()}).on("mouseenter",".J-qcTopNavProfile",function(){e.isLogin&&$(this).find(".J-qcTopNavProfileDropdown").show()}),e.$topNavMOpera.on("click",".J-qcTopNavProfile",function(){$(".J-topNavfooter").hide(),$(".J-topNavfooter[data-type="+(e.isLogin?"has-login":"not-login")+"]").show(),$(".J-qcTopNavNickname").parents("li.dropdown-mini-item")[e.isLogin?"show":"hide"](),$(".J-qcTopNavBtnLogoutWrapper")[e.isLogin?"show":"hide"](),e.expandMUserProfile(),e.hideMCtrl()}).on("click",".J-qcTopNavMMenu",function(){e.isMMenuCloseMode()?e.closeMCtrlDetail():(e.expandMMenu(),e.hideMCtrl())}),e.$topNavMUserProfile.on("click",".J-doLoginBtn",function(){e.doLogin()}).on("click",".J-doRegistryBtn",function(){e.doRegister()}),e.$topNavMMenu.on("click",".J-qcMenuTitle",function(){var t=$(this),n=t.data("action")||"toggle";switch(n){case"link":return!0;case"lang":var i=t.data("lang")||"cn";switch(i){default:case"cn":location.href="https://cloud.tencent.com";break;case"intl":e.doLogout(),e.goToIntlHome()}return!1;default:case"toggle":var o=t.next(),a=!t.hasClass("actived");return t.toggleClass("actived"),o.length&&a&&(o.find(".J-qcMenuTitle").removeClass("actived"),o.find(".J-qcMenuList").hide()),o.slideToggle("fast"),!1}}),e.$nav.on("click",".J-qcTopNavBtnRegister",function(){return e.doRegister(),!1}).on("click",".J-qcTopNavBtnLogin",function(){return e.doLogin(),!1}).on("click",".J-qcTopNavBtnLogout",function(){return e.doLogout({toLoginPage:!0,onBeforeToLoginPage:function(){e.resetLoginState()}}),e.resetLoginState(),!1}).on("click",".J-qcTopNavListMore",function(){var t=e.$topNavMain.hasClass("collapsed");if(e.$topNavMain.toggleClass("collapsed"),t)e.$topNavList.css("left","0px");else{var n=$.map(e.$topNavList.find(".J-qcTopNavItem"),function(t){return $(t).width()}).reduce(function(t,e){return t+e},0),i=e.$topNavList.parent(".J-qcTopNavListWrapper").innerWidth();e.$topNavList.css("left",i-n)}}),s.simulateScrollY({$ctx:this.$topNavBubble,targetSelector:".J-qcTopNavBubbleMenuConWrap",step:30,forceSimulate:!0}),e.bindUpDownKeydownEvent()},resetLoginState:function(){this.isLogin=!1,this.userInfo={},this.renderUserProfile(),this.closeMCtrlDetail()},setupSearchWidget:function(){var t=this;t.searchBarM=o.newInstance({el:t.$topNavMSearch[0],triggerEl:t.$topNavMSearchOpen[0],closeEl:null,onOpen:function(){t.$topNavMSearch.fadeIn("fast"),t.hideMCtrl(),t.showMask()},onClose:function(){t.$topNavMSearch.fadeOut("fast"),t.showMCtrl(),t.hideMask()}})},setupProductSearchBar:function(){var t=this,e=void 0,n=Date.now(),i=10,o={product:{WINDOW_STORAGE_KEY:"__PRODUCT_SEARCH_SOURCE_LIST",el:".J-qcPdMenuSearchBar"},solution:{WINDOW_STORAGE_KEY:"__SOLUTION_SEARCH_SOURCE_LIST",el:".J-qcSolutionMenuSearchBar"}};e=setInterval(function(){var a=window[o.product.WINDOW_STORAGE_KEY]||[],r=window[o.solution.WINDOW_STORAGE_KEY]||[],s=a.length&&r.length&&"function"==typeof window.ProductSearchBar;(s||(Date.now()-n)/1e3>i)&&(clearInterval(e),s&&(t.searchBars=[o.product,o.solution].map(function(e){var n=e.WINDOW_STORAGE_KEY,i=e.el;return new window.ProductSearchBar({el:t.$topNavSheetWrapper.find(i),sourceList:window[n]})})))},1e3)},setupCurrNavPath:function(){var t=this,e=location.href,n=[],i=this.$topNavMain.find(".J-qcTopNavItem").find('[href="'+e+'"]'),o=i.eq(0).parent();if(0===o.length){var a=function(e){if(e){var n=t.$topNavSheetWrapper.find(".J-qcTopNavBubbleMenuLt .J-qcTopNavBubbleMenuItem");n.filter("[data-menuroot="+e+"]").addClass("curr")}};/^(\/product\/[\w-]+)(?:\/[\w-]+)?$/.test(location.pathname)&&(e="https://cloud.tencent.com"+RegExp.$1);var r=this.$topNavSheetWrapper.find(".J-qcTopNavBubbleMenuCon,.J-qcTopNavMenuList"),s=r.find('[href="'+e+'"]').not("[href*=match_ignore]").not(function(){return $(this).closest(".J-qcPdMenuRt").length>0}),c=s.filter(function(){return"hot"===$(this).closest(".J-qcPdMenuCon").data("menuparent")});c.length&&(s=s.not(function(){return"hot"===$(this).closest(".J-qcPdMenuCon").data("menuparent")}),c.eq(0).addClass("curr"));var h=e.split("?",1)[0];0===s.length&&(s=r.find('[href^="'+h+'"]'));for(var l=0,u=s.length;l.J-qcPdMenuProduct").addClass("curr"),a(p.closest(".J-qcPdMenuCon").data("menuparent"))):p.hasClass("J-qcPdMenuProduct")?(n=p,a(p.closest(".J-qcPdMenuCon").data("menuparent"))):n=p.parents(".menu-item");var f=n.parents(".J-qcTopNavBubbleInner").data("parent");o=this.$topNavList.children('[data-id="'+f+'"]')}if(0===o.length){var v=/^(?:https?:\/\/)?[a-zA-Z.\-_0-9]+\/([a-zA-Z.\-_0-9]+)\/.*$/,m=v.exec(e);if(m&&m.length>1){var g=m[1];o=this.$topNavMain.find('.J-qcTopNavItem[data-id="'+g+'"]')}}0===o.length&&(0===e.indexOf("https://market.cloud.tencent.com")?o=this.$topNavMain.find('.J-qcTopNavItem[data-id="market"]'):0===e.indexOf("https://buy.cloud.tencent.com/price")?o=this.$topNavMain.find('.J-qcTopNavItem[data-id="price"]'):0===e.indexOf("https://partners.cloud.tencent.com")&&(o=this.$topNavMain.find('.J-qcTopNavItem[data-id="cooperate"]'))),[n,o].forEach(function(t){t.length>0&&t.addClass("curr")})},setupSubscriber:function(){var t=this;t.$navPC.on("sheetStateChange",s.debounce(function(e,n,i){"noNeedRender"===i&&(t.isNeedRender=!1),"needRender"===i&&(t.isNeedRender=!0),t.performSheetTransform(n)},160))},emit:function(){this.$navPC.trigger.apply(this.$navPC,arguments)},start:function(){this.renderUserProfile(),this.setupCurrNavPath(),this.fetchUserInfo(),this.buildMMenu()},onResize:function(){this.setupBubbleMaxHeight()},onResizeNarrow:function(){this.$topNavMMenu.hide(),this.hideMask()},onResizeWide:function(){this.isMMenuCloseMode()&&this.closeMCtrlDetail(),this.hideMask()},onMaskClick:function(){},expandMUserProfile:function(){this.$topNavMUserProfile.is(":visible")||($("body").css({overflow:"hidden"}),this.$topNavMUserProfile.fadeIn(200),this.showMask())},collapseMUserProfile:function(){this.$topNavMUserProfile.is(":visible")&&($("body").css({overflow:"initial"}),this.$topNavMUserProfile.fadeOut(200),this.hideMask())},expandMMenu:function(){this.$topNavMMenu.is(":visible")||(this.showMask(),this.$topNavMMenu.fadeIn("fast"))},collapseMMenu:function(){this.$topNavMMenu.is(":visible")&&(this.$topNavMMenu.stop().fadeOut("fast"),this.hideMask())},renderUserProfile:function(){var t=this,e=t.isLogin,n=e?(t.userInfo.msgInfo||{}).unread||0:0,i=e&&t.userInfo.accountInfo?(t.userInfo.accountInfo.voucher||{}).leftAmount||0:0,o=n>0||i>0;t.$nav.find(".J-qcTopNavNickname").text(t.userInfo.nick),t.$nav.find(".J-qcTopNavBtnLogoutWrapper").toggle(e),t.$nav.find(".J-qcTopNavBtnLogin").toggle(!e),t.$nav.find(".J-qcTopNavBtnRegister").toggle(!e),e?t.$topNavSndOpera.find(".J-qcTopNavProfile").show():t.$topNavSndOpera.find(".J-qcTopNavProfile").hide(),t.$nav.find(".J-qcTopNavProfile i").toggleClass("has-msg",o),t.$nav.find(".J-qcTopNavUserMsg").text(n).toggle(o),i&&(t.$nav.find(".J-qcTopNavUserVoucher").text("\u4ee3\u91d1\u5238("+i+")").show(),t.$nav.find(".J-qcTopNavMUserVoucherNum").text(i),t.$nav.find(".J-qcTopNavMUserVoucher").show()),t.$topNavSndOpera.css("visibility","visible")},fetchUserInfo:function(){var t=this;t.isLogin&&r.getUserInfo({params:{info:["msgInfo","accountInfo"]},succCb:function(e){t.isLogin=!0,t.userInfo=e,t.renderUserProfile()},errCb:function(e){t.isLogin=!1,t.userInfo={},t.renderUserProfile()}})},performSheetTransform:function(t){var e=this,t=t||this.activedSheetId,n=$(window).width(),i=e.$topNavList.find('[data-id="'+t+'"]'),o=e.$topNavSheetWrapper.find('[data-parent="'+t+'"]'),a=!!o.data("layout"),r=void 0;if(a)r=n<1367?824:1034,s.checkImgLazyLoad(o);else{var c=o.find(".menu-list-col").length,h=n<=100?180:n<=1250?200:231,l=10;r=c*h+2*l}var u=n<=1200?10:n<=1560?(n-1150)/5:90,d=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(t&&o.length){var p=i.offset().left+Math.floor(i.width()/2),f=Math.max(p-Math.floor(r/2),u),v=p-f;a&&e.setupPdBubbleLayout(f),o.css("left",v).show().siblings().hide(),e.isNeedRender&&e.$topNavSheetWrapper.css({"padding-left":0,left:f}),d?e.$topNavSheetWrapper.show():e.$topNavSheetWrapper.stop(!0,!0).slideDown(200),e.afterSheetSlideDown()}else{d?e.$topNavSheetWrapper.hide():e.$topNavSheetWrapper.stop(!0,!0).slideUp(160);var m=e.$topNavSheetWrapper.find(".J-qcTopNavBubbleMenuItem");if(m.length){var g=m.eq(0);e.activePdItem(g)}}},activePdItem:function(t){var e=$(t),n=this;e.addClass("actived").siblings(".J-qcTopNavBubbleMenuItem").removeClass("actived");var i=e.data("menuroot");n.$topNavSheetWrapper.find(".J-qcPdMenuCon,.J-qcPdMenuRt").hide();var o=n.$topNavSheetWrapper.find(".J-qcPdMenuCon[data-menuparent="+i+"]"),a=n.$topNavSheetWrapper.find(".J-qcPdMenuRt[data-menuparent="+i+"]"),r=n.$topNavSheetWrapper.find(".J-qcTopNavBubbleMenu");o.children().length>3?r.addClass("c-more-cols"):r.removeClass("c-more-cols"),o.css("display","block"),a.css("display","block"),this.it%5===0||(this.it||(this.it=0),this.it++),o.closest(".J-qcTopNavBubbleMenuConWrap").scrollTop(0).scrollLeft(0),n.searchBars&&n.searchBars.forEach(function(t){return t.blurInput()})},afterSheetSlideDown:function(){self.searchBars&&self.searchBars.forEach(function(t){return t.onSheetSlideDown()});var t=this.$topNavSheetWrapper.find(".J-qcPdMenuMain, .J-qcPdMenuRt"),e=t.closest(".J-qcTopNavBubbleInner").height();t.css({minHeight:e})},bindUpDownKeydownEvent:function(){var t=this,e=60;this.$win.on("keydown",function(n){if(t.activedSheetId){var i=n.which,o=t.$topNavBubble.filter("[data-parent="+t.activedSheetId+"]"),a=o.scrollTop();switch(i){case 38:a>0&&(o.scrollTop(a-Math.min(a,e)),n.preventDefault());break;case 40:var r=0;o.children().each(function(){r+=$(this).outerHeight()});var s=r-a-o.height();s>0&&(o.scrollTop(a+Math.min(s,e)),n.preventDefault())}}})},parseNavigationData:function(){function t(t,e){var n=a.find('[data-root="'+t+'"]'),i=n.find(".J-fstLevelTitle"),o={title:i.html(),link:e};return i.data("productlayout")?(o.children=[],$.map(n.find(".J-qcLeftPdMenuWrapper"),function(t){var e=$(t).find(".J-sndLevelHiddenTitle");if(e.data("flatmobile")){var n={title:$.trim(e.text()),weight:parseInt(e.data("mweight"))||0};n.children=$.map($(t).find(".J-qcPdMenuProduct"),function(t){var e=$(t),n={title:e.html().trim(),link:$.trim(e.prop("href")||""),hotrep:$.trim(e.attr("hotrep")||"")};return n}),o.children.push(n)}else $.map($(t).find(".J-qcPdMenuBox"),function(t){var e=$(t).find(".J-qcPdMenuCategory"),n={title:e.text(),weight:parseInt(e.data("mweight"))||0};n.children=$.map($(t).find(".J-qcPdMenuProduct"),function(t){var e=$(t),n={title:e.html().trim(),link:$.trim(e.prop("href")||""),hotrep:$.trim(e.attr("hotrep")||"")},i=e.siblings(".p-menu-p-card-bd").find(".J-qcPdMenuChildProduct");return i.length&&(n.children=$.map(i,function(t){var e=$(t),n={title:$.trim(e.text()),link:$.trim(e.prop("href")||""),hotrep:$.trim(e.attr("hotrep")||"")};return n})),n}),n.children.length&&o.children.push(n)})}),c(o.children,function(t,e){return t.weight>=e.weight})):o.children=$.map(n.find(".J-sndLevelTitle"),function(t){var e=$(t).next(".J-sndLevelMenu"),n={title:$(t).html().trim()};return n.children=$.map(e.find(".menu-item"),function(t){var e=$(t),n=e.find("a"),i={title:n.find("h3").html().trim(),link:(n.prop("href")||"").trim(),hotrep:(n.attr("hotrep")||"").trim()};return e.hasClass("hasitem")&&(i.children=$.map(e.find(".menu-item-child a"),function(t){var e=$(t),n={title:e.text().trim(),link:(e.prop("href")||"").trim(),hotrep:(e.attr("hotrep")||"").trim()};return n})),i}),n}),o}function e(t,e){function n(t){var i=$(t),o=i.find(".J-qcMenuTitle:eq(0)").text().trim(),a=[],r=i.children(".J-qcMenuList");return a=r.length?$.map(r.find(".menu-item, .menu-link"),function(t){var e=$(t),n=e.find("a"),i=$(t).hasClass("menu-item")?n.find("h3").text().trim():n.text().trim();return{title:i,link:(n.attr("href")||"").trim(),hotrep:(n.attr("hotrep")||"").trim()}}):$.map(i.children(".menu-area"),n),{title:o,link:e,children:a}}var i=o.find('[data-parent="'+t+'"]');return n(i.children(".menu-area")[0])}var n=[],i=$("#qcFstLeftNav"),o=$("#qcSndLeftNav"),a=$("#qcTrdLeftNav");try{n=$.map(i.find('[data-action="expand"]'),function(n){var i=$(n),a=i.data("id"),r=o.find('[data-parent="'+a+'"]'),s=r.data("children"),c=i.data("link");return"external"===s?t(a,c):e(a,c)})}catch(t){console.warn("Navigation parse error",t),n=[]}return n},buildMMenu:function(){var t='\t\t\t<% list.forEach(function(fstItem) { %>\t\t\t\t\t\t\t\t<% }); %>\t\t\t',e=this.parseNavigationData();if(e.length){var n=s.tmpl(t,{list:e});return void this.$topNavMMenu.prepend(n)}var i=this,o=Date.now(),a=5,r=setInterval(function(){var e=i.parseNavigationData();if(e.length||(Date.now()-o)/1e3>a){clearInterval(r);var n=s.tmpl(t,{list:e});i.$topNavMMenu.prepend(n)}},500)},collapseMSearchBar:function(){this.searchBarM&&"function"==typeof this.searchBarM.isOpenState&&this.searchBarM.isOpenState()&&this.searchBarM.close()},hideMCtrl:function(){this.$topNavMMenuOpen.addClass(h),this.$topNavMSearchOpen.fadeOut("fast"),this.$topNavMUserProfileOpen.fadeOut("fast")},showMCtrl:function(){this.$topNavMMenuOpen.removeClass(h),this.$topNavMSearchOpen.fadeIn("fast"),this.$topNavMUserProfileOpen.fadeIn("fast")},closeMCtrlDetail:function(){this.collapseMUserProfile(),this.collapseMMenu(),this.collapseMSearchBar(),this.showMCtrl()},isMMenuCloseMode:function(){return this.$topNavMMenuOpen.hasClass(h)}});t.exports=l},gEze:function(t,e){"use strict";!function(t){function e(e){var n=t(this),i=null,o=[],a=null,r=null,s=t.extend({rowSelector:"> li",submenuSelector:"*",submenuDirection:"right",tolerance:75,enter:t.noop,exit:t.noop,activate:t.noop,deactivate:t.noop,exitMenu:t.noop},e),c=3,h=300,l=function(t){o.push({x:t.pageX,y:t.pageY}),o.length>c&&o.shift()},u=function(){r&&clearTimeout(r),s.exitMenu(this)&&(i&&s.deactivate(i),i=null)},d=function(){r&&clearTimeout(r),s.enter(this),m(this)},p=function(){s.exit(this)},f=function(){v(this)},v=function(t){t!=i&&(i&&s.deactivate(i),s.activate(t),i=t)},m=function t(e){var n=g();n?r=setTimeout(function(){t(e)},n):v(e)},g=function(){function e(t,e){return(e.y-t.y)/(e.x-t.x)}if(!i||!t(i).is(s.submenuSelector))return 0;var r=n.offset(),c={x:r.left,y:r.top-s.tolerance},l={x:r.left+n.outerWidth(),y:c.y},u={x:r.left,y:r.top+n.outerHeight()+s.tolerance},d={x:r.left+n.outerWidth(),y:u.y},p=o[o.length-1],f=o[0];if(!p)return 0;if(f||(f=p),f.xd.x||f.yd.y)return 0;if(a&&p.x==a.x&&p.y==a.y)return 0;var v=l,m=d;"left"==s.submenuDirection?(v=u,m=c):"below"==s.submenuDirection?(v=d,m=u):"above"==s.submenuDirection&&(v=c,m=l);var g=e(p,v),$=e(p,m),w=e(f,v),N=e(f,m);return gN?(a=p,h):(a=null,0)};n.mouseleave(u).find(s.rowSelector).mouseenter(d).mouseleave(p).click(f),t(document).mousemove(l)}t.fn.menuAim=function(t){return this.each(function(){e.call(this,t)}),this}}(jQuery)},E6Nf:function(t,e){"use strict";function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return t<=e};if(!t instanceof Array||0===t.length)return t;if("function"!=typeof e)throw new Error("compareFn is not a function!");var n=function(t,n,i){for(var o=t[n];n