function utils(){function a(a,c,d){d||(d=b),d.has(a)||d.set(a,{originWxMethods:{},originWxMethodsGetterMap:{},originWxMethodsValMap:{}});var e=d.get(a),f=e.originWxMethods,g=e.originWxMethodsGetterMap,h=e.originWxMethodsValMap,i=Object.getOwnPropertyDescriptor(a,c),j=!1;if(!f[c]){var k,l=!1;i?i.get?(j=!0,k=i.get):(l=!0,k=i.value):k=a[c],k&&(h[c]=l,g[c]=j,f[c]=k)}else g[c]&&(j=!0);return j?f[c]():f[c]}var b=new Map;global.__minium__.restoreMethod=function(a,c,d){if(d||(d=b),!!d.has(a)){var e=d.get(a),f=e.originWxMethods,g=e.originWxMethodsGetterMap;if(f[c]){var h=Object.getOwnPropertyDescriptor(a,c);h?g[c]?Object.defineProperty(a,c,{get:f[c]}):Object.defineProperty(a,c,{value:f[c]}):a[c]=f[c],delete f[c]}}},global.__minium__.replaceMethod=function(c,d,e,f){f||(f=b),f.has(c)||f.set(c,{originWxMethods:{},originWxMethodsGetterMap:{},originWxMethodsValMap:{}});var g=f.get(c),h=g.originWxMethods,i=Object.getOwnPropertyDescriptor(c,d);h[d]||a(c,d,f),i?Object.defineProperty(c,d,{get:function get(){return e}}):c[d]=e},global.__minium__.getSrcMethod=function(a,c,d){if(d||(d=b),!!d.has(a)){var e=d.get(a),f=e.originWxMethods,g=e.originWxMethodsGetterMap,h=g[c];return h?f[c]():f[c]}},global.__minium__.setSrcMethod=a,global.__minium__.defineMethod=function(a,b,c){var d=Object.getOwnPropertyDescriptor(a,b);d?d.get?Object.defineProperty(a,b,{get:function get(){return c}}):Object.defineProperty(a,b,{value:c}):a[b]=c};var c=new Map,d=function(){"use strict";function a(b){global.babelHelpers.classCallCheck(this,a),c.has(b)||c.set(b,[]),this.rule_list=c.get(b)}return global.babelHelpers.createClass(a,[{key:"length",value:function length(){return this.rule_list.length}},{key:"clean",value:function clean(){this.rule_list.splice(0)}},{key:"push",value:function push(a){this.rule_list.push(a)}},{key:"pick",value:function pick(a){return this.rule_list.splice(a,1)[0]}},{key:"search",value:function search(b){for(var c,d=0,e=this.rule_list.length;d<e;d++)if(c=this.rule_list[d],a.isRuleMatched(c,b))return 1===c._miniMockType&&(c=this.pick(d)),c;return null}}],[{key:"isRuleMatched",value:function isRuleMatched(b,c){if(global.babelHelpers["typeof"](b)!==global.babelHelpers["typeof"](c))return!1;switch(global.babelHelpers["typeof"](b)){case"string":var d=new RegExp(b);return!!d.exec(c);case"number":return b===c;case"object":if(b instanceof Array){if(b.length!=c.length)return!1;for(var e=0;e<b.length;e++)if(!a.isRuleMatched(b[e],c[e]))return!1;return!0}for(var f in b)if("success"!=f&&"fail"!=f&&"complete"!=f&&"_miniMockType"!=f){if(void 0===c[f])return!1;if(!a.isRuleMatched(b[f],c[f]))return!1}return!0}return!1}}]),a}();global.__minium__.MockRule=d,global.__minium__.bind=function(a,b){for(var c=arguments.length,d=Array(2<c?c-2:0),e=2;e<c;e++)d[e-2]=arguments[e];return function(){for(var c=arguments.length,e=Array(c),f=0;f<c;f++)e[f]=arguments[f];return a.apply(b,d.concat(e))}}}