You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by da...@apache.org on 2017/08/17 03:59:54 UTC

[37/43] incubator-weex git commit: * [build] build weex-js-framework@0.21.9

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e9f9df58/packages/weex-html5/index.min.js
----------------------------------------------------------------------
diff --git a/packages/weex-html5/index.min.js b/packages/weex-html5/index.min.js
new file mode 100644
index 0000000..9b9f645
--- /dev/null
+++ b/packages/weex-html5/index.min.js
@@ -0,0 +1 @@
+(this.nativeLog||function(e){console.log(e)})("START WEEX HTML5: 0.5.0, Build 2017-08-14 14:07."),this.getJSFMVersion=function(){return"0.21.9"};var global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Weex=t()}(this,function(){"use strict";function e(e,t){if("undefined"==typeof document)return t;e=e||"";var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");return r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),t}function t(e){return e&&e.__esModule?e.default:e}function n(e,t){return t={exports:{}},e(t,t.exports),t.exports}function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=Ql(t),this.reject=Ql(n)}function o(){Tc.forEach(function(e){var t=Tc.ind
 exOf(e);Lc[e]={},Tc.forEach(function(n){Tc.indexOf(n)<=t&&(Lc[e][n]=!0)})})}function i(e){var t=global.WXEnvironment&&global.WXEnvironment.logLevel||"log";return Lc[t]&&Lc[t][e]}function a(e){return e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):String(e)})}function s(){if(void 0===setTimeout&&"function"==typeof Nc){var e={},t=0;global.setTimeout=function(n,r){e[++t]=n,Nc(t.toString(),r)},global.setTimeoutCallback=function(t){"function"==typeof e[t]&&(e[t](),delete e[t])}}}function l(){Object.freeze(Object),Object.freeze(Array),c(),Object.freeze(Array.prototype),Object.freeze(String.prototype),Object.freeze(Number.prototype),Object.freeze(Boolean.prototype),u(),Object.freeze(Date.prototype),Object.freeze(RegExp.prototype)}function c(){var e=Object.prototype,t="Object.prototype";d(e,"__defineGetter__",t),d(e,"__defineSetter__",t),d(e,"__lookupGetter__",t),d(e,"__lookupSetter__",t),d(e,"constructor",t),d(e,"hasOwnProper
 ty",t),d(e,"isPrototypeOf",t),d(e,"propertyIsEnumerable",t),d(e,"toLocaleString",t),d(e,"toString",t),d(e,"valueOf",t),Object.seal(e)}function u(){var e=Error.prototype,t="Error.prototype";d(e,"name",t),d(e,"message",t),d(e,"toString",t),d(e,"constructor",t),Object.seal(e)}function d(e,t,n){if(e.hasOwnProperty(t)){var r=e[t];Object.defineProperty(e,t,{get:function(){return r},set:function(r){if(this===e)throw Error("Cannot assign to read only property "+t+" of "+n);return Object.defineProperty(this,t,{value:r,writable:!0}),r}})}}function f(){return(Bc++).toString()}function p(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function h(e){if("function"!=typeof btoa)return"";var t=Array.prototype.map.call(new Uint8Array(e),function(e){return String.fromCharCode(e)}).join("");return btoa(t)}function v(e){if("function"!=typeof atob)return new ArrayBuffer(0);var t=atob(e),n=new Uint8Array(t.length);return Array.prototype.forEach.call(t,function(e,t){n[t]=e.char
 CodeAt(0)}),n.buffer}function m(e){var t=p(e);switch(t){case"Undefined":case"Null":return"";case"RegExp":return e.toString();case"Date":return e.toISOString();case"Number":case"String":case"Boolean":case"Array":case"Object":return e;case"ArrayBuffer":return{"@type":"binary",dataType:t,base64:h(e)};case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return{"@type":"binary",dataType:t,base64:h(e.buffer)};default:return JSON.stringify(e)}}function y(e){if("Object"===p(e)){if(e["@type"]&&"binary"===e["@type"])return v(e.base64||"");var t={};for(var n in e)t[n]=y(e[n]);return t}return"Array"===p(e)?e.map(y):e}function g(e,t){e&&(Fc[e]=t)}function b(e){return Fc[e]}function A(e){delete Fc[e]}function w(e){var t=Fc[e];return t&&t.taskCenter?t.taskCenter:null}function _(e,t,n){var r=e.documentElement;if(!(r.pureChildren.length>0||t.parentNode)){var o=r.children,i=o.indexOf(n);i<0
 ?o.push(t):o.splice(i,0,t),1===t.nodeType?("body"===t.role?(t.docId=e.id,t.ownerDocument=e,t.parentNode=r,C(t,r)):(t.children.forEach(function(e){e.parentNode=t}),E(e,t),t.docId=e.id,t.ownerDocument=e,C(t,r),delete e.nodeMap[t.nodeId]),r.pureChildren.push(t),x(e,t)):(t.parentNode=r,e.nodeMap[t.ref]=t)}}function x(e,t){var n=t.toJSON(),r=n.children;delete n.children;var o=e.taskCenter.send("dom",{action:"createBody"},[n]);return r&&r.forEach(function(t){o=e.taskCenter.send("dom",{action:"addElement"},[n.ref,t,-1])}),o}function E(e,t){t.role="body",t.depth=1,delete e.nodeMap[t.nodeId],t.ref="_root",e.nodeMap._root=t,e.body=t}function C(e,t){e.parentNode=t,t.docId&&(e.docId=t.docId,e.ownerDocument=t.ownerDocument,e.ownerDocument.nodeMap[e.nodeId]=e,e.depth=t.depth+1),e.children.forEach(function(t){C(t,e)})}function k(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function S(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function O(e,t,n,r){n<0&&(n=0);var o=t[n-1],
 i=t[n];return t.splice(n,0,e),r&&(o&&(o.nextSibling=e),e.previousSibling=o,e.nextSibling=i,i&&(i.previousSibling=e)),n}function I(e,t,n,r){var o=t.indexOf(e);if(o<0)return-1;if(r){var i=t[o-1],a=t[o+1];i&&(i.nextSibling=a),a&&(a.previousSibling=i)}t.splice(o,1);var s=n;o<=n&&(s=n-1);var l=t[s-1],c=t[s];return t.splice(s,0,e),r&&(l&&(l.nextSibling=e),e.previousSibling=l,e.nextSibling=c,c&&(c.previousSibling=e)),o===s?-1:n}function j(e,t,n){var r=t.indexOf(e);if(!(r<0)){if(n){var o=t[r-1],i=t[r+1];o&&(o.nextSibling=i),i&&(i.previousSibling=o)}t.splice(r,1)}}function T(e,t){if(t&&t.length){var n=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Wc);t.forEach(function(t){n.prototype[t]=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o=w(this.docId);if(o)return o.send("component",{ref:this.ref,component:e,method:t},n)}}),$c[e]=n}}function L(e){return $c[e]}function P(e){r
 eturn"String"===p(e)?{"@binding":e}:e}function M(e){for(var t,n,r=[],o=Qc.lastIndex=0;t=Qc.exec(e);){(n=t.index)>o&&r.push(e.slice(o,n));var i=P(t[1].trim());r.push(i),o=n+t[0].length}return o<e.length&&r.push(e.slice(o)),1===r.length?r[0]:r}function N(e){if("String"===p(e)&&Qc.test(e))return M(e);if("Object"===p(e)){var t={};for(var n in e)t[n]=N(e[n]);return t}return"Array"===p(e)?e.map(N):e}function B(e,t){b(e).nodeMap[t.nodeId]=t}function R(){var e={createFinish:global.callCreateFinish,updateFinish:global.callUpdateFinish,refreshFinish:global.callRefreshFinish,createBody:global.callCreateBody,addElement:global.callAddElement,removeElement:global.callRemoveElement,moveElement:global.callMoveElement,updateAttrs:global.callUpdateAttrs,updateStyle:global.callUpdateStyle,addEvent:global.callAddEvent,removeEvent:global.callRemoveEvent},t=Gc.prototype;for(var n in e)!function(n){var r=e[n];t[n]=r?function(e,t){return r.apply(void 0,[e].concat(t))}:function(e,t){return Hc(e,[{module:"do
 m",method:n,args:t}],"-1")}}(n);t.componentHandler=global.callNativeComponent||function(e,t,n,r,o){return Hc(e,[{component:o.component,ref:t,method:n,args:r}])},t.moduleHandler=global.callNativeModule||function(e,t,n,r){return Hc(e,[{module:t,method:n,args:r}])}}function F(e,t){W(e)?console.warn('Service "'+e+'" has been registered already!'):(t=Object.assign({},t),Jc.push({name:e,options:t}))}function D(e){Jc.some(function(t,n){if(t.name===e)return Jc.splice(n,1),!0})}function W(e){return $(e)>=0}function $(e){return Jc.map(function(e){return e.name}).indexOf(e)}function Q(e){var t=Kc.exec(e);if(t)try{return JSON.parse(t[1]).framework}catch(e){}return"Weex"}function U(e,t,n){var r=Object.create(null);return r.service=Object.create(null),Jc.forEach(function(o){o.name;var i=o.options.create;if(i){var a=i(e,t,n);Object.assign(r.service,a),Object.assign(r,a.instance)}}),delete r.service.instance,Object.freeze(r.service),r}function z(e){if(Zc[e])return Zc[e].framework}function V(e){Xc[e
 ]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];"registerComponents"===e&&H(t[0]);for(var r in qc){var o=qc[r];o&&o[e]&&o[e].apply(o,t)}}}function H(e){Array.isArray(e)&&e.forEach(function(e){e&&e.type&&e.methods&&T(e.type,e.methods)})}function G(e){Xc[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=z(r);if(o&&qc[o]){var i=(s=qc[o])[e].apply(s,t),a={framework:o};return"refreshInstance"===e?Jc.forEach(function(e){var t=e.options.refresh;t&&t(r,{info:a,runtime:Yc})}):"destroyInstance"===e&&(Jc.forEach(function(e){var t=e.options.destroy;t&&t(r,{info:a,runtime:Yc})}),delete Zc[r]),i}return new Error('invalid instance id "'+r+'"');var s}}function q(e,t){Xc[t]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=z(r);return o&&qc[o]?(i=qc[o])[e].apply(i,t):new Error('invalid instance id "'+r+'"');var i}}function Y(e,t){return void 0===t&&(t=[]),{module:"dom",method:e,args:t}}function J(e,t){var n=t||global.ca
 llNative;return"function"!=typeof n&&console.error("[JS Runtime] no default handler"),function(t){Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var o=Z(e,t[r],n);if(-1===o)return o}}}function K(e,t){return"dom"===e&&nu[t]&&"function"==typeof global[nu[t]]}function Z(e,t,n){var r=t.module,o=t.method,i=t.args;return K(r,o)?global[nu[o]].apply(global,[e].concat(i,["-1"])):n(e,[t],"-1")}function X(e,t){var n=t.attrs||{};for(var r in n)e.setAttr(r,n[r],!0);var o=t.style||{};for(var i in o)e.setStyle(i,o[i],!0)}function ee(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"==typeof Object.assign)Object.assign.apply(Object,[e].concat(t));else{var r=t.shift();for(var o in r)e[o]=r[o];t.length&&ee.apply(void 0,[e].concat(t))}return e}function te(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function ne(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function re(e,t){return Su.call(e,t)}function o
 e(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function ie(e){return null!==e&&"object"==typeof e}function ae(e){return Ou.call(e)===Iu}function se(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function le(){return"object"==typeof nativeSet?nativeSet.create():new iu}function ce(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1).toLowerCase()}function ue(e){return e.replace(Tu,"").replace(Lu,"")}function de(e){return e.replace(Mu,"")}function fe(){this.id=Du++,this.subs=[]}function pe(e){fe.target&&Wu.push(fe.target),fe.target=e}function he(){fe.target=Wu.pop()}function ve(){fe.target=null,Wu=[]}function me(e,t,n,r){r&&ee(this,r);var o="function"==typeof t;this.vm=e,e._watchers.push(this),this.expression=t,this.cb=n,this.id=++$u,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=le(),this.newDepIds=le(),o&&(this.getter=t),this.value=this.lazy?void 0:this.get(),this.queu
 ed=this.shallow=!1}function ye(e,t){var n,r,o,i;if(t||(t=Qu).clear(),o=Array.isArray(e),i=ie(e),o||i){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(n=e.length;n--;)ye(e[n],t);else if(i)for(n=(r=Object.keys(e)).length;n--;)ye(e[r[n]],t)}}function ge(e){this.value=e,this.dep=new fe,te(e,"__ob__",this),Array.isArray(e)?((ju?be:Ae)(e,zu,Vu),this.observeArray(e)):this.walk(e)}function be(e,t){e.__proto__=t}function Ae(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];te(e,i,t[i])}}function we(e,t){if(ie(e)){var n;return re(e,"__ob__")&&e.__ob__ instanceof ge?n=e.__ob__:(Array.isArray(e)||ae(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new ge(e)),n&&t&&n.addVm(t),n}}function _e(e,t,n){var r=new fe,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var i=o&&o.get,a=o&&o.set,s=we(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=i?i.call(e):n;if(fe.target&&(r.depend(),s&&s.dep.depend(),Array.isArray(t)))for(var o=void 0,
 a=0,l=t.length;a<l;a++)(o=t[a])&&o.__ob__&&o.__ob__.dep.depend();return t},set:function(t){t!==(i?i.call(e):n)&&(a?a.call(e,t):n=t,s=we(t),r.notify())}})}}function xe(e,t,n){if(Array.isArray(e))return e.splice(t,1,n);if(re(e,t))e[t]=n;else if(e._isVue)xe(e._data,t,n);else{var r=e.__ob__;if(r){if(r.convert(t,n),r.dep.notify(),r.vms)for(var o=r.vms.length;o--;)Ee(r.vms[o],t);return n}e[t]=n}}function Ee(e,t){(Hu.indexOf(t)>-1||!se(t))&&Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}function Ce(e,t){se(t)||delete e[t]}function ke(e){e._watchers=[],Se(e),Ie(e),Te(e)}function Se(e){var t=e._data;ae(t)||(t={});for(var n=Object.keys(t),r=n.length;r--;)Ee(e,n[r]);we(t,e)}function Oe(){}function Ie(e){var t=e._computed;if(t)for(var n in t){var r=t[n],o={enumerable:!0,configurable:!0};"function"==typeof r?(o.get=je(r,e),o.set=Oe):(o.get=r.get?!1!==r.cache?je(r.get,e):oe(r.get,e):Oe,o.set=r.set?oe(r.set,e):Oe),Object.d
 efineProperty(e,n,o)}}function je(e,t){var n=new me(t,e,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),fe.target&&n.depend(),n.value}}function Te(e){var t=e._methods;if(t)for(var n in t)e[n]=t[n]}function Le(e){var t=e.type,n=qu[t];if("object"==typeof n)for(var r in n)if(null==e[r])e[r]=n[r];else if("object"===ce(e[r])&&"object"===ce(n[r]))for(var o in n[r])null==e[r][o]&&(e[r][o]=n[r][o])}function Pe(e,t,n){De(e,t,n.id,e),We(e,t,n.attr),Qe(e,t,n.classList),Ue(e,t,n.style),Ve(e,t,n.events)}function Me(e,t,n,r){t=t||{},n=n||{};var o=(t._options||{}).props;Array.isArray(o)&&(o=o.reduce(function(e,t){return e[t]=!0,e},{})),Be(r,o,e,t),Be(n.attr,o,e,t)}function Ne(e,t,n,r){void 0===r&&(r={}),Fe(n.classList,e,t),Re(n.style,e,t),r.children?r.children[r.children.length-1]._vm=t:r._vm=t}function Be(e,t,n,r){if(e){for(var o in e)!function(o){if(!t||t[o]){var i=e[o];if("function"==typeof i){var a=qe(n,i,function(e){r[o]=e});r[o]=a}else r[o]=i}}(o)}}function Re(e,t,n){for(var r
  in e)!function(r){var o=e[r];if("function"==typeof o){var i=qe(t,o,function(e){n._rootEl&&n._rootEl.setStyle(r,e)});n._rootEl.setStyle(r,i)}else n._rootEl&&n._rootEl.setStyle(r,o)}(r)}function Fe(e,t,n){function r(e,t){"array"===ce(e)&&e.unshift(t)}var o=t._options&&t._options.style||{};if(n._rootEl){var i="@originalRootEl";if(o[i]=n._rootEl.classStyle,"function"==typeof e){var a=qe(t,e,function(e){r(e,i),$e(n._rootEl,o,e)});r(a,i),$e(n._rootEl,o,a)}else null!=e&&(r(e,i),$e(n._rootEl,o,e))}}function De(e,t,n,r){var o=Object.create(null);if(Object.defineProperties(o,{vm:{value:r,writable:!1,configurable:!1},el:{get:function(){return t||r._rootEl},configurable:!1}}),"function"==typeof n){var i=n;((n=i.call(e))||0===n)&&(e._ids[n]=o),qe(e,i,function(t){t&&(e._ids[t]=o)})}else n&&"string"==typeof n&&(e._ids[n]=o)}function We(e,t,n){He(e,t,"attr",n)}function $e(e,t,n){"string"==typeof n&&(n=n.split(/\s+/)),n.forEach(function(e,t){n.splice.apply(n,[t,1].concat(e.split(/\s+/)))});for(var 
 r={},o=n.length,i=0;i<o;i++)!function(e){var o=t[n[e]];o&&Object.keys(o).forEach(function(e){r[e]=o[e]})}(i);e.setClassStyle(r)}function Qe(e,t,n){if("function"==typeof n||Array.isArray(n))if(!Array.isArray(n)||n.length){var r=e._options&&e._options.style||{};if("function"==typeof n){var o=qe(e,n,function(e){$e(t,r,e)});$e(t,r,o)}else $e(t,r,n)}else t.setClassStyle({})}function Ue(e,t,n){He(e,t,"style",n)}function ze(e,t,n,r){t.addEvent(n,oe(r,e))}function Ve(e,t,n){if(n)for(var r=Object.keys(n),o=r.length;o--;){var i=r[o],a=n[i];"string"==typeof a&&((a=e[a])||console.warn('[JS Framework] The event handler "'+a+'" is not defined.')),ze(e,t,i,a)}}function He(e,t,n,r){if(r)for(var o=Object.keys(r),i=o.length;i--;){var a=o[i],s=r[a];"function"==typeof s?Ge(e,t,n,a,s):t[Yu[n]](a,s)}}function Ge(e,t,n,r,o){var i=Yu[n],a=qe(e,o,function(n){function o(){t[i](r,n)}var a=e&&e._app&&e._app.differ;a?a.append("element",t.depth,t.ref,o):o()});t[i](r,a)}function qe(e,t,n){return e._static?t.call(
 e,e):new me(e,t,function(e,t){"object"!=typeof e&&e===t||n(e)}).value}function Ye(e,t){return e._app.doc.createBody(t)}function Je(e,t){return e._app.doc.createElement(t)}function Ke(e,t){var n=Ze(e),r=Xe(e),o=Ju++;if(t.element){var i=t.updateMark;i?(i.element&&(i=i.end),t.element.insertAfter(r,i),t.element.insertAfter(n,i),t.updateMark=r):(t.element.insertBefore(n,t.end),t.element.insertBefore(r,t.end)),t=t.element}else t.appendChild(n),t.appendChild(r);return{start:n,end:r,element:t,blockId:o}}function Ze(e){return e._app.doc.createComment("start")}function Xe(e){return e._app.doc.createComment("end")}function et(e,t,n){if(n.element){var r=n.end,o=n.updateMark;if(n.children&&n.children.push(t),o){var i=tt(e,t,o);return n.updateMark=t.element?t.end:t,i}if(!t.element)return n.element.insertBefore(t,r);n.element.insertBefore(t.start,r),n.element.insertBefore(t.end,r)}else{if(!t.element)return n.appendChild(t);n.appendChild(t.start),n.appendChild(t.end)}}function tt(e,t,n){return t.el
 ement?rt(t,n):nt(t,n)}function nt(e,t){var n=t.parentNode;if(n)return n.insertAfter(e,t)}function rt(e,t){var n=t.parentNode;if(n){for(var r,o=e.start,i=[o];o&&o!==e.end;)o=o.nextSibling,i.push(o);var a=t;return i.every(function(e){return r=n.insertAfter(e,a),a=e,-1!==r}),r}}function ot(e,t,n){void 0===n&&(n=!1),t.element?at(t,n):it(t),t._vm&&t._vm.$emit("hook:destroyed")}function it(e){var t=e.parentNode;t&&t.removeChild(e)}function at(e,t){void 0===t&&(t=!1);for(var n=[],r=e.start.nextSibling;r&&r!==e.end;)n.push(r),r=r.nextSibling;t||it(e.start),n.forEach(function(e){it(e)}),t||it(e.end)}function st(e){var t=e._options||{},n=t.template||{};t.replace?n.children&&1===n.children.length?lt(e,n.children[0],e._parentEl):lt(e,n.children,e._parentEl):lt(e,n,e._parentEl),console.debug('[JS Framework] "ready" lifecycle in Vm('+e._type+")"),e.$emit("hook:ready"),e._ready=!0}function lt(e,t,n,r){if(-1!==(e._app||{}).lastSignal)if(t.attr&&t.attr.hasOwnProperty("static")&&(e._static=!0),ct(t))
 vt(e,t,n,r);else{if(r=r||{},ut(t))return console.debug('[JS Framework] compile "content" block by',t),void(e._content=Ke(e,n));if(dt(t,r))return console.debug('[JS Framework] compile "repeat" logic by',t),void("document"===n.type?console.warn("[JS Framework] The root element does't support `repeat` directive!"):mt(e,t,n));if(ft(t,r))return console.debug('[JS Framework] compile "if" logic by',t),void("document"===n.type?console.warn("[JS Framework] The root element does't support `if` directive!"):yt(e,t,n,r));var o=r.type||t.type;if(pt(o,r))gt(e,t,n,o,r);else{var i=o,a=ht(e,t,i);if(a)return console.debug("[JS Framework] compile composed component by",t),void bt(e,a,t,n,i,r);console.debug("[JS Framework] compile native component by",t),At(e,t,n,i)}}}function ct(e){return Array.isArray(e)}function ut(e){return"content"===e.type||"slot"===e.type}function dt(e,t){return!t.hasOwnProperty("repeat")&&e.repeat}function ft(e,t){return!t.hasOwnProperty("shown")&&e.shown}function pt(e,t){retur
 n"function"==typeof e&&!t.hasOwnProperty("type")}function ht(e,t,n){var r;return e._app&&e._app.customComponentMap&&(r=e._app.customComponentMap[n]),e._options&&e._options.components&&(r=e._options.components[n]),t.component&&(r=r||{}),r}function vt(e,t,n,r){var o=Ke(e,n);t.forEach(function(t){lt(e,t,o,r)})}function mt(e,t,n){var r=t.repeat,o="function"==typeof r,i=r.getter||r.expression||r;"function"!=typeof i&&(i=function(){return[]});var a=r.key||"$index",s=r.value||"$value",l=r.trackBy||t.trackBy||t.attr&&t.attr.trackBy,c=Ke(e,n);c.children=[],c.data=[],c.vms=[],_t(e,t,c,{getter:i,key:a,value:s,trackBy:l,oldStyle:o})}function yt(e,t,n,r){var o={shown:!0},i=Ke(e,n);n.element&&n.children&&n.children.push(i),r.repeat&&(o.repeat=r.repeat),xt(e,t,i,o)}function gt(e,t,n,r,o){var i=ee({type:r.call(e)},o),a=Ke(e,n);n.element&&n.children&&n.children.push(a),qe(e,r,function(n){var r=ee({type:n},o);ot(e,a,!0),lt(e,t,a,r)}),lt(e,t,a,i)}function bt(e,t,n,r,o,i){var a=new(0,e.constructor)(o,t
 ,e,r,void 0,{"hook:init":function(){e._static&&(this._static=e._static),De(e,null,n.id,this),this._externalBinding={parent:e,template:n}},"hook:created":function(){Me(e,this,n,i.repeat)},"hook:ready":function(){this._content&&wt(e,n,this._content)}});Ne(e,a,n,r)}function At(e,t,n,r){Le(t);var o;if("_documentElement"===n.ref?(console.debug("[JS Framework] compile to create body for "+r),o=Ye(e,r)):(console.debug("[JS Framework] compile to create element for "+r),o=Je(e,r)),!e._rootEl){e._rootEl=o;var i=e._externalBinding||{},a=i.template,s=i.parent;if(a&&a.events&&s&&o)for(var l in a.events){var c=s[a.events[l]];c&&o.addEvent(l,oe(c,s))}}Pe(e,o,t),t.attr&&t.attr.append&&(t.append=t.attr.append),t.append&&(o.attr=o.attr||{},o.attr.append=t.append);var u="tree"===t.append,d=e._app||{};-1===d.lastSignal||u||(console.debug("[JS Framework] compile to append single node for",o),d.lastSignal=et(e,o,n)),-1!==d.lastSignal&&wt(e,t,o),-1!==d.lastSignal&&u&&(console.debug("[JS Framework] compile
  to append whole tree for",o),d.lastSignal=et(e,o,n))}function wt(e,t,n){var r=e._app||{},o=t.children;o&&o.length&&o.every(function(t){return lt(e,t,n),-1!==r.lastSignal})}function _t(e,t,n,r){function o(e,r,o){var a;c?(a=e,ie(e)?(a[u]=r,a.hasOwnProperty("INDEX")||Object.defineProperty(a,"INDEX",{value:function(){console.warn('[JS Framework] "INDEX" in repeat is deprecated, please use "$index" instead')}})):(console.warn("[JS Framework] Each list item must be an object in old-style repeat, please use `repeat={{v in list}}` instead."),(a={})[u]=r,a[d]=e)):((a={})[u]=r,a[d]=e);var s=Ct(o,a);i.push(s),lt(s,t,n,{repeat:e})}var i=n.vms,a=n.children,s=r.getter,l=r.trackBy,c=r.oldStyle,u=r.key,d=r.value,f=Et(e,n,s,"repeat",function(t){if(console.debug('[JS Framework] the "repeat" item has changed',t),n&&t){var r=a.slice(),s=i.slice(),f=n.data.slice(),p={},h={};t.forEach(function(e,t){var n=l?e[l]:c?e[u]:t;null!=n&&""!==n&&(p[n]=e)});var v=[];f.forEach(function(t,n){var o=l?t[l]:c?t[u]:n;p
 .hasOwnProperty(o)?(h[o]={item:t,index:n,key:o,target:r[n],vm:s[n]},v.push(t)):ot(e,r[n])}),a.length=0,i.length=0,n.data=t.slice(),n.updateMark=n.start,t.forEach(function(t,r){var s=l?t[l]:c?t[u]:r,f=h[s];f?(f.item===v[0]?v.shift():(v.$remove(f.item),tt(e,f.target,n.updateMark,!0)),a.push(f.target),i.push(f.vm),c?f.vm=t:f.vm[d]=t,f.vm[u]=r,n.updateMark=f.target):o(t,r,e)}),delete n.updateMark}});n.data=f.slice(0),f.forEach(function(t,n){o(t,n,e)})}function xt(e,t,n,r){var o=Et(e,n,t.shown,"shown",function(o){console.debug('[JS Framework] the "if" item was changed',o),n&&!!n.display!=!!o&&(n.display=!!o,o?lt(e,t,n,r):ot(e,n,!0))});n.display=!!o,o&&lt(e,t,n,r)}function Et(e,t,n,r,o){var i=e&&e._app&&e._app.differ,a={},s=(t.element.depth||0)+1;return qe(e,n,function(e){a.latestValue=e,i&&!a.recorded&&i.append(r,s,t.blockId,function(){var e=a.latestValue;o(e),a.recorded=!1,a.latestValue=void 0}),a.recorded=!0})}function Ct(e,t){var n=Object.create(e);return n._data=t,Se(n),Ie(n),n._real
 Parent=e,e._static&&(n._static=e._static),n}function kt(e,t){if(t instanceof kt)return t;this.timestamp=Date.now(),this.detail=t,this.type=e;var n=!1;this.stop=function(){n=!0},this.hasStopped=function(){return n}}function St(e,t){var n=this,r=this._vmEvents[e];if(r){var o=new kt(e,t);r.forEach(function(e){e.call(n,o)})}}function Ot(e,t){var n=new kt(e,t);this.$emit(e,n),!n.hasStopped()&&this._parent&&this._parent.$dispatch&&this._parent.$dispatch(e,n)}function It(e,t){var n=new kt(e,t);this.$emit(e,n),!n.hasStopped()&&this._childrenVms&&this._childrenVms.forEach(function(t){t.$broadcast(e,n)})}function jt(e,t){if(e&&"function"==typeof t){var n=this._vmEvents,r=n[e]||[];r.push(t),n[e]=r,"hook:ready"===e&&this._ready&&this.$emit("hook:ready")}}function Tt(e,t){if(e){var n=this._vmEvents;if(t){var r=n[e];r&&r.$remove(t)}else delete n[e]}}function Lt(e,t){var n=e._options||{},r=n.events||{};for(var o in r)e.$on(o,r[o]);for(var i in t)e.$on(i,t[i]);Ku.forEach(function(t){e.$on("hook:"+t
 ,n[t])})}function Pt(e,t,n,r,o,i){n=n||{},this._parent=n._realParent?n._realParent:n,this._app=n._app||{},n._childrenVms&&n._childrenVms.push(this),!t&&this._app.customComponentMap&&(t=this._app.customComponentMap[e]);var a=(t=t||{}).data||{};this._options=t,this._methods=t.methods||{},this._computed=t.computed||{},this._css=t.style||{},this._ids={},this._vmEvents={},this._childrenVms=[],this._type=e,Lt(this,i),console.debug('[JS Framework] "init" lifecycle in Vm('+this._type+")"),this.$emit("hook:init"),this._inited=!0,this._data="function"==typeof a?a():a,o&&ee(this._data,o),ke(this),console.debug('[JS Framework] "created" lifecycle in Vm('+this._type+")"),this.$emit("hook:created"),this._created=!0,t.methods&&t.methods.ready&&(console.warn('"exports.methods.ready" is deprecated, please use "exports.created" instead'),t.methods.ready.call(this)),this._app.doc&&(this._parentEl=r||this._app.doc.documentElement,st(this))}function Mt(e,t){for(var n in e)!function(n){var r=Zu[n];r||(r=
 {},Zu[n]=r),e[n].forEach(function(e){"string"==typeof e&&(e={name:e}),r[e.name]&&!t||(r[e.name]=e)})}(n)}function Nt(e,t){var n=e.prototype;for(var r in t)n.hasOwnProperty(r)||(n[r]=t[r])}function Bt(e,t){var n=Zu[t],r={};for(var o in n)!function(n){Object.defineProperty(r,n,{configurable:!0,enumerable:!0,get:function(){return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return e.callTasks({module:t,method:n,args:r})}},set:function(r){if("function"==typeof r)return e.callTasks({module:t,method:n,args:[r]})}})}(o);return r}function Rt(e,t){return e.customComponentMap[t]}function Ft(e,t,n){var r=e.customComponentMap;r[t]?console.error("[JS Framework] define a component("+t+") that already exists"):r[t]=n}function Dt(e){if(Xu.valid(e))return e;for(var t=(e="string"==typeof e?e:"").split("."),n=0,r=[];n<3;){var o="string"==typeof t[n]&&t[n]?t[n]:"0";r.push(o),n++}return r.join(".")}function Wt(e,t,n){var r={isDowngrade:!0,errorType:1,code:1e3},o=e.toLowerCase();retu
 rn r.errorMessage=function(e,t,n){return"Downgrade["+e+"] :: deviceInfo "+t+" matched criteria "+n}(e,t,n),o.indexOf("osversion")>=0?r.code=1001:o.indexOf("appversion")>=0?r.code=1002:o.indexOf("weexversion")>=0?r.code=1003:o.indexOf("devicemodel")>=0&&(r.code=1004),r}function $t(e,t){t=ae(t=t||global.WXEnvironment)?t:{};var n={isDowngrade:!1};if("function"===ce(e)){var r=e.call(this,t,{semver:Xu,normalizeVersion:Dt});n=(r=!!r)?Wt("custom","","custom params"):n}else{var o=(e=ae(e)?e:{})[(t.platform||"unknow").toLowerCase()]||{};for(var i in t){var a=i,s=a.toLowerCase(),l=t[i],c=s.indexOf("version")>=0,u=s.indexOf("devicemodel")>=0,d=o[i];if(d&&c){var f=Dt(d),p=Dt(t[i]);if(Xu.satisfies(p,f)){n=Wt(a,l,d);break}}else if(u&&("array"===ce(d)?d:[d]).indexOf(l)>=0){n=Wt(a,l,d);break}}}return n}function Qt(e,t){if(void 0===t&&(t={}),e&&e.callTasks)return e.callTasks([{module:"meta",method:"setViewport",args:[t]}])}function Ut(e,t,n,r){console.debug("[JS Framework] bootstrap for "+t);var o;i
 f(Nu(t))o=ue(t);else{if(!Fu(t))return new Error("Wrong component name: "+t);if(o=de(t),!Rt(e,o))return new Error("It's not a component: "+t)}if("string"==typeof(n=ae(n)?n:{}).transformerVersion&&"string"==typeof global.transformerVersion&&!Xu.satisfies(n.transformerVersion,global.transformerVersion))return new Error("JS Bundle version: "+n.transformerVersion+" not compatible with "+global.transformerVersion);var i=$t(n.downgrade);if(i.isDowngrade)return e.callTasks([{module:"instanceWrap",method:"error",args:[i.errorType,i.code,i.errorMessage]}]),new Error("Downgrade["+i.code+"]: "+i.errorMessage);n.viewport&&Qt(e,n.viewport),e.vm=new Pt(o,null,{_app:e},null,r)}function zt(e,t,n){console.warn("[JS Framework] Register is deprecated, please install lastest transformer."),Ft(e,t,n)}function Vt(e,t){console.debug("[JS Framework] Refresh with",t,"in instance["+e.id+"]");var n=e.vm;return n&&t?("function"==typeof n.refreshData?n.refreshData(t):ee(n,t),e.differ.flush(),void e.doc.taskCente
 r.send("dom",{action:"refreshFinish"},[])):new Error('invalid data "'+t+'"')}function Ht(e){console.debug("[JS Framework] Destory an instance("+e.id+")"),e.vm&&Gt(e.vm),e.id="",e.options=null,e.blocks=null,e.vm=null,e.doc.taskCenter.destroyCallback(),e.doc.destroy(),e.doc=null,e.customComponentMap=null,e.commonModules=null}function Gt(e){if(delete e._app,delete e._computed,delete e._css,delete e._data,delete e._ids,delete e._methods,delete e._options,delete e._parent,delete e._parentEl,delete e._rootEl,e._watchers){for(var t=e._watchers.length;t--;)e._watchers[t].teardown();delete e._watchers}if(e._childrenVms){for(var n=e._childrenVms.length;n--;)Gt(e._childrenVms[n]);delete e._childrenVms}console.debug('[JS Framework] "destroyed" lifecycle in Vm('+e._type+")"),e.$emit("hook:destroyed"),delete e._type,delete e._vmEvents}function qt(e){var t=(e.doc||{}).body||{};return t.toJSON?t.toJSON():{}}function Yt(e,t,n,r,o){console.debug('[JS Framework] Fire a "'+n+'" event on an element('+t+
 ") in instance("+e.id+")");{if(!Array.isArray(t)){var i=e.doc.getRef(t);if(i){var a=e.doc.fireEvent(i,n,r,o);return e.differ.flush(),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),a}return new Error('invalid element reference "'+t+'"')}t.some(function(t){return!1!==Yt(e,t,n,r)})}}function Jt(e,t,n,r){console.debug("[JS Framework] Invoke a callback("+t+") with",n,"in instance("+e.id+")");var o=e.doc.taskCenter.callback(t,n,r);return Kt(e),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),o}function Kt(e){e.differ.flush()}function Zt(e,t){var n;return"array"!==ce(t)&&(t=[t]),t.forEach(function(t){n=e.doc.taskCenter.send("module",{module:t.module,method:t.method},t.args)}),n}function Xt(e,t,n,r){console.debug("[JS Framework] Intialize an instance with:\n",n);var o,i=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return ed.apply(void 0,[e].concat(t))},a=function(t,r,i){o=Ut(e,t,r,i||n),Kt(e),e.doc.listener.createFinish(),console.debug("[JS Framework] Af
 ter intialized an instance("+e.id+")")},s=Pt,l=e.doc,c=function(t){return e.requireModule(ue(t))},u={config:e.options,define:i,bootstrap:a,requireModule:c,document:l,Vm:s};Object.freeze(u);var d;"function"==typeof t?d=t.toString().substr(12):t&&(d=t.toString()),d='(function(global){\n\n"use strict";\n\n '+d+" \n\n})(Object.create(this))";var f=global.WXEnvironment,p={};if(f&&"Web"!==f.platform){var h=e.requireModule("timer");Object.assign(p,{setTimeout:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return h.setTimeout(function(){t[0].apply(t,t.slice(2))},t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},setInterval:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return h.setInterval(function(){t[0].apply(t,t.slice(2))},t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},clearTimeout:function(e){h.clearTimeout(e)},clearInterval:function(e){h.clearInterval(e)}})}var v=Object.assign({define:i,require:function(t){return 
 function(n){o=Ut(e,t,{},n)}},bootstrap:a,register:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return zt.apply(void 0,[e].concat(t))},render:function(t,n){o=Ut(e,t,{},n)},__weex_define__:i,__weex_bootstrap__:a,__weex_document__:l,__weex_require__:c,__weex_viewmodel__:s,weex:u},p,r);return tn(v,d)||en(v,d),o}function en(e,t){var n=[],r=[];for(var o in e)n.push(o),r.push(e[o]);return n.push(t),(new(Function.prototype.bind.apply(Function,[null].concat(n)))).apply(void 0,r)}function tn(e,t){if("function"!=typeof compileAndRunBundle)return!1;var n=void 0,r=!1,o="(function (",i=[],a=[];for(var s in e)i.push(s),a.push(e[s]);for(var l=0;l<i.length-1;++l)o+=i[l],o+=",";o+=i[i.length-1],o+=") {",o+=t,o+="} )";try{var c=(e.weex||{}).config||{};(n=compileAndRunBundle(o,c.bundleUrl,c.bundleDigest,c.codeCachePath))&&"function"==typeof n&&(n.apply(void 0,a),r=!0)}catch(e){console.error(e)}return r}function nn(e,t){var n=e[t];for(var r in n)n[r]()}function rn(e,t){var n=e[t];fo
 r(var r in n)n[r].forEach(function(e){e()})}function on(e,t){this.id=e,this.options=t||{},this.vm=null,this.customComponentMap={},this.commonModules={},this.doc=new Gu.Document(e,this.options.bundleUrl,null,Gu.Listener),this.differ=new td(e)}function an(e){"object"==typeof e&&Nt(Pt,e)}function sn(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function ln(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function cn(e){("number"!=typeof e||e<=0)&&(e=10);var t=Math.pow(10,e);return Math.floor(Date.now()+Math.random()*t)%t}function un(e,t){var n,r,o,i=null,a=0,s=function(){a=Date.now(),i=null,n=e.apply(r,o)};return function(){var l=Date.now(),c=t-(l-a);return r=this,o=Array.prototype.slice.call(arguments),c<=0?(clearTimeout(i),i=null,a=l,n=e.apply(r,o)):i||(i=setTimeout(s,c)),n}}function dn(e){return e?e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}):""}function fn(e){return["default","go","next","search",
 "send"].indexOf(e)>-1?e:"done"}function pn(e){if(!(this instanceof pn))return new pn(e);this.instanceId=e.instanceId,this.weexInstance=e,pd[this.instanceId]=this}function hn(e,t){callJS(e,[t])}function vn(e,t,n,r,o){return gn(e,{component:o.component,ref:t,method:n,args:r})}function mn(e,t,n,r,o){return gn(e,{module:t,method:n,args:r})}function yn(e,t,n){var r=[];if("string"==typeof t)try{r=JSON.parse(t)}catch(e){console.error("invalid tasks:",t)}else sn(t)&&(r=t);var o=r.length;r[o-1].callbackId=n||0===n?n:-1;for(var i=0;i<o;i++)gn(e,r[i])}function gn(e,t){var n=void 0===t.module?An(e,t):bn(e,t),r=t.callbackId;return!r&&0!==r&&"0"!==r||"-1"===r||-1===r||wn(e,r),n}function bn(e,t){var n,r,o=t.module,i=t.method,a=t.args||t.arguments||[];if((n=sd.apiModule[o])&&(r=n[i]))return r.apply(global.weex.getInstance(e),a)}function An(e,t){var n=t.component,r=t.ref,o=t.method,i=t.args||t.arguments||[],a=global.weex.getInstance(e).getComponentManager().getComponent(r);if(!a)return console.error
 ("[h5-render] component of ref "+r+" doesn't exist.");var s;return(s=a[o])?s.apply(a,i):console.error("[h5-render] component "+n+" doesn't have a method named "+o+".")}function wn(e,t){pn.getSender(e).performCallback(t)}function _n(){if(ld.debug){if(arguments[0].match(/^perf/))return void console.info.apply(console,arguments);console.debug.apply(console,arguments)}}function xn(){global.callNative=yn,global.callNativeComponent=vn,global.callNativeModule=mn,global.nativeLog=_n}function En(e){var t=e.data.event;return!(!t||-1===t.indexOf("appear")&&-1===t.indexOf("disappear"))}function Cn(e){if(En(e)&&(vd.push(e),!md)){md=!0;var t=un(In,100);window.addEventListener("scroll",t,!1)}}function kn(e){var t=e.node.getBoundingClientRect();return t.right>0&&t.left<window.innerWidth&&t.bottom>0&&t.top<window.innerHeight}function Sn(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function On(e){var t=e.getParentScroller();return t?kn(e)&&Sn(e.node.getBoundingClientRect
 (),t.node.getBoundingClientRect()):kn(e)}function In(e){var t;if("scrolling"===e.originalType)t=e.direction;else{var n=window.scrollY;t=n>=yd?"up":"down",yd=n}for(var r=vd.length,o=0;o<r;o++){var i=vd[o],a=On(i);a?i.dispatchEvent("appear",{direction:t}):a||i.dispatchEvent("disappear",{direction:t})}}function jn(e){this.id=e,this.batched=!1,this.updates=[],this.componentMap={},gd[this.id]=this}function Tn(e,t){(0,wd[e.loader])(e,t)}function Ln(e,t){"function"==typeof t&&(wd[e]=t)}function Pn(e){return-1!==_d.indexOf(e)?{}:{number:function(e){return e+"px"},string:function(t){var n=t.match(/^([+-]?\d.*)+([p,w]x)$/);if(n&&3===n.length){if("px"===n[2])return parseFloat(n[1])+"px";if("wx"===n[2])return parseFloat(n[1])*global.WXEnvironment.devicePixelRatio+"px"}if(e.match(/transform/)&&t.match(/translate/)){var r=t.replace(/\d*\.?\d+px/g,function(e){return parseInt(parseFloat(e))+"px"});return r.match(/wx/)&&(r=r.replace(/\d*\.?\d+wx/g,function(e){return parseInt(parseFloat(e))*global.WX
 Environment.devicePixelRatio+"px"})),r}return e.match(/^border$/)&&t.match(/^\d+(?:[w,p]x)?\s+/)&&(t=t.replace(/^(\d+(?:[w,p]x)?)/,function(e,n){return parseFloat(n)*(t.match(/^\d+(?:wx)+/)?global.WXEnvironment.devicePixelRatio:1)+"px"})),t}}}function Mn(){return""+xd++}function Nn(e,t,n){function r(e,t){return e+"{"+Object.keys(t).map(function(e){return dn(e)+":"+t[e]+"!important;"}).join("")+"}"}var o=e.node.getAttribute("data-pseudo-id");if(!o){o=Mn(),e.node.setAttribute("data-pseudo-id",o);var i=document.createElement("style");i.type="text/css",i.setAttribute("data-pseudo-id",o),document.getElementsByTagName("head")[0].appendChild(i);var a=Object.keys(n).map(function(e){var t=n[e];return r('[data-pseudo-id="'+o+'"]'+e,t)}).join("");return i.appendChild(document.createTextNode(a))}var s=Array.prototype.slice.call(document.styleSheets||[]).filter(function(e){return e.ownerNode.getAttribute("data-pseudo-id")===o});if(s&&!(s.length<=0)){var l=l[0],c=l.cssRules||l.rules;Object.keys(n
 ).forEach(function(e){var t=n[e],i='[data-pseudo-id="'+o+'"]'+e,a=Array.prototype.slice.call(c).reduce(function(e,t,n){return t.selectorText===i&&(e.idx=n),e},{idx:-1}).idx;if(-1!==a){var s=c[a].cssText.match(/^[^{]+\{([^}]+)\}/);if(s&&s[1]){var u=s[1].split(";").reduce(function(e,t){var n=t.match(/(\S+)\s*:\s*(\S+)/);return n&&n[1]&&n[2]&&(e[n[1]]=n[2]),e},{});ee(u,t),Object.keys(u).forEach(function(e){u[e]||delete u[e]}),l.deleteRule(a),l.insertRule(r(i,u),c.length-1)}}else l.insertRule(r(i,t),c.length)})}}function Bn(e){if(!(!e instanceof Dn)){var t,n=e.component.getParentScroller();n?(t=e.parent=n,e.parentElement=t.node):(t=e.parent=e.component.getRootContainer(),e.parentElement=t)}}function Rn(e){var t=e.component,n=e.element;t.stickyPlaceholder=e.element.cloneNode(!0),t.stickyPlaceholder.removeAttribute("data-ref"),t.stickyPlaceholder.classList.add("weex-sticky-placeholder"),n.classList.add("weex-sticky"),e.preMarginTop=n.style.marginTop,e.preTop=n.style.top,n.style.marginTop=
 e.top||"0px",n.parentNode.insertBefore(t.stickyPlaceholder,n),n.style.position="fixed";var r;r=e.parent instanceof HTMLElement?0:e.parentElement.getBoundingClientRect().top,n.style.top=r+"px",e.parentElement.appendChild(n)}function Fn(e,t){var n=e.component,r=e.element;if(t=t?t+"":e.prePosition,r.style.position=t,r.style.marginTop=e.preMarginTop||"",r.style.top=e.preTop||"",r.classList.remove("weex-sticky"),n.stickyPlaceholder){var o=n.stickyPlaceholder.parentNode;o.insertBefore(r,n.stickyPlaceholder),o.removeChild(n.stickyPlaceholder),n.stickyPlaceholder=null}}function Dn(e,t){t=t||{},this.component=e,this.element=e.node,this.prePosition=this.element.style.position,this.withinParent=t.withinParent||!1,this.parent=null,this.init()}function Wn(){setTimeout(function(){return lib.img.fire()},0)}function $n(e){Bd||(Bd=setTimeout(function(){Wn(),clearTimeout(Bd),Bd=null},16))}function Qn(e){var t=e.querySelectorAll("[img-src]"),n=e.querySelectorAll("[i-lazy-src]");(t.length>0||n.length>0
 )&&Wn()}function Un(e,t){e.removeAttribute("img-src"),e.removeAttribute("i-lazy-src"),e.removeAttribute("src"),e.setAttribute("img-src",t),Wn()}function zn(e){if("object"!=typeof e||e instanceof HTMLElement||(e=e.node),e)return"image"===e.tagName.toLowerCase()?$n(e):Qn(e)}function Vn(e,t){if(Rd.indexOf(t)<=-1)return!0;if(void 0===e._appear&&"disappear"===t)return!1;var n;return(n=void 0===e._appear&&"appear"===t||t!==e._appear)&&(e._appear=t),n}function Hn(e,t){this.data=e,this.node=this.create(t),this.createChildren(),this.updateAttrs(this.data.attr||{}),this.data.classStyle&&this.updateStyle(this.data.classStyle),this.updateStyle(this.data.style||{}),this.bindEvents(this.data.event||[])}function Gn(e){Hn.call(this,e)}function qn(e,t,n,r){var o=this,i=r&&!!r.once,a=Fd[e];a||(a=Fd[e]={});var s=a[t];s||(s=a[t]=[]),s.push(function(e){return o.sender.performCallback(n,e,!i)})}function Yn(e,t){try{delete Fd[e][t]}catch(e){}}function Jn(e,t,n){"globalEvent"!==e&&(t.addEventListener=funct
 ion(t,n,r){return qn.call(this,e,t,n,r)},t.removeAllEventListeners=function(t){return Yn.call(this,e,t)},[{name:"addEventListener",args:["string","function","object"]},{name:"removeAllEventListeners",args:["string"]}].forEach(function(t){return n[e].push(t)}))}function Kn(e){e.init(this)}function Zn(e,t){for(var n=e;n;){if(n.contains(t)||n==t)return n;n=n.parentNode}return null}function Xn(e,t,n){var r=$d.createEvent("HTMLEvents");if(r.initEvent(t,!0,!0),"object"==typeof n)for(var o in n)r[o]=n[o];e.dispatchEvent(r)}function er(e,t,n,r,o,i,a,s){var l=Math.atan2(s-i,a-o)-Math.atan2(r-t,n-e),c=Math.sqrt((Math.pow(s-i,2)+Math.pow(a-o,2))/(Math.pow(r-t,2)+Math.pow(n-e,2))),u=[o-c*e*Math.cos(l)+c*t*Math.sin(l),i-c*t*Math.cos(l)-c*e*Math.sin(l)];return{rotate:l,scale:c,translate:u,matrix:[[c*Math.cos(l),-c*Math.sin(l),u[0]],[c*Math.sin(l),c*Math.cos(l),u[1]],[0,0,1]]}}function tr(e){for(h=0;h<e.changedTouches.length;h++){v=e.changedTouches[h];if(!(m=zd[v.identifier]))return;m.lastTouch||(
 m.lastTouch=m.startTouch),m.lastTime||(m.lastTime=m.startTime),m.velocityX||(m.velocityX=0),m.velocityY||(m.velocityY=0),m.duration||(m.duration=0);var t=Date.now()-m.lastTime,n=(v.clientX-m.lastTouch.clientX)/t,r=(v.clientY-m.lastTouch.clientY)/t;t>70&&(t=70),m.duration+t>70&&(m.duration=70-t),m.velocityX=(m.velocityX*m.duration+n*t)/(m.duration+t),m.velocityY=(m.velocityY*m.duration+r*t)/(m.duration+t),m.duration+=t,m.lastTouch={};for(var o in v)m.lastTouch[o]=v[o];m.lastTime=Date.now();var i=v.clientX-m.startTouch.clientX,a=v.clientY-m.startTouch.clientY,s=Math.sqrt(Math.pow(i,2)+Math.pow(a,2)),l=!(Math.abs(i)>Math.abs(a)),c=l?a>=0?"down":"up":i>=0?"right":"left";("tapping"===m.status||"pressing"===m.status)&&s>10&&(m.status="panning",m.isVertical=l,m.direction=c,Xn(m.element,"panstart",{touch:v,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:m.isVertical,direction:c})),"panning"===m.status&&(m.panTime=Date.now(),Xn(m.element,"panmove",{displacementX:i,d
 isplacementY:a,touch:v,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:m.isVertical,direction:c}))}if(2==Object.keys(zd).length){for(var u,d=[],f=[],p=[],h=0;h<e.touches.length;h++){var v=e.touches[h],m=zd[v.identifier];d.push([m.startTouch.clientX,m.startTouch.clientY]),f.push([v.clientX,v.clientY])}for(var o in zd)p.push(zd[o].element);u=er(d[0][0],d[0][1],d[1][0],d[1][1],f[0][0],f[0][1],f[1][0],f[1][1]),Xn(Zn(p[0],p[1]),"dualtouch",{transform:u,touches:e.touches,touchEvent:e})}}function nr(e){if(2==Object.keys(zd).length){var t=[];for(var n in zd)t.push(zd[n].element);Xn(Zn(t[0],t[1]),"dualtouchend",{touches:Ud.call(e.touches),touchEvent:e})}for(var r=0;r<e.changedTouches.length;r++){var o=e.changedTouches[r],i=o.identifier,a=zd[i];if(a){if(a.pressingHandler&&(clearTimeout(a.pressingHandler),a.pressingHandler=null),"tapping"===a.status&&(a.timestamp=Date.now(),Xn(a.element,"tap",{touch:o,touchEvent:e}),Vd&&a.timestamp-Vd.timestamp<300&&Xn(a.element,"doub
 letap",{touch:o,touchEvent:e}),Vd=a),"panning"===a.status){var s=Date.now(),l=s-a.startTime,c=o.clientX-a.startTouch.clientX,u=o.clientY-a.startTouch.clientY,d=Math.sqrt(a.velocityY*a.velocityY+a.velocityX*a.velocityX)>.5&&s-a.lastTime<100,f={duration:l,isSwipe:d,velocityX:a.velocityX,velocityY:a.velocityY,displacementX:c,displacementY:u,touch:o,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:a.isVertical,direction:a.direction};Xn(a.element,"panend",f),d&&Xn(a.element,"swipe",f)}"pressing"===a.status&&Xn(a.element,"pressend",{touch:o,touchEvent:e}),delete zd[i]}}0===Object.keys(zd).length&&(Qd.removeEventListener("touchmove",tr,!1),Qd.removeEventListener("touchend",nr,!1),Qd.removeEventListener("touchcancel",rr,!1))}function rr(e){if(2==Object.keys(zd).length){var t=[];for(var n in zd)t.push(zd[n].element);Xn(Zn(t[0],t[1]),"dualtouchend",{touches:Ud.call(e.touches),touchEvent:e})}for(var r=0;r<e.changedTouches.length;r++){var o=e.changedTouches[r],i=o.ident
 ifier,a=zd[i];a&&(a.pressingHandler&&(clearTimeout(a.pressingHandler),a.pressingHandler=null),"panning"===a.status&&Xn(a.element,"panend",{touch:o,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e}),"pressing"===a.status&&Xn(a.element,"pressend",{touch:o,touchEvent:e}),delete zd[i])}0===Object.keys(zd).length&&(Qd.removeEventListener("touchmove",tr,!1),Qd.removeEventListener("touchend",nr,!1),Qd.removeEventListener("touchcancel",rr,!1))}function or(){}function ir(e){document.querySelector("meta[name=viewport]").setAttribute("content","width="+e+", user-scalable=no")}function ar(e){if(!(this instanceof ar))return new ar(e);this.width=e.width||window.innerWidth,this.bundleUrl=e.bundleUrl||location.href,this.instanceId=e.appId,this.rootId=e.rootId||Kd+cn(10),this.jsonpCallback=e.jsonpCallback||Zd,this.source=e.source,this.loader=e.loader,this.embed=e.embed,ir(Jd),(e.downgrade||[]).forEach(function(e){ld.downgrade[e]=!0}),this.data=e.data,this.sender=new pn(this),Xd[this.in
 stanceId]=this,Tn({jsonpCallback:this.jsonpCallback,source:this.source,loader:this.loader},function(e,t){e?console.error("load bundle err:",e):this.createApp(ld,t)}.bind(this))}function sr(e,t){return[[(e/3+(e+t)/3-e)/(t-e),(e*e/3+e*t*2/3-e*e)/(t*t-e*e)],[(t/3+(e+t)/3-e)/(t-e),(t*t/3+e*t*2/3-e*e)/(t*t-e*e)]]}function lr(e){if(this.v=e.v||0,this.a=e.a||0,void 0!==e.t&&(this.t=e.t),void 0!==e.s&&(this.s=e.s),void 0===this.t)if(void 0===this.s)this.t=-this.v/this.a;else{var t=(Math.sqrt(this.v*this.v+2*this.a*this.s)-this.v)/this.a,n=(-Math.sqrt(this.v*this.v+2*this.a*this.s)-this.v)/this.a;this.t=Math.min(t,n)}void 0===this.s&&(this.s=this.a*this.t*this.t/2+this.v*this.t)}function cr(){lib.scroll.outputDebugLog&&console.log.apply(console,arguments)}function ur(e){var t=e.getBoundingClientRect();if(!t){(t={}).width=e.offsetWidth,t.height=e.offsetHeight,t.left=e.offsetLeft,t.top=e.offsetTop;for(var n=e.offsetParent;n;)t.left+=n.offsetLeft,t.top+=n.offsetTop,n=n.offsetParent;t.right=t.le
 ft+t.width,t.bottom=t.top+t.height}return t}function dr(e){return 0-e.options[e.axis+"PaddingTop"]}function fr(e){var t=ur(e.element),n=ur(e.viewport),r=dr(e);if("y"===e.axis)o=0-t.height+n.height;else var o=0-t.width+n.width;return Math.min(o+e.options[e.axis+"PaddingBottom"],r)}function pr(e,t){return t>e.minScrollOffset?t-e.minScrollOffset:t<e.maxScrollOffset?t-e.maxScrollOffset:void 0}function hr(e,t){return t>e.minScrollOffset?t=e.minScrollOffset:t<e.maxScrollOffset&&(t=e.maxScrollOffset),t}function vr(e,t,n){cr(e.element.scrollId,t,n);var r=Af.createEvent("HTMLEvents");if(r.initEvent(t,!1,!0),r.scrollObj=e,n)for(var o in n)r[o]=n[o];e.element.dispatchEvent(r),e.viewport.dispatchEvent(r)}function mr(e){var t,n={x:0,y:0},r=getComputedStyle(e.element)[If+"Transform"],o=new RegExp("^matrix3d\\((?:[-\\d.]+,\\s*){12}([-\\d.]+),\\s*([-\\d.]+)(?:,\\s*[-\\d.]+){2}\\)"),i=new RegExp("^matrix\\((?:[-\\d.]+,\\s*){4}([-\\d.]+),\\s*([-\\d.]+)\\)$");return"none"!==r&&(t=r.match(o)||r.match(i
 ))&&(n.x=parseFloat(t[1])||0,n.y=parseFloat(t[2])||0),n}function yr(e,t){return e=parseFloat(e),t=parseFloat(t),0!=e&&(e+="px"),0!=t&&(t+="px"),Tf?"translate3d("+e+", "+t+", 0)":"translate("+e+", "+t+")"}function gr(e,t,n){e.element.style[If+"Transition"]=""===t&&""===n?"":Of+"transform "+t+" "+n+" 0s"}function br(e,t){var n=0,r=0;"object"==typeof t?(n=t.x,r=t.y):"y"===e.axis?r=t:n=t,e.element.style[If+"Transform"]=yr(n,r)}function Ar(e,t){function n(e,n){t.useFrameAnimation||(f=null,clearTimeout(p),p=setTimeout(function(){f&&(f=null,lib.animation.requestFrame(e))},n||400),f=e)}function r(e){if(!l.enabled)return!1;if(void 0!==e.isVertical){if(!("y"===l.axis&&e.isVertical||"x"===l.axis&&!e.isVertical))return!1;e.stopPropagation()}return!0}function o(e){if(r(e)){var o=mr(l)[l.axis],i=pr(l,o);if(i){var s=hr(l,o);if(t.useFrameAnimation){var c=s-o;(d=new lib.animation(400,lib.cubicbezier.ease,0,function(e,t){var n=(o+c*t).toFixed(2);br(l,n),vr(l,"scrolling")})).onend(a),d.play()}else{var
  u=s.toFixed(0);n(a,400),gr(l,"0.4s","ease"),br(l,u),lib.animation.requestFrame(function e(){v&&l.enabled&&(vr(l,"scrolling"),lib.animation.requestFrame(e))})}i>0?vr(l,"y"===l.axis?"pulldownend":"pullrightend"):i<0&&vr(l,"y"===l.axis?"pullupend":"pullleftend")}else v&&a()}}function i(e){y=!0;var r,o,i,s,c,u,f,p,h,g,b,A,w,_,x,E,C;if(s=mr(l)[l.axis],!pr(l,s)){r=e["velocity"+l.axis.toUpperCase()];var k=2,S=.0015;t.inertia&&Cf[t.inertia]&&(k=Cf[t.inertia][0],S=Cf[t.inertia][1]),r>k&&(r=k),r<-k&&(r=-k),o=S*(r/Math.abs(r)),i=(u=new lib.motion({v:r,a:-o})).t,c=s+u.s;var O=pr(l,c);if(O){cr("inertial calculation has exceeded the boundary",O),f=r,p=o,O>0?(g=l.minScrollOffset,A=1):(g=l.maxScrollOffset,A=-1),h=(b=new lib.motion({v:A*f,a:-A*p,s:Math.abs(g-s)})).t;var I=b.generateCubicBezier();_=(w=f-p*h)/Math.abs(w)*.03,x=(C=new lib.motion({v:w,a:-_})).t,E=g+C.s;C.generateCubicBezier();if(t.noBounce)if(cr("no bounce effect"),s!==g)if(t.useFrameAnimation){var j=g-s,T=lib.cubicbezier(I[0][0],I[0][
 1],I[1][0],I[1][1]);(d=new lib.animation(h.toFixed(0),T,0,function(e,t){mr(l,(s+j*t).toFixed(2)),vr(l,"scrolling",{afterFlick:!0})})).onend(a),d.play()}else{P=g.toFixed(0);n(a,1e3*(h/1e3).toFixed(2)),gr(l,(h/1e3).toFixed(2)+"s","cubic-bezier("+I+")"),br(l,P)}else a();else if(s!==E)if(cr("scroll for inertia","s="+E.toFixed(0),"t="+((h+x)/1e3).toFixed(2)),t.useFrameAnimation){var j=E-s,T=lib.cubicbezier.easeOut;(d=new lib.animation((h+x).toFixed(0),T,0,function(e,t){br(l,(s+j*t).toFixed(2)),vr(l,"scrolling",{afterFlick:!0})})).onend(function(){if(l.enabled){var e=g-E,t=lib.cubicbezier.ease;(d=new lib.animation(400,t,0,function(t,n){br(l,(E+e*n).toFixed(2)),vr(l,"scrolling",{afterFlick:!0})})).onend(a),d.play()}}),d.play()}else{P=E.toFixed(0);n(function(e){if(l.enabled)if(cr("inertial bounce","s="+g.toFixed(0),"t=400"),E!==g){var t=g.toFixed(0);gr(l,"0.4s","ease"),br(l,t),n(a,400)}else a()},1e3*((h+x)/1e3).toFixed(2)),gr(l,((h+x)/1e3).toFixed(2)+"s","ease-out"),br(l,P)}else a()}else{cr
 ("inertial calculation hasn't exceeded the boundary");var L=u.generateCubicBezier();if(t.useFrameAnimation){var j=c-s,T=lib.cubicbezier(L[0][0],L[0][1],L[1][0],L[1][1]);(d=new lib.animation(i.toFixed(0),T,0,function(e,t){var n=(s+j*t).toFixed(2);br(l,n),vr(l,"scrolling",{afterFlick:!0})})).onend(a),d.play()}else{var P=c.toFixed(0);n(a,1e3*(i/1e3).toFixed(2)),gr(l,(i/1e3).toFixed(2)+"s","cubic-bezier("+L+")"),br(l,P)}}m=!0,t.useFrameAnimation||lib.animation.requestFrame(function e(){v&&m&&l.enabled&&(vr(l,"scrolling",{afterFlick:!0}),lib.animation.requestFrame(e))})}}function a(){l.enabled&&(y=!1,setTimeout(function(){!y&&v&&(v=!1,m=!1,t.useFrameAnimation?(d&&d.stop(),d=null):gr(l,"",""),vr(l,"scrollend"))},50))}var s=this,l=this;if(t=t||{},t.noBounce=!!t.noBounce,t.padding=t.padding||{},null==t.isPrevent?t.isPrevent=!0:t.isPrevent=!!t.isPrevent,null==t.isFixScrollendClick?t.isFixScrollendClick=!0:t.isFixScrollendClick=!!t.isFixScrollendClick,t.padding?(t.yPaddingTop=-t.padding.top||
 0,t.yPaddingBottom=-t.padding.bottom||0,t.xPaddingTop=-t.padding.left||0,t.xPaddingBottom=-t.padding.right||0):(t.yPaddingTop=0,t.yPaddingBottom=0,t.xPaddingTop=0,t.xPaddingBottom=0),t.direction=t.direction||"y",t.inertia=t.inertia||"normal",this.options=t,l.axis=t.direction,this.element=e,this.viewport=e.parentNode,this.plugins={},this.element.scrollId=setTimeout(function(){_f[l.element.scrollId+""]=l},1),this.viewport.addEventListener("touchstart",function(e){if(r(e))if(v&&a(),t.useFrameAnimation)d&&d.stop(),d=null;else{var n=mr(l);br(l,n),gr(l,"",""),f=null,clearTimeout(p)}},!1),this.viewport.addEventListener("touchend",o,!1),this.viewport.addEventListener("touchcancel",o,!1),this.viewport.addEventListener("panstart",function(e){r(e)&&(l.transformOffset=mr(l),l.minScrollOffset=dr(l),l.maxScrollOffset=fr(l),h=2.5,y=!0,v=!0,m=!1,vr(l,"scrollstart"),g=e["displacement"+l.axis.toUpperCase()])},!1),this.viewport.addEventListener("panmove",function(e){if(r(e)){var t=e["displacement"+l.a
 xis.toUpperCase()];if(Math.abs(t-g)<5)e.stopPropagation();else{g=t;var n=l.transformOffset[l.axis]+t;n>l.minScrollOffset?(n=l.minScrollOffset+(n-l.minScrollOffset)/h,h*=1.003):n<l.maxScrollOffset&&(n=l.maxScrollOffset-(l.maxScrollOffset-n)/h,h*=1.003),h>4&&(h=4);var o=pr(l,n);o&&(vr(l,o>0?"y"===l.axis?"pulldown":"pullright":"y"===l.axis?"pullup":"pullleft",{boundaryOffset:Math.abs(o)}),l.options.noBounce&&(n=hr(l,n))),br(l,n.toFixed(2)),vr(l,"scrolling")}}},!1),this.viewport.addEventListener("panend",function(e){r(e)&&e.isSwipe&&i(e)},!1),t.isPrevent&&(this.viewport.addEventListener("touchstart",function(e){Lf=!0},!1),l.viewport.addEventListener("touchend",function(e){Lf=!1},!1)),t.isFixScrollendClick){var c,u;this.viewport.addEventListener("scrolling",function(){c=!0,u&&clearTimeout(u),u=setTimeout(function(e){c=!1},400)},!1);this.viewport.addEventListener("click",function(e){return!c&&!v||(e.preventDefault(),e.stopPropagation(),!1)}),this.viewport.addEventListener("tap",function(e
 ){c||v||setTimeout(function(){var t=document.createEvent("HTMLEvents");t.initEvent("niceclick",!0,!0),e.target.dispatchEvent(t)},300)})}if(t.useFrameAnimation){var d;Object.defineProperty(this,"animation",{get:function(){return d}})}else{var f,p=0;e.addEventListener(kf?"transitionend":If+"TransitionEnd",function(e){if(f){var t=f;f=null,clearTimeout(p),lib.animation.requestFrame(function(){t(e)})}},!1)}var h,v,m,y;Object.defineProperty(this,"isScrolling",{get:function(){return!!v}});var g,b={init:function(){return this.enable(),this.refresh(),this.scrollTo(0),this},enable:function(){return this.enabled=!0,this},disable:function(){var e=this.element;return this.enabled=!1,this.options.useFrameAnimation?d&&d.stop():lib.animation.requestFrame(function(){e.style[If+"Transform"]=getComputedStyle(e)[If+"Transform"]}),this},getScrollWidth:function(){return ur(this.element).width},getScrollHeight:function(){return ur(this.element).height},getScrollLeft:function(){return-mr(this).x-this.optio
 ns.xPaddingTop},getScrollTop:function(){return-mr(this).y-this.options.yPaddingTop},getMaxScrollLeft:function(){return-l.maxScrollOffset-this.options.xPaddingTop},getMaxScrollTop:function(){return-l.maxScrollOffset-this.options.yPaddingTop},getBoundaryOffset:function(){return Math.abs(pr(this,mr(this)[this.axis])||0)},refresh:function(){function e(e,t){var n=t?["top","bottom"]:["left","right"];return parseFloat(getComputedStyle(e.firstElementChild)["margin-"+n[0]])+parseFloat(getComputedStyle(e.lastElementChild)["margin-"+n[1]])}var t,n=this.element,r="y"===this.axis,o=r?"height":"width";if(null!=this.options[o])t=this.options[o];else if(n.childElementCount<=0)n.style[o]="auto",t=null;else if(this.options.useElementRect)n.style[o]="auto",t=(a=ur(n))[o],t+=e(n,r);else{var i,a,s=n.firstElementChild,l=n.lastElementChild;if(document.createRange&&!this.options.ignoreOverflow&&((i=document.createRange()).selectNodeContents(n),a=ur(i)),a)t=a[o];else{for(;s&&0===ur(s)[o]&&s.nextElementSibli
 ng;)s=s.nextElementSibling;for(;l&&l!==s&&0===ur(l)[o]&&l.previousElementSibling;)l=l.previousElementSibling;t=ur(l)[r?"bottom":"right"]-ur(s)[r?"top":"left"]}t+=e(n,r)}return n.style[o]=t?t+"px":"auto",this.transformOffset=mr(this),this.minScrollOffset=dr(this),this.maxScrollOffset=fr(this),this.scrollTo(-this.transformOffset[this.axis]-this.options[this.axis+"PaddingTop"]),vr(this,"contentrefresh"),this},offset:function(e){var t=ur(this.element),n=ur(e);if("y"===this.axis)(r={top:n.top-t.top-this.options.yPaddingTop,left:n.left-t.left,right:t.right-n.right,width:n.width,height:n.height}).bottom=r.top+r.height;else{var r={top:n.top-t.top,bottom:t.bottom-n.bottom,left:n.left-t.left-this.options.xPaddingTop,width:n.width,height:n.height};r.right=r.left+r.width}return r},getRect:function(e){var t=ur(this.viewport),n=ur(e);if("y"===this.axis)(r={top:n.top-t.top,left:n.left-t.left,right:t.right-n.right,width:n.width,height:n.height}).bottom=r.top+r.height;else{var r={top:n.top-t.top,bot
 tom:t.bottom-n.bottom,left:n.left-t.left,width:n.width,height:n.height};r.right=r.left+r.width}return r},isInView:function(e){var t=this.getRect(this.viewport),n=this.getRect(e);return"y"===this.axis?t.top<n.bottom&&t.bottom>n.top:t.left<n.right&&t.right>n.left},scrollTo:function(e,t){var r=this;this.element;if(e=-e-this.options[this.axis+"PaddingTop"],e=hr(this,e),v=!0,!0===t)if(this.options.useFrameAnimation){var o=mr(r)[this.axis],i=e-o;(d=new lib.animation(400,lib.cubicbezier.easeInOut,0,function(e,t){var n=(o+i*t).toFixed(2);br(r,n),vr(r,"scrolling")})).onend(a),d.play()}else{n(a,400),gr(r,"0.4s","ease-in-out"),br(r,e);function s(){v&&r.enabled&&(vr(r,"scrolling"),lib.animation.requestFrame(s))}lib.animation.requestFrame(s)}else this.options.useFrameAnimation||gr(r,"",""),br(r,e),a();return this},scrollToElement:function(e,t,n){var r=this.offset(e);return r=r["y"===this.axis?"top":"left"],n&&(r+=n),this.scrollTo(r,t)},getViewWidth:function(){return ur(this.viewport).width},getV
 iewHeight:function(){return ur(this.viewport).height},addPulldownHandler:function(e){var t=this;return this.element.addEventListener("pulldownend",function(n){t.disable(),e.call(t,n,function(){t.scrollTo(0,!0),t.refresh(),t.enable()})},!1),this},addPullupHandler:function(e){var t=this;return this.element.addEventListener("pullupend",function(n){t.disable(),e.call(t,n,function(){t.scrollTo(t.getScrollHeight(),!0),t.refresh(),t.enable()})},!1),this},addScrollstartHandler:function(e){var t=this;return this.element.addEventListener("scrollstart",function(n){e.call(t,n)},!1),this},addScrollingHandler:function(e){var t=this;return this.element.addEventListener("scrolling",function(n){e.call(t,n)},!1),this},addScrollendHandler:function(e){var t=this;return this.element.addEventListener("scrollend",function(n){e.call(t,n)},!1),this},addContentrenfreshHandler:function(e){var t=this;this.element.addEventListener("contentrefresh",function(n){e.call(t,n)},!1)},addEventListener:function(e,t,n){v
 ar r=this;this.element.addEventListener(e,function(e){t.call(r,e)},!!n)},removeEventListener:function(e,t){var n=this;this.element.removeEventListener(e,function(e){t.call(n,e)})},enablePlugin:function(e,t){var n=xf[e];return n&&!this.plugins[e]&&(this.plugins[e]=!0,t=t||{},n.call(this,e,t)),this}};for(var A in b)s[A]=b[A]}function wr(e){e.renderendHandler||(e.renderendHandler=function(){e.scroller.refresh()}),window.addEventListener("renderend",e.renderendHandler)}function _r(e){e.renderendHandler&&window.removeEventListener("renderend",e.renderendHandler)}function xr(e){var t=e.Component;return{create:function(e){var n=lib.scroll,r=t.prototype.create.call(this,e);return r.classList.add("weex-container"),r.classList.add("scrollable-wrap"),this.scrollElement=document.createElement("div"),this.scrollElement.classList.add("weex-container"),this.scrollElement.classList.add("scrollable-element"),this.scrollElement.classList.add("dir-"+this.direction),this.scrollElement.style.webkitBoxOr
 ient=Pf[this.direction][1],this.scrollElement.style.webkitFlexDirection=Pf[this.direction][0],this.scrollElement.style.flexDirection=Pf[this.direction][0],r.appendChild(this.scrollElement),this.scroller=new n({useElementRect:"v"===this.direction,scrollElement:this.scrollElement,direction:"h"===this.direction?"x":"y"}),this.scroller.init(),this.offset=0,r},createChildren:function(){var e=this,t=this.data.children,n=this.data.ref,r=this.getComponentManager();if(t&&t.length){for(var o=document.createDocumentFragment(),i=!1,a=0;a<t.length;a++){t[a].instanceId=e.data.instanceId;var s=r.createElement(t[a]);o.appendChild(s.node),s.parentRef=n,!i&&s.data.style&&s.data.style.hasOwnProperty("flex")&&(i=!0)}this.scrollElement.appendChild(o)}setTimeout(function(){this.scroller.refresh()}.bind(this),0)},appendChild:function(e){var t=this.data.children,n=this.getComponentManager().createElement(e);return this.scrollElement.appendChild(n.node),setTimeout(function(){this.scroller.refresh()}.bind(th
 is),0),t&&t.length?t.push(e):this.data.children=[e],n},insertBefore:function(e,t){var n=this.data.children,r=0,o=!1;if(n&&n.length&&t){var i;for(i=n.length;r<i&&n[r].ref!==t.data.ref;r++);r===i&&(o=!0)}else o=!0;if(o)this.scrollElement.appendChild(e.node),n.push(e.data);else{var a=t.refreshPlaceholder||t.loadingPlaceholder;a?this.scrollElement.insertBefore(e.node,a):t.fixedPlaceholder?this.scrollElement.insertBefore(e.node,t.fixedPlaceholder):t.stickyPlaceholder?this.scrollElement.insertBefore(e.node,t.stickyPlaceholder):this.scrollElement.insertBefore(e.node,t.node),n.splice(r,0,e.data)}setTimeout(function(){this.scroller.refresh()}.bind(this),0)},removeChild:function(e){var t=this.data.children,n=0,r=this.getComponentManager();if(t&&t.length){var o;for(o=t.length;n<o&&t[n].ref!==e.data.ref;n++);n<o&&t.splice(n,1)}r.removeComponent(e.data.ref);var i=e.refreshPlaceholder||e.loadingPlaceholder;e.unsetPosition(),i&&this.scrollElement.removeChild(i),e.node.parentNode.removeChild(e.node
 ),setTimeout(function(){this.scroller.refresh()}.bind(this),0)},bindEvents:function(e){t.prototype.bindEvents.call(this,e),this.scroller.addEventListener("scrolling",function(e){var t,n=e.scrollObj,r=n.getScrollTop(),o=n.getScrollLeft(),i="v"===this.direction?r:o;t=i-this.offset>=0?"v"===this.direction?"up":"left":"v"===this.direction?"down":"right",this.dispatchEvent("scroll",{originalType:"scrolling",scrollTop:n.getScrollTop(),scrollLeft:n.getScrollLeft(),offset:i,direction:t},{bubbles:!0}),this.offset=i;var a=Math.abs(n.maxScrollOffset)-this.offset;a<=this.loadmoreoffset&&this.isAvailableToFireloadmore?(this.isAvailableToFireloadmore=!1,this.dispatchEvent("loadmore")):a>this.loadmoreoffset&&!this.isAvailableToFireloadmore&&(this.isAvailableToFireloadmore=!0)}.bind(this))},onAppend:function(){wr(this)},onRemove:function(){_r(this)}}}function Er(e){return{create:function(){var t=e.prototype.create.call(this);return t.classList.add("list-wrap"),this.scrollElement.classList.add("list
 -element"),t},createChildren:function(){return(this.data.children||[]).forEach(function(e){var t=e.type;-1===Ff.indexOf(t)&&console.warn('[h5-render] invalid child type "'+t+'" for list.')}),e.prototype.createChildren.call(this)},appendChild:function(t){var n=t.type;return-1===Ff.indexOf(n)&&console.warn('[h5-render] invalid child type "'+n+'" for list.'),e.prototype.appendChild.call(this,t)},insertBefore:function(t,n){var r=t.data.type;return-1===Ff.indexOf(r)&&console.warn('[h5-render] invalid child type "'+r+'" for list.'),e.prototype.insertBefore.call(this,t,n)}}}function Cr(e,t){e.node.style.height=t+"px"}function kr(e,t){e.node.style.height=e.clamp+"px",e.dispatchEvent("refresh"),e.isRefreshing=!0}function Sr(e){e.display=!0,e.node.style.display="-webkit-box",e.node.style.display="-webkit-flex",e.node.style.display="flex"}function Or(e){e.display=!1,e.node.style.display="none",e.isRefreshing=!1}function Ir(e,t){e.node.style.height=t+"px"}function jr(e,t){e.node.style.height=e.
 clamp+"px",e.dispatchEvent("loading"),e.isLoading=!0}function Tr(e){e.display=!0,e.node.style.display="-webkit-box",e.node.style.display="-webkit-flex",e.node.style.display="flex"}function Lr(e){e.display=!1,e.node.style.display="none",e.isLoading=!1}function Pr(){return fp=(fp+1)%up,dp[fp]?Pr():fp}function Mr(e,t){var n=Pr(),r=Date.now();return dp[n]=lp(function o(){(dp[n]||0===dp[n])&&(Date.now()-r<t?dp[n]=lp(o):(delete dp[n],e()))}),n}function Nr(e){var t=dp[e];t&&cp(t),delete dp[e]}function Br(e){var t,n={x:0,y:0},r=getComputedStyle(e)[yp+"Transform"],o=new RegExp("^matrix3d\\((?:[-\\d.]+,\\s*){12}([-\\d.]+),\\s*([-\\d.]+)(?:,\\s*[-\\d.]+){2}\\)"),i=/^matrix\((?:[-\d.]+,\s*){4}([-\d.]+),\s*([-\d.]+)\)$/;return"none"!==r&&(t=r.match(o)||r.match(i))&&(n.x=parseFloat(t[1])||0,n.y=parseFloat(t[2])||0),n}function Rr(e,t){return e=parseFloat(e),t=parseFloat(t),0!=e&&(e+="px"),0!=t&&(t+="px"),wp?"translate3d("+e+", "+t+", 0)":"translate("+e+", "+t+")"}function Fr(e){return _p.call(e)}f
 unction Dr(e){function t(){e.isPageShow=!0,e.autoPlay&&!e.isDomRendering&&e.play()}function n(){e.isPageShow=!1,e.stop()}global.addEventListener("pageshow",t),global.addEventListener("pagehide",n),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState?t():"hidden"===document.visibilityState&&n()})}function Wr(e){global.addEventListener("renderend",function(){e.isDomRendering=!1,e.autoPlay&&e.isPageShow&&e.play()}),global.addEventListener("renderbegin",function(){e.isDomRendering=!0,e.stop()})}function $r(e){e.indicator&&e.indicator.setIndex(e.currentIndex)}function Qr(e){return e._sliderChangeHandler||(e._sliderChangeHandler=function(e){var t=this.carrousel.items.index;this.currentIndex=t,$r(this),this.dispatchEvent("change",{index:t})}.bind(e)),e._sliderChangeHandler}function Ur(e){e.createChildren(),e.onAppend()}function zr(e){var t=e.items.length;if(void 0!==e.index&&t>e.index)for(var n=0;n<t;n++){var r=e.items[n];e.index===n?(r.classList.add
 ("active"),r.style.backgroundColor=e.itemSelectedColor):r.style.backgroundColor=e.itemColor}}function Vr(e,t,n){e.slider.slideTo(t)}function Hr(e){var t=e.node,n=document.createElement("span");n.className="fold-toggle iconfont",n.innerHTML="&#xe661;",t.appendChild(n),n.addEventListener("click",function(){e.unfolding?Yr(e):qr(e)})}function Gr(e){var t=document.createElement("div");t.className="tabheader-mask",e.mask=t,t.addEventListener("touchmove",function(e){e.preventDefault()}),t.addEventListener("click",function(){Yr(e)}),document.body.appendChild(t)}function qr(e){if(!e.flag){var t=document.createComment("tabheader");e.flag=t,e.node.parentNode.insertBefore(t,e.node)}e.mask||Gr(e),e._scrollVal=e._body.scrollLeft,e._topVal=e.node.getBoundingClientRect().top,e._styleTop=e.node.style.top,document.body.appendChild(e.node),e.node.classList.add("unfold-header"),e.node.style.height="auto";var n=e.node.getBoundingClientRect().height;n+e._topVal>window.innerHeight&&(e._topVal=e._topVal+(w
 indow.innerHeight-n-e._topVal)),e.node.style.top=e._topVal+"px",e.mask.classList.add("unfold-header"),e.mask.style.height=window.innerHeight+"px",e.unfolding=!0}function Yr(e){!0===e.unfolding&&(e.mask.classList.remove("unfold-header"),e.node.classList.remove("unfold-header"),e.node.style.height="",e.node.style.top=e._styleTop,e.flag.parentNode.insertBefore(e.node,e.flag),e._body.scrollLeft=e._scrollVal,Xr(e),e.unfolding=!1)}function Jr(e){Kr(e),Zr(e)}function Kr(e){e.box.addEventListener("click",function(t){var n=t.target;if("UL"!==n.nodeName){"LI"===n.parentNode.nodeName&&(n=n.parentNode);var r=n.getAttribute("data-floor");e.data.attr.selectedIndex!=r&&no(n,"select",{index:r})}})}function Zr(e){e.node.addEventListener("select",function(t){var n;void 0!==t.index?n=t.index:t.data&&void 0!==t.data.index&&(n=t.data.index),void 0!==n&&e.attr.selectedIndex.call(e,n)})}function Xr(e,t){if(!t){var n=e.data.attr;t=e.node.querySelector('[data-floor="'+n.selectedIndex+'"]')}if(t){var r=to(e.
 _body.getBoundingClientRect(),t);eo(e._body,r)}}function eo(e,t,n){t&&(void 0===n&&(n=Math.abs(t)),n<=0||setTimeout(function(){t>0?e.scrollLeft+=2:e.scrollLeft-=2,eo(e,t,n-=2)}))}function to(e,t){var n,r=t.previousSibling,o=t.nextSibling;if(r){var i=r.getBoundingClientRect();if(i.left<e.left)return n=i.left}if(o){var a=o.getBoundingClientRect();if(a.right>e.right)return n=a.right-e.right}var s=t.getBoundingClientRect();return s.left<e.left?n=s.left:s.right>e.right&&(n=s.right-e.right),n}function no(e,t,n){var r=document.createEvent("Event");r.data=n;for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);r.initEvent(t,!0,!0),e.dispatchEvent(r)}function ro(e){return!!e&&("#"===e.charAt(0)&&7===e.length)}function oo(e,t){if(t){for(var n=["::-webkit-input-placeholder",":-moz-placeholder","::-moz-placeholder",":-ms-input-placeholder",":placeholder-shown"],r="",o="color: "+t+";",i=0,a=n.length;i<a;i++)r+="."+e.className+n[i]+"{"+o+"}";Bp(r,e.styleId,!0)}}function io(e){var t=e.Atomic;return{crea
 te:function(){var e=this,t=document.createElement("video");return t.classList.add("weex-video"),t.classList.add("weex-element"),t.controls=!0,t.autoplay=this.autoPlay,t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),t.setAttribute("play-status",this.playStatus),this.node=t,this.autoPlay&&"play"===this.playStatus&&setTimeout(function(){e.play()},0),t},bindEvents:function(e){var n=this;t.prototype.bindEvents.call(this,e);var r={start:"play",finish:"ended",fail:"error"};for(var o in r)n.node.addEventListener(r[o],function(e,t){this.dispatchEvent(e,t.data)}.bind(n,o))},play:function(){var e=this.node.getAttribute("src");e||(e=this.node.getAttribute("data-src"))&&this.node.setAttribute("src",e);try{this.node.play()}catch(e){}},pause:function(){this.node.pause()},stop:function(){this.node.pause(),this.node.autoplay=!1,this.node.setAttribute("data-src",this.node.src),this.node.src=""}}}function ao(e,t){var n=[];for(var r in t)n.push(r+" "+t[r]);e.style.transition=n.
 join(", "),e.style.webkitTransition=n.join(", ")}function so(e){var t=Math.min(e.width,e.height),n=Math.max(e.width,e.height);e.node.style.width=n+"px",e.node.style.height=t+"px",e.node.style.borderRadius=t/2+"px",e.jack.style.width=e.jack.style.height=t+"px"}function lo(e,t){var n=e.checked,r=e.node,o=e.jack;t&&n?n=!1:t&&!n&&(n=!0),!0===n?(e.checked=!0,window.getComputedStyle?o.style.left=parseInt(window.getComputedStyle(r).width)-parseInt(window.getComputedStyle(o).width)+"px":o.style.left=parseInt(r.currentStyle.width)-parseInt(o.currentStyle.width)+"px",e.options.color&&uo(e),co(e)):(e.checked=!1,o.style.left=0,r.style.boxShadow="inset 0 0 0 0 "+e.options.secondaryColor,r.style.borderColor=e.options.secondaryColor,r.style.backgroundColor=e.options.secondaryColor!==eh.secondaryColor?e.options.secondaryColor:"#fff",o.style.backgroundColor=e.options.jackSecondaryColor!==e.options.jackColor?e.options.jackSecondaryColor:e.options.jackColor,co(e))}function co(e){var t={},n={"backgroun
 d-color":e.options.speed,left:e.options.speed.replace(/[a-z]/,"")/2+"s"};t=e.checked?{border:e.options.speed,"box-shadow":e.options.speed,"background-color":3*e.options.speed.replace(/[a-z]/,"")+"s"}:{border:e.options.speed,"box-shadow":e.options.speed},ao(e.node,t),ao(e.jack,n)}function uo(e){var t=e.node.offsetHeight/2;e.node.style.backgroundColor=e.options.color,e.node.style.borderColor=e.options.color,e.node.style.boxShadow="inset 0 0 0 "+t+"px "+e.options.color,e.jack.style.backgroundColor=e.options.jackColor}function fo(e){return e._clickHandler||(e._clickHandler=function(){lo(e,!0),e.dispatchEvent("change",{value:e.checked})}),e._clickHandler}function po(e){var t=e.Component;return{create:function(){var e=document.createElement("a");return e.classList.add("weex-container"),e.style.textDecoration="none",e},bindEvents:function(e){t.prototype.bindEvents.call(this,e),this.node.addEventListener("click",function(e){e._alreadyFired&&e.target!==this.node||(e._alreadyFired=!0,location
 .href=this.href)}.bind(this))}}}function ho(){return lh+Xp(10)}function vo(e){if(!e.styleSheet){var t,n,r,o,i=document.styleSheets;e:for(t=0,n=i.length;t<n;t++){var a=i[t].rules;if(a)for(r=0,o=a.length;r<o;r++){var s=a.item(r);if((s.type===CSSRule.KEYFRAMES_RULE||s.type===CSSRule.WEBKIT_KEYFRAMES_RULE)&&"weex-spinner"===s.name)break e}}e.styleSheet=i[t]}}function mo(e,t){vo(e);for(var n=yo(t),r=e.styleSheet.rules,o=0,i=r.length;o<i;o++){var a=r.item(o);if((a.type===CSSRule.KEYFRAMES_RULE||a.type===CSSRule.WEBKIT_KEYFRAMES_RULE)&&"weex-spinner"===a.name)for(var s=a.cssRules,l=0,c=s.length;l<c;l++){var u=s[l];u.type!==CSSRule.KEYFRAME_RULE&&u.type!==CSSRule.WEBKIT_KEYFRAME_RULE||(u.style.boxShadow=n[l])}}}function yo(e){if(e){for(var t=["0em -2.6em 0em 0em","1.8em -1.8em 0 0em","2.5em 0em 0 0em","1.75em 1.75em 0 0em","0em 2.5em 0 0em","-1.8em 1.8em 0 0em","-2.6em 0em 0 0em","-1.8em -1.8em 0 0em"],n=["1","0.2","0.2","0.2","0.2","0.2","0.5","0.7"].map(function(t){return"rgba("+e.r+","+e
 .g+","+e.b+","+t+")"}),r=[],o=0;o<t.length;o++)!function(e){var o=fh(n,e,"r");r.push(t.map(function(e,t){return e+" "+o[t]}).join(", "))}(o);return r}}function go(e,t){var n=t.data;if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}if(n&&"weex"===n.type){if(!hh(n.content))return console.error("[h5-render] weex msg received by web component. msg.content should be a array:",n.content);callNative(e.getComponentManager().instanceId,n.content)}}function bo(e){var t=e.Atomic;return{create:function(){var e=document.createElement("div");return e.classList.add("weex-container"),this.web=document.createElement("iframe"),e.appendChild(this.web),this.web.classList.add("weex-element"),this.web.style.width="100%",this.web.style.height="100%",this.web.style.border="none",e},bindEvents:function(e){t.prototype.bindEvents.call(this,e);var n=this;this.web.addEventListener("load",function(e){n.dispatchEvent("pagefinish",{url:n.web.src})}),window.addEventListener("message",go.bind(null,this))},goBack:f
 unction(){this.web.contentWindow.history.back()},goForward:function(){this.web.contentWindow.history.forward()},reload:function(){this.web.contentWindow.location.reload()}}}function Ao(e){function t(){e.isPageShow=!0,e.autoPlay&&!e.isDomRendering&&e.play()}function n(){e.isPageShow=!1,e.stop()}global.addEventListener("pageshow",t),global.addEventListener("pagehide",n),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState?t():"hidden"===document.visibilityState&&n()})}function wo(e){global.addEventListener("renderend",function(){e.isDomRendering=!1,e.autoPlay&&e.isPageShow&&e.play()}),global.addEventListener("renderbegin",function(){e.isDomRendering=!0,e.stop()})}function _o(e,t,n){n.extra.width=n.style.width||e.width,n.extra.height=n.style.height||e.height;var r=e.getComponentManager().createElement(n);r.parentRef=e.data.ref,r.slider=e,e.indicator=r,t.appendChild(r.node)}function xo(e,t,n){setTimeout(function(){return _o(e,t,n)},0)}function Eo(
 e){e.indicator&&e.indicator.setIndex(e.currentIndex)}function Co(e,t,n){var r="all "+t+"ms "+n;e.style.webkitTransition=r,e.style.transition=r,setTimeout(function(){e.style.webkitTransition="",e.style.transition=""},t)}function ko(e,t,n,r){Co(e,n||kh,r||"ease");for(var o in t)e.style[o]=t[o]}function So(e,t){var n=e.slides[t].node;n.style.opacity=e.neighborAlpha;var r="scale("+e.neighborScale+")";n.style.webkitTransform=r,n.style.transform=r,n.style.width=e.width+"px",n.style.height=e.height+"px",n.style.position="absolute",n.style.top="0px",n.style.left="0px"}function Oo(e){function t(e){var t=e.getAttribute("img-src")||e.getAttribute("i-lazy-src");lib.img.applySrc(e,t,e.dataset.placeholder)}for(var n=e.node.querySelectorAll("[img-src]")||[],r=e.node.querySelectorAll("[i-lazy-src]")||[],o=0;o<n.length;o++)t(n[o]);for(var i=0;i<r.length;i++)t(r[i])}function Io(e){Oo(e),e.total=e.slides.length,e.currentIndex=0;var t=e.data.style.width||0,n=e.data.style.height||0;e.width=parseFloat(t)
 ||e.node.getBoundingClientRect().width,e.height=parseFloat(n)||e.node.getBoundingClientRect().height;for(var r=e.slides.length,o=0;o<r;o++)So(e,o);setTimeout(function(){return e.slideTo(0)},0)}function jo(e){setTimeout(Io.bind(null,e),0)}function To(e,t){return 0===t?0:(t+e)%t}function Lo(e){var t=e.currentIndex+1;setTimeout(function(){return e.slideTo(t)},0),e.playTimer=setTimeout(function(){return Lo(e)},e.interval+kh)}function Po(e){var t,n,r=e.node;r.addEventListener("panstart",function(r){r.isVertical||(r.preventDefault(),r.stopPropagation(),e.stop(),n=!0,t=0)}),r.addEventListener("panmove",function(t){if(!t.isVertical&&n){t.preventDefault(),t.stopPropagation();var r=t.displacementX;Mo(e,r)}}),r.addEventListener("panend",function(r){!r.isVertical&&n&&(r.preventDefault(),r.stopPropagation(),t=r.displacementX,r.isSwipe?t<0?e.slideToNext():e.slideToPrev():Math.abs(t)<e.width/2?e.slideTo(e.currentIndex):t<0?e.slideToNext():e.slideToPrev(),n=!1,e.play())}),r.addEventListener("swipe"
 ,function(e){e.isVertical||(e.preventDefault(),e.stopPropagation())})}function Mo(e,t){var n="translate("+t+"px, 0px) scale("+Sh+")",r=e.mainSlide.node;r.style.webkitTransform=n,r.style.transform=n;var o="translate("+(e.leftTranslate+t)+"px, 0px) scale("+e.neighborScale+")",i=e.leftSlide.node;i.style.webkitTransform=o,i.style.transform=o;var a="translate("+(e.rightTranslate+t)+"px, 0px) scale("+e.neighborScale+")",s=e.rightSlide.node;s.style.webkitTransform=a,s.style.transform=a}function No(e,t){var n="translate("+({left:"-",right:""}[t]+e.width)+"px, 0px)",r=e[t+"Slide"].node;r.style.webkitTransform=n,r.style.transform=n}function Bo(e,t){t=t||[];for(var n=e.slides.length,r=0;r<n;r++)t.indexOf(r)<=-1&&(e.slides[r].node.style.opacity=0)}function Ro(e){return"Array"===Object.prototype.toString.call(e).slice(8,-1)}function Fo(e){return"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Do(e,t,n){if(Ro(n))return n.forEach(function(n){return Do(e,t,n)});if(Fo(n)){var r=n.ty
 pe,o=n.attr,i=n.style,a=n.children;delete n.children;var s=e.getComponentManager().createElement({type:Ph[r],ref:Nh(),attr:o,style:i});s.node.style.display=Lh[r],t.appendChild(s.node),Ro(a)&&a.forEach(function(e){return Do(s,s.node,e)})}}function Wo(e,t,n){var r=t.styles||{},o="all "+(t.duration||1e3)+"ms "+(t.timingFunction||"ease")+" "+(t.delay||0)+"ms",i=e.node,a=function(e){e.stopPropagation(),i.removeEventListener("webkitTransitionEnd",a),i.removeEventListener("transitionend",a),i.style.transition="",i.style.webkitTransition="",n()};i.style.transition=o,i.style.webkitTransition=o,i.addEventListener("webkitTransitionEnd",a),i.addEventListener("transitionend",a),e.updateStyle(r)}function $o(){var e=document.getElementById(Uh);return e||((e=document.createElement("input")).setAttribute("id",Uh),e.style.cssText="height:1px;width:1px;border:none;",document.body.appendChild(e)),e}function Qo(e){if(e)return Uo(e)}function Uo(e){for(var t in Qo.prototype)e[t]=Qo.prototype[t];return e}f
 unction zo(e){switch(qh(e)){case"object":n={};for(var t in e)e.hasOwnProperty(t)&&(n[t]=zo(e[t]));return n;case"array":for(var n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=zo(e[r]);return n;case"regexp":var i="";return i+=e.multiline?"m":"",i+=e.global?"g":"",i+=e.ignoreCase?"i":"",new RegExp(e.source,i);case"date":return new Date(e.getTime());default:return e}}function Vo(e){if(!(this instanceof Vo))return new Vo(e);this._from=e,this.ease("linear"),this.duration(500)}function Ho(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}}function Go(){this.wrap=document.querySelector(kv),this.node=document.querySelector(Sv),this.wrap||this.createWrap(),this.node||this.createNode(),this.clearNode(),this.createNodeContent(),this.bindEvents()}function qo(e){this.msg=e.message||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",Iv.call(this),this.node.classList.add("amfe-alert")}function Yo(e){this.msg=e.m
 essage||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",this.cancelTitle=e.cancelTitle||"Cancel",Tv.call(this),this.node.classList.add("amfe-confirm")}function Jo(e){this.msg=e.message||"",this.defaultMsg=e.default||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",this.cancelTitle=e.cancelTitle||"Cancel",Pv.call(this),this.node.classList.add("amfe-prompt")}function Ko(e,t){var n=function(){Bv.removeEventListener("transitionend",n),Bv.removeEventListener("webkitTransitionEnd",n),t&&t()};Bv||((Bv=document.createElement("div")).classList.add(Dv,"hide"),document.body.appendChild(Bv)),Bv.textContent=e,Bv.addEventListener("transitionend",n),Bv.addEventListener("webkitTransitionEnd",n),setTimeout(function(){Bv.classList.remove("hide")},0)}function Zo(e){var t=function(){Bv.removeEventListener("transitionend",t),Bv.removeEventListener("webkitTransitionEnd",t),e&&e()};Bv&&(Bv.addEventListener("transitionend",t),Bv.addEventListener("webkitTransitionEnd",t),setTimeout(function
 (){Bv.classList.add("hide")},0))}function Xo(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ei(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[ni(t,e),"[",r,"]"].join(""):[ni(t,e),"[",ni(r,e),"]=",ni(n,e)].join("")};case"bracket":return function(t,n){return null===n?ni(t,e):[ni(t,e),"[]=",ni(n,e)].join("")};default:return function(t,n){return null===n?ni(t,e):[ni(t,e),"=",ni(n,e)].join("")}}}function ti(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function ni(e,t){return t.encode?t.strict?dm(e):encodeURIComponent(e):e}function ri(e){return Arra
 y.isArray(e)?e.sort():"object"==typeof e?ri(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function oi(e,t,n){var r,o="jsonp_"+ ++hm;e.url||console.error("[h5-render] config.url should be set in _jsonp for 'fetch' API."),global[o]=function(e){return function(n){t({status:200,ok:!0,statusText:"OK",data:n}),delete global[e]}}(o);var i=document.createElement("script");try{r=lib.httpurl(e.url)}catch(t){console.error("[h5-render] invalid config.url in _jsonp for 'fetch' API: "+e.url)}r.params.callback=o,i.type="text/javascript",i.src=r.toString(),i.onerror=function(e){return function(n){console.error("[h5-render] unexpected error in _jsonp for 'fetch' API",n),t({status:vm,ok:!1,statusText:"",data:""}),delete global[e]}}(o),document.getElementsByTagName("head")[0].insertBefore(i,null)}function ii(e,t,n){var r=new XMLHttpRequest;r.responseType=e.type,r.open(e.method,e.url,!0),!0===e.withCredentials&&(r.withCredentials=!0);var o=e.headers||{}
 ;for(var i in o)r.setRequestHeader(i,o[i]);r.onload=function(e){t({status:r.status,ok:r.status>=200&&r.status<300,statusText:r.statusText,data:r.response,headers:r.getAllResponseHeaders().split("\n").reduce(function(e,t){var n=t.match(/(.+): (.+)/);return n&&(e[n[1]]=n[2]),e},{})})},n&&(r.onprogress=function(e){n({readyState:r.readyState,status:r.status,length:e.loaded,total:e.total,statusText:r.statusText,headers:r.getAllResponseHeaders().split("\n").reduce(function(e,t){var n=t.match(/(.+): (.+)/);return n&&(e[n[1]]=n[2]),e},{})})}),r.onerror=function(e){console.error("[h5-render] unexpected error in _xhr for 'fetch' API",e),t({status:vm,ok:!1,statusText:"",data:""})},r.send(e.body||null)}e("* {\n  margin: 0;\n  padding: 0;\n  text-size-adjust: none;\n}\n\nul, ol {\n  list-style: none;\n}\n\n.weex-container {\n  box-sizing: border-box;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-flex-direction: column;\n  flex-di
 rection: column;\n  -webkit-flex-shrink: 0;\n  flex-shrink: 0;\n  -webkit-flex-grow: 0;\n  flex-grow: 0;\n  -webkit-flex-basis: auto;\n  flex-basis: auto;\n  align-items: stretch;\n  box-align: stretch;\n  align-content: flex-start;\n  position: relative;\n  border: 0 solid black;\n  margin: 0;\n  padding: 0;\n  min-width: 0;\n}\n\n.weex-element {\n  box-sizing: border-box;\n  position: relative;\n  -webkit-flex-shrink: 0;\n  flex-shrink: 0;\n  -webkit-flex-grow: 0;\n  flex-grow: 0;\n  -webkit-flex-basis: auto;\n  flex-basis: auto;\n  border: 0 solid black;\n  margin: 0;\n  padding: 0;\n  min-width: 0;\n}\n",void 0);var ai={browser:"0.5.0",framework:"0.21.9","vue-render":"0.12.3",transformer:">=0.1.5 <0.5"};Array.from||(Array.from=function(){var e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t},r=Math.pow(2,53)-1,o=function(e){
 var t=n(e);return Math.min(Math.max(t,0),r)};return function(e){var n=this,r=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2])}for(var s,l=o(r.length),c=t(n)?Object(new n(l)):new Array(l),u=0;u<l;)s=r[u],c[u]=a?void 0===i?a(s,u):a.call(i,s,u):s,u+=1;return c.length=l,c}}());var si="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{},li=n(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),ci=n(function(e){var t=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=t)}),ui=function(e){return"object"==typeof e?null!==e:"function"==typeof e},di=ui,fi=function(e){if(
 !di(e))throw TypeError(e+" is not an object!");return e},pi=function(e){try{return!!e()}catch(e){return!0}},hi=!pi(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),vi=ui,mi=li.document,yi=vi(mi)&&vi(mi.createElement),gi=function(e){return yi?mi.createElement(e):{}},bi=!hi&&!pi(function(){return 7!=Object.defineProperty(gi("div"),"a",{get:function(){return 7}}).a}),Ai=ui,wi=fi,_i=bi,xi=function(e,t){if(!Ai(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Ai(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Ai(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Ai(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Ei=Object.defineProperty,Ci={f:hi?Object.defineProperty:function(e,t,n){if(wi(e),t=xi(t,!0),wi(n),_i)try{return Ei(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},ki=function(e,t){return{enumerable:!(1&e),
 configurable:!(2&e),writable:!(4&e),value:t}},Si=Ci,Oi=ki,Ii=hi?function(e,t,n){return Si.f(e,t,Oi(1,n))}:function(e,t,n){return e[t]=n,e},ji={}.hasOwnProperty,Ti=function(e,t){return ji.call(e,t)},Li=0,Pi=Math.random(),Mi=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++Li+Pi).toString(36))},Ni=n(function(e){var t=li,n=Ii,r=Ti,o=Mi("src"),i=Function.toString,a=(""+i).split("toString");ci.inspectSource=function(e){return i.call(e)},(e.exports=function(e,i,s,l){var c="function"==typeof s;c&&(r(s,"name")||n(s,"name",i)),e[i]!==s&&(c&&(r(s,o)||n(s,o,e[i]?""+e[i]:a.join(String(i)))),e===t?e[i]=s:l?e[i]?e[i]=s:n(e,i,s):(delete e[i],n(e,i,s)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||i.call(this)})}),Bi=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},Ri=Bi,Fi=function(e,t,n){if(Ri(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call
 (t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},Di=li,Wi=ci,$i=Ii,Qi=Ni,Ui=Fi,zi=function(e,t,n){var r,o,i,a,s=e&zi.F,l=e&zi.G,c=e&zi.S,u=e&zi.P,d=e&zi.B,f=l?Di:c?Di[t]||(Di[t]={}):(Di[t]||{}).prototype,p=l?Wi:Wi[t]||(Wi[t]={}),h=p.prototype||(p.prototype={});l&&(n=t);for(r in n)i=((o=!s&&f&&void 0!==f[r])?f:n)[r],a=d&&o?Ui(i,Di):u&&"function"==typeof i?Ui(Function.call,i):i,f&&Qi(f,r,i,e&zi.U),p[r]!=i&&$i(p,r,a),u&&h[r]!=i&&(h[r]=i)};Di.core=Wi,zi.F=1,zi.G=2,zi.S=4,zi.P=8,zi.B=16,zi.W=32,zi.U=64,zi.R=128;var Vi=zi,Hi={}.toString,Gi=function(e){return Hi.call(e).slice(8,-1)},qi=Gi,Yi=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==qi(e)?e.split(""):Object(e)},Ji=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e},Ki=Yi,Zi=Ji,Xi=function(e){return Ki(Zi(e))},ea=Math.ceil,ta=Math.floor,na=function(e){return isNaN(e=+e)?0:(e>0?ta:ea)(e)},ra=na,oa=Math.min,ia=function(e){retu
 rn e>0?oa(ra(e),9007199254740991):0},aa=na,sa=Math.max,la=Math.min,ca=Xi,ua=ia,da=function(e,t){return(e=aa(e))<0?sa(e+t,0):la(e,t)},fa=li,pa=fa["__core-js_shared__"]||(fa["__core-js_shared__"]={}),ha=function(e){return pa[e]||(pa[e]={})},va=ha("keys"),ma=Mi,ya=function(e){return va[e]||(va[e]=ma(e))},ga=Ti,ba=Xi,Aa=function(e){return function(t,n,r){var o,i=ca(t),a=ua(i.length),s=da(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}}(!1),wa=ya("IE_PROTO"),_a="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),xa=function(e,t){var n,r=ba(e),o=0,i=[];for(n in r)n!=wa&&ga(r,n)&&i.push(n);for(;t.length>o;)ga(r,n=t[o++])&&(~Aa(i,n)||i.push(n));return i},Ea=_a,Ca=Object.keys||function(e){return xa(e,Ea)},ka=Ji,Sa=function(e){return Object(ka(e))},Oa=Ca,Ia={f:Object.getOwnPropertySymbols},ja={f:{}.propertyIsEnumerable},Ta=Sa,La=Yi,Pa=Object.assign,Ma=!Pa||pi(fun
 ction(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=Pa({},e)[n]||Object.keys(Pa({},t)).join("")!=r})?function(e,t){for(var n=arguments,r=Ta(e),o=arguments.length,i=1,a=Ia.f,s=ja.f;o>i;)for(var l,c=La(n[i++]),u=a?Oa(c).concat(a(c)):Oa(c),d=u.length,f=0;d>f;)s.call(c,l=u[f++])&&(r[l]=c[l]);return r}:Pa,Na=Vi;Na(Na.S+Na.F,"Obje

<TRUNCATED>