weex-vue-render
Version:
Web renderer for weex project written in Vue DSL.
1 lines • 135 kB
JavaScript
console.log("START WEEX VUE RENDER: 1.0.36, Build 2018-12-29 17:52."),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.WeexVueRender=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],i=document.createElement("style");return i.type="text/css",n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),t}function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e,t){for(var n=e;n;){if(n.contains(t)||n==t)return n;n=n.parentNode}return null}function i(e,t,n){var i=oi.createEvent("HTMLEvents");if(i.initEvent(t,!0,!0),"object"==typeof n)for(var r in n)i[r]=n[r];i._for="weex",e.dispatchEvent(i)}function r(e){for(var t=0;t<e.changedTouches.length;t++){var r=e.changedTouches[t];if(!(v=ci[r.identifier]))return;v.lastTouch||(v.lastTouch=v.startTouch),v.lastTime||(v.lastTime=v.startTime),v.velocityX||(v.velocityX=0),v.velocityY||(v.velocityY=0),v.duration||(v.duration=0);var o=Date.now()-v.lastTime,a=(r.clientX-v.lastTouch.clientX)/o,s=(r.clientY-v.lastTouch.clientY)/o;o>70&&(o=70),v.duration+o>70&&(v.duration=70-o),v.velocityX=(v.velocityX*v.duration+a*o)/(v.duration+o),v.velocityY=(v.velocityY*v.duration+s*o)/(v.duration+o),v.duration+=o,v.lastTouch={};for(var c in r)v.lastTouch[c]=r[c];v.lastTime=Date.now();var l=r.clientX-v.startTouch.clientX,u=r.clientY-v.startTouch.clientY,d=Math.sqrt(Math.pow(l,2)+Math.pow(u,2)),h=!(Math.abs(l)>Math.abs(u)),f=h?u>=0?"down":"up":l>=0?"right":"left";("tapping"===v.status||"pressing"===v.status)&&d>10&&(v.status="panning",v.isVertical=h,v.direction=f,i(v.element,"panstart",{touch:r,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:v.isVertical,direction:f})),"panning"===v.status&&(v.panTime=Date.now(),i(v.element,"panmove",{displacementX:l,displacementY:u,touch:r,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:v.isVertical,direction:f}))}if(2==Object.keys(ci).length){var p,m=[],g=[],w=[];for(t=0;t<e.touches.length;t++){r=e.touches[t];var v=ci[r.identifier];m.push([v.startTouch.clientX,v.startTouch.clientY]),g.push([r.clientX,r.clientY])}for(var c in ci)w.push(ci[c].element);p=function(e,t,n,i,r,o,a,s){var c=Math.atan2(s-o,a-r)-Math.atan2(i-t,n-e),l=Math.sqrt((Math.pow(s-o,2)+Math.pow(a-r,2))/(Math.pow(i-t,2)+Math.pow(n-e,2))),u=[r-l*e*Math.cos(c)+l*t*Math.sin(c),o-l*t*Math.cos(c)-l*e*Math.sin(c)];return{rotate:c,scale:l,translate:u,matrix:[[l*Math.cos(c),-l*Math.sin(c),u[0]],[l*Math.sin(c),l*Math.cos(c),u[1]],[0,0,1]]}}(m[0][0],m[0][1],m[1][0],m[1][1],g[0][0],g[0][1],g[1][0],g[1][1]),i(n(w[0],w[1]),"dualtouch",{transform:p,touches:e.touches,touchEvent:e})}}function o(e){if(2==Object.keys(ci).length){var t=[];for(var s in ci)t.push(ci[s].element);i(n(t[0],t[1]),"dualtouchend",{touches:si.call(e.touches),touchEvent:e})}for(var c=0;c<e.changedTouches.length;c++){var l=e.changedTouches[c],u=l.identifier,d=ci[u];if(d){if(d.pressingHandler&&(clearTimeout(d.pressingHandler),d.pressingHandler=null),"tapping"===d.status&&(d.timestamp=Date.now(),i(d.element,"weex$tap",{touch:l,touchEvent:e}),li&&d.timestamp-li.timestamp<300&&i(d.element,"doubletap",{touch:l,touchEvent:e}),li=d),"panning"===d.status){var h=Date.now(),f=h-d.startTime,p=l.clientX-d.startTouch.clientX,m=l.clientY-d.startTouch.clientY,g=Math.sqrt(d.velocityY*d.velocityY+d.velocityX*d.velocityX)>.5&&h-d.lastTime<100,w={duration:f,isSwipe:g,velocityX:d.velocityX,velocityY:d.velocityY,displacementX:p,displacementY:m,touch:l,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:d.isVertical,direction:d.direction};i(d.element,"panend",w),g&&i(d.element,"swipe",w)}"pressing"===d.status&&i(d.element,"pressend",{touch:l,touchEvent:e}),delete ci[u]}}0===Object.keys(ci).length&&(ai.removeEventListener("touchmove",r,!1),ai.removeEventListener("touchend",o,!1),ai.removeEventListener("touchcancel",a,!1))}function a(e){if(2==Object.keys(ci).length){var t=[];for(var s in ci)t.push(ci[s].element);i(n(t[0],t[1]),"dualtouchend",{touches:si.call(e.touches),touchEvent:e})}for(var c=0;c<e.changedTouches.length;c++){var l=e.changedTouches[c],u=l.identifier,d=ci[u];d&&(d.pressingHandler&&(clearTimeout(d.pressingHandler),d.pressingHandler=null),"panning"===d.status&&i(d.element,"panend",{touch:l,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e}),"pressing"===d.status&&i(d.element,"pressend",{touch:l,touchEvent:e}),delete ci[u])}0===Object.keys(ci).length&&(ai.removeEventListener("touchmove",r,!0),ai.removeEventListener("touchend",o,!0),ai.removeEventListener("touchcancel",a,!0))}function s(e){Object.defineProperty(this,"val",{value:e.toString(),enumerable:!0}),this.gt=function(e){return s.compare(this,e)>0},this.gte=function(e){return s.compare(this,e)>=0},this.lt=function(e){return s.compare(this,e)<0},this.lte=function(e){return s.compare(this,e)<=0},this.eq=function(e){return 0===s.compare(this,e)}}function c(e){return xi.call(e)===_i}function l(e){return xi.call(e)===Si}function u(e){return"string"==typeof value||"number"==typeof value||"symbol"==typeof value||"boolean"==typeof value}function d(e){return void 0!==e&&null!==e}function h(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return!t||t.length<=0?e:(t.forEach(function(t){if("object"==typeof t)for(var n in t)e[n]=t[n]}),e)}function f(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return!t||t.length<=0?e:(t.forEach(function(t){if("object"==typeof t){var n;for(var i in t)!(n=t[i])&&""!==n&&0!==n||"undefined"===n||(e[i]=n)}}),e)}function p(e,t){var n;return function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];clearTimeout(n),n=setTimeout(function(){n=null,e.apply(null,i)},t)}}function m(e,t,n){var i=0,r=null,o=t+(t>25?t:25);return function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];var c=this,l=(new Date).getTime();l-i>t&&(n&&(r&&clearTimeout(r),r=setTimeout(function(){r=null,e.apply(c,a)},o)),e.apply(c,a),i=l)}}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function w(e){var t={};for(var n in e){t[Ii(n).replace(Ni,function(e){return"-"+e})]=e[n]}return t}function v(e,t,n){var i=document.getElementById(t);i&&n&&(i.parentNode.removeChild(i),i=null),i||((i=document.createElement("style")).type="text/css",t&&(i.id=t),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(e))}function b(e,t,n){var i=window.document,r=750*e/t/10;if(i.documentElement){i.documentElement.style.fontSize&&!n||(i.documentElement.style.fontSize=r+"px"),Mi.rem=r,Mi.rootValue=t/10}}function y(e){if(ji){if(parseInt(ji.getAttribute("content"))===e)return}else{(ji=document.createElement("meta")).setAttribute("name","weex-viewport");var t=document.querySelector("meta"),n=t&&t.parentElement||document.documentElement.children[0];t?n.insertBefore(ji,t):n.appendChild(ji)}ji.setAttribute("content",e+"")}function x(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return!t||t.length<=0?e:(t.forEach(function(t){if("object"==typeof t)for(var n in t)e[n]=t[n]}),e)}function _(e,t,n){var i=new Event(t,{bubbles:!1});if(x(i,n),-1!==window.navigator.userAgent.toLowerCase().indexOf("phantomjs"))return i;try{Object.defineProperty(i,"target",{enumerable:!0,value:e})}catch(t){return x({},i,{target:e})}return i}function S(e,t,n){e.dispatchEvent(_(e,t,n))}function C(e){if("boolean"==typeof e._insideA)return e._insideA;for(var t=e.parentElement,n=[],i=function(t){return e._insideA=t,function(e){for(var t=0,i=n.length;t<i;t++)n[t]._insideA=e}(t),t};t!==document.body;){if("a"===t.tagName.toLowerCase())return i(!0);if("boolean"==typeof t._insideA)return i(t._insideA);n.push(t),t=t.parentElement}return i(!1)}function T(e){function t(n){if(n)return Hi.scrollableTypes.indexOf(n.weexType)>-1?(e._parentScroller=n,n):t(n.$parent)}return e?e._parentScroller?e._parentScroller:t(e.$parent):null}function k(e){function t(n){if(n){var i=n.tagName.toLowerCase();return"body"===i||"main"===i&&Hi.scrollableTypes.indexOf(n.getAttribute("weex-type"))>-1?(e._parentScroller=n,n):t(n.parentElement)}}if(!e)return null;var n=e instanceof HTMLElement?e:e.$el;if(n&&1===n.nodeType)return e._parentScroller?e._parentScroller:t(n)}function E(e,t,n,i){var r="up"===(n=n||"up")||"down"===n;if(("left"===n||"right"===n)&&!function(e,t){return e.top<t.bottom&&e.bottom>t.top}(e,t))return[!1,!1];if(r&&!function(e,t){return e.left<t.right&&e.right>t.left}(e,t))return[!1,!1];switch(i=i?parseInt(i)*weex.config.env.scale:0,n){case"up":return[e.top<t.bottom&&e.bottom>t.top,e.top<t.bottom+i&&e.bottom>t.top-i];case"down":return[e.bottom>t.top&&e.top<t.bottom,e.bottom>t.top-i&&e.top<t.bottom+i];case"left":return[e.left<t.right&&e.right>t.left,e.left<t.right+i&&e.right>t.left-i];case"right":return[e.right>t.left&&e.left<t.right,e.right>t.left-i&&e.left<t.right+i]}}function I(e,t,n,i){if(!e.getBoundingClientRect)return!1;var r={top:0,left:0,bottom:window.innerHeight,right:window.innerWidth},o=t===window||t===document.body?r:t?t.getBoundingClientRect():r;return E(e.getBoundingClientRect(),o,n,i)}function N(e,t,n){S(e,t,{direction:n})}function O(e){return e&&e.getAttribute("appear-offset")}function A(e,t){var n=e&&e.$el;if(n&&1===n.nodeType){var i=!1,r=k(e);if(r){r===document.body&&(i=!0);var o=r._scrollHandler;o||(o=r._scrollHandler=function(e){!function(e){e._watchAppearList=Array.prototype.slice.call(e.querySelectorAll("[weex-appear]"))}(r);var t=i?window.pageYOffset:r.scrollTop,n=r._lastScrollTop;r._lastScrollTop=t;var o=(t<n?"down":t>n?"up":r._prevDirection)||null;r._prevDirection=o;for(var a=r._watchAppearList||[],s=a.length,c=0;c<s;c++){var l=a[c],u=O(l);L(l,I(l,r,o,u),o)}},r.addEventListener("scroll",m(o,100,!0))),t&&e.$nextTick(o)}}}function L(e,t,n,i){if(void 0===n&&(n=null),e){var r=t[0],o=t[1];if((e._appearedOnce||r)&&e._visible!==r){e._visible=r,r&&!e._appearedOnce&&(e._appearedOnce=!0);var a=r?"appear":"disappear";""===e.getAttribute("data-evt-"+a)&&N(e,a,n)}if((e._offsetAppearedOnce||o)&&e._offsetVisible!==o){e._offsetVisible=o,o&&!e._offsetAppearedOnce&&(e._offsetAppearedOnce=!0);var s=o?["offset-appear","offsetAppear"]:["offset-disappear","offsetDisappear"];""===e.getAttribute("data-evt-"+s[0])&&N(e,s[1],n)}}}function j(e,t,n){var i=new Image;i.onload=t?t.bind(i):null,i.onerror=n?n.bind(i):null,i.src=e}function P(e,t,n){function i(){delete e._src_loading}t&&(window._processImgSrc&&(t=window._processImgSrc(t,e),n&&(n=window._processImgSrc(n,e))),e._src_loading!==t&&(e.style.backgroundImage="url("+(t||"")+")",e.removeAttribute(Yi),e._src_loading=t,j(t,function(n){e.style.backgroundImage="url("+(t||"")+")";var r=this.width,o=this.height;S(e,"load",{success:!0,size:{naturalWidth:r,naturalHeight:o}}),i()},function(t){S(e,"load",{success:!1,size:{naturalWidth:0,naturalHeight:0}}),n&&j(n,function(){e.style.backgroundImage="url("+(n||"")+")"}),i()})))}function $(e){if(e){var t=e._ptScroller;if(!t){for(var n=e.parentElement;n&&n!==document.body;){if((n.className+""||"").match(/weex-list|weex-scroller|weex-waterfall/)){t=n;break}n=n.parentElement}t=n,e._ptScroller=n}return t}}function z(e,t){if(Array.isArray(e))return e.forEach(function(e){return z(e)});if(e=e||document.body){var n=(e||document.body).querySelectorAll("["+Yi+"]");e.getAttribute(Yi)&&(n=[e]);for(var i=0;i<n.length;i++){var r=n[i];"boolean"==typeof t&&t?P(r,r.getAttribute(Yi),r.getAttribute(Ui)):I(r,$(e))[0]&&P(r,r.getAttribute(Yi),r.getAttribute(Ui))}}}function R(e,t){void 0===e&&(e=16),void 0===t&&(t=document.body);var n=+(t&&t.dataset.throttleId);(isNaN(n)||n<=0)&&(n=Ki++,t&&t.setAttribute("data-throttle-id",n+"")),!qi[n]&&(qi[n]={});return qi[n][e]||(qi[n][e]=m(z.bind(this,t),parseFloat(e),!0))}function M(){if(void 0===Vi){var e=window.devicePixelRatio;if(e&&e>=2&&document.documentElement){var t=document.documentElement,n=document.createElement("div"),i=document.createElement("body"),r=t.firstElementChild||t.firstChild;n.style.border="0.5px solid transparent",i.appendChild(n),t.insertBefore(i,r),Vi=1===n.offsetHeight,t.removeChild(i)}else Vi=!1}return Vi}function F(e){var t={};if(!e)return t;var n=e.style.webkitTransform||e.style.mozTransform||e.style.transform;return n&&n.match(/(?: *(?:translate|rotate|scale)[^(]*\([^(]+\))+/i)&&(t=n.trim().replace(/, +/g,",").split(" ").reduce(function(e,t){return["translate","scale","rotate"].forEach(function(n){new RegExp(n,"i").test(t)&&(e[n]=t)}),e},{})),t}function B(e){return Object.keys(e).reduce(function(t,n){return t+e[n]+" "},"")}function W(e){for(var t=e.length,n=0,i=0;i<t;i++)n+=e[i].getBoundingClientRect().width;return n}function H(e,t){return e.replace(/([+-]?\d+(?:.\d*)?)([p|w]x)/g,function(e,n,i){if("wx"===i)return n+"px";var r=parseFloat(n),o=r>0?1:r<0?-1:0;return Math.abs(r)<=1?M()?.5*o+"px":1*o+"px":r/(t||window.weex.config.env.rem)+"rem"})}function D(e){var t=e.data||{};return f({},t.staticStyle,t.style)}function V(e){var t=e&&e.$vnode;if(!t)return{};for(var n={};t;)h(n,D(t)),t=t.parent;return n}function Y(e,t){return function(e,n,i,r,o){return(l(n)||u())&&(r=i,i=n,n={}),d(n)||(n={}),d(n.is)&&(e=n.is),"string"==typeof e?(n=X(this,n,e),e=U(this,e)):n=X(this,n,void 0),t.call(this,e,n,i,r,o)}.bind(e)}function U(e,t){return ar[t]||t}function q(e,t,n,i,r){for(var o in t){var a=rr[o];if(a)n["data-evt-"+a]="",r.value||(r.value=!0,n["weex-appear"]="");else if(n["data-evt-"+o]="","click"!==o){var s=t[o];l(t[o])?s.unshift(e.$stopPropagation):t[o]=[e.$stopPropagation,s]}}t.click&&(t.weex$tap=t.click,t.click=e.$stopOuterA),t.scroll&&(t.weex$scroll=t.scroll,delete t.scroll)}function K(e,t,n){var i=t.style;if(i){var r=nr(function(e){return sr[e]||e}(n));t.style=r?e._px2rem(r.transform(i),75):e._px2rem(i,75)}}function X(e,t,n){if(l(t))return t;var i=function(e){return Hi.weexBuiltInComponents.indexOf(e)>-1}(n);return i&&function(e,t){var n=e.class,i=cr[t];n||(n=e.class=[]),n&&l(n)?e.class=n.concat(Object.keys(i)):"object"==typeof n&&Object.assign(n,i)}(t,n),K(e,t,n),i&&function(e,t){var n=e.attrs,i=e.directives;if(n||(n=e.attrs={}),n["weex-type"]=t,"image"===t||"gif"===t){var r=n.src,o=n.resize;r&&(n["data-img-src"]=r),o&&(i||(i=e.directives=[]),i.push({name:"weex-resize",value:n.resize}))}}(t,n),function(e,t,n){var i=t.on,r=t.nativeOn;ir.indexOf(n)>-1&&(r=null,delete t.nativeOn),d(weex._components[n])&&(delete t.nativeOn,r=null,i&&(r=t.nativeOn=i),i=null,delete t.on);var o=t.attrs;o||(o=t.attrs={});var a={value:!1};if(i&&q(e,i,o,0,a),r&&q(e,r,o,0,a),"a"===n){i||(i=t.on={});var s=i.weex$tap;s?Array.isArray(s)?s.unshift(e.$stopPropagation):s=[e.$stopPropagation,s]:i.weex$tap=e.$stopPropagation}}(e,t,n),t}function G(e){if(!e)throw new Error("[Vue Render] Vue not found. Please make sure vue 2.x runtime is imported.");global.weex.__vue__||(global.weex.__vue__=e,weex.install(_r),console.log("[Vue Render] install Vue "+e.version+"."))}function Q(e){if(!Sr){Sr=!0,G(e),e.prototype.$getConfig=function(){return console.warn('[Vue Render] "this.$getConfig" is deprecated, please use "weex.config" instead.'),weex.config};var t=/^html:/i;e.config.isReservedTag=function(e){return t.test(e)},e.config.parsePlatformTagName=function(e){return e.replace(t,"")};var n=e.config.getTagNamespace;e.config.getTagNamespace=function(e){if(!function(e){return void 0!==weex._components[e]}(e))return n(e)},e.mixin(mr),e.mixin(gr),e.mixin(vr),e.mixin(yr)}}function Z(e){var t=V(e),n=t.placeholderColor||t["placeholder-color"];return n&&function(e,t){if(t){var n=["::-webkit-input-placeholder",":-moz-placeholder","::-moz-placeholder",":-ms-input-placeholder",":placeholder-shown"],i=e._id;Tr(n.map(function(e,r){return"#"+Er+i+n[r]+"{color:"+t+";}"}).join(""),""+kr+i,!0)}}(e,n),t}function J(e,t){!function(e){e._styleSheet||(e._styleSheet=jr("weex-cmp-loading-indicator"))}(e);for(var n=function(e){if(!e)return;for(var t=["0em -1.3em 0em 0em","0.9em -0.9em 0 0em","1.25em 0em 0 0em","0.875em 0.875em 0 0em","0em 1.25em 0 0em","-0.9em 0.9em 0 0em","-1.3em 0em 0 0em","-0.9em -0.9em 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+")"}),i=[],r=function(e){var r=Lr(n,e,"r");i.push(t.map(function(e,t){return e+" "+r[t]}).join(", "))},o=0;o<t.length;o++)r(o);return i}(t),i=e._styleSheet.rules||e._styleSheet.cssRules,r=0,o=i.length;r<o;r++){var a=i.item(r);if((a.type===CSSRule.KEYFRAMES_RULE||a.type===CSSRule.WEBKIT_KEYFRAMES_RULE)&&"weex-spinner"===a.name)for(var s=a.cssRules,c=0,l=s.length;c<l;c++){var u=s[c];u.type!==CSSRule.KEYFRAME_RULE&&u.type!==CSSRule.WEBKIT_KEYFRAME_RULE||(u.style.boxShadow=n[c])}}}function ee(e,t){var n={},i=t?e.itemSelectedColor||e["item-selected-color"]:e.itemColor||e["item-color"];return n["background-color"]=i,n.width=n.height=e.itemSize||e["item-size"],n}function te(e,t,n){e.performCallback(t,{result:mo,data:n||wo})}function ne(e,t){e.performCallback(t,{result:mo,data:"localStorage is disabled or not supported."})}function ie(e,t){return t.encode?t.strict?Co(e):encodeURIComponent(e):e}function re(){return(window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now)()}function oe(e,t){if(this===document.body||this===window&&window.scrollTo)return window.scrollTo(0,t);this["scroll"+e]=t}function ae(e){e.frame=window.requestAnimationFrame(ae.bind(window,e));var t=(re()-e.startTime)/468,n=function(e){return.5*(1-Math.cos(Math.PI*e))}(t=t>1?1:t),i=e.startPosition+(e.position-e.startPosition)*n;e.method.call(e.scrollable,e.dSuffix,i),~~i!=~~e.position||window.cancelAnimationFrame(e.frame)}function se(){this.wrap=document.querySelector(oa),this.node=document.querySelector(aa),this.wrap||this.createWrap(),this.node||this.createNode(),this.clearNode(),this.createNodeContent(),this.bindEvents()}function ce(e){this.msg=e.message||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",se.call(this),this.node.classList.add("weex-alert")}function le(e){this.msg=e.message||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",this.cancelTitle=e.cancelTitle||"Cancel",se.call(this),this.node.classList.add("weex-confirm")}function ue(e){this.msg=e.message||"",this.defaultMsg=e.default||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",this.cancelTitle=e.cancelTitle||"Cancel",se.call(this),this.node.classList.add("weex-prompt")}e('/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n.weex-root,\n.weex-root * {\n color: initial;\n cursor: initial;\n direction: inherit;\n /* In chrome, there\'s a chance that user set the miximum font-size to \n a abnormal smaller size. But actually the smaller size is never working\n if this font / font-size default value is set to initial. Perhaps a bug\n for chrome. */\n font: initial;\n font-size: initial;\n font-family: initial;\n font-style: initial;\n font-variant: initial;\n font-weight: initial;\n line-height: initial;\n text-align: initial;\n text-indent: initial;\n visibility: initial;\n white-space: initial;\n word-spacing: initial;\n font-family: BlinkMacSystemFont, \'Source Sans Pro\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n}\n\n.weex-root,\n.weex-root *,\n.weex-root *::before,\n.weex-root *::after {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-text-size-adjust: none;\n -moz-text-size-adjust: none;\n -ms-text-size-adjust: none;\n text-size-adjust: none;\n}\n\n.weex-root a,\n.weex-root button,\n.weex-root [role="button"],\n.weex-root input,\n.weex-root label,\n.weex-root select,\n.weex-root textarea {\n touch-action: manipulation;\n}\n\n.weex-root p,\n.weex-root ol,\n.weex-root ul,\n.weex-root dl,\n.weex-root figure {\n margin: 0;\n padding: 0;\n}\n\n.weex-root li {\n list-style: none;\n}\n\n.weex-root figure {\n margin: 0;\n}\n\n.weex-root textarea {\n resize: none;\n}\n\n/* show no scroll bar. */\n::-webkit-scrollbar {\n display: none;\n}\n',void 0),e('/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n \n.weex-root * {\n border-width: 0;\n border-color: inherit;\n border-style: solid;\n}\n\ndiv.weex-root {\n min-height: 100%;\n}\n\n/**\n * slider will overflow in horizontal axis, which will cause container\n * horizontally expanding. below styles will prevent this from happening.\n */\n.weex-root {\n width: 100%;\n overflow-x: hidden;\n}\n\n.weex-root figure {\n background-repeat: no-repeat;\n background-position: 50% 50%;\n}\n\n.weex-flex-ct {\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n}\n\n.weex-ct {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n position: relative;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -webkit-flex-direction: column;\n flex-direction: column;\n -webkit-flex-shrink: 0;\n flex-shrink: 0;\n -webkit-box-flex: 0;\n -webkit-flex-grow: 0;\n flex-grow: 0;\n -webkit-flex-basis: auto;\n flex-basis: auto;\n -webkit-box-align: stretch;\n -webkit-align-items: stretch;\n align-items: stretch;\n -webkit-align-content: flex-start;\n align-content: flex-start;\n border: 0 solid black;\n margin: 0;\n padding: 0;\n min-width: 0;\n}\n\n.weex-ct.horizontal {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n}\n\n.weex-el {\n display: block;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: relative;\n -webkit-flex-shrink: 0;\n flex-shrink: 0;\n -webkit-box-flex: 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\n.weex-text {\n display: -webkit-box;\n display: -moz-box;\n -webkit-box-orient: vertical;\n position: relative;\n white-space: pre-wrap; /* not using \'pre\': support auto line feed. */\n font-size: 0.4266666666666667rem;\n word-wrap: break-word;\n overflow: hidden; /* it\'ll be clipped if the height is not high enough. */\n}\n\n.weex-image {\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: 100% 100%;\n}\n\n.weex-a {\n text-decoration: none;\n}\n\n.weex-ios-sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n z-index: 9999;\n top: 0;\n}\n\n.weex-fixed {\n position: fixed;\n z-index: 1;\n}\n\n.weex-sticky {\n position: fixed;\n top: 0;\n z-index: 9999;\n}\n',void 0);var de=Math.ceil,he=Math.floor,fe=function(e){return isNaN(e=+e)?0:(e>0?he:de)(e)},pe=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},me=t(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)}),ge=t(function(e){var t=e.exports={version:"2.5.2"};"number"==typeof __e&&(__e=t)}),we=(ge.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),ve=function(e){if(!we(e))throw TypeError(e+" is not an object!");return e},be=function(e){try{return!!e()}catch(e){return!0}},ye=!be(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),xe=me.document,_e=we(xe)&&we(xe.createElement),Se=function(e){return _e?xe.createElement(e):{}},Ce=!ye&&!be(function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a}),Te=function(e,t){if(!we(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!we(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!we(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!we(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},ke=Object.defineProperty,Ee={f:ye?Object.defineProperty:function(e,t,n){if(ve(e),t=Te(t,!0),ve(n),Ce)try{return ke(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}},Ie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ne=ye?function(e,t,n){return Ee.f(e,t,Ie(1,n))}:function(e,t,n){return e[t]=n,e},Oe={}.hasOwnProperty,Ae=function(e,t){return Oe.call(e,t)},Le=0,je=Math.random(),Pe=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++Le+je).toString(36))},$e=t(function(e){var t=Pe("src"),n="toString",i=Function[n],r=(""+i).split(n);ge.inspectSource=function(e){return i.call(e)},(e.exports=function(e,n,i,o){var a="function"==typeof i;a&&(Ae(i,"name")||Ne(i,"name",n)),e[n]!==i&&(a&&(Ae(i,t)||Ne(i,t,e[n]?""+e[n]:r.join(String(n)))),e===me?e[n]=i:o?e[n]?e[n]=i:Ne(e,n,i):(delete e[n],Ne(e,n,i)))})(Function.prototype,n,function(){return"function"==typeof this&&this[t]||i.call(this)})}),ze=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},Re=function(e,t,n){if(ze(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},Me="prototype",Fe=function(e,t,n){var i,r,o,a,s=e&Fe.F,c=e&Fe.G,l=e&Fe.S,u=e&Fe.P,d=e&Fe.B,h=c?me:l?me[t]||(me[t]={}):(me[t]||{})[Me],f=c?ge:ge[t]||(ge[t]={}),p=f[Me]||(f[Me]={});c&&(n=t);for(i in n)o=((r=!s&&h&&void 0!==h[i])?h:n)[i],a=d&&r?Re(o,me):u&&"function"==typeof o?Re(Function.call,o):o,h&&$e(h,i,o,e&Fe.U),f[i]!=o&&Ne(f,i,a),u&&p[i]!=o&&(p[i]=o)};me.core=ge,Fe.F=1,Fe.G=2,Fe.S=4,Fe.P=8,Fe.B=16,Fe.W=32,Fe.U=64,Fe.R=128;var Be=Fe,We={},He={}.toString,De=function(e){return He.call(e).slice(8,-1)},Ve=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==De(e)?e.split(""):Object(e)},Ye=function(e){return Ve(pe(e))},Ue=Math.min,qe=function(e){return e>0?Ue(fe(e),9007199254740991):0},Ke=Math.max,Xe=Math.min,Ge="__core-js_shared__",Qe=me[Ge]||(me[Ge]={}),Ze=function(e){return Qe[e]||(Qe[e]={})},Je=Ze("keys"),et=function(e){return Je[e]||(Je[e]=Pe(e))},tt=function(e){return function(t,n,i){var r,o=Ye(t),a=qe(o.length),s=function(e,t){return(e=fe(e))<0?Ke(e+t,0):Xe(e,t)}(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}}(!1),nt=et("IE_PROTO"),it="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),rt=Object.keys||function(e){return function(e,t){var n,i=Ye(e),r=0,o=[];for(n in i)n!=nt&&Ae(i,n)&&o.push(n);for(;t.length>r;)Ae(i,n=t[r++])&&(~tt(o,n)||o.push(n));return o}(e,it)},ot=ye?Object.defineProperties:function(e,t){ve(e);for(var n,i=rt(t),r=i.length,o=0;r>o;)Ee.f(e,n=i[o++],t[n]);return e},at=me.document,st=at&&at.documentElement,ct=et("IE_PROTO"),lt=function(){},ut="prototype",dt=function(){var e,t=Se("iframe"),n=it.length;for(t.style.display="none",st.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),dt=e.F;n--;)delete dt[ut][it[n]];return dt()},ht=Object.create||function(e,t){var n;return null!==e?(lt[ut]=ve(e),n=new lt,lt[ut]=null,n[ct]=e):n=dt(),void 0===t?n:ot(n,t)},ft=t(function(e){var t=Ze("wks"),n=me.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:Pe)("Symbol."+e))}).store=t}),pt=Ee.f,mt=ft("toStringTag"),gt=function(e,t,n){e&&!Ae(e=n?e:e.prototype,mt)&&pt(e,mt,{configurable:!0,value:t})},wt={};Ne(wt,ft("iterator"),function(){return this});var vt=function(e){return Object(pe(e))},bt=et("IE_PROTO"),yt=Object.prototype,xt=Object.getPrototypeOf||function(e){return e=vt(e),Ae(e,bt)?e[bt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?yt:null},_t=ft("iterator"),St=!([].keys&&"next"in[].keys()),Ct="values",Tt=function(){return this},kt=function(e,t,n,i,r,o,a){!function(e,t,n){e.prototype=ht(wt,{next:Ie(1,n)}),gt(e,t+" Iterator")}(n,t,i);var s,c,l,u=function(e){if(!St&&e in p)return p[e];switch(e){case"keys":case Ct:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",h=r==Ct,f=!1,p=e.prototype,m=p[_t]||p["@@iterator"]||r&&p[r],g=m||u(r),w=r?h?u("entries"):g:void 0,v="Array"==t?p.entries||m:m;if(v&&(l=xt(v.call(new e)))!==Object.prototype&&l.next&&(gt(l,d,!0),Ae(l,_t)||Ne(l,_t,Tt)),h&&m&&m.name!==Ct&&(f=!0,g=function(){return m.call(this)}),(St||f||!p[_t])&&Ne(p,_t,g),We[t]=g,We[d]=Tt,r)if(s={values:h?g:u(Ct),keys:o?g:u("keys"),entries:w},a)for(c in s)c in p||$e(p,c,s[c]);else Be(Be.P+Be.F*(St||f),t,s);return s},Et=function(e){return function(t,n){var i,r,o=String(pe(t)),a=fe(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(r=o.charCodeAt(a+1))<56320||r>57343?e?o.charAt(a):i:e?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}}(!0);kt(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=Et(t,n),this._i+=e.length,{value:e,done:!1})});var It=function(e,t,n,i){try{return i?t(ve(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&ve(r.call(e)),t}},Nt=ft("iterator"),Ot=Array.prototype,At=function(e){return void 0!==e&&(We.Array===e||Ot[Nt]===e)},Lt=function(e,t,n){t in e?Ee.f(e,t,Ie(0,n)):e[t]=n},jt=ft("toStringTag"),Pt="Arguments"==De(function(){return arguments}()),$t=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),jt))?n:Pt?De(t):"Object"==(i=De(t))&&"function"==typeof t.callee?"Arguments":i},zt=ft("iterator"),Rt=ge.getIteratorMethod=function(e){if(void 0!=e)return e[zt]||e["@@iterator"]||We[$t(e)]},Mt=ft("iterator"),Ft=!1;try{[7][Mt]().return=function(){Ft=!0}}catch(e){}var Bt=function(e,t){if(!t&&!Ft)return!1;var n=!1;try{var i=[7],r=i[Mt]();r.next=function(){return{done:n=!0}},i[Mt]=function(){return r},e(i)}catch(e){}return n};Be(Be.S+Be.F*!Bt(function(e){}),"Array",{from:function(e){var t,n,i,r,o=vt(e),a="function"==typeof this?this:Array,s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=0,d=Rt(o);if(l&&(c=Re(c,s>2?arguments[2]:void 0,2)),void 0==d||a==Array&&At(d))for(n=new a(t=qe(o.length));t>u;u++)Lt(n,u,l?c(o[u],u):o[u]);else for(r=d.call(o),n=new a;!(i=r.next()).done;u++)Lt(n,u,l?It(r,c,[i.value,u],!0):i.value);return n.length=u,n}});ge.Array.from;var Wt={f:Object.getOwnPropertySymbols},Ht={f:{}.propertyIsEnumerable},Dt=Object.assign,Vt=!Dt||be(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=Dt({},e)[n]||Object.keys(Dt({},t)).join("")!=i})?function(e,t){for(var n=arguments,i=vt(e),r=arguments.length,o=1,a=Wt.f,s=Ht.f;r>o;)for(var c,l=Ve(n[o++]),u=a?rt(l).concat(a(l)):rt(l),d=u.length,h=0;d>h;)s.call(l,c=u[h++])&&(i[c]=l[c]);return i}:Dt;Be(Be.S+Be.F,"Object",{assign:Vt});ge.Object.assign;var Yt=Object.getOwnPropertyDescriptor,Ut={f:ye?Yt:function(e,t){if(e=Ye(e),t=Te(t,!0),Ce)try{return Yt(e,t)}catch(e){}if(Ae(e,t))return Ie(!Ht.f.call(e,t),e[t])}},qt=function(e,t){if(ve(e),!we(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},Kt={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=Re(Function.call,Ut.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,i){return qt(e,i),t?e.__proto__=i:n(e,i),e}}({},!1):void 0),check:qt};Be(Be.S,"Object",{setPrototypeOf:Kt.set});ge.Object.setPrototypeOf;var Xt={};Xt[ft("toStringTag")]="z",Xt+""!="[object z]"&&$e(Object.prototype,"toString",function(){return"[object "+$t(this)+"]"},!0);var Gt=ft("unscopables"),Qt=Array.prototype;void 0==Qt[Gt]&&Ne(Qt,Gt,{});var Zt=function(e){Qt[Gt][e]=!0},Jt=function(e,t){return{value:t,done:!!e}},en=kt(Array,"Array",function(e,t){this._t=Ye(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,Jt(1)):Jt(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");We.Arguments=We.Array,Zt("keys"),Zt("values"),Zt("entries");for(var tn=ft("iterator"),nn=ft("toStringTag"),rn=We.Array,on={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},an=rt(on),sn=0;sn<an.length;sn++){var cn,ln=an[sn],un=on[ln],dn=me[ln],hn=dn&&dn.prototype;if(hn&&(hn[tn]||Ne(hn,tn,rn),hn[nn]||Ne(hn,nn,ln),We[ln]=rn,un))for(cn in en)hn[cn]||$e(hn,cn,en[cn],!0)}var fn,pn,mn,gn=t(function(e){var t={},n={},i=e.exports=function(e,i,r,o,a){var s,c,l,u,d=a?function(){return e}:Rt(e),h=Re(r,o,i?2:1),f=0;if("function"!=typeof d)throw TypeError(e+" is not iterable!");if(At(d)){for(s=qe(e.length);s>f;f++)if((u=i?h(ve(c=e[f])[0],c[1]):h(e[f]))===t||u===n)return u}else for(l=d.call(e);!(c=l.next()).done;)if((u=It(l,h,c.value,i))===t||u===n)return u};i.BREAK=t,i.RETURN=n}),wn=ft("species"),vn=me.process,bn=me.setImmediate,yn=me.clearImmediate,xn=me.MessageChannel,_n=me.Dispatch,Sn=0,Cn={},Tn="onreadystatechange",kn=function(){var e=+this;if(Cn.hasOwnProperty(e)){var t=Cn[e];delete Cn[e],t()}},En=function(e){kn.call(e.data)};bn&&yn||(bn=function(e){for(var t=arguments,n=[],i=1;arguments.length>i;)n.push(t[i++]);return Cn[++Sn]=function(){!function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}e.apply(n,t)}("function"==typeof e?e:Function(e),n)},fn(Sn),Sn},yn=function(e){delete Cn[e]},"process"==De(vn)?fn=function(e){vn.nextTick(Re(kn,e,1))}:_n&&_n.now?fn=function(e){_n.now(Re(kn,e,1))}:xn?(mn=(pn=new xn).port2,pn.port1.onmessage=En,fn=Re(mn.postMessage,mn,1)):me.addEventListener&&"function"==typeof postMessage&&!me.importScripts?(fn=function(e){me.postMessage(e+"","*")},me.addEventListener("message",En,!1)):fn=Tn in Se("script")?function(e){st.appendChild(Se("script"))[Tn]=function(){st.removeChild(this),kn.call(e)}}:function(e){setTimeout(Re(kn,e,1),0)});var In,Nn,On,An,Ln={set:bn,clear:yn},jn=Ln.set,Pn=me.MutationObserver||me.WebKitMutationObserver,$n=me.process,zn=me.Promise,Rn="process"==De($n),Mn={f:function(e){return new function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=ze(t),this.reject=ze(n)}(e)}},Fn=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},Bn=ft("species"),Wn=Ln.set,Hn=function(){var e,t,n,i=function(){var i,r;for(Rn&&(i=$n.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(Rn)n=function(){$n.nextTick(i)};else if(!Pn||me.navigator&&me.navigator.standalone)if(zn&&zn.resolve){var r=zn.resolve();n=function(){r.then(i)}}else n=function(){jn.call(me,i)};else{var o=!0,a=document.createTextNode("");new Pn(i).observe(a,{characterData:!0}),n=function(){a.data=o=!o}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}(),Dn="Promise",Vn=me.TypeError,Yn=me.process,Un=me[Dn],qn="process"==$t(Yn),Kn=function(){},Xn=Nn=Mn.f,Gn=!!function(){try{var e=Un.resolve(1),t=(e.constructor={})[ft("species")]=function(e){e(Kn,Kn)};return(qn||"function"==typeof PromiseRejectionEvent)&&e.then(Kn)instanceof t}catch(e){}}(),Qn=function(e){var t;return!(!we(e)||"function"!=typeof(t=e.then))&&t},Zn=function(e,t){if(!e._n){e._n=!0;var n=e._c;Hn(function(){for(var i=e._v,r=1==e._s,o=0,a=function(t){var n,o,a=r?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{a?(r||(2==e._h&&ti(e),e._h=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&l.exit()),n===t.promise?c(Vn("Promise-chain cycle")):(o=Qn(n))?o.call(n,s,c):s(n)):c(i)}catch(e){c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&Jn(e)})}},Jn=function(e){Wn.call(me,function(){var t,n,i,r=e._v,o=ei(e);if(o&&(t=Fn(function(){qn?Yn.emit("unhandledRejection",r,e):(n=me.onunhandledrejection)?n({promise:e,reason:r}):(i=me.console)&&i.error&&i.error("Unhandled promise rejection",r)}),e._h=qn||ei(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},ei=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,i=0;n.length>i;)if((t=n[i++]).fail||!ei(t.promise))return!1;return!0},ti=function(e){Wn.call(me,function(){var t;qn?Yn.emit("rejectionHandled",e):(t=me.onrejectionhandled)&&t({promise:e,reason:e._v})})},ni=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Zn(t,!0))},ii=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw Vn("Promise can't be resolved itself");(t=Qn(e))?Hn(function(){var i={_w:n,_d:!1};try{t.call(e,Re(ii,i,1),Re(ni,i,1))}catch(e){ni.call(i,e)}}):(n._v=e,n._s=1,Zn(n,!1))}catch(e){ni.call({_w:n,_d:!1},e)}}};Gn||(Un=function(e){!function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!")}(this,Un,Dn,"_h"),ze(e),In.call(this);try{e(Re(ii,this,1),Re(ni,this,1))}catch(e){ni.call(this,e)}},(In=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var i in t)$e(e,i,t[i],n);return e}(Un.prototype,{then:function(e,t){var n=Xn(function(e,t){var n,i=ve(e).constructor;return void 0===i||void 0==(n=ve(i)[wn])?t:ze(n)}(this,Un));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=qn?Yn.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Zn(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),On=function(){var e=new In;this.promise=e,this.resolve=Re(ii,e,1),this.reject=Re(ni,e,1)},Mn.f=Xn=function(e){return e===Un||e===An?new On(e):Nn(e)}),Be(Be.G+Be.W+Be.F*!Gn,{Promise:Un}),gt(Un,Dn),function(e){var t=me[e];ye&&t&&!t[Bn]&&Ee.f(t,Bn,{configurable:!0,get:function(){return this}})}(Dn),An=ge[Dn],Be(Be.S+Be.F*!Gn,Dn,{reject:function(e){var t=Xn(this);return(0,t.reject)(e),t.promise}}),Be(Be.S+Be.F*!Gn,Dn,{resolve:function(e){return function(e,t){if(ve(e),we(t)&&t.constructor===e)return t;var n=Mn.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Be(Be.S+Be.F*!(Gn&&Bt(function(e){Un.all(e).catch(Kn)})),Dn,{all:function(e){var t=this,n=Xn(t),i=n.resolve,r=n.reject,o=Fn(function(){var n=[],o=0,a=1;gn(e,!1,function(e){var s=o++,c=!1;n.push(void 0),a++,t.resolve(e).then(function(e){c||(c=!0,n[s]=e,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=Xn(t),i=n.reject,r=Fn(function(){gn(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}});var ri=!1,oi=window.document,ai=oi.documentElement,si=Array.prototype.slice,ci={},li=null;ri||(ai.addEventListener("touchstart",function(e){0===Object.keys(ci).length&&(ai.addEventListener("touchmove",r,!0),ai.addEventListener("touchend",o,!0),ai.addEventListener("touchcancel",a,!0));for(var t=0;t<e.changedTouches.length;t++){var s=e.changedTouches[t],c={};for(var l in s)c[l]=s[l];var u={startTouch:c,startTime:Date.now(),status:"tapping",element:e.srcElement||e.target,pressingHandler:setTimeout(function(t,n){return function(){"tapping"===u.status&&(u.status="pressing",i(t,"longpress",{touch:n,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e})),clearTimeout(u.pressingHandler),u.pressingHandler=null}}(e.srcElement||e.target,e.changedTouches[t]),500)};ci[s.identifier]=u}if(2==Object.keys(ci).length){var d=[];for(var l in ci)d.push(ci[l].element);i(n(d[0],d[1]),"dualtouchstart",{touches:si.call(e.touches),touchEvent:e})}},!0),ri=!0);var ui=window.lib||(window.lib={});s.prototype.toString=function(){return this.val},s.prototype.valueOf=function(){for(var e=this.val.split("."),t=[],n=0;n<e.length;n++){var i=parseInt(e[n],10);isNaN(i)&&(i=0);var r=i.toString();r.length<5&&(r=Array(6-r.length).join("0")+r),t.push(r),1===t.length&&t.push(".")}return parseFloat(t.join(""))},s.compare=function(e,t){e=e.toString().split("."),t=t.toString().split(".");for(var n=0;n<e.length||n<t.length;n++){var i=parseInt(e[n],10),r=parseInt(t[n],10);if(window.isNaN(i)&&(i=0),window.isNaN(r)&&(r=0),i<r)return-1;if(i>r)return 1}return 0},ui.version=function(e){return new s(e)};var di=window.lib||(window.lib={}),hi=di.env||(di.env={}),fi=window.location.search.replace(/^\?/,"");if(hi.params={},fi)for(var pi=fi.split("&"),mi=0;mi<pi.length;mi++){pi[mi]=pi[mi].split("=");try{hi.params[pi[mi][0]]=decodeURIComponent(pi[mi][1])}catch(e){hi.params[pi[mi][0]]=pi[mi][1]}}var gi,wi=window.lib||(window.lib={}),vi=wi.env||(wi.env={}),bi=window.navigator.userAgent;if(gi=bi.match(/Windows\sPhone\s(?:OS\s)?([\d.]+)/))vi.os={name:"Windows Phone",isWindowsPhone:!0,version:gi[1]};else if(bi.match(/Safari/)&&(gi=bi.match(/Android[\s/]([\d.]+)/)))vi.os={version:gi[1]},bi.match(/Mobile\s+Safari/)?(vi.os.name="Android",vi.os.isAndroid=!0):(vi.os.name="AndroidPad",vi.os.isAndroidPad=!0);else if(gi=bi.match(/(iPhone|iPad|iPod)/)){var yi=gi[1];gi=bi.match(/OS ([\d_.]+) like Mac OS X/),vi.os={name:yi,isIPhone:"iPhone"===yi||"iPod"===yi,isIPad:"iPad"===yi,isIOS:!0,version:gi&&gi[1].split("_").join(".")||""}}else vi.os={name:"unknown",version:"0.0.0"};wi.version&&(vi.os.version=wi.version(vi.os.version)),(gi=bi.match(/(?:UCWEB|UCBrowser\/)([\d.]+)/))?vi.browser={name:"UC",isUC:!0,version:gi[1]}:(gi=bi.match(/MQQBrowser\/([\d.]+)/))?vi.browser={name:"QQ",isQQ:!0,version:gi[1]}:(gi=bi.match(/Firefox\/([\d.]+)/))?vi.browser={name:"Firefox",isFirefox:!0,version:gi[1]}:(gi=bi.match(/MSIE\s([\d.]+)/))||(gi=bi.match(/IEMobile\/([\d.]+)/))?(vi.browser={version:gi[1]},bi.match(/IEMobile/)?(vi.browser.name="IEMobile",vi.browser.isIEMobile=!0):(vi.browser.name="IE",vi.browser.isIE=!0),bi.match(/Android|iPhone/)&&(vi.browser.isIELikeWebkit=!0)):(gi=bi.match(/(?:Chrome|CriOS)\/([\d.]+)/))?(vi.browser={name:"Chrome",isChrome:!0,version:gi[1]},bi.match(/Version\/[\d+.]+\s*Chrome/)&&(vi.browser.name="Chrome Webview",vi.browser.isWebview=!0)):bi.match(/Safari/)&&(gi=bi.match(/Android[\s/]([\d.]+)/))?vi.browser={name:"Android",isAndroid:!0,version:gi[1]}:bi.match(/iPhone|iPad|iPod/)?bi.match(/Safari/)?(gi=bi.match(/Version\/([\d.]+)/),vi.browser={name:"Safari",isSafari:!0,version:gi&&gi[1]||""}):(gi=bi.match(/OS ([\d_.]+) like Mac OS X/),vi.browser={name:"iOS Webview",isWebview:!0,version:gi&&gi[1].replace(/_/g,".")||""}):vi.browser={name:"unknown",version:"0.0.0"},wi.version&&(vi.browser.version=wi.version(vi.browser.version));var xi=Object.prototype.toString,_i="[object Object]",Si="[object Array]",Ci=/-(\w)/g,Ti=g(function(e){return e.replace(Ci,function(e,t){return t.toUpperCase()})}),ki=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Ei=/([^-])([A-Z])/g,Ii=g(function(e){return e.replace(Ei,"$1-$2").replace(Ei,"$1-$2").toLowerCase()}),Ni=/webkit-|moz-|o-|ms-/,Oi=!1,Ai=parseInt(750),Li=!isNaN(Ai)&&Ai>0?Ai:750,ji=document.querySelector('meta[name="weex-viewport"]'),Pi=ji&&parseInt(ji.getAttribute("content"));Pi&&!isNaN(Pi)&&Pi>0&&(Li=Pi);var $i=0,zi=0,Ri=0,Mi={dpr:$i,scale:0,rootValue:0,rem:0,deviceWidth:0,deviceHeight:0},Fi=!1;try{document.createElement("div").addEventListener("test",function(e){},{get passive(){Fi=!0}})}catch(e){}var Bi=["width","height","left","right","top","bottom","border","borderRadius","borderWidth","borderLeft","borderRight","borderTop","borderBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","fontSize","lineHeight","transform","webkitTransform","WebkitTransform","mozTransform","MozTransform","itemSize"],Wi=/webkit|moz/i,Hi={scrollableTypes:["scroller","list","waterfall","recycle-list"],gestureEvents:["panstart","panmove","panend","swipe","longpress","tap"],weexBuiltInComponents:["div","container","text","image","gif","img","cell","a"],bindingStyleNamesForPx2Rem:Object.keys(Bi.reduce(function(e,t){return e[t]=1,e[function(e){return Ii(e.replace(Wi,function(e){return"-"+e.toLowerCase()+"-"}))}(t)]=1,e},{}))};if(!window._rmInjected){window._rmInjected=!0;var Di=HTMLElement.prototype.removeChild;HTMLElement.prototype.removeChild=function(e){e._visible&&N(e,"disappear",null),e._offsetVisible&&N(e,"offsetDisappear",null),Di.apply(this,arguments)}}var Vi,Yi="data-img-src",Ui="placeholder",qi={},Ki=1,Xi=Hi.bindingStyleNamesForPx2Rem,Gi=null,Qi=Object.freeze({extend:h,extendTruthy:f,extendKeys:function(e,t,n){return void 0===t&&(t={}),(n||[]).forEach(function(n){t&&(e[n]=t[n])}),e},extractKeys:function(e,t,n){return void 0===t&&(t={}),t?((n||[]).forEach(function(n){t&&(e[n]=t[n]),t&&delete t[n]}),e):e},bind:function(e,t){return function(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}},debounce:p,depress:function(e,t){function n(){i=null}var i;return function(){i||e.apply(),clearTimeout(i),i=setTimeout(n,t)}},throttle:m,loopArray:function(e,t,n){if(l(e)){var i="l"===(n+"").toLowerCase(),r=e.length;if((t%=r)<0&&(t=-t,i=!i),0===t)return e;var o,a;return i?(o=e.slice(0,t),a=e.slice(t)):(o=e.slice(0,r-t),a=e.slice(r-t)),a.concat(o)}},cached:g,camelize:Ti,camelizeKeys:function(e){var t={};for(var n in e)t[Ti(n)]=e[n];return t},capitalize:ki,hyphenate:Ii,hyphenateKeys:function(e){var t={};for(var n in e)t[Ii(n)]=e[n];return t},hyphenateStyleKeys:w,camelToKebab:function(e){return e?e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}):""},appendCss:v,nextFrame:function(e){(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)})(e)},toCSSText:function(e){if(e){var t=w(e),n="";for(var i in t)n+=i+":"+t[i]+";";return n}},supportsPassive:function(){return Fi},createEvent:_,createBubblesEvent:function(e,t,n){var i=new Event(t,{bubbles:!0});if(x(i,n),-1!==window.navigator.userAgent.toLowerCase().indexOf("phantomjs"))return i;try{Object.defineProperty(i,"target",{enumerable:!0,value:e})}catch(t){return x({},i,{target:e})}return i},createCustomEvent:function(e,t,n){var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!1,!0,{}),x(i,n);try{Object.defineProperty(i,"target",{enumerable:!0,value:e||null})}catch(t){return x({},i,{target:e||null})}return i},dispatchNativeEvent:S,mapFormEvents:function(e){var t={};return["input","change","focus","blur","return"].forEach(function(n){t[n]=function(t){e.$el&&(t.value=e.$el.value,"input"===n&&e.$emit(n,t))}}),t},contains:function(e,t,n){return!(!n||e!==t)||(e.contains?e.contains(t)&&e!==t:!0&e.compareDocumentPosition(t))},insideA:C,getParentScroller:T,getParentScrollerElement:k,hasIntersection:E,isElementVisible:I,getEventHandlers:function(e){for(var t=e.$vnode,n={},i=[];t;)i.push(t),t=t.parent;return i.forEach(function(e){var t=e.componentOptions&&e.componentOptions.listeners,i=e.data&&e.data.on;h(n,t,i)}),n},watchAppear:A,detectAppear:L,applySrc:P,fireLazyload:z,getThrottleLazyload:R,supportHairlines:M,supportSticky:function(){if(null!==Gi)return Gi;var e=window.document.createElement("div").style;return e.cssText="position:-webkit-sticky;position:sticky;",Gi=-1!==e.position.indexOf("sticky")},getTransformObj:F,getTransformStr:B,addTransform:function(e,t,n){if(t){var i={};n||(i=F(e));for(var r in t){var o=t[r];o&&(i[r]=o)}var a=B(i);e.style.webkitTransform=a,e.style.mozTransform=a,e.style.transform=a}},copyTransform:function(e,t,n){var i;if(n){var r=F(e);if(!r[n])return;var o=F(t);o[n]=r[n],i=B(o)}else i=e.style.webkitTransform||e.style.mozTransform||e.style.transform;t.style.webkitTransform=i,t.style.mozTransform=i,t.style.transform=i},getRgb:function(e){var t=document.createElement("span"),n=document.body;t.style.cssText="color: "+e+"; width: 0px; height: 0px;",n&&n.appendChild(t),e=window.getComputedStyle(t).color+"",n&&n.removeChild(t);var i;return(i=e.match(/#([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})/))?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:(i=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/))?{r:pa