!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="//<%=CSS_DOMAIN%>/qcloud/main/scripts/",e(0)}({0:function(t,e,n){"use strict";var i=n(1),o=function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},a=768,r={TOP_NAV_FIRST_LEVEL:{selector:"#qcTopNavFstLevel",component:n("iEML")},LEFT_NAV:{winContentKey:"__QCCOMPONENT_LEFTNAV__",selector:"#qcLeftNavSwitcher",component:n("IdoP")},TOP_NAV_SND_LEVEL:{winContentKey:"__QCCOMPONENT_TOPNAV__",selector:"#qcTopNavSndLevelSheetContainer",component:n("EZWm")}};i.extend(e,{init:function(){this.initComponents(),this.bindGlobalEvents(),this.currentMode=o()>a?1:0},initComponents:function(){this.components=[];var t=this,e=[r.TOP_NAV_FIRST_LEVEL,r.LEFT_NAV,r.TOP_NAV_SND_LEVEL];e.forEach(function(e){var n=i(e.selector);if(0!==n.length){var o={selector:e.selector};if(e.winContentKey){var a=window[e.winContentKey];if(!a||!a.content)return void console.warn("qcmain::loaderjs:\n\tdata js for '"+e.selector+"' is not loaded!");o.rawContent=a.content}t.components.push(e.component.init(o))}})},bindGlobalEvents:function(){var t=this,e=i(window);e.off("scroll.qccomponent").on("scroll.qccomponent",function(){t.components.forEach(function(t){t.onScroll&&t.onScroll(arguments)})}),e.off("resize.qccomponent").on("resize.qccomponent",function(){t.components.forEach(function(e){e.onResize&&e.onResize(arguments);var n=o();n<=a&&1==t.currentMode&&(t.currentMode=0,e.onResizeNarrow&&e.onResizeNarrow()),n>a&&0==t.currentMode&&(t.currentMode=1,e.onResizeWide&&e.onResizeWide())})})}}),window.QCComponent=e},1:function(t,e){t.exports=jQuery},iEML:function(t,e,n){"use strict";var i=n(1),o=n("z6Rq"),a=n("Agcf"),r=n("lj6U"),s=i.extend({},a,{init:function(t){return this.opts=t,this.$root=i("#qcTopNavFstLevel"),0===this.$root.length?void console.warn("qcmain::loaderjs::topnav_firstlevel:\n\tno selector `qcTopNavFirstLevel` found!"):(this.nosearch=1===+this.$root.data("nosearch"),this.nolang=1===+this.$root.data("nolang"),this.noleftnav=1===+this.$root.data("noleftnav"),this.nohome=1===+this.$root.data("nohome"),this.mountComponent(),this.initVariables(),this.bindEvent(),this)},mountComponent:function(){this.$root.html(this.getTemplate())},bindEvent:function(){var t=this;t.$(".J-qcTopNavFstLevelSearch, .J-qcTopNavFstLevelSearchIcon").on("click",function(e){e.stopPropagation();var n=t.$(".J-placeholderSearchWord").text();n&&t.goToSearchPage(n)})},goToSearchPage:function(t){var e=location.pathname,n=0===e.indexOf("/document"),i=n?"7_1":"1_1";location.href="https://"+r.getRealHostname()+"/search/"+encodeURIComponent(t)+"/"+i},initVariables:function(){var t=this;if(!this.nosearch){this.$topNavSearch=i("#qcTopNavSearchBar");var e=t.$(".J-qcTopNavSearchOpen"),n=t.$(".J-qcTopNavSearchClose");t.searchBar=o.newInstance({el:t.$topNavSearch[0],triggerEl:e[0],closeEl:n[0],onOpen:function(){t.showMask()},onClose:function(){t.hideMask()}})}this.nolang||(this.$langSwitcher=this.$(".J-qcTopNavFirstLevelLangSwitcher"),this.$langDropDown=this.$langSwitcher.find(".J-qcTopNavLangDropdown"),this.$langSwitcher.on("mouseenter",function(){t.$langDropDown.show()}).on("mouseleave",function(){t.$langDropDown.hide()}).on("click",".J-qcTopNavLangItem",function(){var e=i(this).data("type");return"intl"==e&&(t.doLogout(),t.goToIntlHome()),!1}))},onResizeNarrow:function(){this.searchBar&&"function"==typeof this.searchBar.isOpenState&&this.searchBar.isOpenState()&&this.searchBar.close()},onResizeWide:function(){},getTemplate:function(){var t='\n\t\t\t\n\t\t\t\n\t\t',e='\n\t\t\t\n\t\t\t\t \u4e91\u670d\u52a1\u5668CVM\n\t\t\t\t\n\t\t\t\n\t\t\t',n='\n\t\t\t\n\t\t\t',i='\n\t\t\t
\n \n
\n\t\t';return'\n\t\t\t
\n\t\t\t\t'+(this.noleftnav?"":t)+'\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t'+(this.nosearch?"":e)+"\n "+(this.nohome?"":i)+'\n\t\t\t\t
\n\t\t\t\t\t'+(this.nolang?"":n)+'\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
'},onMaskClick:function(){var t=this;t.isNarrowMode()||t.searchBar.isOpenState()&&t.searchBar.close()},showMask:function(){var t="qcGlobalMaskPC",e=i("#"+t);e.length||(e=i('
').attr("id",t).css({position:"fixed","z-index":1e3}).appendTo(this.$root.parent()),e.on("click",i.proxy(this.onMaskClick,this))),e.show()},hideMask:function(){var t="qcGlobalMaskPC",e=i("#"+t);e.hide()},$:function(t){return this.$root?this.$root.find(t):i(t)}});t.exports=s},z6Rq:function(t,e,n){"use strict";var i=n("lj6U"),o=n("pZfc"),a=n("vBeg"),r={init:function(t){return this.opts=t||{},this.$el=this.$searchBar=$(t.el),this.$trigger=$(t.triggerEl),this.$closer=$(t.closeEl),this.$searchBox=this.$(".J-qcSearchBox"),this.$iptSearch=this.$(".J-qcIptSearch"),this.$btnCloseSearch=this.$(".J-qcBtnCloseSearch"),this.$btnDoSearch=this.$(".J-qcBtnDoSearch"),this.$hotWordWrapper=this.$(".J-qcSearchBoxHotWordWrapper"),this.$hotWordList=this.$(".J-qcSearchBoxHotWordList"),this.$searchListWrapper=this.$(".J-qcSearchBoxResultWrapper"),this.$searchList=this.$(".J-qcSearchBoxResultList"),this.tipsList=[],this.activedTips=-1,this.setupHotWords(),this.bindEvents(),this},bindEvents:function(){var t=this;this.$searchBox.on("keyup",function(e){27==e.keyCode&&(t.close(),t.$trigger.length>0&&t.$trigger.focus())}),t.$iptSearch.on("search",function(){var e=$.trim(t.$iptSearch.val());return e&&t.goToSearchPage(e),!1}).on("input",function(e){var n=t.searchKeyword=$.trim(t.$iptSearch.val());n?t.doRecommand(n):(t.tipsList=[],t.renderTipsList([]))}).on("keyup",function(e){var n=e.which,i=$.trim(t.$iptSearch.val());switch(n){case 27:t.close();break;case 13:if(i)t.$searchList.find(".curr").length?location.href=t.$searchList.find(".curr a").attr("href"):t.goToSearchPage(i);else if(t.$hotWordList.find(".curr").length){var o=t.$hotWordList.find(".curr a").data("keyword");t.goToSearchPage(o)}break;case 37:case 39:break;case 38:case 40:t.moveInTipsList(38==n?-1:1),e.preventDefault()}}).on("click",function(){t.open()}),t.$trigger.on("click",function(){t.open()}),this.$btnDoSearch.on("click",function(){var e=$.trim(t.$iptSearch.val());return e&&t.goToSearchPage(e),$(this).blur(),!1}),this.$btnCloseSearch.on("click",function(){return t.close(),!1}),this.$searchBar.on("click",".J-qcSearchBoxHotWordItem a,.J-qcSearchBoxSuggestWordItem a",function(){var e=($(this),$(this).data("keyword"));t.goToSearchPage(e)}),a.bindCommonKeyEvents(this.$iptSearch,{onTab:function(e){e.shiftKey&&t.$closer.length>0&&(t.$closer.focus(),e.preventDefault())}}),a.bindCommonKeyEvents(this.$btnDoSearch,{onTab:function(e){!e.shiftKey&&t.$closer.length>0&&(t.$closer.focus(),e.preventDefault())}}),a.bindCommonKeyEvents(this.$closer,{onTab:function(e){e.shiftKey?t.$btnDoSearch.focus():t.$iptSearch.focus(),e.preventDefault()}})},renderTipsList:function(t){var e=this,t=t||[],n='',o="";t.length?(o=t.map(function(t){return i.tmpl(n,t)}).join(""),e.$searchList.html(o),e.$hotWordWrapper.hide(),e.$searchListWrapper.show()):e.searchKeyword?(e.$searchListWrapper.hide(),e.$hotWordWrapper.hide()):(e.$searchListWrapper.hide(),e.$hotWordWrapper.show())},moveInTipsList:function(t){var e=this.searchKeyword?this.$searchList:this.$hotWordList,n=e.children().length;if(n){var i,o=e.find(".curr").index();i=o===-1?t>0?t-1:n+t:o+t,i===n||i===-1?e.find(".curr").removeClass("curr"):e.find("li:eq("+i+")").addClass("curr").siblings().removeClass("curr")}},doRecommand:i.debounce(function(){var t=this,e=t.searchKeyword;o.jsonpGetter({url:"https://"+i.getRealHostname()+"/search/ajax/searchtips",data:{kwd:e,type:1,page:1},callbackName:"callback",success:function(n){0==n.code&&e===t.searchKeyword&&(t.tipsList=n.data.dataList,t.activedTips=-1,t.renderTipsList(n.data.dataList))}})},200),goToSearchPage:function(t){var e=location.pathname,n=0===e.indexOf("/document"),o=n?"7_1":"1_1";location.href="https://"+i.getRealHostname()+"/search/"+encodeURIComponent(t)+"/"+o},resetState:function(){this.$iptSearch.val("").blur(),this.$searchBar.removeClass("searchbar-show"),this.searchKeyword=null,this.tipsList=[],this.renderTipsList()},setupHotWords:function(){try{var t=$(".J-qcSearchData"),e=JSON.parse(t.val()||"{}"),n=i.shuffle(e.hotWords||[]).slice(0,e.max),o='',a=n.map(function(t){return i.tmpl(o,{keyword:t})}).join("");this.$hotWordList.html(a)}catch(t){console.error("setup search hot words fail:",t)}},open:function(){this.$searchBar.addClass("searchbar-show"),this.opts.onOpen&&this.opts.onOpen(),this.$iptSearch.focus()},close:function(){this.resetState(),this.setupHotWords(),this.opts.onClose&&this.opts.onClose()},$:function(t){return this.$searchBar.find(t)}};t.exports={$searchBar:r,setup:function(){return this.$searchBar.init.apply(this.$searchBar,arguments),this},isOpenState:function(){return this.$searchBar.$el.hasClass("searchbar-show")},resetState:function(){this.$searchBar.resetState(this.$searchBar,arguments)},open:function(){this.$searchBar.open(this.$searchBar,arguments)},close:function(){this.$searchBar.close(this.$searchBar,arguments)},newInstance:function(t){var e=$.extend(!0,{},this);return e.setup(t),e}}},lj6U: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("YHhD"),a=n(1);t.exports={vsub:function(t,e){return(""+t).replace(/\$\{([^\{\}]+)\}/g,function(t,n,i){return null==(i=(e||{})[n])?"":i})},query:function(t){return t=String(t).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),location.search.slice(1).match(RegExp("(?:^|&)"+t+"(?:=([^&#]*)?|[&#]|$)"))?String(RegExp.$1||"").replace(/\+/g," "):void 0},i18n:function(t){return function(e){return e=e||"zh",function(n,o){o=o||"";var a=t&&t[n]&&t[n][e]?t[n][e]:n;return"object"===("undefined"==typeof o?"undefined":i(o))?this.vsub(a,o):a+o}}},isMobile:function(){for(var t=navigator.userAgent.toLowerCase(),e=["android","ipad","iphone","windows phone"],n=0;n/g,">").replace(/\"/g,"""))},n=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 i(o,a,r){var s=!/\W/.test(o);!s&&(o=n(o,r));var c=s?t[o]=t[o]||i(n(document.getElementById(o).innerHTML,r)):new Function("obj","_escape","var _p='';with(obj){_p+='"+o.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;"),h=function(t){return c(t,e)};return a?h(a):h}}(),getVcode:function(){return"//"+this.getRealHostname()+"/captcha?t="+(new Date).getTime()},getRealHostname:function(){var t=location.hostname;return t.indexOf("qcloud.com")!=-1?"www.qcloud.com":t.indexOf("cloud.tencent.com")!=-1?"cloud.tencent.com":"www.qcloud.com"},getCookieDomain:function(){var t=location.hostname;return t.indexOf("qcloud.com")!=-1?".qcloud.com":t.indexOf("cloud.tencent.com")!=-1?".cloud.tencent.com":".qcloud.com"},getUin:function(){var t=o.get("uin")||"";return t.replace(/^o0*/,"")},getCsrfCode:function(){var t=o.get("skey")||o.get("p_skey"),e="";if(t){for(var n=5381,i=0,a=t.length;i=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}},isInWechat:function(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1},sleep:function(t){return new Promise(function(e){return setTimeout(e,t)})},simulateScrollY:function(t){var e=t.$ctx,n=t.targetSelector,i=t.step,o=void 0===i?30:i,r=t.innerScrollSelector,s=void 0===r?".c-scrollbar":r,c=t.forceSimulate,h=void 0!==c&&c,l=function(t,e){if(!s||!a(t).find(s).is(":visible")){var n=e.originalEvent||e,i=n.wheelDelta||-n.detail;t.scrollTop+=(i<0?1:-1)*o}},u="function"==typeof _&&"function"==typeof _.throttle?_.throttle(l,10):l,d=function(t){return function(e){(h||this.offsetHeight2&&void 0!==arguments[2]?arguments[2]:200;a("html, body").not(":animated").animate({scrollTop:t},n,null,function(){if(e&&history&&"function"==typeof history.pushState){var t=location.href.replace(/#[\s\S]*$/,"");history.pushState({url:t,hash:e},null,t+"#"+e)}})},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},hashCode:function(t){var e,n,i=0;if(0===t.length)return i;for(e=0;e1){if(a=t({path:"/"},i.defaults,a),"number"==typeof a.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*a.expires),a.expires=s}try{r=JSON.stringify(o),/^[\{\[]/.test(r)&&(o=r)}catch(t){}return o=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,a.expires&&"; expires="+a.expires.toUTCString(),a.path&&"; path="+a.path,a.domain&&"; domain="+a.domain,a.secure?"; secure":""].join("")}e||(r={});for(var c=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,l=0;l\n\t\t\t\t.tc-15-rich-dialog .line {\n\t\t\t\t\tmargin-bottom: 10px;\n\t\t\t\t\t-webkit-text-size-adjust: none;\n\t\t\t\t}\n\n\t\t\t\t.tc-15-rich-dialog .line a {\n\t\t\t\t\tcolor: #00a4ff;\n\t\t\t\t}\n\t\t\t\n\t\t\t

\u5c0a\u656c\u7684\u7528\u6237\uff0c\u817e\u8baf\u4e91\u56fd\u9645\u7ad9-International \u5df2\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\uff0c\u652f\u6301\u66f4\u4e30\u5bcc\u7684\u4ea7\u54c1\uff0c\u63d0\u4f9b\u66f4\u4e13\u4e1a\u7684\u82f1\u6587\u8bed\u8a00\u670d\u52a1\uff0c\u56e0\u6b64\u4e2d\u56fd\u7ad9\u4e0d\u518d\u63d0\u4f9b\u82f1\u6587\u8bed\u8a00\u670d\u52a1\uff0c\u60a8\u5df2\u7ecf\u8d2d\u4e70\u7684\u4e91\u4ea7\u54c1\u4e0d\u53d7\u5f71\u54cd\uff0c\u53ef\u4ee5\u5728\u4e2d\u56fd\u7ad9\u7ee7\u7eed\u4f7f\u7528\u3002

\n\t\t\t

\u5982\u679c\u60a8\u5728\u4ea7\u54c1\u9009\u8d2d\u548c\u4f7f\u7528\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u6b22\u8fce\u60a8 \u8054\u7cfb\u6211\u4eec\uff0c\u6211\u4eec\u7aed\u8bda\u4e3a\u60a8\u63d0\u4f9b\u670d\u52a1\u3002

\n\t\t\t
\n\t\t\t

Dear customers, as Tencent Cloud International is open to global customers, providing more products and better language supports, we no longer provide English service in China Site. The cloud products and services you have purchased are not affected and can be used in China Site.

\n\t\t\t

We are here to help any questions and suggestions you may have when purchasing and using Tencent Cloud products and services.

\n\t\t';r.show({title:"\u6e29\u99a8\u63d0\u793a (Service Notice)",defaultWidth:680,body:e,bodyAlign:"left",buttons:[{name:"\u786e\u5b9a (Confirm)"}]}).off("click.switchregion").on("click.switchregion",'[data-region="intl"]',function(e){t.logout()})}}},YYEp:function(t,e){"use strict";var n="cloud.tencent.com",i="cloud.tencent.com",o="intl.cloud.tencent.com",a="buy.cloud.tencent.com",r="console.cloud.tencent.com",s=".cloud.tencent.com";location.hostname.indexOf("qcloud.com")!=-1&&(n="www.qcloud.com",i="www.qcloud.com",a="buy.qcloud.com",r="console.qcloud.com",s=".qcloud.com"),location.hostname==o&&(n=o),t.exports={DOMAIN_MAIN:n,DOMAIN_MAIN_CN:i,DOMAIN_MAIN_INTL:o,DOMAIN_BUY:a,DOMAIN_CONSOLE:r,COOKIE_DOMAIN:s}},K7Nt:function(t,e,n){"use strict";var i=n(1),o=function(t,e){return(""+t).replace(/\$\{([^\{\}]+)\}/g,function(t,n,i){return null==(i=(e||{})[n])?"":i})},a={$box:null,$mask:null,_tmpl:'',show:function(t){t||(t={}),t.buttons||(t.buttons=[]);var e=i.map(t.buttons,function(t,e){return'"}).join(""),n=o(this._tmpl,{title:t.title||"\u63d0\u793a",body:t.body||"",bodyAlign:t.bodyAlign||"center",buttons:e}),a=this._getBox().html(n);return e&&a.find(".J-footer").show(),t.defaultWidth&&a.children().css("width",t.defaultWidth),a.children().css("max-width",this.getBoxMaxWidth()),this._showMask(),this._evented(t),a.show()},getBoxMaxWidth:function(){var t=20;return i(window).width()-2*t},hide:function(){this._hideMask(),this._getBox().empty().hide()},_evented:function(t){var e=this,n=i(window),o=this._getBox(),a=t.buttons;t.noClose?o.find(".J-xout").remove():o.on("click",".J-xout",function(){e.hide()}),o.find(".cmd").click(function(){var t=i(this).index();return"function"==typeof a[t].callback?a[t].callback.call(i(this),o):e.hide(),!1}),n.off("resize.dialog").on("resize.dialog",function(){o.css({left:function(){return(n.width()-o.width())/2},top:function(){var t=(n.height()-o.height())/2;return Math.max(0,Math.min(150,t))}})}).trigger("resize.dialog")},_showMask:function(){this._getMask().show()},_hideMask:function(){this._getMask().hide()},_getBox:function(){return this.$box||(this.$box=i("
").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\t\t\t\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