var __appServiceEngine__ =
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';

	var _pageInit = __webpack_require__(39);

	var _pageInit2 = _interopRequireDefault(_pageInit);

	var _initApp = __webpack_require__(110);

	var _initApp2 = _interopRequireDefault(_initApp);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	Object.defineProperty(exports, "Page", {
	    enumerable: true,
	    get: function get() {
	        return _pageInit2.default.pageHolder;
	    }
	});
	Object.defineProperty(exports, "getCurrentPages", {
	    enumerable: true,
	    get: function get() {
	        return _pageInit2.default.getCurrentPages;
	    }
	});
	Object.defineProperty(exports, "App", {
	    enumerable: true,
	    get: function get() {
	        return _initApp2.default.appHolder;
	    }
	});
	Object.defineProperty(exports, "getApp", {
	    enumerable: true,
	    get: function get() {
	        return _initApp2.default.getApp;
	    }
	});

/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(2), __esModule: true };

/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

	var core  = __webpack_require__(3)
	  , $JSON = core.JSON || (core.JSON = {stringify: JSON.stringify});
	module.exports = function stringify(it){ // eslint-disable-line no-unused-vars
	  return $JSON.stringify.apply($JSON, arguments);
	};

/***/ }),
/* 3 */
/***/ (function(module, exports) {

	var core = module.exports = {version: '2.4.0'};
	if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef

/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(5), __esModule: true };

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(6);
	module.exports = __webpack_require__(3).Object.keys;

/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

	// 19.1.2.14 Object.keys(O)
	var toObject = __webpack_require__(7)
	  , $keys    = __webpack_require__(9);

	__webpack_require__(24)('keys', function(){
	  return function keys(it){
	    return $keys(toObject(it));
	  };
	});

/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {

	// 7.1.13 ToObject(argument)
	var defined = __webpack_require__(8);
	module.exports = function(it){
	  return Object(defined(it));
	};

/***/ }),
/* 8 */
/***/ (function(module, exports) {

	// 7.2.1 RequireObjectCoercible(argument)
	module.exports = function(it){
	  if(it == undefined)throw TypeError("Can't call method on  " + it);
	  return it;
	};

/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {

	// 19.1.2.14 / 15.2.3.14 Object.keys(O)
	var $keys       = __webpack_require__(10)
	  , enumBugKeys = __webpack_require__(23);

	module.exports = Object.keys || function keys(O){
	  return $keys(O, enumBugKeys);
	};

/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {

	var has          = __webpack_require__(11)
	  , toIObject    = __webpack_require__(12)
	  , arrayIndexOf = __webpack_require__(15)(false)
	  , IE_PROTO     = __webpack_require__(19)('IE_PROTO');

	module.exports = function(object, names){
	  var O      = toIObject(object)
	    , i      = 0
	    , result = []
	    , key;
	  for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
	  // Don't enum bug & hidden keys
	  while(names.length > i)if(has(O, key = names[i++])){
	    ~arrayIndexOf(result, key) || result.push(key);
	  }
	  return result;
	};

/***/ }),
/* 11 */
/***/ (function(module, exports) {

	var hasOwnProperty = {}.hasOwnProperty;
	module.exports = function(it, key){
	  return hasOwnProperty.call(it, key);
	};

/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {

	// to indexed object, toObject with fallback for non-array-like ES3 strings
	var IObject = __webpack_require__(13)
	  , defined = __webpack_require__(8);
	module.exports = function(it){
	  return IObject(defined(it));
	};

/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {

	// fallback for non-array-like ES3 and non-enumerable old V8 strings
	var cof = __webpack_require__(14);
	module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
	  return cof(it) == 'String' ? it.split('') : Object(it);
	};

/***/ }),
/* 14 */
/***/ (function(module, exports) {

	var toString = {}.toString;

	module.exports = function(it){
	  return toString.call(it).slice(8, -1);
	};

/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {

	// false -> Array#indexOf
	// true  -> Array#includes
	var toIObject = __webpack_require__(12)
	  , toLength  = __webpack_require__(16)
	  , toIndex   = __webpack_require__(18);
	module.exports = function(IS_INCLUDES){
	  return function($this, el, fromIndex){
	    var O      = toIObject($this)
	      , length = toLength(O.length)
	      , index  = toIndex(fromIndex, length)
	      , value;
	    // Array#includes uses SameValueZero equality algorithm
	    if(IS_INCLUDES && el != el)while(length > index){
	      value = O[index++];
	      if(value != value)return true;
	    // Array#toIndex ignores holes, Array#includes - not
	    } else for(;length > index; index++)if(IS_INCLUDES || index in O){
	      if(O[index] === el)return IS_INCLUDES || index || 0;
	    } return !IS_INCLUDES && -1;
	  };
	};

/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {

	// 7.1.15 ToLength
	var toInteger = __webpack_require__(17)
	  , min       = Math.min;
	module.exports = function(it){
	  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
	};

/***/ }),
/* 17 */
/***/ (function(module, exports) {

	// 7.1.4 ToInteger
	var ceil  = Math.ceil
	  , floor = Math.floor;
	module.exports = function(it){
	  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
	};

/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

	var toInteger = __webpack_require__(17)
	  , max       = Math.max
	  , min       = Math.min;
	module.exports = function(index, length){
	  index = toInteger(index);
	  return index < 0 ? max(index + length, 0) : min(index, length);
	};

/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {

	var shared = __webpack_require__(20)('keys')
	  , uid    = __webpack_require__(22);
	module.exports = function(key){
	  return shared[key] || (shared[key] = uid(key));
	};

/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {

	var global = __webpack_require__(21)
	  , SHARED = '__core-js_shared__'
	  , store  = global[SHARED] || (global[SHARED] = {});
	module.exports = function(key){
	  return store[key] || (store[key] = {});
	};

/***/ }),
/* 21 */
/***/ (function(module, exports) {

	// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
	var global = module.exports = typeof window != 'undefined' && window.Math == Math
	  ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
	if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef

/***/ }),
/* 22 */
/***/ (function(module, exports) {

	var id = 0
	  , px = Math.random();
	module.exports = function(key){
	  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
	};

/***/ }),
/* 23 */
/***/ (function(module, exports) {

	// IE 8- don't enum bug keys
	module.exports = (
	  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
	).split(',');

/***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) {

	// most Object methods by ES6 should accept primitives
	var $export = __webpack_require__(25)
	  , core    = __webpack_require__(3)
	  , fails   = __webpack_require__(34);
	module.exports = function(KEY, exec){
	  var fn  = (core.Object || {})[KEY] || Object[KEY]
	    , exp = {};
	  exp[KEY] = exec(fn);
	  $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);
	};

/***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) {

	var global    = __webpack_require__(21)
	  , core      = __webpack_require__(3)
	  , ctx       = __webpack_require__(26)
	  , hide      = __webpack_require__(28)
	  , PROTOTYPE = 'prototype';

	var $export = function(type, name, source){
	  var IS_FORCED = type & $export.F
	    , IS_GLOBAL = type & $export.G
	    , IS_STATIC = type & $export.S
	    , IS_PROTO  = type & $export.P
	    , IS_BIND   = type & $export.B
	    , IS_WRAP   = type & $export.W
	    , exports   = IS_GLOBAL ? core : core[name] || (core[name] = {})
	    , expProto  = exports[PROTOTYPE]
	    , target    = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]
	    , key, own, out;
	  if(IS_GLOBAL)source = name;
	  for(key in source){
	    // contains in native
	    own = !IS_FORCED && target && target[key] !== undefined;
	    if(own && key in exports)continue;
	    // export native or passed
	    out = own ? target[key] : source[key];
	    // prevent global pollution for namespaces
	    exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
	    // bind timers to global for call from export context
	    : IS_BIND && own ? ctx(out, global)
	    // wrap global constructors for prevent change them in library
	    : IS_WRAP && target[key] == out ? (function(C){
	      var F = function(a, b, c){
	        if(this instanceof C){
	          switch(arguments.length){
	            case 0: return new C;
	            case 1: return new C(a);
	            case 2: return new C(a, b);
	          } return new C(a, b, c);
	        } return C.apply(this, arguments);
	      };
	      F[PROTOTYPE] = C[PROTOTYPE];
	      return F;
	    // make static versions for prototype methods
	    })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
	    // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
	    if(IS_PROTO){
	      (exports.virtual || (exports.virtual = {}))[key] = out;
	      // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
	      if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out);
	    }
	  }
	};
	// type bitmap
	$export.F = 1;   // forced
	$export.G = 2;   // global
	$export.S = 4;   // static
	$export.P = 8;   // proto
	$export.B = 16;  // bind
	$export.W = 32;  // wrap
	$export.U = 64;  // safe
	$export.R = 128; // real proto method for `library` 
	module.exports = $export;

/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {

	// optional / simple context binding
	var aFunction = __webpack_require__(27);
	module.exports = function(fn, that, length){
	  aFunction(fn);
	  if(that === undefined)return fn;
	  switch(length){
	    case 1: return function(a){
	      return fn.call(that, a);
	    };
	    case 2: return function(a, b){
	      return fn.call(that, a, b);
	    };
	    case 3: return function(a, b, c){
	      return fn.call(that, a, b, c);
	    };
	  }
	  return function(/* ...args */){
	    return fn.apply(that, arguments);
	  };
	};

/***/ }),
/* 27 */
/***/ (function(module, exports) {

	module.exports = function(it){
	  if(typeof it != 'function')throw TypeError(it + ' is not a function!');
	  return it;
	};

/***/ }),
/* 28 */
/***/ (function(module, exports, __webpack_require__) {

	var dP         = __webpack_require__(29)
	  , createDesc = __webpack_require__(37);
	module.exports = __webpack_require__(33) ? function(object, key, value){
	  return dP.f(object, key, createDesc(1, value));
	} : function(object, key, value){
	  object[key] = value;
	  return object;
	};

/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {

	var anObject       = __webpack_require__(30)
	  , IE8_DOM_DEFINE = __webpack_require__(32)
	  , toPrimitive    = __webpack_require__(36)
	  , dP             = Object.defineProperty;

	exports.f = __webpack_require__(33) ? Object.defineProperty : function defineProperty(O, P, Attributes){
	  anObject(O);
	  P = toPrimitive(P, true);
	  anObject(Attributes);
	  if(IE8_DOM_DEFINE)try {
	    return dP(O, P, Attributes);
	  } catch(e){ /* empty */ }
	  if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
	  if('value' in Attributes)O[P] = Attributes.value;
	  return O;
	};

/***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) {

	var isObject = __webpack_require__(31);
	module.exports = function(it){
	  if(!isObject(it))throw TypeError(it + ' is not an object!');
	  return it;
	};

/***/ }),
/* 31 */
/***/ (function(module, exports) {

	module.exports = function(it){
	  return typeof it === 'object' ? it !== null : typeof it === 'function';
	};

/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = !__webpack_require__(33) && !__webpack_require__(34)(function(){
	  return Object.defineProperty(__webpack_require__(35)('div'), 'a', {get: function(){ return 7; }}).a != 7;
	});

/***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) {

	// Thank's IE8 for his funny defineProperty
	module.exports = !__webpack_require__(34)(function(){
	  return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
	});

/***/ }),
/* 34 */
/***/ (function(module, exports) {

	module.exports = function(exec){
	  try {
	    return !!exec();
	  } catch(e){
	    return true;
	  }
	};

/***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) {

	var isObject = __webpack_require__(31)
	  , document = __webpack_require__(21).document
	  // in old IE typeof document.createElement is 'object'
	  , is = isObject(document) && isObject(document.createElement);
	module.exports = function(it){
	  return is ? document.createElement(it) : {};
	};

/***/ }),
/* 36 */
/***/ (function(module, exports, __webpack_require__) {

	// 7.1.1 ToPrimitive(input [, PreferredType])
	var isObject = __webpack_require__(31);
	// instead of the ES6 spec version, we didn't implement @@toPrimitive case
	// and the second argument - flag - preferred type is a string
	module.exports = function(it, S){
	  if(!isObject(it))return it;
	  var fn, val;
	  if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
	  if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;
	  if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
	  throw TypeError("Can't convert object to primitive value");
	};

/***/ }),
/* 37 */
/***/ (function(module, exports) {

	module.exports = function(bitmap, value){
	  return {
	    enumerable  : !(bitmap & 1),
	    configurable: !(bitmap & 2),
	    writable    : !(bitmap & 4),
	    value       : value
	  };
	};

/***/ }),
/* 38 */,
/* 39 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});

	var _stringify = __webpack_require__(1);

	var _stringify2 = _interopRequireDefault(_stringify);

	var _typeof2 = __webpack_require__(40);

	var _typeof3 = _interopRequireDefault(_typeof2);

	var _utils = __webpack_require__(77);

	var _utils2 = _interopRequireDefault(_utils);

	var _parsePage = __webpack_require__(99);

	var _parsePage2 = _interopRequireDefault(_parsePage);

	var _constants = __webpack_require__(108);

	var eventDefine = _interopRequireWildcard(_constants);

	var _logReport = __webpack_require__(109);

	var reportRealtimeAction = _interopRequireWildcard(_logReport);

	function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	var getRouteToPage;
	var getWebviewIdToPage;
	var setWxRouteBegin;
	var setWxRoute;
	var setWxConfig;
	var reset;
	var pageHolder;
	var getCurrentPages;
	var getCurrentPage;

	var pageStack = [];
	var tabBars = []; //tab栏url列表
	var currentPage;
	__wxConfig__.tabBar && __wxConfig__.tabBar.list && "object" === (0, _typeof3.default)(__wxConfig__.tabBar.list) && "function" == typeof __wxConfig__.tabBar.list.forEach && __wxConfig__.tabBar.list.forEach(function (item) {
	    tabBars.push(item.pagePath);
	});

	var app = {
	    appRouteTime: 0,
	    newPageTime: 0,
	    pageReadyTime: 0
	};

	var speedReport = function speedReport(key, startTime, endTime) {
	    Reporter.speedReport({
	        key: key,
	        timeMark: {
	            startTime: startTime,
	            endTime: endTime
	        }
	    });
	};

	var pageStackObjs = {};
	var pageRegObjs = {}; //key:pathname
	var pageIndex = 0;

	getCurrentPage = function getCurrentPage() {
	    return currentPage;
	};
	getCurrentPages = function getCurrentPages() {
	    var pageArr = [];
	    pageStack.forEach(function (pageObj) {
	        pageArr.push(pageObj.page);
	    });
	    return pageArr;
	};
	pageHolder = function pageHolder(pageObj) {
	    //Page 接口
	    if (!__wxRouteBegin) {
	        throw _utils2.default.error("Page 注册错误", "Please do not register multiple Pages in " + __wxRoute + ".js");
	        new _utils2.default.AppServiceEngineKnownError("Please do not register multiple Pages in " + __wxRoute + ".js");
	    }

	    __wxRouteBegin = !1;
	    var pages = __wxConfig__.pages,
	        pagePath = pages[pageIndex];
	    pageIndex++;
	    if ("Object" !== _utils2.default.getDataType(pageObj)) {
	        throw _utils2.default.error("Page 注册错误", "Options is not object: " + (0, _stringify2.default)(pageObj) + " in " + __wxRoute + ".js");
	        new _utils2.default.AppServiceEngineKnownError("Options is not object: " + (0, _stringify2.default)(pageObj) + " in " + __wxRoute + ".js");
	    }
	    _utils2.default.info("Register Page: " + pagePath);
	    pageRegObjs[pagePath] = pageObj;
	};
	var pageInitData = _utils2.default.surroundByTryCatch(function (pageObj, webviewId) {
	    _utils2.default.info("Update view with init data");
	    var ext = {};
	    ext.webviewId = webviewId, ext.enablePullUpRefresh = pageObj.hasOwnProperty("onReachBottom");
	    var params = {
	        data: {
	            data: pageObj.data,
	            ext: ext,
	            options: {
	                firstRender: !0
	            }
	        }
	    };
	    _utils2.default.publish("appDataChange", params, [webviewId]);
	    reportRealtimeAction.triggerAnalytics("pageReady", pageObj);
	});
	var pageParse = function pageParse(routePath, webviewId, params) {
	    //解析page e:pagepath t:webviewId params:
	    var curPageObj = undefined;
	    if (pageRegObjs.hasOwnProperty(routePath)) {
	        curPageObj = pageRegObjs[routePath];
	    } else {
	        _utils2.default.warn("Page route 错误", "Page[" + routePath + "] not found. May be caused by: 1. Forgot to add page route in app.json. 2. Invoking Page() in async task.");
	        curPageObj = {};
	    }
	    app.newPageTime = Date.now();
	    var page = new _parsePage2.default(curPageObj, webviewId, routePath);
	    pageInitData(page, webviewId);
	    if (_utils2.default.isDevTools()) {
	        __wxAppData[routePath] = page.data;
	        __wxAppData[routePath].__webviewId__ = webviewId;
	        _utils2.default.publish(eventDefine.UPDATE_APP_DATA);
	    }
	    currentPage = {
	        page: page,
	        webviewId: webviewId,
	        route: routePath
	    };
	    pageStack.push(currentPage);
	    page.onLoad(params);
	    page.onShow();
	    pageStackObjs[webviewId] = {
	        page: page,
	        route: routePath
	    };
	    reportRealtimeAction.triggerAnalytics("enterPage", page);
	    speedReport("appRoute2newPage", app.appRouteTime, app.newPageTime);
	};

	var pageHide = function pageHide(pageItem) {
	    //执行page hide event
	    pageItem.page.onHide();
	    reportRealtimeAction.triggerAnalytics("leavePage", pageItem.page);
	};

	var pageUnload = function pageUnload(pageItem) {
	    //do page unload
	    pageItem.page.onUnload();
	    _utils2.default.isDevTools() && (delete __wxAppData[pageItem.route], _utils2.default.publish(eventDefine.UPDATE_APP_DATA));
	    delete pageStackObjs[pageItem.webviewId];
	    pageStack = pageStack.slice(0, pageStack.length - 1);
	    reportRealtimeAction.triggerAnalytics("leavePage", pageItem.page);
	};

	var isTabBarsPage = function isTabBarsPage(pageItem) {
	    //
	    return tabBars.indexOf(pageItem.route) !== -1 || tabBars.indexOf(pageItem.route + ".html") !== -1;
	};

	var skipPage = function skipPage(routePath, pWebViewId, pageParams, pApiKey) {
	    //打开、跳转页面
	    _utils2.default.info("On app route: " + routePath);
	    app.appRouteTime = Date.now();
	    if ("navigateTo" === pApiKey) {
	        currentPage && pageHide(currentPage);
	        pageStackObjs.hasOwnProperty(pWebViewId) ? _utils2.default.error("Page route 错误(system error)", "navigateTo with an already exist webviewId " + pWebViewId) : pageParse(routePath, pWebViewId, pageParams);
	    } else if ("redirectTo" === pApiKey) {
	        currentPage && pageUnload(currentPage);
	        pageStackObjs.hasOwnProperty(pWebViewId) ? _utils2.default.error("Page route 错误(system error)", "redirectTo with an already exist webviewId " + pWebViewId) : pageParse(routePath, pWebViewId, pageParams);
	    } else if ("navigateBack" === pApiKey) {
	        for (var isExist = !1, i = pageStack.length - 1; i >= 0; i--) {
	            var pageItem = pageStack[i];
	            if (pageItem.webviewId === pWebViewId) {
	                isExist = !0;
	                currentPage = pageItem;
	                pageItem.page.onShow();
	                reportRealtimeAction.triggerAnalytics("enterPage", pageItem);
	                break;
	            }
	            pageUnload(pageItem);
	        }
	        isExist || _utils2.default.error("Page route 错误(system error)", "navigateBack with an unexist webviewId " + pWebViewId);
	    } else if ("switchTab" === pApiKey) {
	        for (var onlyOnePage = !0; pageStack.length > 1;) {
	            pageUnload(pageStack[pageStack.length - 1]);
	            onlyOnePage = !1;
	        }
	        if (pageStack[0].webviewId === pWebViewId) {
	            currentPage = pageStack[0];
	            onlyOnePage || currentPage.page.onShow();
	        } else if (isTabBarsPage(pageStack[0]) ? onlyOnePage && pageHide(pageStack[0]) : pageUnload(pageStack[0]), pageStackObjs.hasOwnProperty(pWebViewId)) {
	            var pageObj = pageStackObjs[pWebViewId].page;
	            currentPage = {
	                webviewId: pWebViewId,
	                route: routePath,
	                page: pageObj
	            };
	            pageStack = [currentPage];
	            pageObj.onShow();
	            reportRealtimeAction.triggerAnalytics("enterPage", pageObj);
	        } else {
	            pageStack = [];
	            pageParse(routePath, pWebViewId, pageParams);
	        }
	    } else {
	        "appLaunch" === pApiKey ? pageStackObjs.hasOwnProperty(pWebViewId) ? _utils2.default.error("Page route 错误(system error)", "appLaunch with an already exist webviewId " + pWebViewId) : pageParse(routePath, pWebViewId, pageParams) : _utils2.default.error("Page route 错误(system error)", "Illegal open type: " + pApiKey);
	    }
	};

	var doWebviewEvent = function doWebviewEvent(pWebviewId, pEvent, params) {
	    //do dom ready
	    if (!pageStackObjs.hasOwnProperty(pWebviewId)) {
	        return _utils2.default.warn("事件警告", "OnWebviewEvent: " + pEvent + ", WebviewId: " + pWebviewId + " not found");
	    }
	    var pageItem = pageStackObjs[pWebviewId],
	        pageObj = pageItem.page;
	    return pEvent === eventDefine.DOM_READY_EVENT ? (app.pageReadyTime = Date.now(), _utils2.default.info("Invoke event onReady in page: " + pageItem.route), pageObj.onReady(), void speedReport("newPage2pageReady", app.newPageTime, app.pageReadyTime)) : (_utils2.default.info("Invoke event " + pEvent + " in page: " + pageItem.route), pageObj.hasOwnProperty(pEvent) ? _utils2.default.safeInvoke.call(pageObj, pEvent, params) : _utils2.default.warn("事件警告", "Do not have " + pEvent + " handler in current page: " + pageItem.route + ". Please make sure that " + pEvent + " handler has been defined in " + pageItem.route + ", or " + pageItem.route + " has been added into app.json"));
	};

	var pullDownRefresh = function pullDownRefresh(pWebviewId) {
	    //do pulldownrefresh
	    pageStackObjs.hasOwnProperty(pWebviewId) || _utils2.default.warn("事件警告", "onPullDownRefresh WebviewId: " + pWebviewId + " not found");
	    var pageItem = pageStackObjs[pWebviewId],
	        pageObj = pageItem.page;
	    if (pageObj.hasOwnProperty("onPullDownRefresh")) {
	        _utils2.default.info("Invoke event onPullDownRefresh in page: " + pageItem.route);
	        _utils2.default.safeInvoke.call(pageObj, "onPullDownRefresh");
	        reportRealtimeAction.triggerAnalytics("pullDownRefresh", pageObj);
	    }
	};

	var invokeShareAppMessage = function invokeShareAppMessage(params, pWebviewId) {
	    //invoke event onShareAppMessage
	    var shareParams = params,
	        pageItem = pageStackObjs[pWebviewId],
	        pageObj = pageItem.page,
	        eventName = "onShareAppMessage";
	    if (pageObj.hasOwnProperty(eventName)) {
	        _utils2.default.info("Invoke event onShareAppMessage in page: " + pageItem.route);
	        var shareObj = _utils2.default.safeInvoke.call(pageObj, eventName) || {};
	        shareParams.title = shareObj.title || params.title;
	        shareParams.desc = shareObj.desc || params.desc;
	        shareParams.path = shareObj.path ? _utils2.default.addHtmlSuffixToUrl(shareObj.path) : params.path;
	        shareParams.path.length > 0 && "/" === shareParams.path[0] && (shareParams.path = shareParams.path.substr(1));
	        shareParams.success = shareObj.success;
	        shareParams.cancel = shareObj.cancel;
	        shareParams.fail = shareObj.fail;
	        shareParams.complete = shareObj.complete;
	    }
	    return shareParams;
	};
	wd.onAppRoute(_utils2.default.surroundByTryCatch(function (params) {
	    var path = params.path,
	        webviewId = params.webviewId,
	        query = params.query || {},
	        openType = params.openType;
	    skipPage(path, webviewId, query, openType);
	}), "onAppRoute");

	wd.onWebviewEvent(_utils2.default.surroundByTryCatch(function (params) {
	    var webviewId = params.webviewId,
	        eventName = params.eventName,
	        data = params.data;
	    return doWebviewEvent(webviewId, eventName, data);
	}, "onWebviewEvent"));

	ServiceJSBridge.on("onPullDownRefresh", _utils2.default.surroundByTryCatch(function (e, pWebViewId) {
	    pullDownRefresh(pWebViewId);
	}, "onPullDownRefresh"));

	var shareAppMessage = function shareAppMessage(params, webviewId) {
	    var shareInfo = invokeShareAppMessage(params, webviewId);
	    ServiceJSBridge.invoke("shareAppMessage", shareInfo, function (res) {
	        / ^shareAppMessage: ok /.test(res.errMsg) && "function" == typeof shareInfo.success ? shareInfo.success(res) : /^shareAppMessage:cancel/.test(res.errMsg) && "function" == typeof shareInfo.cancel ? shareInfo.cancel(res) : /^shareAppMessage:fail/.test(res.errMsg) && "function" == typeof shareInfo.fail && shareInfo.fail(res), //bug?? 原代码：shareInfo.fail && shareInfo.cancel(res)
	        "function" == typeof shareInfo.complete && shareInfo.complete(res);
	    });
	};

	ServiceJSBridge.on("onShareAppMessage", _utils2.default.surroundByTryCatch(shareAppMessage, "onShareAppMessage"));
	reset = function reset() {
	    currentPage = undefined;
	    pageStackObjs = {};
	    pageRegObjs = {};
	    pageStack = [];
	    pageIndex = 0;
	};
	setWxConfig = function setWxConfig(e) {
	    __wxConfig__ = e;
	};
	setWxRoute = function setWxRoute(e) {
	    __wxRoute = e;
	};
	setWxRouteBegin = function setWxRouteBegin(e) {
	    __wxRouteBegin = e;
	};
	getWebviewIdToPage = function getWebviewIdToPage() {
	    return pageStackObjs;
	};
	getRouteToPage = function getRouteToPage() {
	    return pageRegObjs;
	};

	exports.default = {
	    getRouteToPage: getRouteToPage,
	    getWebviewIdToPage: getWebviewIdToPage,
	    setWxRouteBegin: setWxRouteBegin,
	    setWxRoute: setWxRoute,
	    setWxConfig: setWxConfig,
	    reset: reset,
	    pageHolder: pageHolder,
	    getCurrentPages: getCurrentPages,
	    getCurrentPage: getCurrentPage
	};

/***/ }),
/* 40 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	exports.__esModule = true;

	var _iterator = __webpack_require__(41);

	var _iterator2 = _interopRequireDefault(_iterator);

	var _symbol = __webpack_require__(61);

	var _symbol2 = _interopRequireDefault(_symbol);

	var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
	  return typeof obj === "undefined" ? "undefined" : _typeof(obj);
	} : function (obj) {
	  return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
	};

/***/ }),
/* 41 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(42), __esModule: true };

/***/ }),
/* 42 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(43);
	__webpack_require__(56);
	module.exports = __webpack_require__(60).f('iterator');

/***/ }),
/* 43 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	var $at  = __webpack_require__(44)(true);

	// 21.1.3.27 String.prototype[@@iterator]()
	__webpack_require__(45)(String, 'String', function(iterated){
	  this._t = String(iterated); // target
	  this._i = 0;                // next index
	// 21.1.5.2.1 %StringIteratorPrototype%.next()
	}, function(){
	  var O     = this._t
	    , index = this._i
	    , point;
	  if(index >= O.length)return {value: undefined, done: true};
	  point = $at(O, index);
	  this._i += point.length;
	  return {value: point, done: false};
	});

/***/ }),
/* 44 */
/***/ (function(module, exports, __webpack_require__) {

	var toInteger = __webpack_require__(17)
	  , defined   = __webpack_require__(8);
	// true  -> String#at
	// false -> String#codePointAt
	module.exports = function(TO_STRING){
	  return function(that, pos){
	    var s = String(defined(that))
	      , i = toInteger(pos)
	      , l = s.length
	      , a, b;
	    if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
	    a = s.charCodeAt(i);
	    return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
	      ? TO_STRING ? s.charAt(i) : a
	      : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
	  };
	};

/***/ }),
/* 45 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	var LIBRARY        = __webpack_require__(46)
	  , $export        = __webpack_require__(25)
	  , redefine       = __webpack_require__(47)
	  , hide           = __webpack_require__(28)
	  , has            = __webpack_require__(11)
	  , Iterators      = __webpack_require__(48)
	  , $iterCreate    = __webpack_require__(49)
	  , setToStringTag = __webpack_require__(53)
	  , getPrototypeOf = __webpack_require__(55)
	  , ITERATOR       = __webpack_require__(54)('iterator')
	  , BUGGY          = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`
	  , FF_ITERATOR    = '@@iterator'
	  , KEYS           = 'keys'
	  , VALUES         = 'values';

	var returnThis = function(){ return this; };

	module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){
	  $iterCreate(Constructor, NAME, next);
	  var getMethod = function(kind){
	    if(!BUGGY && kind in proto)return proto[kind];
	    switch(kind){
	      case KEYS: return function keys(){ return new Constructor(this, kind); };
	      case VALUES: return function values(){ return new Constructor(this, kind); };
	    } return function entries(){ return new Constructor(this, kind); };
	  };
	  var TAG        = NAME + ' Iterator'
	    , DEF_VALUES = DEFAULT == VALUES
	    , VALUES_BUG = false
	    , proto      = Base.prototype
	    , $native    = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]
	    , $default   = $native || getMethod(DEFAULT)
	    , $entries   = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined
	    , $anyNative = NAME == 'Array' ? proto.entries || $native : $native
	    , methods, key, IteratorPrototype;
	  // Fix native
	  if($anyNative){
	    IteratorPrototype = getPrototypeOf($anyNative.call(new Base));
	    if(IteratorPrototype !== Object.prototype){
	      // Set @@toStringTag to native iterators
	      setToStringTag(IteratorPrototype, TAG, true);
	      // fix for some old engines
	      if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);
	    }
	  }
	  // fix Array#{values, @@iterator}.name in V8 / FF
	  if(DEF_VALUES && $native && $native.name !== VALUES){
	    VALUES_BUG = true;
	    $default = function values(){ return $native.call(this); };
	  }
	  // Define iterator
	  if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){
	    hide(proto, ITERATOR, $default);
	  }
	  // Plug for library
	  Iterators[NAME] = $default;
	  Iterators[TAG]  = returnThis;
	  if(DEFAULT){
	    methods = {
	      values:  DEF_VALUES ? $default : getMethod(VALUES),
	      keys:    IS_SET     ? $default : getMethod(KEYS),
	      entries: $entries
	    };
	    if(FORCED)for(key in methods){
	      if(!(key in proto))redefine(proto, key, methods[key]);
	    } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
	  }
	  return methods;
	};

/***/ }),
/* 46 */
/***/ (function(module, exports) {

	module.exports = true;

/***/ }),
/* 47 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = __webpack_require__(28);

/***/ }),
/* 48 */
/***/ (function(module, exports) {

	module.exports = {};

/***/ }),
/* 49 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	var create         = __webpack_require__(50)
	  , descriptor     = __webpack_require__(37)
	  , setToStringTag = __webpack_require__(53)
	  , IteratorPrototype = {};

	// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
	__webpack_require__(28)(IteratorPrototype, __webpack_require__(54)('iterator'), function(){ return this; });

	module.exports = function(Constructor, NAME, next){
	  Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)});
	  setToStringTag(Constructor, NAME + ' Iterator');
	};

/***/ }),
/* 50 */
/***/ (function(module, exports, __webpack_require__) {

	// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
	var anObject    = __webpack_require__(30)
	  , dPs         = __webpack_require__(51)
	  , enumBugKeys = __webpack_require__(23)
	  , IE_PROTO    = __webpack_require__(19)('IE_PROTO')
	  , Empty       = function(){ /* empty */ }
	  , PROTOTYPE   = 'prototype';

	// Create object with fake `null` prototype: use iframe Object with cleared prototype
	var createDict = function(){
	  // Thrash, waste and sodomy: IE GC bug
	  var iframe = __webpack_require__(35)('iframe')
	    , i      = enumBugKeys.length
	    , lt     = '<'
	    , gt     = '>'
	    , iframeDocument;
	  iframe.style.display = 'none';
	  __webpack_require__(52).appendChild(iframe);
	  iframe.src = 'javascript:'; // eslint-disable-line no-script-url
	  // createDict = iframe.contentWindow.Object;
	  // html.removeChild(iframe);
	  iframeDocument = iframe.contentWindow.document;
	  iframeDocument.open();
	  iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
	  iframeDocument.close();
	  createDict = iframeDocument.F;
	  while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];
	  return createDict();
	};

	module.exports = Object.create || function create(O, Properties){
	  var result;
	  if(O !== null){
	    Empty[PROTOTYPE] = anObject(O);
	    result = new Empty;
	    Empty[PROTOTYPE] = null;
	    // add "__proto__" for Object.getPrototypeOf polyfill
	    result[IE_PROTO] = O;
	  } else result = createDict();
	  return Properties === undefined ? result : dPs(result, Properties);
	};


/***/ }),
/* 51 */
/***/ (function(module, exports, __webpack_require__) {

	var dP       = __webpack_require__(29)
	  , anObject = __webpack_require__(30)
	  , getKeys  = __webpack_require__(9);

	module.exports = __webpack_require__(33) ? Object.defineProperties : function defineProperties(O, Properties){
	  anObject(O);
	  var keys   = getKeys(Properties)
	    , length = keys.length
	    , i = 0
	    , P;
	  while(length > i)dP.f(O, P = keys[i++], Properties[P]);
	  return O;
	};

/***/ }),
/* 52 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = __webpack_require__(21).document && document.documentElement;

/***/ }),
/* 53 */
/***/ (function(module, exports, __webpack_require__) {

	var def = __webpack_require__(29).f
	  , has = __webpack_require__(11)
	  , TAG = __webpack_require__(54)('toStringTag');

	module.exports = function(it, tag, stat){
	  if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
	};

/***/ }),
/* 54 */
/***/ (function(module, exports, __webpack_require__) {

	var store      = __webpack_require__(20)('wks')
	  , uid        = __webpack_require__(22)
	  , Symbol     = __webpack_require__(21).Symbol
	  , USE_SYMBOL = typeof Symbol == 'function';

	var $exports = module.exports = function(name){
	  return store[name] || (store[name] =
	    USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
	};

	$exports.store = store;

/***/ }),
/* 55 */
/***/ (function(module, exports, __webpack_require__) {

	// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
	var has         = __webpack_require__(11)
	  , toObject    = __webpack_require__(7)
	  , IE_PROTO    = __webpack_require__(19)('IE_PROTO')
	  , ObjectProto = Object.prototype;

	module.exports = Object.getPrototypeOf || function(O){
	  O = toObject(O);
	  if(has(O, IE_PROTO))return O[IE_PROTO];
	  if(typeof O.constructor == 'function' && O instanceof O.constructor){
	    return O.constructor.prototype;
	  } return O instanceof Object ? ObjectProto : null;
	};

/***/ }),
/* 56 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(57);
	var global        = __webpack_require__(21)
	  , hide          = __webpack_require__(28)
	  , Iterators     = __webpack_require__(48)
	  , TO_STRING_TAG = __webpack_require__(54)('toStringTag');

	for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){
	  var NAME       = collections[i]
	    , Collection = global[NAME]
	    , proto      = Collection && Collection.prototype;
	  if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);
	  Iterators[NAME] = Iterators.Array;
	}

/***/ }),
/* 57 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	var addToUnscopables = __webpack_require__(58)
	  , step             = __webpack_require__(59)
	  , Iterators        = __webpack_require__(48)
	  , toIObject        = __webpack_require__(12);

	// 22.1.3.4 Array.prototype.entries()
	// 22.1.3.13 Array.prototype.keys()
	// 22.1.3.29 Array.prototype.values()
	// 22.1.3.30 Array.prototype[@@iterator]()
	module.exports = __webpack_require__(45)(Array, 'Array', function(iterated, kind){
	  this._t = toIObject(iterated); // target
	  this._i = 0;                   // next index
	  this._k = kind;                // kind
	// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
	}, function(){
	  var O     = this._t
	    , kind  = this._k
	    , index = this._i++;
	  if(!O || index >= O.length){
	    this._t = undefined;
	    return step(1);
	  }
	  if(kind == 'keys'  )return step(0, index);
	  if(kind == 'values')return step(0, O[index]);
	  return step(0, [index, O[index]]);
	}, 'values');

	// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
	Iterators.Arguments = Iterators.Array;

	addToUnscopables('keys');
	addToUnscopables('values');
	addToUnscopables('entries');

/***/ }),
/* 58 */
/***/ (function(module, exports) {

	module.exports = function(){ /* empty */ };

/***/ }),
/* 59 */
/***/ (function(module, exports) {

	module.exports = function(done, value){
	  return {value: value, done: !!done};
	};

/***/ }),
/* 60 */
/***/ (function(module, exports, __webpack_require__) {

	exports.f = __webpack_require__(54);

/***/ }),
/* 61 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(62), __esModule: true };

/***/ }),
/* 62 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(63);
	__webpack_require__(74);
	__webpack_require__(75);
	__webpack_require__(76);
	module.exports = __webpack_require__(3).Symbol;

/***/ }),
/* 63 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	// ECMAScript 6 symbols shim
	var global         = __webpack_require__(21)
	  , has            = __webpack_require__(11)
	  , DESCRIPTORS    = __webpack_require__(33)
	  , $export        = __webpack_require__(25)
	  , redefine       = __webpack_require__(47)
	  , META           = __webpack_require__(64).KEY
	  , $fails         = __webpack_require__(34)
	  , shared         = __webpack_require__(20)
	  , setToStringTag = __webpack_require__(53)
	  , uid            = __webpack_require__(22)
	  , wks            = __webpack_require__(54)
	  , wksExt         = __webpack_require__(60)
	  , wksDefine      = __webpack_require__(65)
	  , keyOf          = __webpack_require__(66)
	  , enumKeys       = __webpack_require__(67)
	  , isArray        = __webpack_require__(70)
	  , anObject       = __webpack_require__(30)
	  , toIObject      = __webpack_require__(12)
	  , toPrimitive    = __webpack_require__(36)
	  , createDesc     = __webpack_require__(37)
	  , _create        = __webpack_require__(50)
	  , gOPNExt        = __webpack_require__(71)
	  , $GOPD          = __webpack_require__(73)
	  , $DP            = __webpack_require__(29)
	  , $keys          = __webpack_require__(9)
	  , gOPD           = $GOPD.f
	  , dP             = $DP.f
	  , gOPN           = gOPNExt.f
	  , $Symbol        = global.Symbol
	  , $JSON          = global.JSON
	  , _stringify     = $JSON && $JSON.stringify
	  , PROTOTYPE      = 'prototype'
	  , HIDDEN         = wks('_hidden')
	  , TO_PRIMITIVE   = wks('toPrimitive')
	  , isEnum         = {}.propertyIsEnumerable
	  , SymbolRegistry = shared('symbol-registry')
	  , AllSymbols     = shared('symbols')
	  , OPSymbols      = shared('op-symbols')
	  , ObjectProto    = Object[PROTOTYPE]
	  , USE_NATIVE     = typeof $Symbol == 'function'
	  , QObject        = global.QObject;
	// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
	var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;

	// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
	var setSymbolDesc = DESCRIPTORS && $fails(function(){
	  return _create(dP({}, 'a', {
	    get: function(){ return dP(this, 'a', {value: 7}).a; }
	  })).a != 7;
	}) ? function(it, key, D){
	  var protoDesc = gOPD(ObjectProto, key);
	  if(protoDesc)delete ObjectProto[key];
	  dP(it, key, D);
	  if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);
	} : dP;

	var wrap = function(tag){
	  var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
	  sym._k = tag;
	  return sym;
	};

	var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){
	  return typeof it == 'symbol';
	} : function(it){
	  return it instanceof $Symbol;
	};

	var $defineProperty = function defineProperty(it, key, D){
	  if(it === ObjectProto)$defineProperty(OPSymbols, key, D);
	  anObject(it);
	  key = toPrimitive(key, true);
	  anObject(D);
	  if(has(AllSymbols, key)){
	    if(!D.enumerable){
	      if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));
	      it[HIDDEN][key] = true;
	    } else {
	      if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;
	      D = _create(D, {enumerable: createDesc(0, false)});
	    } return setSymbolDesc(it, key, D);
	  } return dP(it, key, D);
	};
	var $defineProperties = function defineProperties(it, P){
	  anObject(it);
	  var keys = enumKeys(P = toIObject(P))
	    , i    = 0
	    , l = keys.length
	    , key;
	  while(l > i)$defineProperty(it, key = keys[i++], P[key]);
	  return it;
	};
	var $create = function create(it, P){
	  return P === undefined ? _create(it) : $defineProperties(_create(it), P);
	};
	var $propertyIsEnumerable = function propertyIsEnumerable(key){
	  var E = isEnum.call(this, key = toPrimitive(key, true));
	  if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;
	  return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
	};
	var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){
	  it  = toIObject(it);
	  key = toPrimitive(key, true);
	  if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;
	  var D = gOPD(it, key);
	  if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;
	  return D;
	};
	var $getOwnPropertyNames = function getOwnPropertyNames(it){
	  var names  = gOPN(toIObject(it))
	    , result = []
	    , i      = 0
	    , key;
	  while(names.length > i){
	    if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);
	  } return result;
	};
	var $getOwnPropertySymbols = function getOwnPropertySymbols(it){
	  var IS_OP  = it === ObjectProto
	    , names  = gOPN(IS_OP ? OPSymbols : toIObject(it))
	    , result = []
	    , i      = 0
	    , key;
	  while(names.length > i){
	    if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);
	  } return result;
	};

	// 19.4.1.1 Symbol([description])
	if(!USE_NATIVE){
	  $Symbol = function Symbol(){
	    if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');
	    var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
	    var $set = function(value){
	      if(this === ObjectProto)$set.call(OPSymbols, value);
	      if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
	      setSymbolDesc(this, tag, createDesc(1, value));
	    };
	    if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});
	    return wrap(tag);
	  };
	  redefine($Symbol[PROTOTYPE], 'toString', function toString(){
	    return this._k;
	  });

	  $GOPD.f = $getOwnPropertyDescriptor;
	  $DP.f   = $defineProperty;
	  __webpack_require__(72).f = gOPNExt.f = $getOwnPropertyNames;
	  __webpack_require__(69).f  = $propertyIsEnumerable;
	  __webpack_require__(68).f = $getOwnPropertySymbols;

	  if(DESCRIPTORS && !__webpack_require__(46)){
	    redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
	  }

	  wksExt.f = function(name){
	    return wrap(wks(name));
	  }
	}

	$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});

	for(var symbols = (
	  // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
	  'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
	).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);

	for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);

	$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
	  // 19.4.2.1 Symbol.for(key)
	  'for': function(key){
	    return has(SymbolRegistry, key += '')
	      ? SymbolRegistry[key]
	      : SymbolRegistry[key] = $Symbol(key);
	  },
	  // 19.4.2.5 Symbol.keyFor(sym)
	  keyFor: function keyFor(key){
	    if(isSymbol(key))return keyOf(SymbolRegistry, key);
	    throw TypeError(key + ' is not a symbol!');
	  },
	  useSetter: function(){ setter = true; },
	  useSimple: function(){ setter = false; }
	});

	$export($export.S + $export.F * !USE_NATIVE, 'Object', {
	  // 19.1.2.2 Object.create(O [, Properties])
	  create: $create,
	  // 19.1.2.4 Object.defineProperty(O, P, Attributes)
	  defineProperty: $defineProperty,
	  // 19.1.2.3 Object.defineProperties(O, Properties)
	  defineProperties: $defineProperties,
	  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
	  getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
	  // 19.1.2.7 Object.getOwnPropertyNames(O)
	  getOwnPropertyNames: $getOwnPropertyNames,
	  // 19.1.2.8 Object.getOwnPropertySymbols(O)
	  getOwnPropertySymbols: $getOwnPropertySymbols
	});

	// 24.3.2 JSON.stringify(value [, replacer [, space]])
	$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){
	  var S = $Symbol();
	  // MS Edge converts symbol values to JSON as {}
	  // WebKit converts symbol values to JSON as null
	  // V8 throws on boxed symbols
	  return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';
	})), 'JSON', {
	  stringify: function stringify(it){
	    if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined
	    var args = [it]
	      , i    = 1
	      , replacer, $replacer;
	    while(arguments.length > i)args.push(arguments[i++]);
	    replacer = args[1];
	    if(typeof replacer == 'function')$replacer = replacer;
	    if($replacer || !isArray(replacer))replacer = function(key, value){
	      if($replacer)value = $replacer.call(this, key, value);
	      if(!isSymbol(value))return value;
	    };
	    args[1] = replacer;
	    return _stringify.apply($JSON, args);
	  }
	});

	// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
	$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(28)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
	// 19.4.3.5 Symbol.prototype[@@toStringTag]
	setToStringTag($Symbol, 'Symbol');
	// 20.2.1.9 Math[@@toStringTag]
	setToStringTag(Math, 'Math', true);
	// 24.3.3 JSON[@@toStringTag]
	setToStringTag(global.JSON, 'JSON', true);

/***/ }),
/* 64 */
/***/ (function(module, exports, __webpack_require__) {

	var META     = __webpack_require__(22)('meta')
	  , isObject = __webpack_require__(31)
	  , has      = __webpack_require__(11)
	  , setDesc  = __webpack_require__(29).f
	  , id       = 0;
	var isExtensible = Object.isExtensible || function(){
	  return true;
	};
	var FREEZE = !__webpack_require__(34)(function(){
	  return isExtensible(Object.preventExtensions({}));
	});
	var setMeta = function(it){
	  setDesc(it, META, {value: {
	    i: 'O' + ++id, // object ID
	    w: {}          // weak collections IDs
	  }});
	};
	var fastKey = function(it, create){
	  // return primitive with prefix
	  if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
	  if(!has(it, META)){
	    // can't set metadata to uncaught frozen object
	    if(!isExtensible(it))return 'F';
	    // not necessary to add metadata
	    if(!create)return 'E';
	    // add missing metadata
	    setMeta(it);
	  // return object ID
	  } return it[META].i;
	};
	var getWeak = function(it, create){
	  if(!has(it, META)){
	    // can't set metadata to uncaught frozen object
	    if(!isExtensible(it))return true;
	    // not necessary to add metadata
	    if(!create)return false;
	    // add missing metadata
	    setMeta(it);
	  // return hash weak collections IDs
	  } return it[META].w;
	};
	// add metadata on freeze-family methods calling
	var onFreeze = function(it){
	  if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);
	  return it;
	};
	var meta = module.exports = {
	  KEY:      META,
	  NEED:     false,
	  fastKey:  fastKey,
	  getWeak:  getWeak,
	  onFreeze: onFreeze
	};

/***/ }),
/* 65 */
/***/ (function(module, exports, __webpack_require__) {

	var global         = __webpack_require__(21)
	  , core           = __webpack_require__(3)
	  , LIBRARY        = __webpack_require__(46)
	  , wksExt         = __webpack_require__(60)
	  , defineProperty = __webpack_require__(29).f;
	module.exports = function(name){
	  var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
	  if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});
	};

/***/ }),
/* 66 */
/***/ (function(module, exports, __webpack_require__) {

	var getKeys   = __webpack_require__(9)
	  , toIObject = __webpack_require__(12);
	module.exports = function(object, el){
	  var O      = toIObject(object)
	    , keys   = getKeys(O)
	    , length = keys.length
	    , index  = 0
	    , key;
	  while(length > index)if(O[key = keys[index++]] === el)return key;
	};

/***/ }),
/* 67 */
/***/ (function(module, exports, __webpack_require__) {

	// all enumerable object keys, includes symbols
	var getKeys = __webpack_require__(9)
	  , gOPS    = __webpack_require__(68)
	  , pIE     = __webpack_require__(69);
	module.exports = function(it){
	  var result     = getKeys(it)
	    , getSymbols = gOPS.f;
	  if(getSymbols){
	    var symbols = getSymbols(it)
	      , isEnum  = pIE.f
	      , i       = 0
	      , key;
	    while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);
	  } return result;
	};

/***/ }),
/* 68 */
/***/ (function(module, exports) {

	exports.f = Object.getOwnPropertySymbols;

/***/ }),
/* 69 */
/***/ (function(module, exports) {

	exports.f = {}.propertyIsEnumerable;

/***/ }),
/* 70 */
/***/ (function(module, exports, __webpack_require__) {

	// 7.2.2 IsArray(argument)
	var cof = __webpack_require__(14);
	module.exports = Array.isArray || function isArray(arg){
	  return cof(arg) == 'Array';
	};

/***/ }),
/* 71 */
/***/ (function(module, exports, __webpack_require__) {

	// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
	var toIObject = __webpack_require__(12)
	  , gOPN      = __webpack_require__(72).f
	  , toString  = {}.toString;

	var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
	  ? Object.getOwnPropertyNames(window) : [];

	var getWindowNames = function(it){
	  try {
	    return gOPN(it);
	  } catch(e){
	    return windowNames.slice();
	  }
	};

	module.exports.f = function getOwnPropertyNames(it){
	  return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
	};


/***/ }),
/* 72 */
/***/ (function(module, exports, __webpack_require__) {

	// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
	var $keys      = __webpack_require__(10)
	  , hiddenKeys = __webpack_require__(23).concat('length', 'prototype');

	exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){
	  return $keys(O, hiddenKeys);
	};

/***/ }),
/* 73 */
/***/ (function(module, exports, __webpack_require__) {

	var pIE            = __webpack_require__(69)
	  , createDesc     = __webpack_require__(37)
	  , toIObject      = __webpack_require__(12)
	  , toPrimitive    = __webpack_require__(36)
	  , has            = __webpack_require__(11)
	  , IE8_DOM_DEFINE = __webpack_require__(32)
	  , gOPD           = Object.getOwnPropertyDescriptor;

	exports.f = __webpack_require__(33) ? gOPD : function getOwnPropertyDescriptor(O, P){
	  O = toIObject(O);
	  P = toPrimitive(P, true);
	  if(IE8_DOM_DEFINE)try {
	    return gOPD(O, P);
	  } catch(e){ /* empty */ }
	  if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);
	};

/***/ }),
/* 74 */
/***/ (function(module, exports) {

	

/***/ }),
/* 75 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(65)('asyncIterator');

/***/ }),
/* 76 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(65)('observable');

/***/ }),
/* 77 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	Object.defineProperty(exports, "__esModule", {
	  value: true
	});

	var _extends2 = __webpack_require__(78);

	var _extends3 = _interopRequireDefault(_extends2);

	var _defineProperty = __webpack_require__(83);

	var _defineProperty2 = _interopRequireDefault(_defineProperty);

	var _typeof2 = __webpack_require__(40);

	var _typeof3 = _interopRequireDefault(_typeof2);

	var _keys = __webpack_require__(4);

	var _keys2 = _interopRequireDefault(_keys);

	var _getPrototypeOf = __webpack_require__(86);

	var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);

	var _classCallCheck2 = __webpack_require__(89);

	var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

	var _possibleConstructorReturn2 = __webpack_require__(90);

	var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

	var _inherits2 = __webpack_require__(91);

	var _inherits3 = _interopRequireDefault(_inherits2);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	var isDevTools = function isDevTools() {
	  return true;
	};
	var addHtmlSuffixToUrl = function addHtmlSuffixToUrl(url) {
	  //给url增加.html后缀
	  if ("string" != typeof url) {
	    return url;
	  }
	  var uri = url.split("?")[0],
	      query = url.split("?")[1];
	  uri += ".html";
	  if ("undefined" != typeof query) {
	    return uri + "?" + query;
	  } else {
	    return uri;
	  }
	};
	var removeHtmlSuffixFromUrl = function removeHtmlSuffixFromUrl(url) {
	  //去除url后面的.html
	  if ("string" == typeof url && url.indexOf(".html") === url.length - 4) {
	    return url.substring(0, url.length - 5);
	  } else {
	    return url;
	  }
	};

	var hasOwnProperty = Object.prototype.hasOwnProperty;

	var toString = Object.prototype.toString;

	var AppServiceEngineKnownError = function (_Error) {
	  (0, _inherits3.default)(AppServiceEngineKnownError, _Error);

	  function AppServiceEngineKnownError(e) {
	    (0, _classCallCheck3.default)(this, AppServiceEngineKnownError);

	    var _this = (0, _possibleConstructorReturn3.default)(this, (AppServiceEngineKnownError.__proto__ || (0, _getPrototypeOf2.default)(AppServiceEngineKnownError)).call(this, "APP-SERVICE-Engine:" + e));

	    _this.type = "AppServiceEngineKnownError";
	    return _this;
	  }

	  return AppServiceEngineKnownError;
	}(Error);

	var pageEngine = {
	  getPlatform: function getPlatform() {
	    //get platform
	    return "devtools";
	  },
	  safeInvoke: function safeInvoke() {
	    //do page method
	    var res = void 0,
	        args = Array.prototype.slice.call(arguments),
	        fn = args[0];
	    args = args.slice(1);
	    try {
	      var startTime = Date.now();
	      res = this[fn].apply(this, args);
	      var doTime = Date.now() - startTime;
	      doTime > 1e3 && Reporter.slowReport({
	        key: "pageInvoke",
	        cost: doTime,
	        extend: "at " + this.__route__ + " page " + fn + " function"
	      });
	    } catch (e) {
	      Reporter.thirdErrorReport({
	        error: e,
	        extend: 'at "' + this.__route__ + '" page ' + fn + " function"
	      });
	    }
	    return res;
	  },
	  isEmptyObject: function isEmptyObject(obj) {
	    for (var t in obj) {
	      if (obj.hasOwnProperty(t)) {
	        return false;
	      }
	    }
	    return true;
	  },
	  extend: function extend(target, obj) {
	    for (var keys = (0, _keys2.default)(obj), o = keys.length; o--;) {
	      target[keys[o]] = obj[keys[o]];
	    }
	    return target;
	  },
	  noop: function noop() {},
	  getDataType: function getDataType(param) {
	    return Object.prototype.toString.call(param).split(" ")[1].split("]")[0];
	  },
	  isObject: function isObject(param) {
	    return null !== param && "object" === (typeof param === "undefined" ? "undefined" : (0, _typeof3.default)(param));
	  },
	  hasOwn: function hasOwn(obj, attr) {
	    return hasOwnProperty.call(obj, attr);
	  },
	  def: function def(obj, attr, value, enumerable) {
	    (0, _defineProperty2.default)(obj, attr, {
	      value: value,
	      enumerable: !!enumerable,
	      writable: true,
	      configurable: true
	    });
	  },
	  isPlainObject: function isPlainObject(e) {
	    return toString.call(e) === "[object Object]";
	  },
	  error: function error(title, err) {
	    console.group(new Date() + " " + title);
	    console.error(err);
	    console.groupEnd();
	  },
	  warn: function warn(title, _warn) {
	    console.group(new Date() + " " + title);
	    console.warn(_warn);
	    console.groupEnd();
	  },
	  info: function info(msg) {
	    __wxConfig__ && __wxConfig__.debug && console.info(msg);
	  },
	  surroundByTryCatch: function surroundByTryCatch(fn, extend) {
	    var self = this;
	    return function () {
	      try {
	        return fn.apply(fn, arguments);
	      } catch (e) {
	        self.errorReport(e, extend);
	        return function () {};
	      }
	    };
	  },
	  errorReport: function errorReport(err, extend) {
	    //d
	    if ("[object Error]" === Object.prototype.toString.apply(err)) {
	      if ("AppServiceEngineKnownError" === err.type) {
	        throw err;
	      }
	      Reporter.errorReport({
	        key: "jsEnginScriptError",
	        error: err,
	        extend: extend
	      });
	    }
	  },
	  publish: function publish() {
	    var params = Array.prototype.slice.call(arguments),
	        defaultOpt = {
	      options: {
	        timestamp: Date.now()
	      }
	    };
	    params[1] ? params[1].options = this.extend(params[1].options || {}, defaultOpt.options) : params[1] = defaultOpt;
	    ServiceJSBridge.publish.apply(ServiceJSBridge, params);
	  },
	  AppServiceEngineKnownError: AppServiceEngineKnownError
	};

	// export default Object.assi{},{},pageEngine,htmlSuffix);
	exports.default = (0, _extends3.default)({}, pageEngine, {
	  isDevTools: isDevTools,
	  addHtmlSuffixToUrl: addHtmlSuffixToUrl,
	  removeHtmlSuffixFromUrl: removeHtmlSuffixFromUrl
	});

/***/ }),
/* 78 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	exports.__esModule = true;

	var _assign = __webpack_require__(79);

	var _assign2 = _interopRequireDefault(_assign);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	exports.default = _assign2.default || function (target) {
	  for (var i = 1; i < arguments.length; i++) {
	    var source = arguments[i];

	    for (var key in source) {
	      if (Object.prototype.hasOwnProperty.call(source, key)) {
	        target[key] = source[key];
	      }
	    }
	  }

	  return target;
	};

/***/ }),
/* 79 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(80), __esModule: true };

/***/ }),
/* 80 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(81);
	module.exports = __webpack_require__(3).Object.assign;

/***/ }),
/* 81 */
/***/ (function(module, exports, __webpack_require__) {

	// 19.1.3.1 Object.assign(target, source)
	var $export = __webpack_require__(25);

	$export($export.S + $export.F, 'Object', {assign: __webpack_require__(82)});

/***/ }),
/* 82 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	// 19.1.2.1 Object.assign(target, source, ...)
	var getKeys  = __webpack_require__(9)
	  , gOPS     = __webpack_require__(68)
	  , pIE      = __webpack_require__(69)
	  , toObject = __webpack_require__(7)
	  , IObject  = __webpack_require__(13)
	  , $assign  = Object.assign;

	// should work with symbols and should have deterministic property order (V8 bug)
	module.exports = !$assign || __webpack_require__(34)(function(){
	  var A = {}
	    , B = {}
	    , S = Symbol()
	    , K = 'abcdefghijklmnopqrst';
	  A[S] = 7;
	  K.split('').forEach(function(k){ B[k] = k; });
	  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
	}) ? function assign(target, source){ // eslint-disable-line no-unused-vars
	  var T     = toObject(target)
	    , aLen  = arguments.length
	    , index = 1
	    , getSymbols = gOPS.f
	    , isEnum     = pIE.f;
	  while(aLen > index){
	    var S      = IObject(arguments[index++])
	      , keys   = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)
	      , length = keys.length
	      , j      = 0
	      , key;
	    while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];
	  } return T;
	} : $assign;

/***/ }),
/* 83 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(84), __esModule: true };

/***/ }),
/* 84 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(85);
	var $Object = __webpack_require__(3).Object;
	module.exports = function defineProperty(it, key, desc){
	  return $Object.defineProperty(it, key, desc);
	};

/***/ }),
/* 85 */
/***/ (function(module, exports, __webpack_require__) {

	var $export = __webpack_require__(25);
	// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
	$export($export.S + $export.F * !__webpack_require__(33), 'Object', {defineProperty: __webpack_require__(29).f});

/***/ }),
/* 86 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(87), __esModule: true };

/***/ }),
/* 87 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(88);
	module.exports = __webpack_require__(3).Object.getPrototypeOf;

/***/ }),
/* 88 */
/***/ (function(module, exports, __webpack_require__) {

	// 19.1.2.9 Object.getPrototypeOf(O)
	var toObject        = __webpack_require__(7)
	  , $getPrototypeOf = __webpack_require__(55);

	__webpack_require__(24)('getPrototypeOf', function(){
	  return function getPrototypeOf(it){
	    return $getPrototypeOf(toObject(it));
	  };
	});

/***/ }),
/* 89 */
/***/ (function(module, exports) {

	"use strict";

	exports.__esModule = true;

	exports.default = function (instance, Constructor) {
	  if (!(instance instanceof Constructor)) {
	    throw new TypeError("Cannot call a class as a function");
	  }
	};

/***/ }),
/* 90 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	exports.__esModule = true;

	var _typeof2 = __webpack_require__(40);

	var _typeof3 = _interopRequireDefault(_typeof2);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	exports.default = function (self, call) {
	  if (!self) {
	    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
	  }

	  return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
	};

/***/ }),
/* 91 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	exports.__esModule = true;

	var _setPrototypeOf = __webpack_require__(92);

	var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);

	var _create = __webpack_require__(96);

	var _create2 = _interopRequireDefault(_create);

	var _typeof2 = __webpack_require__(40);

	var _typeof3 = _interopRequireDefault(_typeof2);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	exports.default = function (subClass, superClass) {
	  if (typeof superClass !== "function" && superClass !== null) {
	    throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
	  }

	  subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
	    constructor: {
	      value: subClass,
	      enumerable: false,
	      writable: true,
	      configurable: true
	    }
	  });
	  if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
	};

/***/ }),
/* 92 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(93), __esModule: true };

/***/ }),
/* 93 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(94);
	module.exports = __webpack_require__(3).Object.setPrototypeOf;

/***/ }),
/* 94 */
/***/ (function(module, exports, __webpack_require__) {

	// 19.1.3.19 Object.setPrototypeOf(O, proto)
	var $export = __webpack_require__(25);
	$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(95).set});

/***/ }),
/* 95 */
/***/ (function(module, exports, __webpack_require__) {

	// Works with __proto__ only. Old v8 can't work with null proto objects.
	/* eslint-disable no-proto */
	var isObject = __webpack_require__(31)
	  , anObject = __webpack_require__(30);
	var check = function(O, proto){
	  anObject(O);
	  if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!");
	};
	module.exports = {
	  set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
	    function(test, buggy, set){
	      try {
	        set = __webpack_require__(26)(Function.call, __webpack_require__(73).f(Object.prototype, '__proto__').set, 2);
	        set(test, []);
	        buggy = !(test instanceof Array);
	      } catch(e){ buggy = true; }
	      return function setPrototypeOf(O, proto){
	        check(O, proto);
	        if(buggy)O.__proto__ = proto;
	        else set(O, proto);
	        return O;
	      };
	    }({}, false) : undefined),
	  check: check
	};

/***/ }),
/* 96 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(97), __esModule: true };

/***/ }),
/* 97 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(98);
	var $Object = __webpack_require__(3).Object;
	module.exports = function create(P, D){
	  return $Object.create(P, D);
	};

/***/ }),
/* 98 */
/***/ (function(module, exports, __webpack_require__) {

	var $export = __webpack_require__(25)
	// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
	$export($export.S, 'Object', {create: __webpack_require__(50)});

/***/ }),
/* 99 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});

	var _stringify = __webpack_require__(1);

	var _stringify2 = _interopRequireDefault(_stringify);

	var _classCallCheck2 = __webpack_require__(89);

	var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

	var _createClass2 = __webpack_require__(100);

	var _createClass3 = _interopRequireDefault(_createClass2);

	var _utils = __webpack_require__(77);

	var _utils2 = _interopRequireDefault(_utils);

	var _parsePath = __webpack_require__(101);

	var parsePath = _interopRequireWildcard(_parsePath);

	var _toAppView = __webpack_require__(102);

	var _toAppView2 = _interopRequireDefault(_toAppView);

	var _iteratorHandle = __webpack_require__(103);

	var _iteratorHandle2 = _interopRequireDefault(_iteratorHandle);

	function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	var sysEventKeys = ["onLoad", "onReady", "onShow", "onRouteEnd", "onHide", "onUnload"];
	var isSysAttr = function isSysAttr(key) {
	    //校验e是否为系统事件或属性
	    for (var i = 0; i < sysEventKeys.length; ++i) {
	        if (sysEventKeys[i] === key) {
	            return true;
	        }
	    }
	    return "data" === key;
	};
	var baseAttrs = ["__wxWebviewId__", "__route__"];

	var isBaseAttr = function isBaseAttr(name) {
	    return baseAttrs.indexOf(name) !== -1;
	};

	var parsePage = function () {
	    function parsePage() {
	        (0, _classCallCheck3.default)(this, parsePage);

	        var pageObj = arguments.length <= 0 || void 0 === arguments[0] ? {} : arguments[0],
	            curPage = this,
	            webviewId = arguments[1],
	            routePath = arguments[2];

	        var pageBaseAttr = {
	            __wxWebviewId__: webviewId,
	            __route__: routePath
	        };
	        baseAttrs.forEach(function (key) {
	            curPage.__defineSetter__(key, function () {
	                _utils2.default.warn("关键字保护", "should not change the protected attribute " + key);
	            });
	            curPage.__defineGetter__(key, function () {
	                return pageBaseAttr[key];
	            });
	        });
	        pageObj.data = pageObj.data || {};
	        _utils2.default.isPlainObject(pageObj.data) || _utils2.default.error("Page data error", "data must be an object, your data is " + (0, _stringify2.default)(pageObj.data));
	        this.data = JSON.parse((0, _stringify2.default)(pageObj.data));
	        sysEventKeys.forEach(function (eventName) {
	            //定义页面事件
	            curPage[eventName] = function () {
	                var eventFun = (pageObj[eventName] || _utils2.default.noop).bind(this),
	                    res;
	                _utils2.default.info(this.__route__ + ": " + eventName + " have been invoked");
	                try {
	                    var startTime = Date.now();
	                    res = eventFun.apply(this, arguments);
	                    var runTime = Date.now() - startTime;
	                    runTime > 1e3 && Reporter.slowReport({
	                        key: "pageInvoke",
	                        cost: runTime,
	                        extend: 'at "' + this.__route__ + '" page lifeCycleMethod ' + eventName + " function"
	                    });
	                } catch (err) {
	                    Reporter.thirdErrorReport({
	                        error: err,
	                        extend: 'at "' + this.__route__ + '" page lifeCycleMethod ' + eventName + " function"
	                    });
	                }
	                return res;
	            }.bind(curPage);
	        });
	        var copyPageObjByKey = function copyPageObjByKey(attrName) {
	            //定义页面其它方法与属性
	            isBaseAttr(attrName) ? _utils2.default.warn("关键字保护", "Page's " + attrName + " is write-protected") : isSysAttr(attrName) || ("Function" === _utils2.default.getDataType(pageObj[attrName]) ? curPage[attrName] = function () {
	                var res;
	                try {
	                    var startTime = Date.now();
	                    res = pageObj[attrName].apply(this, arguments);
	                    var runTime = Date.now() - startTime;
	                    runTime > 1e3 && Reporter.slowReport({
	                        key: "pageInvoke",
	                        cost: runTime,
	                        extend: "at " + this.__route__ + " page " + attrName + " function"
	                    });
	                } catch (err) {
	                    Reporter.thirdErrorReport({
	                        error: err,
	                        extend: 'at "' + this.__route__ + '" page ' + attrName + " function"
	                    });
	                }
	                return res;
	            }.bind(curPage) : curPage[attrName] = (0, _iteratorHandle2.default)(pageObj[attrName]));
	        };
	        for (var key in pageObj) {
	            copyPageObjByKey(key);
	        }
	        "function" == typeof pageObj.onShareAppMessage && ServiceJSBridge.invoke("showShareMenu", {}, _utils2.default.info);
	    }

	    (0, _createClass3.default)(parsePage, [{
	        key: 'update',
	        value: function update() {
	            _utils2.default.warn("将被废弃", "Page.update is deprecated, setData updates the view implicitly. [It will be removed in 2016.11]");
	        }
	    }, {
	        key: 'forceUpdate',
	        value: function forceUpdate() {
	            _utils2.default.warn("将被废弃", "Page.forceUpdate is deprecated, setData updates the view implicitly. [It will be removed in 2016.11]");
	        }
	    }, {
	        key: 'setData',
	        value: function setData(dataObj) {
	            try {
	                var type = _utils2.default.getDataType(dataObj);
	                "Object" !== type && _utils2.default.error("类型错误", "setData accepts an Object rather than some " + type);
	                for (var key in dataObj) {
	                    var curValue = parsePath.getObjectByPath(this.data, key),
	                        curObj = curValue.obj,
	                        curKey = curValue.key;
	                    curObj && (curObj[curKey] = (0, _iteratorHandle2.default)(dataObj[key]));
	                }
	                _toAppView2.default.emit(dataObj, this.__wxWebviewId__);
	            } catch (e) {
	                _utils2.default.errorReport(e);
	            }
	        }
	    }]);
	    return parsePage;
	}();

	exports.default = parsePage;

/***/ }),
/* 100 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	exports.__esModule = true;

	var _defineProperty = __webpack_require__(83);

	var _defineProperty2 = _interopRequireDefault(_defineProperty);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	exports.default = function () {
	  function defineProperties(target, props) {
	    for (var i = 0; i < props.length; i++) {
	      var descriptor = props[i];
	      descriptor.enumerable = descriptor.enumerable || false;
	      descriptor.configurable = true;
	      if ("value" in descriptor) descriptor.writable = true;
	      (0, _defineProperty2.default)(target, descriptor.key, descriptor);
	    }
	  }

	  return function (Constructor, protoProps, staticProps) {
	    if (protoProps) defineProperties(Constructor.prototype, protoProps);
	    if (staticProps) defineProperties(Constructor, staticProps);
	    return Constructor;
	  };
	}();

/***/ }),
/* 101 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});
	exports.parsePath = parsePath;
	exports.getObjectByPath = getObjectByPath;

	var _utils = __webpack_require__(77);

	var _utils2 = _interopRequireDefault(_utils);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	function parsePath(pathStr) {
	    //解析data path
	    for (var length = pathStr.length, paths = [], key = "", arrKey = 0, hasNum = false, arrStartFlag = false, index = 0; index < length; index++) {
	        var curStr = pathStr[index];
	        if ("\\" === curStr) {
	            index + 1 < length && ("." === pathStr[index + 1] || "[" === pathStr[index + 1] || "]" === pathStr[index + 1]) ? (key += pathStr[index + 1], index++) : key += "\\";
	        } else if ("." === curStr) {
	            key && (paths.push(key), key = "");
	        } else if ("[" === curStr) {
	            if (key && (paths.push(key), key = ""), 0 === paths.length) {
	                throw _utils2.default.error("数据路径错误", "Path can not start with []: " + pathStr);
	                new _utils2.default.AppServiceEngineKnownError("Path can not start with []: " + pathStr);
	            }
	            arrStartFlag = true;
	            hasNum = false;
	        } else if ("]" === curStr) {
	            if (!hasNum) {
	                throw _utils2.default.error("数据路径错误", "Must have number in []: " + pathStr);
	                new _utils2.default.AppServiceEngineKnownError("Must have number in []: " + pathStr);
	            }
	            arrStartFlag = false;
	            paths.push(arrKey);
	            arrKey = 0;
	        } else if (arrStartFlag) {
	            if (curStr < "0" || curStr > "9") {
	                throw _utils2.default.error("数据路径错误", "Only number 0-9 could inside []: " + pathStr);
	                new _utils2.default.AppServiceEngineKnownError("Only number 0-9 could inside []: " + pathStr);
	            }
	            hasNum = true;
	            arrKey = 10 * arrKey + curStr.charCodeAt(0) - 48;
	        } else {
	            key += curStr;
	        }
	    }
	    if (key && paths.push(key), 0 === paths.length) {
	        throw _utils2.default.error("数据路径错误", "Path can not be empty");
	        new _utils2.default.AppServiceEngineKnownError("Path can not be empty");
	    }
	    return paths;
	}
	function getObjectByPath(data, pathString) {
	    var paths = parsePath(pathString),
	        obj,
	        curKey,
	        curData = data;
	    for (var index = 0; index < paths.length; index++) {
	        Number(paths[index]) === paths[index] && paths[index] % 1 === 0 ? //isint
	        Array.isArray(curData) || (curData = []) : _utils2.default.isPlainObject(curData) || (curData = {});
	        curKey = paths[index]; //key
	        obj = curData; //parentObj
	        curData = curData[paths[index]]; //node value
	    }
	    return {
	        obj: obj,
	        key: curKey
	    };
	};

/***/ }),
/* 102 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});

	var _classCallCheck2 = __webpack_require__(89);

	var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

	var _createClass2 = __webpack_require__(100);

	var _createClass3 = _interopRequireDefault(_createClass2);

	var _utils = __webpack_require__(77);

	var _utils2 = _interopRequireDefault(_utils);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	var toAppView = function () {
	    function toAppView() {
	        (0, _classCallCheck3.default)(this, toAppView);
	    }

	    (0, _createClass3.default)(toAppView, null, [{
	        key: "emit",
	        value: function emit(data, webviewId) {
	            _utils2.default.publish("appDataChange", {
	                data: {
	                    data: data
	                }
	            }, [webviewId]);
	        }
	    }]);
	    return toAppView;
	}();

	exports.default = toAppView;

/***/ }),
/* 103 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});

	var _typeof2 = __webpack_require__(40);

	var _typeof3 = _interopRequireDefault(_typeof2);

	var _copyUtils = __webpack_require__(104);

	var _copyUtils2 = _interopRequireDefault(_copyUtils);

	var _symbolHandle = __webpack_require__(105);

	var _symbolHandle2 = _interopRequireDefault(_symbolHandle);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	function emptyFn(e) {}
	function copyHandle(data) {
	    var method = arguments.length <= 1 || undefined === arguments[1] ? emptyFn : arguments[1];
	    if (null === data) {
	        return null;
	    }
	    var value = _copyUtils2.default.copyValue(data);
	    if (null !== value) {
	        return value;
	    }
	    var coll = _copyUtils2.default.copyCollection(data, method),
	        newAttr = null !== coll ? coll : data,
	        attrArr = [data],
	        newAttrArr = [newAttr];
	    return iteratorHandle(data, method, newAttr, attrArr, newAttrArr);
	}
	function iteratorHandle(data, method, newAttr, attrArr, newAttrArr) {
	    //处理对象循环引用情况
	    if (null === data) {
	        return null;
	    }
	    var value = _copyUtils2.default.copyValue(data);
	    if (null !== value) {
	        return value;
	    }
	    var keys = _symbolHandle2.default.getKeys(data).concat(_symbolHandle2.default.getSymbols(data));
	    var index, length, key, attrValue, attrValueIndex, newAttrValue, curAttrValue, tmpObj;
	    for (index = 0, length = keys.length; index < length; ++index) {
	        key = keys[index];
	        attrValue = data[key];
	        attrValueIndex = _symbolHandle2.default.indexOf(attrArr, attrValue); //确定data的子属性有没引用自身
	        tmpObj = undefined;
	        curAttrValue = undefined;
	        newAttrValue = undefined;
	        attrValueIndex === -1 ? (newAttrValue = _copyUtils2.default.copy(attrValue, method), curAttrValue = null !== newAttrValue ? newAttrValue : attrValue, null !== attrValue && /^(?:function|object)$/.test(typeof attrValue === 'undefined' ? 'undefined' : (0, _typeof3.default)(attrValue)) && (attrArr.push(attrValue), newAttrArr.push(curAttrValue))) : tmpObj = newAttrArr[attrValueIndex];
	        newAttr[key] = tmpObj || iteratorHandle(attrValue, method, curAttrValue, attrArr, newAttrArr);
	    }
	    return newAttr;
	}

	exports.default = copyHandle;

/***/ }),
/* 104 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});

	var _typeof2 = __webpack_require__(40);

	var _typeof3 = _interopRequireDefault(_typeof2);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	function copy(obj, customizerFn) {
	    var res = copyValue(obj);
	    return null !== res ? res : copyCollection(obj, customizerFn);
	}
	function copyCollection(obj, customizerFn) {
	    if ("function" != typeof customizerFn) {
	        throw new TypeError("customizer is must be a Function");
	    }
	    if ("function" == typeof obj) {
	        return obj;
	    }
	    var typeString = toString.call(obj);
	    if ("[object Array]" === typeString) {
	        return [];
	    }
	    if ("[object Object]" === typeString && obj.constructor === Object) {
	        return {};
	    }
	    if ("[object Date]" === typeString) {
	        return new Date(obj.getTime());
	    }
	    if ("[object RegExp]" === typeString) {
	        var toStr = String(obj),
	            pos = toStr.lastIndexOf("/");
	        return new RegExp(toStr.slice(1, pos), toStr.slice(pos + 1));
	    }
	    var res = customizerFn(obj);
	    return undefined !== res ? res : null;
	}
	function copyValue(param) {
	    var type = typeof param === "undefined" ? "undefined" : (0, _typeof3.default)(param);
	    return null !== param && "object" !== type && "function" !== type ? param : null;
	}
	var toString = Object.prototype.toString;
	exports.default = {
	    copy: copy,
	    copyCollection: copyCollection,
	    copyValue: copyValue
	};

/***/ }),
/* 105 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});

	var _getOwnPropertySymbols = __webpack_require__(106);

	var _getOwnPropertySymbols2 = _interopRequireDefault(_getOwnPropertySymbols);

	var _symbol = __webpack_require__(61);

	var _symbol2 = _interopRequireDefault(_symbol);

	var _typeof2 = __webpack_require__(40);

	var _typeof3 = _interopRequireDefault(_typeof2);

	var _keys = __webpack_require__(4);

	var _keys2 = _interopRequireDefault(_keys);

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	function indexOf(arr, element) {
	    if ("[object Array]" !== toString.call(arr)) {
	        throw new TypeError("array must be an Array");
	    }
	    var index = void 0,
	        arrLen = void 0,
	        cur = void 0;
	    for (index = 0, arrLen = arr.length; index < arrLen; ++index) {
	        cur = arr[index];
	        if (cur === element || cur !== cur && element !== element) {
	            return index;
	        }
	    }
	    return -1;
	}

	var toString = Object.prototype.toString;
	var getKeys = "function" == typeof _keys2.default ? function (obj) {
	    return (0, _keys2.default)(obj);
	} : function (obj) {
	    var type = typeof obj === "undefined" ? "undefined" : (0, _typeof3.default)(obj);
	    if (null === obj || "function" !== type && "object" !== type) throw new TypeError("obj must be an Object");
	    var res = [],
	        key;
	    for (key in obj) {
	        Object.prototype.hasOwnProperty.call(obj, key) && res.push(key);
	    }
	    return res;
	};
	var getSymbols = "function" == typeof _symbol2.default ? function (e) {
	    return (0, _getOwnPropertySymbols2.default)(e);
	} : function () {
	    return [];
	};

	exports.default = {
	    getKeys: getKeys,
	    getSymbols: getSymbols,
	    indexOf: indexOf
	};

/***/ }),
/* 106 */
/***/ (function(module, exports, __webpack_require__) {

	module.exports = { "default": __webpack_require__(107), __esModule: true };

/***/ }),
/* 107 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(63);
	module.exports = __webpack_require__(3).Object.getOwnPropertySymbols;

/***/ }),
/* 108 */
/***/ (function(module, exports) {

	"use strict";

	Object.defineProperty(exports, "__esModule", {
	  value: true
	});

	var DOM_READY_EVENT = "__DOMReady";
	var UPDATE_APP_DATA = "__updateAppData";

	exports.DOM_READY_EVENT = DOM_READY_EVENT;
	exports.UPDATE_APP_DATA = UPDATE_APP_DATA;

/***/ }),
/* 109 */
/***/ (function(module, exports) {

	"use strict";

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});
	var triggerAnalytics = exports.triggerAnalytics = function triggerAnalytics(eventName, pageObj, desc) {
	    var data = {};
	    if (pageObj) {
	        data.pageRoute = pageObj.__route__;
	    }
	    if (desc) {
	        data.desc = desc;
	    }
	    ServiceJSBridge.publish("H5_LOG_MSG", { event: eventName, desc: data }, [pageObj && pageObj.__wxWebviewId__ || '']);
	};

/***/ }),
/* 110 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});

	var _classCallCheck2 = __webpack_require__(89);

	var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

	var _createClass2 = __webpack_require__(100);

	var _createClass3 = _interopRequireDefault(_createClass2);

	var _utils = __webpack_require__(77);

	var _utils2 = _interopRequireDefault(_utils);

	var _pageInit = __webpack_require__(39);

	var _pageInit2 = _interopRequireDefault(_pageInit);

	var _logReport = __webpack_require__(109);

	var reportRealtimeAction = _interopRequireWildcard(_logReport);

	function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

	var events = ["onLaunch", "onShow", "onHide", "onUnlaunch"];

	var firstRender = true;

	var isSysEvent = function isSysEvent(key) {
	    //判断是否为app 事件
	    for (var index = 0; index < events.length; ++index) {
	        if (events[index] === key) {
	            return true;
	        }
	    }
	    return false;
	};
	var isGetCurrentPage = function isGetCurrentPage(key) {
	    return "getCurrentPage" === key;
	};

	var appClass = function () {
	    function appClass(appObj) {
	        (0, _classCallCheck3.default)(this, appClass);
	        //t:app
	        var self = this;
	        events.forEach(function (eventKey) {
	            //给app绑定事件
	            var tempFun = function tempFun() {
	                var eventFun = (appObj[eventKey] || _utils2.default.noop).bind(this);
	                _utils2.default.info("App: " + eventKey + " have been invoked");
	                try {
	                    eventFun.apply(this, arguments);
	                } catch (t) {
	                    Reporter.thirdErrorReport({
	                        error: t,
	                        extend: "App catch error in lifeCycleMethod " + eventKey + " function"
	                    });
	                }
	            };
	            self[eventKey] = tempFun.bind(self);
	        });
	        var bindApp = function bindApp(attrKey) {
	            //给app绑定其它方法与属性
	            isGetCurrentPage(attrKey) ? _utils2.default.warn("关键字保护", "App's " + attrKey + " is write-protected") : isSysEvent(attrKey) || ("[object Function]" === Object.prototype.toString.call(appObj[attrKey]) ? self[attrKey] = function () {
	                var method;
	                try {
	                    method = appObj[attrKey].apply(this, arguments);
	                } catch (t) {
	                    Reporter.thirdErrorReport({
	                        error: t,
	                        extend: "App catch error in  " + attrKey + " function"
	                    });
	                }
	                return method;
	            }.bind(self) : self[attrKey] = appObj[attrKey]);
	        };
	        for (var attrKey in appObj) {
	            bindApp(attrKey);
	        }
	        this.onError && Reporter.registerErrorListener(this.onError);
	        this.onLaunch();
	        reportRealtimeAction.triggerAnalytics("launch", null, '小程序启动');
	        var hide = function hide() {
	            //hide
	            var pages = _pageInit2.default.getCurrentPages();
	            pages.length && pages[pages.length - 1].onHide();
	            this.onHide();
	            reportRealtimeAction.triggerAnalytics("background", null, '小程序转到后台');
	        };
	        var show = function show() {
	            //show
	            this.onShow();
	            if (firstRender) {
	                firstRender = false;
	            } else {
	                var pages = _pageInit2.default.getCurrentPages();
	                pages.length && (pages[pages.length - 1].onShow(), reportRealtimeAction.triggerAnalytics("foreground", null, '小程序转到前台'));
	            }
	        };
	        wd.onAppEnterBackground(hide.bind(this));
	        wd.onAppEnterForeground(show.bind(this));
	    }

	    (0, _createClass3.default)(appClass, [{
	        key: 'getCurrentPage',
	        value: function getCurrentPage() {
	            _utils2.default.warn("将被废弃", "App.getCurrentPage is deprecated, please use getCurrentPages. [It will be removed in 2016.11]");
	            var currentPage = _pageInit2.default.getCurrentPage();
	            if (currentPage) {
	                return currentPage.page;
	            }
	        }
	    }]);
	    return appClass;
	}();

	var tempObj;

	var appHolder = _utils2.default.surroundByTryCatch(function (appObj) {
	    tempObj = new appClass(appObj);
	}, "create app instance");
	var getApp = function getApp() {
	    return tempObj;
	};

	exports.default = { appHolder: appHolder, getApp: getApp };

/***/ })
/******/ ]);