var feloader=function(t){!function(t){"use strict";for(var e,r,n={},o=function(){},i="memory".split(","),a="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=i.pop();)t[e]=t[e]||n;for(;r=a.pop();)t[r]=t[r]||o}(this.console=this.console||{});var e=this,r=function(){this.Env={host:e,mods:{}},this.Config={debug:"",packages:{},fns:{},useDailyAssets:!1,forceAssetsHost:t,assetsHost:"portal.hc-cdn.com",dailyAssetsHost:"static-resource.obs.cn-north-7.ulanqab.huawei.com",crossorigin:!0},(this.Loader={}).Status={ERROR:-1,UNLOADED:0,LOADING:1,LOADED:2,INITIALIZING:3,INITIALIZED:4},this.initUtils(),this.initDataStructure(),this.initCssOnLoad(),this.initGetScript(),this.initConfig(),this.initComboLoader(),this.initLoader(),this.init()};return r.prototype.__BUILD_TIME="",r.prototype.version="3.0.2",r.prototype.config=function(e,r){var n,o,i,a=this.Config,s=a.fns,u=this;if("string"==typeof e)n=s[e],r===t?o=n?n.call(u):a[e]:n?o=n.call(u,r):a[e]=r;else for(var c in e)r=e[c],(i=s[c])?i.call(u,r):a[c]=r;return o},r}();!function(t){var e=new RegExp("^([\\w\\d+.-]+:)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(\\?[^#]*)?(#.*)?$"),r={protocol:1,auth:2,hostname:3,port:4,pathname:5,search:6,hash:7};function n(t){var e=0;return parseFloat(t.replace(/\./g,(function(){return 0==e++?".":""})))}function o(t){var e=t.split(/\//);return"/"===t.charAt(0)&&e[0]&&e.unshift(""),"/"===t.charAt(t.length-1)&&t.length>1&&e[e.length-1]&&e.push(""),e}var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t){var e=[];for(var r in t)e.push(r);return e}function s(t,e){for(var r in e)t[r]=e[r];return t}var u=/(http(s)?:)?\/\/([^/]+)(?::(\d+))?/,c=Array.prototype.map,l=Array.prototype.filter,f=String.prototype.startsWith,d={noop:function(){},filter:l?function(t,e,r){return c.call(t,e,r||this)}:function(t,e,r){for(var n=t.length,o=new Array(n),i=0;i=0&&t.indexOf(e,r)===r},now:Date.now||function(){return+new Date},each:function(t,e){var r,n,o=0;if(i(t))for(n=t.length;oe?(clearTimeout(a),a=null,s=l,i=t.apply(n,o),a||(n=o=null)):a||!1===r.trailing||(a=setTimeout(c,f)),i}},indexOf:function(t,e){for(var r=0,n=e.length;r-1;)r=(r<<5)+r+t.charCodeAt(e);return r+""},getSuffix:function(t){var e=t.match(/\.(\w+)$/);if(e)return e[1]}};t.prototype.initUtils=function(){var t,e,r=this.Loader,o=this.Env,i=r.Status,a=o.mods,u=o.host,c=r.Utils={},l=u.document,f=(u.navigator||{}).userAgent||"";((t=f.match(/Web[Kk]it[\/]{0,1}([\d.]*)/))||(t=f.match(/Safari[\/]{0,1}([\d.]*)/)))&&t[1]&&(c.webkit=n(t[1])),(t=f.match(/Trident\/([\d.]*)/))&&(c.trident=n(t[1])),(t=f.match(/Gecko/))&&(c.gecko=.1,(t=f.match(/rv:([\d.]*)/))&&t[1]&&(c.gecko=n(t[1]))),(t=f.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2])&&(c.ie=n(e),c.ieMode=l.documentMode||c.ie,c.trident=c.trident||1),s(c,d),s(c,{mix:s,docHead:function(){return l.getElementsByTagName("head")[0]||l.documentElement},collectErrors:function(t,e,r){var n,o,a;for(r=r||{},e=e||[],n=0;n1)for(var o=0,a=r.length;o0})).slice(0,2).join("/");if(s[c])return t.packageInfo=s[c],t.packageInfo;for(e in c="",s){var l=e;o.endsWith(l,"/")||(l+="/"),i(u,l)&&e.length>c.length&&(c=e)}return s[c]?(t.packageInfo=s[c],t.packageInfo.addChildModule(c,t),t.packageInfo):i(r,"/")||i(r,"http://")||i(r,"https://")||i(r,"file://")?(t.packageInfo=null,t.packageInfo):(t.packageInfo=s.core,t.packageInfo)},getTag:function(){var t=this;return t.tag||t.getPackage()&&t.getPackage().getTag()},getCharset:function(){var t=this;return t.charset||t.getPackage()&&t.getPackage().getCharset()},setRequiresModules:function(t){var e=this,r=e.requiredModules=e.ctx.Loader.Utils.map(function(t,e){for(var r=(t=t||[]).length,n=0;n=n.INITIALIZING||(t.status=n.INITIALIZING,t.cjs?e=t.initSelf():(o.each(t.getNormalizedRequiredModules(),(function(t){e=e&&t.initRecursive()})),e&&t.initSelf())),e)},undef:function(){this.status=this.ctx.Loader.Status.UNLOADED,this.error=null,this.factory=null,this.exports=null}};t.prototype.initDataStructure=function(){var t=this,e=this.Loader;e.Package=function(e){return new r(e,t)},e.Module=function(e){return new o(e,t)}}}(feloader),feloader.prototype.initCssOnLoad=function(){var t=this.Loader.Utils,e=0,r={};function n(e){var r=0;if(t.webkit)e.sheet&&(r=1);else if(e.sheet)try{e.sheet.cssRules&&(r=1)}catch(t){"NS_ERROR_DOM_SECURITY_ERR"===t.name&&(r=1)}return r}function o(){for(var i in r){var a=r[i],s=a.node;n(s)&&(a.callback&&a.callback.call(s),delete r[i])}e=t.isEmptyObject(r)?0:setTimeout(o,30)}t.pollCss=function(t,n){var i=t.href,a=r[i]={};a.node=t,a.callback=n,e||o()},t.isCssLoaded=n},feloader.prototype.initGetScript=function(){var t,e=this.Env.host.document,r=this.Loader.Utils,n=this.Config,o={},i=r.webkit;this.getScript=function(a,s,u){var c,l,f,d,h,g=s,p=n.crossorigin,v=r.endsWith(a,".css");if("object"==typeof g&&(s=g.success,c=g.error,l=g.timeout,u=g.charset,f=g.attrs),v&&r.ieMode<10&&e.getElementsByTagName("style").length+e.getElementsByTagName("link").length>=31)return setTimeout((function(){throw new Error("style and link's number is more than 31.ie < 10 can not insert link: "+a)}),0),void(c&&c());if((d=o[a]=o[a]||[]).push([s,c]),d.length>1)return d.node;var m=e.createElement(v?"link":"script");f&&r.each(f,(function(t,e){m.setAttribute(e,t)})),u&&(m.charset=u),v?(m.href=a,m.rel="stylesheet"):(m.src=a,m.async=!0,p&&m.setAttribute("crossorigin","anonymous")),d.node=m;var y=function(t){var e,n=t;h&&(clearTimeout(h),h=void 0),r.each(o[a],(function(t){(e=t[n])&&e.call(m)})),delete o[a]},x="onload"in m,b=n.forceCssPoll||i&&i<536||!i&&!r.trident&&!r.gecko;function M(){var t=m.readyState;t&&"loaded"!==t&&"complete"!==t||(m.onreadystatechange=m.onload=null,y(0))}return v&&b&&x&&(x=!1),x?(m.onload=M,m.onerror=function(){m.onerror=null,y(1)}):v?r.pollCss(m,(function(){y(0)})):m.onreadystatechange=M,l&&(h=setTimeout((function(){y(1)}),1e3*l)),t||(t=r.docHead()),v?t.appendChild(m):t.insertBefore(m,t.firstChild),m}},function(t,e){function r(t,e){return function(r){var n={};for(var o in r)n[o]={},n[o][t]=r[o];e.config("modules",n)}}feloader.prototype.initConfig=function(){var t=this,n=this.Loader,o=n.Package,i=n.Utils,a=this.Env.host,s=this.Config,u=a.location,c=s.fns;function l(t,e){if(t=i.normalizeSlash(t),e&&"/"!==t.charAt(t.length-1)&&(t+="/"),u){if(i.startsWith(t,"http:")||i.startsWith(t,"//")||i.startsWith(t,"https:")||i.startsWith(t,"file:"))return t;t=u.protocol+"//"+u.host+i.normalizePath(u.pathname,t)}return t}function f(t,e,r){var n=e.getTag()||s.tag||"";return n&&(r&&(n+=r),t+="?t="+n),t}s.loadModsFn=function(e,r){window.isPortalDomain&&(window.gConfig=window.gConfig||{},window.gConfig.resDomain="res.hc-cdn",e.uri=e.uri.replace(`${window.gConfig.resDomain||"res.hc-cdn"}.com`,"portal.hc-cdn.com")),t.getScript(e.uri,r)},s.resolveModFn=function(t){var e,r,n,o=t.id,a=t.path,s=t.getPackage();if(!s){var u=i.endsWith(o,".css"),c=i.endsWith(o,".js");return u||c||(o+=".js"),f(o,t,r="."+(n=u?"css":"js"))}var l=s.getBase(),d=s.name;return r="."+(n=t.getType()),a||(i.endsWith(o,r)&&(o=o.slice(0,-r.length)),"function"==typeof(e=s.getFilter()||"")?a=e(o,n):"string"==typeof e&&(e&&(e="."+e),a=o+e+r)),f("core"===d?l+a:o===d?l.substring(0,l.length-1)+e+r:l+(a=a.substring(d.length+1)),t,r)},c.requires=r("requires",t),c.alias=r("alias",t),c.packages=function(t){var r=s.packages;return t===e?r:t?(i.each(t,(function(t,e){var n=t.name||e;i.startsWith(n,"/")?n=u.protocol+"//"+u.host+n:(i.startsWith(n,"./")||i.startsWith(n,"../"))&&(n=i.normalizePath(u.href,n)),i.endsWith(n,"/")&&(n=n.slice(0,-1)),t.name=n;var a=t.base||t.path;a&&(t.base=l(a,!0)),r[n]?r[n].reset(t):r[n]=new o(t)})),e):(s.packages={core:r.core},e)},c.modules=function(t){t&&i.each(t,(function(t,e){var r=t.uri;r&&(t.uri=l(r)),i.createModule(e,t)}))},c.base=function(t){var r=s.packages.core;return t?(this.config("packages",{core:{base:t}}),e):r&&r.getBase()}}}(),function(t,e){function r(t,e){if(t||"function"!=typeof e)t&&t.requires&&!t.cjs&&(t.cjs=0);else{var r=[];r.length&&((t=t||{}).requires=r)}return t}function n(t){var e,r,n,o=[];for(e=0,n=t.length;e=0;e--)if("interactive"===(n=o[e]).readyState){t=n;break}r=t?t.getAttribute("data-mod-id"):i;return r}())&&l(o,a,s),i=null,0):t={factory:a,config:s}):(v?(i=null,0):t=e,s=r(s,a),l(o,a,s))},c.mix(x.prototype,{use:function(t){for(var e,r=s.timeout,n=[],o=0;og)n[a]=1;else c===g||u.contains(l)||(c!==h&&(u.status=h,o.push(u)),u.add(l),l.wait(u)),s.requireModsPre||l.calculate(u.getNormalizedRequiredModules(),e,r,n,o),n[a]=1;else e.push(u),n[a]=1}return o},getComboMods:function(t){var e,r,n,i,a,s,u,l,f,h=t.length,g={},p={};for(e=0;e1){for(var a=t.length,s=[],u=0;uf||E().length>d)&&(h.pop(),g.pop(),M(E()),h=[],g=[],i=e,L--)}else x.push({combine:0,uri:b(k),charset:v,mods:[w]})}h.length&&M(E()),l[t].push.apply(l[t],x)}var p=h.normals,v=h.groups;for(r in p)for(n in l[r]=l[r]||[],p[r])g(r,n,p[r][n]);for(r in v)for(i in l[r]=l[r]||[],v[r])for(n in v[r][i])g(r,n,v[r][i][n]);return l},flush:function(){var t=this;if(t.callback){for(var e=t.head,r=t.callback;e;){var n=e.node,o=n.status;if(!(o>=g||o===p))return;n.remove(t),e=t.head=e.next}t.callback=null,r()}},isCompleteLoading:function(){return!this.head},wait:function(t){var e=this;if(e.head){var r={node:t};e.tail.next=r,e.tail=r}else e.tail=e.head={node:t}}}),a.ComboLoader=x}}(),function(t){t.prototype.initLoader=function(){var e=this.Loader,r=e.Utils,n=r.createModule,o=e.ComboLoader;r.mix(this,{getModule:function(t){return n(t)},getPackage:function(t){return this.Config.packages[t]},add:function(t,e,r){o.add(t,e,r,arguments.length)},use:function(e,n,i){var a;if("string"==typeof e&&(e=e.split(/\s*,\s*/)),!e||e&&!e.length)return t;"object"==typeof n&&(i=n.error,n=n.success);for(var s=0;s=0;r--)if(o=n(i[r],t))return o;return null};t.init=function(e){var r=e.name;t.config(o(r))},t.onLoad=function(t){var e=function(){setTimeout(t,16)};"complete"===document.readyState?e():window.addEventListener("load",e)},t.domReady=function(t){window.addEventListener("DOMContentLoaded",(function(){setTimeout(t,16)}))},e&&e.getElementsByTagName&&t.config(r.mix({comboMaxUriLength:2e3,comboMaxFileNum:40},o("feloader")));var i=window,a=i.require;i.require=function(){t.use.apply(t,arguments)},i.require.config=function(){t.config.apply(t,arguments)};var s=i.define;i.define=function(){t.add.apply(t,arguments)},i.define.amd={},t.noConflict=function(){i.require=a,i.define=s}}(feloader),function(t,e){e.gConfig=e.gConfig||{};var r,n,o,i=e.gConfig.seed,a=t.Loader.Utils,s=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);function u(t){r&&n||e.addEventListener("orientationchange",(function(){r=e.innerHeight,n=e.innerWidth}));var o=0,i=0,a=t.getBoundingClientRect();return!(!a.width&&!a.height||a.top-(r||(r=e.innerHeight))>i||a.bottom+i<0||a.left-(n||(n=e.innerWidth))>o||a.right+o<0)}function c(t,r){"string"==typeof t&&(t=document.querySelector(t));var n={scroller:e,rootMarginY:667,rootMarginX:0};if(e.IntersectionObserver){var o=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&(r(t),o.disconnect())}),{root:n.scroller===e?null:n.scroller,rootMargin:"".concat(n.rootMarginY,"px ").concat(n.rootMarginX,"px"),threshold:1e-4});o.observe(t)}else{var i=function(){return u(t)};if(i())return r(t);var s=a.throttle((function(){i()&&(n.scroller.removeEventListener("scroll",s,{passive:!0}),e.removeEventListener("orientationchange",s),r(t))}),50);n.scroller.addEventListener("scroll",s,{passive:!0}),e.addEventListener("orientationchange",s)}}function l(){for(var t=s?"data-mod-name-m":"data-mod-name-pc",e=document.querySelectorAll("["+t+"]"),r=[],n=0;ne[n])return 1;if(t[n]1?e-1:0),n=1;n