mk-meta-engine
Version:
元数据化引擎,在mk-app-loader实现的应用隔离基础上,实现可以用json元数据描述界面模型,并提供了action、reducer的基础函数和monkeyKing组件.
1 lines • 43.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("MKAppLoader"),require("React"),require("MKUtils"),require("Immutable"),require("ReactDom")):"function"==typeof define&&define.amd?define(["MKAppLoader","React","MKUtils","Immutable","ReactDom"],e):"object"==typeof exports?exports.MKComponent=e(require("MKAppLoader"),require("React"),require("MKUtils"),require("Immutable"),require("ReactDom")):t.MKComponent=e(t.MKAppLoader,t.React,t.MKUtils,t.Immutable,t.ReactDom)}(window,function(t,e,n,r,o){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=64)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(32)("wks"),o=n(24),i=n(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(2),o=n(0),i=n(34),u=n(10),a=n(5),s=function(t,e,n){var f,c,p,l=t&s.F,d=t&s.G,m=t&s.S,h=t&s.P,v=t&s.B,y=t&s.W,g=d?o:o[e]||(o[e]={}),_=g.prototype,b=d?r:m?r[e]:(r[e]||{}).prototype;for(f in d&&(n=e),n)(c=!l&&b&&void 0!==b[f])&&a(g,f)||(p=c?b[f]:n[f],g[f]=d&&"function"!=typeof b[f]?n[f]:v&&c?i(p,r):y&&b[f]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):h&&"function"==typeof p?i(Function.call,p):p,h&&((g.virtual||(g.virtual={}))[f]=p,t&s.R&&_&&!_[f]&&u(_,f,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(6),o=n(48),i=n(35),u=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var r=n(45),o=n(28);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(4),o=n(15);t.exports=n(7)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(28);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(44),o=n(33);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(82));e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,r.default)(t,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(90)),o=u(n(92)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(86));e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o,i,u,a=c(n(22)),s=n(20),f=c(n(36));function c(t){return t&&t.__esModule?t:{default:t}}function p(t){var e=t.components;r=t.toast,o=t.notification,i=t.modal,t.errorBox,u=t.apps,(0,s.config)(t),f.default.registerComponent("AppLoader",s.AppLoader),e&&e.length>0&&e.forEach(function(t){t.appName?f.default.registerAppComponent(t.appName,t.name,t.component):f.default.registerComponent(t.name,t.component)}),u&&(0,a.default)(u).forEach(function(t){var e=u[t];e.components&&e.components.length>0&&e.components.forEach(function(t){f.default.registerAppComponent(e.name,t.name,t.component)})})}p.getToast=function(){return r},p.getNotification=function(){return o},p.getModal=function(){return i},p.getApps=function(){return u},e.default=p,t.exports=e.default},function(t,e,n){t.exports={default:n(66),__esModule:!0}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(32)("keys"),o=n(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(23)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(70);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(71)),o=u(n(8)),i=u(n(17));function u(t){return t&&t.__esModule?t:{default:t}}var a=new(function(){function t(){(0,o.default)(this,t),this.components={},this.appComponents={}}return(0,i.default)(t,[{key:"registerComponent",value:function(t,e,n){if(this.components[t]){if(n)return;throw"组件existed. name: "+t}this.components[t]=e}},{key:"registerAppComponent",value:function(t,e,n){if(this.appComponents[t]=this.appComponents[t]||{},this.appComponents[t].components=this.appComponents[t].components||{},this.appComponents[t].components[e])throw"组件existed. app:"+t+", name: "+e;this.appComponents[t].components[e]=n}},{key:"registerComponents",value:function(t){var e=this;t&&0!=t.length&&t.forEach(function(t){return e.registerComponent(t.name,t.component)})}},{key:"getComponent",value:function(t,e){if(!e)throw"component name can not null";if("::"==e.substring(0,2)){if(e.substr(2))return e.substr(2);throw"没有组件. name: ::"}var n=e.split("."),r=n[0];if(this.appComponents&&this.appComponents[t]&&this.appComponents[t].components&&this.appComponents[t].components[r]){var o=this.appComponents[t].components[e];if(o&&n.length>1&&(o=this.findChild(o,n)),o)return o}var i=this.components[r];if(i&&n.length>1&&(i=this.findChild(i,n)),!i)throw"没有组件. name: "+e;return i}},{key:"findChild",value:function(t,e){var n=!0,o=!1,i=void 0;try{for(var u,a=(0,r.default)(e.slice(1));!(n=(u=a.next()).done);n=!0){var s=u.value;if(!t[s])return void(t=void 0);t=t[s]}}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return t}}]),t}());e.default=a,t.exports=e.default},function(t,e,n){var r=n(6),o=n(77),i=n(33),u=n(31)("IE_PROTO"),a=function(){},s=function(){var t,e=n(49)("iframe"),r=i.length;for(e.style.display="none",n(78).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(4).f,o=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(79)(!0);n(51)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){e.f=n(1)},function(t,e,n){var r=n(2),o=n(0),i=n(23),u=n(41),a=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e){t.exports=r},function(t,e,n){var r=n(5),o=n(9),i=n(68)(!1),u=n(31)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),s=0,f=[];for(n in a)n!=u&&r(a,n)&&f.push(n);for(;e.length>s;)r(a,n=e[s++])&&(~i(f,n)||f.push(n));return f}},function(t,e,n){var r=n(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(30),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(3),o=n(0),i=n(12);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){t.exports=!n(7)&&!n(12)(function(){return 7!=Object.defineProperty(n(49)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(11),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){n(73);for(var r=n(2),o=n(10),i=n(16),u=n(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<a.length;s++){var f=a[s],c=r[f],p=c&&c.prototype;p&&!p[u]&&o(p,u,f),i[f]=i.Array}},function(t,e,n){"use strict";var r=n(23),o=n(3),i=n(52),u=n(10),a=n(16),s=n(76),f=n(38),c=n(53),p=n(1)("iterator"),l=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,m,h,v,y){s(n,e,m);var g,_,b,x=function(t){if(!l&&t in w)return w[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},M=e+" Iterator",O="values"==h,j=!1,w=t.prototype,S=w[p]||w["@@iterator"]||h&&w[h],P=S||x(h),E=h?O?x("entries"):P:void 0,F="Array"==e&&w.entries||S;if(F&&(b=c(F.call(new t)))!==Object.prototype&&b.next&&(f(b,M,!0),r||"function"==typeof b[p]||u(b,p,d)),O&&S&&"values"!==S.name&&(j=!0,P=function(){return S.call(this)}),r&&!y||!l&&!j&&w[p]||u(w,p,P),a[e]=P,a[M]=d,h)if(g={values:O?P:x("values"),keys:v?P:x("keys"),entries:E},y)for(_ in g)_ in w||i(w,_,g[_]);else o(o.P+o.F*(l||j),e,g);return g}},function(t,e,n){t.exports=n(10)},function(t,e,n){var r=n(5),o=n(13),i=n(31)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(81),o=n(1)("iterator"),i=n(16);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(44),o=n(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(25),o=n(15),i=n(9),u=n(35),a=n(5),s=n(48),f=Object.getOwnPropertyDescriptor;e.f=n(7)?f:function(t,e){if(t=i(t),e=u(e,!0),s)try{return f(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});f(n(18));var r=f(n(22));e.setMeta=function(t){if(!t||!t.meta)return;var e=t.name;if(p.meta.has(e))return;l(e,t.meta)},e.setMetaForce=l,e.getMeta=function(t,e,n){if(!e)return p.meta.getIn([t.name,"meta"]).toJS();var r=c(e),o=(r.vars,p.meta.getIn([t.name,"metaMap"])),i=p.meta.getIn([t.name,"meta"]),u=o.get(r.path),a=u?i.getIn(u.split(".")):i;if(!n)return a.toJS();var s={};if(n instanceof Array){var f,l;for(f=0;l=n[f++];){var d=a.getIn(l.split("."));s[l]=d&&d.toJS?d.toJS():d}return s}if("string"==typeof n){var m=a.getIn(n.split("."));return m&&m.toJS?m.toJS():m}},e.getField=d,e.getFields=function(t,e){var n={};return e.forEach(function(e){return n[e]=d(t,e)}),n},e.setField=m,e.setFields=function(t,e){var n,o,i=(0,r.default)(e);for(n=0;o=i[n++];)t=m(t,o,e[o]);return t},e.updateField=function(t,e,n){return e instanceof Array?t.updateIn(e,n):t.updateIn(e.split("."),n)};var o=n(43),i=f(o),u=n(27),a=f(u),s=f(n(58));function f(t){return t&&t.__esModule?t:{default:t}}u.path.existsParamsInPath;var c=u.path.parsePath,p={meta:(0,o.Map)()};function l(t,e){t&&e&&(e=function(t){var e=[];return function t(n,r){if(n instanceof i.default.Map){if(n.get("component")){var u=a.default.string.trim(n.get("component"));if("##"==u.substring(0,2)){var f=s.default.getTemplate(u.substr(2));if(f)return void e.push([r,(0,o.fromJS)(f(n.toJS()))])}}n.keySeq().toArray().forEach(function(e){var o=n.get(e);if(o instanceof i.default.List)o.forEach(function(n,o){var i=r?r+"."+e+"."+o:e+"."+o;t(n,i)});else{var u=r?r+"."+e:e;t(o,u)}})}}(t,""),e.forEach(function(e){var n=e[0].split(".");if(e[1]instanceof i.default.List&&t.getIn(n.slice(0,n.length-1))instanceof i.default.List){var r=n.pop();t=t.updateIn(n,function(t){return t=t.remove(r),e[1].forEach(function(e){t=t.insert(r,e),r++}),t})}else t=t.setIn(n,e[1])}),t}(e=(0,o.fromJS)(e)),p.meta=p.meta.setIn([t,"meta"],e).setIn([t,"metaMap"],function(t){var e=(0,o.Map)();return function t(n,r,o){if(n instanceof i.default.Map){if(n.get("name")&&n.get("component")){var u=a.default.string.trim(n.get("name"));r=r?r+"."+u:u,e=e.set(r,o)}n.keySeq().toArray().forEach(function(e){var u=n.get(e),a=r?r+"."+e:e;if(u instanceof i.default.List)u.forEach(function(n,r){var i=o?o+"."+e+"."+r:e+"."+r;t(n,""+a,i)});else{var s=o?o+"."+e:e;t(u,""+a,s)}})}}(t,"",""),e}(e)))}function d(t,e){return e?e instanceof Array?t.getIn(e):t.getIn(e.split(".")):t.get("data")}function m(t,e,n){return e instanceof Array?t.setIn(e,n):t.setIn(e.split("."),n)}window.__getCache=function(){return p}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(8)),o=i(n(17));function i(t){return t&&t.__esModule?t:{default:t}}var u=new(function(){function t(){(0,r.default)(this,t),this.templates={}}return(0,o.default)(t,[{key:"registerTemplate",value:function(t,e,n){if(this.templates[t]){if(n)return;throw"template existed. name: "+t}this.templates[t]=e}},{key:"registerTemplates",value:function(t){var e=this;t&&0!=t.length&&t.forEach(function(t){return e.registerTemplate(t.name,t.templateHandler)})}},{key:"getTemplate",value:function(t){if(!t)throw"template name can not null";return this.templates[t]}}]),t}());e.default=u,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(8)),o=i(n(17));function i(t){return t&&t.__esModule?t:{default:t}}var u=new(function(){function t(){(0,r.default)(this,t),this._context={}}return(0,o.default)(t,[{key:"set",value:function(t,e){this._context[t]=e}},{key:"get",value:function(t){return this._context[t]}}]),t}());e.default=u,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(19)),o=d(n(61)),i=d(n(8)),u=d(n(17)),a=d(n(62)),s=d(n(63));e.default=function(t){return function(t){return function(e){function n(t){(0,i.default)(this,n);var e=(0,a.default)(this,(n.__proto__||(0,o.default)(n)).call(this,t));return e.state={hasError:!1},e}return(0,s.default)(n,e),(0,u.default)(n,[{key:"componentWillMount",value:function(){this.props.componentWillMount&&this.props.componentWillMount()}},{key:"componentDidMount",value:function(){this.props.initView&&this.props.initView(this),this.props.componentDidMount&&this.props.componentDidMount()}},{key:"shouldComponentUpdate",value:function(t,e){if(this.props.shouldComponentUpdate&&!0===this.props.shouldComponentUpdate(t,e))return!0;if(e.hasError!=this.state.hasError)return!0;for(var n in this.props)if(this.props[n]!=t[n])return!0;return!1}},{key:"componentWillReceiveProps",value:function(t){this.state.hasError&&this.setState({hasError:!1,error:void 0}),this.props.componentWillReceiveProps&&this.props.componentWillReceiveProps(t)}},{key:"componentWillUpdate",value:function(t,e){this.props.componentWillUpdate&&this.props.componentWillUpdate(t,e)}},{key:"componentDidCatch",value:function(t,e){l.default.exception.error(t),this.setState({hasError:!0,error:t}),this.props.componentDidCatch&&this.props.componentDidCatch(t,e)}},{key:"componentWillUnmount",value:function(){this.props.unmount&&this.props.unmount(),this.props.componentWillUnmount&&this.props.componentWillUnmount()}},{key:"componentDidUpdate",value:function(){this.props.componentDidUpdate&&this.props.componentDidUpdate()}},{key:"render",value:function(){return this.state.hasError?c.default.createElement("div",{style:{color:"red"}},this.state.error&&this.state.error.message):!0===this.props.notRender||!0===this.props._notRender?null:t&&this.props.payload&&this.props.payload.get("data")?!0===this.props.payload.getIn(["data","_notRender"])?null:c.default.createElement(t,(0,r.default)({},this.props,{monkeyKing:p.default})):null}}]),n}(f.Component)}};var f=n(26),c=d(f),p=(d(n(120)),d(n(121))),l=(d(n(21)),d(n(27)));function d(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},function(t,e,n){t.exports={default:n(111),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(18));e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,r.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(113)),o=u(n(117)),i=u(n(18));function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,i.default)(e)));t.prototype=(0,o.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(r.default?(0,r.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports=n(65)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),o=p(n(21)),i=p(n(85)),u=p(n(110)),a=p(n(60)),s=p(n(36)),f=p(n(58)),c=p(n(123));function p(t){return t&&t.__esModule?t:{default:t}}e.default={start:r.start,config:o.default,action:i.default,reducer:u.default,wrapper:a.default,componentFactory:s.default,templateFactory:f.default,defaultComponent:c.default,AppLoader:r.AppLoader},t.exports=e.default},function(t,e,n){n(67),t.exports=n(0).Object.keys},function(t,e,n){var r=n(13),o=n(14);n(47)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(9),o=n(46),i=n(69);t.exports=function(t){return function(e,n,u){var a,s=r(e),f=o(s.length),c=i(u,f);if(t&&n!=n){for(;f>c;)if((a=s[c++])!=a)return!0}else for(;f>c;c++)if((t||c in s)&&s[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(30),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports={default:n(72),__esModule:!0}},function(t,e,n){n(50),n(39),t.exports=n(80)},function(t,e,n){"use strict";var r=n(74),o=n(75),i=n(16),u=n(9);t.exports=n(51)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(37),o=n(15),i=n(38),u={};n(10)(u,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(4),o=n(6),i=n(14);t.exports=n(7)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,s=0;a>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(30),o=n(28);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),s=r(n),f=a.length;return s<0||s>=f?t?"":void 0:(i=a.charCodeAt(s))<55296||i>56319||s+1===f||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):i:t?a.slice(s,s+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){var r=n(6),o=n(54);t.exports=n(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(29),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){t.exports={default:n(83),__esModule:!0}},function(t,e,n){n(84);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(3);r(r.S+r.F*!n(7),"Object",{defineProperty:n(4).f})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o,i=y(n(19)),u=y(n(18)),a=y(n(102)),s=y(n(22)),f=y(n(8));e.default=function(t){return new _(t)};var c=y(n(26)),p=n(20),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(57)),d=y(n(27)),m=n(43),h=y(n(59)),v=y(n(21));function y(t){return t&&t.__esModule?t:{default:t}}var g={},_=(r=function t(e){(0,f.default)(this,t),o.call(this),this.appInfo=e.appInfo,this.meta=(0,m.fromJS)(e.appInfo.meta),this.cache={},l.setMeta(e.appInfo)},o=function(){var t=this;this.config=function(e){var n=e.metaHandlers;t.metaHandlers=n},this.initView=function(e,n){t.component=e,t.injections=n,g[e.props.appFullName]={appName:e.props.appName,appQuery:e.props.appQuery,instance:e},t.metaHandlers&&t.metaHandlers.onInit&&t.metaHandlers.onInit({component:e,injections:n})},this.unmount=function(){delete g[t.component.appFullName]},this.componentWillMount=function(){t.metaHandlers&&t.metaHandlers.componentWillMount&&t.metaHandlers.componentWillMount!=t.componentWillMount&&t.metaHandlers.componentWillMount()},this.componentDidMount=function(){t.metaHandlers&&t.metaHandlers.componentDidMount&&t.metaHandlers.componentDidMount!=t.componentDidMount&&t.metaHandlers.componentDidMount()},this.shouldComponentUpdate=function(e,n){t.metaHandlers&&t.metaHandlers.shouldComponentUpdate&&t.metaHandlers.shouldComponentUpdate!=t.shouldComponentUpdate&&t.metaHandlers.shouldComponentUpdate(e,n)},this.componentWillReceiveProps=function(e){t.metaHandlers&&t.metaHandlers.componentWillReceiveProps&&t.metaHandlers.componentWillReceiveProps!=t.componentWillReceiveProps&&t.metaHandlers.componentWillReceiveProps(e)},this.componentWillUpdate=function(e,n){t.metaHandlers&&t.metaHandlers.componentWillUpdate&&t.metaHandlers.componentWillUpdate!=t.componentWillUpdate&&t.metaHandlers.componentWillUpdate(e,n)},this.componentDidCatch=function(e,n){t.metaHandlers&&t.metaHandlers.componentDidCatch&&t.metaHandlers.componentDidCatch!=t.componentDidCatch&&t.metaHandlers.componentDidCatch(e,n)},this.componentWillUnmount=function(){t.metaHandlers&&t.metaHandlers.componentWillUnmount&&t.metaHandlers.componentWillUnmount!=t.componentWillUnmount&&t.metaHandlers.componentWillUnmount()},this.componentDidUpdate=function(){t.metaHandlers&&t.metaHandlers.componentDidUpdate&&t.metaHandlers.componentDidUpdate!=t.componentDidUpdate&&t.metaHandlers.componentDidUpdate()},this.getAppInstances=function(){return g},this.getField=function(e){return l.getField(t.injections.getState(),e)},this.getFields=function(e){return l.getFields(t.injections.getState(),e)},this.setField=function(e,n){return t.injections.reduce("setField",e,n)},this.setFields=function(e){return t.injections.reduce("setFields",e)},this.parseExpreesion=function(e){if(t.cache.expression||(t.cache.expression={}),t.cache.expression[e])return t.cache.expression[e];t.cache.expressionParams||(t.cache.expressionParams=["data"].concat((0,s.default)(t.metaHandlers).map(function(t){return"$"+t})).concat(["_path","_rowIndex","_vars","_ctrlPath","_lastIndex"]));var n=t.cache.expressionParams,r=d.default.expression.getExpressionBody(e);return t.cache.expression[e]=new(Function.prototype.bind.apply(Function,[null].concat((0,a.default)(n),[r]))),t.cache.expression[e]},this.execExpression=function(e,n,r,o,i,u){var a,f,c=[n],p=(0,s.default)(t.metaHandlers),l=function(e,n){return function(){for(var r,o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return(r=t.metaHandlers)[e].apply(r,i.concat([n]))}};for(a=0;f=p[a++];)c.push(l(f,{currentPath:r,rowIndex:o,vars:i,lastIndex:i&&i[i.length-1]}));c.push(r),c.push(o),c.push(i),c.push(u),c.push(i&&i[i.length-1]);try{return t.parseExpreesion(e).apply(t,c)}catch(n){t.metaHandlers&&t.metaHandlers.componentDidCatch&&t.metaHandlers.componentDidCatch!=t.componentDidCatch&&t.metaHandlers.componentDidCatch(n),setTimeout(function(){console.error("表达式解析错误:"+e),d.default.exception.error(n)},500)}},this.needUpdate=function(t){if(!t)return!1;var e=void 0===t?"undefined":(0,u.default)(t);return!("string"!=e||!d.default.expression.isExpression(t))||"object"==e&&(!0!==t._notParse&&!("object"!=e||t.$$typeof||t._isAMomentObject||t._power||!1===t._visible))},this.updateMeta=function(e,n,r,o,i,a){if(t.needUpdate(e))if(e instanceof Array)for(var f=0;f<e.length;f++){var c=e[f],p=n;if(c)if(c._power)p=n+"."+c.name,c.path=o?p+", "+o.join(","):p;else{var l=void 0===c?"undefined":(0,u.default)(c),m=!1,h=!1;"string"==l&&d.default.expression.isExpression(c)&&(m=!0,(c=t.execExpression(c,i,n,r,o,a))&&!0===c._isMeta&&(h=!0),c&&!0===c._isMeta?(h=!0,e[f]=c.value):e[f]=c),t.needUpdate(c)&&(m&&!h||(l=void 0===c?"undefined":(0,u.default)(c),c instanceof Array?(p=n+"."+f,c.path=o?p+", "+o.join(","):p,t.updateMeta(c,p,r,o,i,a)):c.name&&c.component?(p=n+"."+c.name,c.path=o?p+", "+o.join(","):p,t.updateMeta(c,p,r,o,i,c.path)):(p=n+"."+f,c.path=o?p+", "+o.join(","):p,t.updateMeta(c,p,r,o,i,a))))}}else{var v=e._excludeProps;if(v&&d.default.expression.isExpression(v)&&(v=t.execExpression(v,i,n,r,o,a)),v&&v instanceof Array){var y,g,_=(0,s.default)(v);for(y=0;g=_[y++];)e[g]&&delete e[g]}var b,x,M=(0,s.default)(e),O=function(){var f=e[x],c=void 0===f?"undefined":(0,u.default)(f),p=n;if(!f)return"continue";if(f._power)return p=n+"."+x+"."+f.name,f.path=o?p+", "+o.join(","):p,"continue";var l=!1,m=!1;return"string"==c&&d.default.expression.isExpression(f)&&(f=t.execExpression(f,i,n+"."+x,r,o,a),l=!0,"..."==x&&f&&"object"==(void 0===f?"undefined":(0,u.default)(f))?((0,s.default)(f).forEach(function(t){e[t]=f[t]}),delete e["..."]):f&&!0===f._isMeta?(m=!0,e[x]=f.value):e[x]=f),c=void 0===c?"undefined":(0,u.default)(c),t.needUpdate(f)?l&&!m?"continue":f instanceof Array?(t.updateMeta(f,n+"."+x,r,o,i,a),"continue"):void(f.name&&f.component?(p=n+"."+x+"."+f.name,f.path=o?p+", "+o.join(","):p,t.updateMeta(f,p,r,o,i,f.path)):(p=n+"."+x,f.path=o?p+", "+o.join(","):p,t.updateMeta(f,p,r,o,i,a))):"continue"};for(b=0;x=M[b++];)O()}},this.getMeta=function(e,n,r){var o=l.getMeta(t.appInfo,e,n),i=d.default.path.parsePath(e),u=i.path,a=i.vars?i.vars[0]:void 0,s=i.vars;return r||(r=l.getField(t.injections.getState()).toJS()),o._power=void 0,o.path=e,t.updateMeta(o,u,a,s,r,e),o},this.setMetaForce=function(t,e){l.setMetaForce(t,e)},this.focus=function(e){return!t.isFocus(e)&&(t.setField("data.other.focusFieldPath",e),!0)},this.focusByEvent=function(e){var n=d.default.path.findPathByEvent(e);return t.focus(n)},this.isFocus=function(e){if(!e)return!1;var n=t.getField("data.other.focusFieldPath");return!!n&&e.replace(/\s/g,"")==n.replace(/\s/g,"")},this.getDirectFuns=function(){return{getMeta:function(){return t.getMeta.apply(t,arguments)},getField:function(e){return t.getField(e)},gm:function(){return t.getMeta.apply(t,arguments)},gf:function(e){return t.getField(e)}}},this.toast=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v.default.getToast();r&&0!=e.length&&r[e[0]]&&r[e[0]].apply(r,(0,a.default)(e.slice(1)))},this.notification=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v.default.getNotification();r&&0!=e.length&&r[e[0]]&&r[e[0]].apply(r,(0,a.default)(e.slice(1)))},this.modal=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v.default.getModal();if(r&&0!=e.length&&r[e[0]])return r[e[0]].apply(r,(0,a.default)(e.slice(1)))},this.loadApp=function(t,e){return c.default.createElement(p.AppLoader,(0,i.default)({},e,{name:t}))},this.gm=this.getMeta,this.gf=this.getField,this.gfs=this.getFields,this.sf=this.setField,this.sfs=this.setFields,this.findPathByEvent=d.default.path.findPathByEvent,this.stringToMoment=d.default.moment.stringToMoment,this.momentToString=d.default.moment.momentToString,this.fromJS=m.fromJS,this.context=h.default},r);t.exports=e.default},function(t,e,n){t.exports={default:n(87),__esModule:!0}},function(t,e,n){n(88),t.exports=n(0).Object.assign},function(t,e,n){var r=n(3);r(r.S+r.F,"Object",{assign:n(89)})},function(t,e,n){"use strict";var r=n(14),o=n(40),i=n(25),u=n(13),a=n(45),s=Object.assign;t.exports=!s||n(12)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=u(t),s=arguments.length,f=1,c=o.f,p=i.f;s>f;)for(var l,d=a(arguments[f++]),m=c?r(d).concat(c(d)):r(d),h=m.length,v=0;h>v;)p.call(d,l=m[v++])&&(n[l]=d[l]);return n}:s},function(t,e,n){t.exports={default:n(91),__esModule:!0}},function(t,e,n){n(39),n(50),t.exports=n(41).f("iterator")},function(t,e,n){t.exports={default:n(93),__esModule:!0}},function(t,e,n){n(94),n(99),n(100),n(101),t.exports=n(0).Symbol},function(t,e,n){"use strict";var r=n(2),o=n(5),i=n(7),u=n(3),a=n(52),s=n(95).KEY,f=n(12),c=n(32),p=n(38),l=n(24),d=n(1),m=n(41),h=n(42),v=n(96),y=n(97),g=n(6),_=n(11),b=n(9),x=n(35),M=n(15),O=n(37),j=n(98),w=n(56),S=n(4),P=n(14),E=w.f,F=S.f,A=j.f,C=r.Symbol,I=r.JSON,k=I&&I.stringify,H=d("_hidden"),D=d("toPrimitive"),U={}.propertyIsEnumerable,T=c("symbol-registry"),L=c("symbols"),W=c("op-symbols"),R=Object.prototype,N="function"==typeof C,J=r.QObject,K=!J||!J.prototype||!J.prototype.findChild,q=i&&f(function(){return 7!=O(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(R,e);r&&delete R[e],F(t,e,n),r&&t!==R&&F(R,e,r)}:F,B=function(t){var e=L[t]=O(C.prototype);return e._k=t,e},V=N&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},G=function(t,e,n){return t===R&&G(W,e,n),g(t),e=x(e,!0),g(n),o(L,e)?(n.enumerable?(o(t,H)&&t[H][e]&&(t[H][e]=!1),n=O(n,{enumerable:M(0,!1)})):(o(t,H)||F(t,H,M(1,{})),t[H][e]=!0),q(t,e,n)):F(t,e,n)},z=function(t,e){g(t);for(var n,r=v(e=b(e)),o=0,i=r.length;i>o;)G(t,n=r[o++],e[n]);return t},$=function(t){var e=U.call(this,t=x(t,!0));return!(this===R&&o(L,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,H)&&this[H][t])||e)},Q=function(t,e){if(t=b(t),e=x(e,!0),t!==R||!o(L,e)||o(W,e)){var n=E(t,e);return!n||!o(L,e)||o(t,H)&&t[H][e]||(n.enumerable=!0),n}},Y=function(t){for(var e,n=A(b(t)),r=[],i=0;n.length>i;)o(L,e=n[i++])||e==H||e==s||r.push(e);return r},X=function(t){for(var e,n=t===R,r=A(n?W:b(t)),i=[],u=0;r.length>u;)!o(L,e=r[u++])||n&&!o(R,e)||i.push(L[e]);return i};N||(a((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(n){this===R&&e.call(W,n),o(this,H)&&o(this[H],t)&&(this[H][t]=!1),q(this,t,M(1,n))};return i&&K&&q(R,t,{configurable:!0,set:e}),B(t)}).prototype,"toString",function(){return this._k}),w.f=Q,S.f=G,n(55).f=j.f=Y,n(25).f=$,n(40).f=X,i&&!n(23)&&a(R,"propertyIsEnumerable",$,!0),m.f=function(t){return B(d(t))}),u(u.G+u.W+u.F*!N,{Symbol:C});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=P(d.store),nt=0;et.length>nt;)h(et[nt++]);u(u.S+u.F*!N,"Symbol",{for:function(t){return o(T,t+="")?T[t]:T[t]=C(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in T)if(T[e]===t)return e},useSetter:function(){K=!0},useSimple:function(){K=!1}}),u(u.S+u.F*!N,"Object",{create:function(t,e){return void 0===e?O(t):z(O(t),e)},defineProperty:G,defineProperties:z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Y,getOwnPropertySymbols:X}),I&&u(u.S+u.F*(!N||f(function(){var t=C();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!V(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,k.apply(I,r)}}),C.prototype[D]||n(10)(C.prototype,D,C.prototype.valueOf),p(C,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){var r=n(24)("meta"),o=n(11),i=n(5),u=n(4).f,a=0,s=Object.isExtensible||function(){return!0},f=!n(12)(function(){return s(Object.preventExtensions({}))}),c=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},p=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return f&&p.NEED&&s(t)&&!i(t,r)&&c(t),t}}},function(t,e,n){var r=n(14),o=n(40),i=n(25);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),s=i.f,f=0;a.length>f;)s.call(t,u=a[f++])&&e.push(u);return e}},function(t,e,n){var r=n(29);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(9),o=n(55).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e){},function(t,e,n){n(42)("asyncIterator")},function(t,e,n){n(42)("observable")},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(103));e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,r.default)(t)}},function(t,e,n){t.exports={default:n(104),__esModule:!0}},function(t,e,n){n(39),n(105),t.exports=n(0).Array.from},function(t,e,n){"use strict";var r=n(34),o=n(3),i=n(13),u=n(106),a=n(107),s=n(46),f=n(108),c=n(54);o(o.S+o.F*!n(109)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,p,l=i(t),d="function"==typeof this?this:Array,m=arguments.length,h=m>1?arguments[1]:void 0,v=void 0!==h,y=0,g=c(l);if(v&&(h=r(h,m>2?arguments[2]:void 0,2)),void 0==g||d==Array&&a(g))for(n=new d(e=s(l.length));e>y;y++)f(n,y,v?h(l[y],y):l[y]);else for(p=g.call(l),n=new d;!(o=p.next()).done;y++)f(n,y,v?u(p,h,[o.value,y],!0):o.value);return n.length=y,n}})},function(t,e,n){var r=n(6);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(16),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(4),o=n(15);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o,i=f(n(8));e.default=function(t){return new c(t)};var u=f(n(43)),a=f(n(59)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(57));function f(t){return t&&t.__esModule?t:{default:t}}var c=(r=function t(e){(0,i.default)(this,t),o.call(this),this.appInfo=e.appInfo},o=function(){var t=this;this.init=function(e,n){var r=n.data,o=void 0===r?{}:r;return t.initByImmutable(e,{data:u.default.fromJS(o)})},this.initByImmutable=function(t,e){var n=e.data,r=[];return t.mapKeys(function(t){-1===t.indexOf("@@")&&r.push(t)}),r.forEach(function(e){t=t.remove(e)}),t.set("data",n)},this.getMeta=s.getMeta,this.getField=s.getField,this.getFields=s.getFields,this.setField=s.setField,this.setFields=s.setFields,this.gm=s.getMeta,this.gf=s.getField,this.gfs=s.getFields,this.sf=s.setField,this.sfs=s.setFields,this.context=a.default},r);t.exports=e.default},function(t,e,n){n(112),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){var r=n(13),o=n(53);n(47)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){t.exports={default:n(114),__esModule:!0}},function(t,e,n){n(115),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var r=n(3);r(r.S,"Object",{setPrototypeOf:n(116).set})},function(t,e,n){var r=n(11),o=n(6),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(34)(Function.call,n(56).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports={default:n(118),__esModule:!0}},function(t,e,n){n(119);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(3);r(r.S,"Object",{create:n(37)})},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(18)),o=s(n(22)),i=s(n(26)),u=n(20),a=s(n(36));s(n(122)),s(n(21));function s(t){return t&&t.__esModule?t:{default:t}}function f(t,e,n){var i={};return(0,o.default)(t).forEach(function(o){var u,a,s=t[o],f=void 0===s?"undefined":(0,r.default)(s);if(s instanceof Array)for(i[o]=[],u=0;a=s[u++];)if(a instanceof Array)i[o]=s;else{var c=p(a,e,n);c instanceof Array?i[o]=i[o].concat(c):i[o].push(c)}else"object"==f?s&&s._notParse?i[o]=s:i[o]=p(s,e,n):i[o]=s}),i}var c=s(n(27)).default._.memoize(function(t){return new Function(t)});function p(t,e,n){if(!t)return t;var s=void 0===t?"undefined":(0,r.default)(t);if("object"==s&&t.$$typeof)return t;if("object"==s&&t._isAMomentObject)return t;if("object"==s&&t instanceof Date)return t;if("object"==s){if(t.component){if("function"==typeof t.component&&(t.component=t.component()),!1===t._visible)return null;if("function"==typeof t._visible&&!1===t._visible())return null;if(t._power&&/for[ ]+in/.test(t._power)){var l=t._power.replace(/for[ ]+in/,"").replace(" ","");-1!=l.indexOf("_rowIndex")&&(l=l.replace("_rowIndex",t.path.split(",").length>1?t.path.split(",")[1].replace(" ",""):0));var d=e.gf(l);if(!d||0==d.size)return;return(d=d.toJS()).map(function(r,o){var i=e.gm(t.path+","+o,void 0,n);return delete i._power,p(i,e,n)})}if(t._power&&-1!=t._power.indexOf("=>"))return function(){var r=c("return "+t._power)().apply(void 0,arguments),o=e.gm(t.path+","+r,void 0,n);return o._power=void 0,p(o,e,n)};var m=t.component,h=a.default.getComponent(e.appName,m),v=f(t,e,n);if(v.key||(v.key=t.path),delete v.component,delete v.name,"AppLoader"==m){var y,g,_=(0,o.default)(e);for(y=0;g=_[y++];)void 0==v[g]&&(v[g]=e[g]);return delete v.clearAppState,delete v.getDirectFuns,delete v.initView,delete v.payload,delete v.componentWillMount,delete v.componentDidMount,delete v.shouldComponentUpdate,delete v.componentWillReceiveProps,delete v.componentWillUpdate,delete v.componentDidCatch,delete v.componentWillUnmount,delete v.componentDidUpdate,delete v.unmount,v.appName?!0!==v._notRender||(0,u.getApps)()[v.appName]?(v.key=v.appName,v.name=v.appName,i.default.createElement(h,v)):null:null}return i.default.createElement(h,v)}return f(t,e,n)}return t}e.default=function(t){var e=t.path,n=t.gm,r=(0,t.gf)().toJS();return p(n(e,void 0,r),t,r)},t.exports=e.default},function(t,e,n){"use strict";n.r(e);var r=n(19),o=n.n(r);e.default=function(t,e){for(var n=o()({},t),r=0;r<e.length;r++)delete n[e[r]];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=p(n(19)),i=p(n(61)),u=p(n(8)),a=p(n(17)),s=p(n(62)),f=p(n(63)),c=n(26);p(c);function p(t){return t&&t.__esModule?t:{default:t}}var l=(0,p(n(60)).default)()(r=function(t){function e(){return(0,u.default)(this,e),(0,s.default)(this,(e.__proto__||(0,i.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,a.default)(e,[{key:"render",value:function(){return this.props.monkeyKing((0,o.default)({},this.props,{path:"root"}))}}]),e}(c.Component))||r;e.default=l,t.exports=e.default}])});