1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HBConfigSDKclient=e():t.HBConfigSDKclient=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=function(t,e){try{return t()}catch(t){return e}};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},i=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function u(t){try{s(o.next(t))}catch(t){i(t)}}function c(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}s((o=o.apply(t,e||[])).next())}))},u=function(t,e){var n,o,r,i,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,o=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(r=u.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){u.label=i[1];break}if(6===i[0]&&u.label<r[1]){u.label=r[1],r=i;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(i);break}r[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},c=function(){function t(t){this.options=Object.assign({},t),this.cache={}}return t.prototype.requestProject=function(t,e){var n,i,u=this;void 0===e&&(e="default");var c=function(t,e,n,o){return void 0===n&&(n="default"),void 0===o&&(o="pro"),"https://assets.51downapp.cn/wisdom-config/v1/"+o+"/"+t+"/"+e+"/"+n+"/index.json"}(t,this.options.env,this.options.func||"default",this.options.secretEnv||"pro");return this.cache[t]?this.cache[t][e]||(this.cache[t][e]=Promise.resolve({})):this.cache[t]=((n={})[e]=Promise.resolve({}),n),Object.assign(this.cache[t],r({},this.cache[t]||{}),((i={})[e]=this.options.request(c).then((function(t){return t&&"string"==typeof t?o((function(){return JSON.parse(t)}),t):t})).catch((function(t){return u.log(t&&t.message?t.message:t,"error"),null})).then((function(e){return"object"!==Object.prototype.toString.call(e).slice(8,-1).toLowerCase()&&u.log(t+" é
ç½®çå
容ä¸åæ³"),u.log("请æ±"+t+"é
ç½®æå: "+JSON.stringify(e)),e})),i)),this.cache[t][e]},t.prototype.setConfig=function(t){Object.assign(this.options,t),this.cache={}},t.prototype.deriveInfo=function(t){if(!t)return null;var e=t.split(".").filter((function(t){return t}));return 1===e.length?this.options.project?{project:this.options.project,func:"default",field:e[0]}:null:2===e.length?{project:e[0],func:"default",field:e[1]}:3===e.length?{project:e[0],func:e[1],field:e[2]}:null},t.prototype.get=function(t,e,n){return void 0===n&&(n={fromCache:!0}),i(this,void 0,void 0,(function(){var r,i,c,s,a,f,l=this;return u(this,(function(u){return(r=this.deriveInfo(t))?(i=r.project,c=r.func,s=r.field,a=n.fromCache,f=o((function(){return l.cache[i][c]}),null),a&&f||this.requestProject(i),[2,this.cache[i][c].then((function(t){return o((function(){if(!t||!t.value)return l.log("è·å项ç®"+i+"ä¸å段"+s+"å¼å¤±è´¥ï¼é¡¹ç®æ°æ®ç»æé误ï¼è¯·å¨åå°æ£æ¥ä¸è´æ§ï¼åfallback: "+e),e;var n=t.value[s],o=(n||{}).value;return void 0===n||void 0===o?(l.log("è·å项ç®"+i+"ä¸å段"+s+"å¼å¤±è´¥ï¼åfallback: "+e),e):(l.log("è·å项ç®"+i+"ä¸å段"+s+"弿å: "+o),o)}),e)}))]):(this.log("ä¿¡æ¯ä¸å
¨","error"),[2,e])}))}))},t.prototype.log=function(t,e){void 0===e&&(e="log"),this.options.log&&console[e]("[Config SDK]: "+t)},t}()},,function(t,e,n){"use strict";n.r(e);
1var o,r=n(0),i=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u={request:function(t){return new Promise((function(e,n){if(window&&"undefined"!=typeof XMLHttpRequest){var o=new XMLHttpRequest;o.open("GET",t),o.timeout=5e3,o.onloadend=function(){o.status>=200&&o.status<300||304===o.status?e(JSON.parse(o.response)):n(null)},o.onabort=n,o.ontimeout=n,o.onerror=n,o.setRequestHeader("Content-Type","application/json; charset=UTF-8"),o.send()}else"undefined"!=typeof my&&my.request&&my.canIUse&&my.canIUse("request")?my.request({url:t,method:"GET",timeout:5e3,success:e,headers:{"Content-Type":"application/json; charset=utf-8"},fail:n}):"undefined"!=typeof wx&&wx.request&&wx.canIUse&&wx.canIUse("request")?wx.request({url:t,method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"},success:e,fail:n}):n(null)}))},env:"pro"},c=function(t){function e(e){return t.call(this,Object.assign({},u,e||{}))||this}return i(e,t),e}(r.a);e.default=c}])}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.