New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

miniapp-framework

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miniapp-framework - npm Package Compare versions

Comparing version 0.1.94 to 0.1.95

2

dist/native/renderer.js

@@ -1,1 +0,1 @@

/*! miniapp framework version: 0.1.94 bulid time: Mon Apr 29 2019 11:33:36 GMT+0800 (CST) */!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=134)}({0:function(e,t,n){"use strict";n.d(t,"g",function(){return a}),n.d(t,"f",function(){return c}),n.d(t,"e",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return f}),n.d(t,"a",function(){return d}),n.d(t,"i",function(){return h}),n.d(t,"h",function(){return m}),n.d(t,"j",function(){return v});var o=n(1),r={},i="private.addProperties",a="start",c="rendererReady",s="pagePrepared",u="firstRendererToWorker",l="firstWorkerToRenderer",f="DOMMutationStart",d="DOMMutationEnd",p="undefined"!=typeof performance?performance.now.bind(performance):Date.now.bind(Date);function h(e,t){r[e+"@"+t]=p()}function m(e,t){return r[e+"@"+t]||0}function v(e,t,n){Object(o.a)("Renderer Performance",n),e.$call(i,{pageId:t,measureValues:n})}},1:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return c}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return u});var o=n(4),r={all:-1,debug:0,log:1,info:1,warn:2,error:3,none:4},i="error";try{Object(o.a)().__set_log_level__=function(e){i=e}}catch(e){s("mount __set_log_level__ at global object err",e)}function a(){if(r[i]<=r.log){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[Log]"].concat(n))}}function c(){if(r[i]<=r.debug){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[Debug]"].concat(n))}}function s(){if(r[i]<=r.warn){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[WARN]"].concat(n))}}function u(){if(r[i]<=r.error){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[ERROR]"].concat(n))}}},10:function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function retrocycle($){var px=/^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\(?:[\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*")\])*$/;return function rez(value){value&&"object"===_typeof(value)&&(Array.isArray(value)?value.forEach(function(element,i){if("object"===_typeof(element)&&null!==element){var path=element.$ref;"string"==typeof path&&px.test(path)?value[i]=eval(path):rez(element)}}):Object.keys(value).forEach(function(name){var item=value[name];if("object"===_typeof(item)&&null!==item){var path=item.$ref;"string"==typeof path&&px.test(path)?value[name]=eval(path):rez(item)}}))}($),$}__webpack_require__.d(__webpack_exports__,"a",function(){return retrocycle})},11:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o={taobao:{"--color-primary":"#ff5500","--color-warn":"#fb9025","--button-primary-background-color-from":"#ff8800","--button-primary-background-color-to":"#ff5500","--button-primary-text-color":"#ffffff","--button-warn-background-color-from":"#fbca2f","--button-warn-background-color-to":"#fb9025","--button-warn-text-color":"#ffffff","--button-default-background-color-from":"#ffffff","--button-default-background-color-to":"#ffffff","--button-default-text-color":"#ff5500","--button-border-radius":"40px"},alipay:{"--color-primary":"#2E7ADC","--color-warn":"red","--button-primary-background-color-from":"#2E7ADC","--button-primary-background-color-to":"#2E7ADC","--button-primary-text-color":"#ffffff","--button-warn-background-color-from":"red","--button-warn-background-color-to":"red","--button-warn-text-color":"#ffffff","--button-default-background-color-from":"#ffffff","--button-default-background-color-to":"#ffffff","--button-default-text-color":"#2E7ADC","--button-border-radius":"10px"}};function r(e,t){var n=e&&e.themeName,r=o[n];r||(r=o[n="taobao"]),e&&e.customVars&&(r=Object.assign({},r,e.customVars));var i=t.document.documentElement;t.CSS&&t.CSS.supports&&t.CSS.supports("--a",0)?function(e,t){Object.keys(e||{}).forEach(function(n){var o=e[n];t.style.setProperty(n,o)})}(r,i):new t.MutationObserver(function(e){var t=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var c=i.value;if("childList"===c.type){var s=c.addedNodes[0];if(s&&s.shadowRoot){var u=s.shadowRoot.querySelector("style");u&&function(){var e=u.textContent;Object.keys(r).forEach(function(t){var n=r[t];e=e.replace(new RegExp("var\\(".concat(t,"[^\\)]*\\)"),"g"),n)}),u.textContent=e}()}}}}catch(e){n=!0,o=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw o}}}).observe(t.document.body,{childList:!0,subtree:!0})}},12:function(e,t,n){"use strict";var o=function(){return Date.now()},r="Expected a function",i=(Math.max,Math.min);var a=function(e,t){var n,a,c,s,u,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(r);function m(t){var o=n,r=a;return n=a=void 0,f=t,s=e.apply(r,o)}function v(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-f>=c}function g(){var e=o();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-l);return p?i(n,c-(e-f)):n}(e))}function y(e){return u=void 0,h&&n?m(e):(n=a=void 0,s)}function b(){var e=o(),r=v(e);if(n=arguments,a=this,l=e,r){if(void 0===u)return function(e){return f=e,u=setTimeout(g,t),d?m(e):s}(l);if(p)return u=setTimeout(g,t),m(l)}return void 0===u&&(u=setTimeout(g,t)),s}return t=Number(t)||0,b.cancel=function(){void 0!==u&&clearTimeout(u),f=0,n=l=a=u=void 0},b.flush=function(){return void 0===u?s:y(o())},b};n.d(t,"a",function(){return l});var c=50,s="reachbottom",u=100;function l(e){e.addEventListener("scroll",function(e){var t=e.document,n=a(function(){t.body.dispatchEvent(new CustomEvent(s))},u);return function(o){var r=e.innerHeight,i=e.pageYOffset,a=t.body.scrollHeight;i>0&&a-(r+i)<=c&&n()}}(e))}},13:function(e,t,n){"use strict";n(19);var o,r={root:null,rootMargin:"0px",threshold:0};function i(e){e.forEach(function(e){var t=e.target;e.boundingClientRect;e.intersectionRatio>0?(t.dataset.appeared=!0,t.dispatchEvent(a("appear"))):t.dataset.appeared&&(t.dataset.appeared=!1,t.dispatchEvent(a("disappear")))})}function a(e){return new CustomEvent(e,{bubbles:!1,cancelable:!0})}var c=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=arguments.length>1?arguments[1]:void 0,t=e.prototype.addEventListener;e.prototype.addEventListener=function(e,n,r,i){var a,c=e&&String(e).toLowerCase();("appear"===c||"disappear"===c)&&((a=this)===document&&(a=document.documentElement),o.observe(a)),t.call(this,e,n,r)}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;o=new IntersectionObserver(i,r),c([],e.Node)}},134:function(e,t,n){"use strict";n.r(t);var o=n(41),r=n.n(o),i=n(9),a=n.n(i),c="undefined"==typeof __sfc__?null:void 0!==__sfc__.getRawJSON?JSON.parse(__sfc__.getRawJSON()):__sfc__;function s(){return c?c.options.clientId:u("clientId")}function u(e){var t=location.href,n=new RegExp("".concat(e,"=([^&]+)")).exec(t);return n?decodeURIComponent(n[1]):"$unknown"}var l,f=n(42),d=n.n(f),p=n(0),h=document.documentElement.style,m="undefined"!=typeof navigator?navigator.userAgent:"unknow",v=/Android/.test(m),g="ontouchstart"in window||"onmsgesturechange"in window,y=s();function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement.clientWidth;h.fontSize=e/750*100+"px"}function w(e){clearTimeout(l);var t=e&&e.param&&e.param.width?e.param.width:document.documentElement.clientWidth;l=setTimeout(function(){return b(t)},66)}var _=n(1),E=n(6),S=n.n(E),O=n(10),I="https://g.alicdn.com/miniapp/miniapp-console/rax-console.js?r="+Date.now(),T=null;var M=[],k=["info","log","error","debug","warn"];function x(e){var t=(e||{}).payload,n=void 0===t?{}:t;"switch"!==n.type?T&&T.instance?-1!==k.indexOf(n.type)&&T&&T.instance&&T.instance.addMessage({source:"console-api",type:"log",level:n.type,parameters:n.args.map(function(e){return Object(O.a)(e)})}):M.push(e):!0===n.value?function(){if(T)return S.a.resolve(T);var e=document.createElement("script");return new S.a(function(t,n){e.onload=function(){T={load:window.RaxConsole.default,unload:window.RaxConsole.unload},t(T)},e.charset="utf-8",e.onerror=n,e.src=I,document.head.appendChild(e)})}().then(function(e){e.instance=e.load(),M.forEach(x),M=[]}):!1===n.value&&(T.unload(),T.instance=null)}var C=1,R=2,A=0;var j=n(13),$=n(11),N=n(12);Object(j.a)(window),Object(N.a)(window);var L,P=r()({}),W=c?c.options.pageName:u("pageName"),B=s(),D=("?"===(L=location.search||"")[0]&&(L=L.slice(1)),a.a.parse(L)),V={inited:!1};P.$on("[[VideoContextAction]]",function(e){var t=e.data,n=t.action,o=t.id,r=t.args,i=document.getElementById(o);null!==i&&i[n].apply(i,r)}),P.$on("[[ModuleAPIEvent]]",function(e){var t=e.data,n=t.type,o=t.data;switch(n){case"pageScrollTo":var r=o.behavior,i=o.scrollTop;window.scrollTo({top:i||0,behavior:r||"auto"})}}),P.$on("r#",function(e){Object(p.i)(p.e,B),V.inited||(!function(e){g&&(document.documentElement.style.cursor="pointer"),b(),window.addEventListener("resize",w),v&&document.addEventListener("documentWidth",w);var t={postMessage:function(t){e.$emit("r2w",{data:t},"AppWorker"),Object(p.h)(p.c,y)||Object(p.i)(p.c,y)}};e.$on("w2r",function(n){"function"==typeof t.onmessage&&(Object(p.h)(p.b,y)||Object(p.i)(p.b,y),t.onmessage(n.data),Object(p.h)(p.a,y)||Object(p.i)(p.a,y)),Object(p.h)(p.d,y)||(Object(p.i)(p.d,y),setTimeout(function(){Object(p.j)(e,y,{"r:preparePage":Object(p.h)(p.e,y)-Object(p.h)(p.f,y),"r:prepareDOM":Object(p.h)(p.c,y)-Object(p.h)(p.e,y),"r:renderPage":Object(p.h)(p.d,y)-Object(p.h)(p.c,y),"r:firstDOMRender":Object(p.h)(p.a,y)-Object(p.h)(p.b,y)})},16))}),d()({worker:t,tagNamePrefix:"a-"})}(P),V.inited=!0)}),P.$on("console",function(e){x(e.data)}),P.$call("miniApp.getConfig",{},function(e){var t=e?e.themeConfig:{};Object($.a)(t,window)},function(e){Object(_.b)("miniApp.getConfig on err",e)}),window.__renderer_to_worker__=function(e){P.$emit(e.type,{payload:e,pageName:W},"AppWorker")},c.options&&c.options.lazyload||(Object(p.i)(p.f,B),P.$emit("r$",{clientId:B,pageName:W,pageQuery:D},"AppWorker")),D.remoteInspectUrl&&function(e){if(!(A>=C)){A=C;var t=document.createElement("script");t.async=!0,t.src=e,t.onload=function(){A=R},document.body.appendChild(t)}}(D.remoteInspectUrl)},15:function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var s,u=[],l=!1,f=-1;function d(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=c(d);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},17:function(e,t,n){"use strict";function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var c=/\+/g;e=e.split(t);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var l=0;l<u;++l){var f,d,p,h,m=e[l].replace(c,"%20"),v=m.indexOf(n);v>=0?(f=m.substr(0,v),d=m.substr(v+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),o(a,p)?r(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},18:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){switch(o(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===o(e)?a(c(e),function(o){var c=encodeURIComponent(r(o))+n;return i(e[o])?a(e[o],function(e){return c+encodeURIComponent(r(e))}).join(t):c+encodeURIComponent(r(e[o]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var c=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},19:function(e,t){!function(e,t){"use strict";if("IntersectionObserver"in e&&"IntersectionObserverEntry"in e&&"intersectionRatio"in e.IntersectionObserverEntry.prototype)"isIntersecting"in e.IntersectionObserverEntry.prototype||Object.defineProperty(e.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(e,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(e,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),n=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(r){var i=r.element,a=c(i),s=this._rootContainsTarget(i),u=r.entry,l=t&&s&&this._computeTargetAndRootIntersection(i,n),f=r.entry=new o({time:e.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n,intersectionRect:l});u?t&&s?this._hasCrossedThreshold(u,f)&&this._queuedEntries.push(f):u&&u.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=e.getComputedStyle(n).display){for(var r,i,a,s,l,f,d,p,h=c(n),m=u(n),v=!1;!v;){var g=null,y=1==m.nodeType?e.getComputedStyle(m):{};if("none"==y.display)return;if(m==this.root||m==t?(v=!0,g=o):m!=t.body&&m!=t.documentElement&&"visible"!=y.overflow&&(g=c(m)),g&&(r=g,i=h,a=void 0,s=void 0,l=void 0,f=void 0,d=void 0,p=void 0,a=Math.max(r.top,i.top),s=Math.min(r.bottom,i.bottom),l=Math.max(r.left,i.left),f=Math.min(r.right,i.right),p=s-a,!(h=(d=f-l)>=0&&p>=0&&{top:a,bottom:s,left:l,right:f,width:d,height:p})))break;m=u(m)}return h}},r.prototype._getRootRect=function(){var e;if(this.root)e=c(this.root);else{var n=t.documentElement,o=t.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var r=0;r<this.thresholds.length;r++){var i=this.thresholds[r];if(i==n||i==o||i<n!=i<o)return!0}},r.prototype._rootIsInDom=function(){return!this.root||s(t,this.root)},r.prototype._rootContainsTarget=function(e){return s(this.root||t,e)},r.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},r.prototype._unregisterInstance=function(){var e=n.indexOf(this);-1!=e&&n.splice(e,1)},e.IntersectionObserver=r,e.IntersectionObserverEntry=o}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function r(e,t){var n,o,r,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,r=null,function(){r||(r=setTimeout(function(){n(),r=null},o))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}function i(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function a(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function s(e,t){for(var n=t;n;){if(n==e)return!0;n=u(n)}return!1}function u(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t}}(window,document)},4:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});var o="undefined"!=typeof navigator?navigator.userAgent:"unknow";/(iPhone|iPad|iPod)/.test(o),/Android/.test(o),/AliTB/.test(o);function r(){return void 0!==e?e:"undefined"!=typeof self?self:new Function("return this")()}}).call(this,n(5))},41:function(e,t,n){(function(o,r){var i,a,c;function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}console.log("Start windmill renderer.min (0.5.1) framework. Build at 2018-12-05 14:27"),c=function(){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{writable:!0,enumerable:!1,configurable:!0,value:function(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),r=1;r<arguments.length;r++){var i=n[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])}return o}});var e,t=(e=1e5,function(){var t=String(e);return e+=1,t});function n(){return void 0!==o?o:"undefined"!=typeof self?self:new Function("return this")()}function i(e,t,o){void 0===o&&(o=!0);var r=n();try{Object.defineProperty(r,e,{value:t,configurable:!0,enumerable:!0,writable:!o})}catch(o){r[e]=t}}function a(e){return Object.prototype.toString.call(e).slice(8,-1)}function c(e){return"Object"===a(e)}function u(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t]}var l=function(){},f={},d=["debug","info","log","warn","error"];function p(e){if("object"==(void 0===r?"undefined":s(r))&&r&&r.env,!0===f.debugMode||"true"===f.debugMode)return!0;var t=f.logLevel||"error";return d.indexOf(e)>=d.indexOf(t)}function h(e){p("debug")&&l("debug",e)}function m(e){p("warn")&&l("warn",e)}function v(e){p("error")&&l("error",e)}function g(e){v(e)}l=function(e,t){var n,o="["+((n=e).charAt(0).toUpperCase()+n.slice(1))+"][wml-r] "+t;return f.isWeex&&-1<["Android","iOS"].indexOf(f.platform)?console.log(o):console.error(o)};var y={network:["request","uploadFile","downloadFile"],miniApp:["setAppShareInfo","hideLauncherLoading","setWebViewTop","setWebViewBackgroundImage","getConfig"],mtop:["request"],storage:["length","setItem","getItem","removeItem","clearStorage","getStorageInfo",{name:"getItemSync",sync:!0},{name:"setItemSync",sync:!0},{name:"removeItemSync",sync:!0},{name:"clearStorageSync",sync:!0},{name:"getStorageInfoSync",sync:!0}],memoryStorage:["setItem","getItem"],tabBar:["show","hide","setTabBarItem","setTabBarStyle","setTabBarBadge","removeTabBarBadge","showTabBarRedDot","hideTabBarRedDot"],navigator:["push","pop","openMessagePage","reloadPage","getBackStack","popToHome","navigateTo","redirectTo","switchTab","navigateBackMiniProgram","navigateToMiniProgram"],user:["login","logout","info"],modal:["alert","confirm","toast","hideToast","showLoading","hideLoading","prompt"],navigatorBar:["show","hide","setTitle","setRightItem","setStyle","setDrawer","setActionSheet","hasIndexBadge","scaleIndexBadge","resetIndexBadge","getHeight","openDrawer","isDrawerOpened","closeDrawer","setLeftItem","showMenu","hideMenu","getStatusBarHeight","setNavigationBar","hideNavigationBarLoading","showNavigationBarLoading"],clipboard:["writeText","readText"],picker:["pick","pickDate","pickTime","chooseCity"],webSocket:["webSocket","send","close","onOpen","onMessage","onClose","onError"],calendar:["addEvent","checkEvent","removeEvent"],connection:["getType","getDownlinkMax","onChange"],screen:["setAlwaysOn","setBrightness","getScreenBrightness"],broadcast:["createChannel","postMessage","onMessage","close"],share:["doShare"],cookie:["read","write","getAllObjects"],audio:["load","play","pause","stop","setVolume","canPlayType"],wopc:["authLogin","checkAuthSession","doAuth","getSessionKey","setSessionKey"],WopcMtopPlugin:["request"],device:["onShake","vibrate","vibrateShort","onUserCaptureScreen","offUserCaptureScreen"],keyboard:["hideKeyboard"],contact:["choosePhoneContact"],location:["getLocation"],alipay:["tradePay"],userTrack:["commit","commitut","commitEvent","customAdvance","pageAppear","pageDisappear","skipPage","updatePageUtparam","updateNextPageUtparam"],"nuvajs-exec":["exec"],aluWVJSBridge:["userIsLogin","refreshAlipayCookie"],TBDeviceInfo:["getUtdid"],actionSheet:["showActionSheet"],image:["chooseImage","previewImage","compressImage","getImageInfo","saveImage"],media:["startVoice","stopVoice"],audioRecord:["startRecord","stopRecord","cancelRecord"],audioPlayer:["playVoice","pauseVoice","stopVoice"],file:["saveFile","getFileInfo","getFileList","removeFile"],video:["chooseVideo","getVideoInfo","saveVideoToPhotosAlbum"],phone:["makePhoneCall"],compass:["startCompass","stopCompass","onCompassChange"],tbsecurity:["secureToken"],sendMtop:["request"],ZCache:["prefetch","fetch"],WVZCache:["prefetch","fetch"],sku:["show","hide"],chat:["open"],ucc:["uccBind","uccTrustLogin","uccUnbind"],address:["choose"]},b="__windmill_post_message__",w="__windmill_on_message__",_=function(){};_.prototype.$on=function(e,t){return void 0===t&&(t=u),h('$on "'+e+'"'),!e&&g("invalid event name "+e+" for windmill.$on."),t===u&&g("bind event "+e+" with no callback through windmill.$on."),this.bridge.onReceiveMessage({data:{type:e},origin:this.label,type:"Event"},t)},_.prototype.$once=function(e,t){return void 0===t&&(t=u),h('$once "'+e+'"'),!e&&g("invalid event name "+e+" for windmill.$once."),t===u&&g("bind event "+e+" with no callback through windmill.$once."),this.bridge.onReceiveMessage({data:{type:e,once:!0},origin:this.label,type:"Event"},t)},_.prototype.$off=function(e,t){return h('$off "'+e+'"'),!e&&g("invalid event name "+e+" for windmill.$off."),this.bridge.unbindEventListener("Event."+e,t)},_.prototype.$cycle=function(e,t){return void 0===t&&(t=u),h('$cycle "'+e+'"'),e&&/^app:|^page(:|@)/.test(e)||g("invalid lifecycle name "+e+" for windmill.$cycle."),t===u&&g("hook lifecycle "+e+" with no callback function through windmill.$cycle."),"AppWorker"!==this.label&&/^app:/.test(e)&&g("Shouldn't bind lifecycle hook for app in a page client."),this.bridge.onReceiveMessage({type:"Lifecycle",origin:this.label,data:{type:e}},t)},_.prototype.$decycle=function(e,t){return h('$decycle "'+e+'"'),e&&/^app:|^page(:|@)/.test(e)||g("invalid lifecycle name "+e+" for windmill.$decycle."),this.bridge.unbindEventListener("Lifecycle."+e,t)},_.prototype.$emit=function(e,t,n){return void 0===t&&(t={}),h('$emit("'+e+'")'),!e&&g("invalid event name "+e+" for windmill.$emit."),n&&n!==this.label?this.bridge.postMessage({data:{type:e,data:t},origin:this.label,target:n,type:"Event"}):this.bridge.emitEvent(""+e,t)},_.prototype.$callAsync=function(e,t){var n=this;return void 0===t&&(t={}),h('$callAsync "'+e+'"'),e||g("invalid method name "+e+" for windmill.$callAsync."),new Promise(function(o,r){n.bridge.dispatchMessage({type:"ModuleCall",origin:n.label,target:"AppWorker",data:{method:e,params:t}},o,r,!1)})},_.prototype.$call=function(e,t,n,o){return void 0===t&&(t={}),void 0===n&&(n=u),void 0===o&&(o=u),h('$call "'+e+'", params: '+JSON.stringify(t)),e||g("invalid method name "+e+" for windmill.$call."),this.bridge.dispatchMessage({type:"ModuleCall",origin:this.label,target:"AppWorker",data:{method:e,params:t}},n,o,!0)},_.prototype.$registerModules=function(e){!function(e,t){if(void 0===t&&(t=!1),c(e)){var n=function(n){var o=e[n];y[n]?t||m('The "'+n+'" module has already been registered.It would be overridden.'):y[n]=[];var r=y[n];Array.isArray(o)?o.forEach(function(e){if(c(e))r.push(e);else if("string"==typeof e){var o=e;-1===r.indexOf(o)?r.push(o):t||m('The "'+o+'" of the "'+n+'" module has already been registered.')}}):v('Invalid parameter type! The method list of the "'+n+'" module should be an Array.')};for(var o in e)n(o)}else v("Invalid parameter type! The module definition is not a plain object.")}(e,!0)},_.prototype.$getAvailableModules=function(){return function(e){var t={};try{t=JSON.parse(JSON.stringify(e))}catch(e){}return t}(y)};var E="[[EVENT_MAP]]";function S(e,t){var n=e[E];return Array.isArray(n[t])||(n[t]=[]),n[t]}var O=function(){h("Create new EventEmitter."),Object.defineProperty(this,E,{configurable:!1,enumerable:!1,writable:!1,value:{}})};O.prototype.on=function(e,t){return h('EventEmitter: on("'+e+'")'),S(this,e).push({listener:t,once:!1,callCount:0}),this},O.prototype.once=function(e,t){return h('EventEmitter: once("'+e+'")'),S(this,e).push({listener:t,once:!0,callCount:0}),this},O.prototype.off=function(e,t){h('EventEmitter: off("'+e+'"'+(t?", listener":"")+")");var n=this[E];if(t){var o=n[e];if(Array.isArray(o)){var r=o.findIndex(function(e){return e.listener===t});-1!==r&&o.splice(r,1)}}else delete n[e];return this};var I,T=3;function M(e){var t;try{t=JSON.stringify(e)}catch(n){t=e}g("failed to postMessage: "+t)}function k(e,t,n,o,r,i){var a=t+"."+n;return e.WindVane?e.WindVane.call(t,n,o,r,i):g("should have WindVane in global context"+(a?" to call "+a:"")+".")}var x=!(O.prototype.emit=function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];h('EventEmitter: emit("'+e+'", '+JSON.stringify(t)+")");var o=this[E],r=o[e];return Array.isArray(r)&&(o[e]=r.filter(function(n){try{n.listener.apply(null,t),n.callCount+=1}catch(t){throw v('Failed to emit the "'+e+'" event: '+t.toString()+"\nSource code: "+("function"==typeof(o=n.listener)?Function.prototype.toString.call(o):"")),t}var o;return!n.once})),this}),C=function(){this._messages=[]};C.prototype.postMessage=function(e){h("cache message in lazyMsgModule. "+JSON.stringify(e)),this._messages.push(e)},C.prototype.replaceWith=function(e){R=!1,this._messageModule=e,this._flush()},C.prototype._flush=function(){var e=this;this._messages.forEach(function(t){return e._messageModule.postMessage(t)})};var R,A,j=new C;function $(e,t){var r,a=e?(r=e).requireModule("@weex/windmill")||r.requireModule("windmill"):function(){var e=n();if("function"!=typeof e[b])return 0<T&&(T--,v("Can't find available \""+b+'" API in the context.')),!1;var t={};return t.postMessage=e[b],t.onmessage=function(e){h('Register the "'+w+'" API.'),i(w,e)},t}()||function(){if(!I){var e="undefined"!=typeof window?window:o;I={postMessage:function(t){return k(e,"Windmill","postMessage",t,function(){},M)},onmessage:function(t){if(!x)return x=!0,k(e,"Windmill","onMessage",{},t,M)}}}return I}();if(!a)return g("can't find message module ("+(e?"windmill module":"message module in webview")+")."),R=!0,j;if("function"==typeof t){h('Set the "onmessage" method to the bridge through callback.');try{a.onmessage(t)}catch(e){v('Failed to set the "onmessage" method to the bridge through callback.'),v(e.toString())}}return R&&j.replaceWith(a),a}function N(e){var t=e.match(/([^@]+)(@\S+)/);return t&&t[1]||e}var L=function(e,t){var n=this;void 0===t&&(t={}),h("Create a new RendererBridge."),A=t.isWeex,this._emitter=new O,h("Register onmessage api for "+(A?"Weex windmill module":"webview")+"."),A&&(this._weex=e),this._onMessage=function(e){if(h("Receive message from the worker. (message: "+JSON.stringify(e)+")"),!c(e)&&(v("The parameter of onmessage should be a plain object! Not "+a(e)),"string"==typeof e))try{e=JSON.parse(e)}catch(e){return void v("Failed to parse the message string. "+e.toString())}var t=e.type,o=e.data;void 0===o&&(o={});var r=e.origin,i=e.callbackId;switch(t){case"Callback":n._emitter.emit("callback@AppWorker:"+i,o);break;case"Event":var s=N(o.type);n._emitter.emit(t+"."+s,Object.assign({origin:r},o,{type:s}));break;case"Lifecycle":n._emitter.emit(t+"."+o.lifecycle,o.options);break;case"SetData":n._emitter.emit("Event.setdata",o);break;default:g('Unknown message type received from worker: "'+t+'"')}},$(e,this._onMessage)};L.prototype.dispatchMessage=function(e,t,n,o){h("Dispatch message to worker. (message: "+JSON.stringify(e)+")"),e.callbackId=this._genCallbackId(function(o){return o.status&&"SUCCESS"===o.status?t(o):(o.status,v("call API "+e.data.method+" from renderer failed: "+o.status+", "+o.error),n(o))},{keepAlive:o});try{e.keepAlive=!0,this.postMessage(e)}catch(o){n(o)}},L.prototype.postMessage=function(e){try{h("Call postMessage to worker. (message: "+JSON.stringify(e)+")"),$(this._weex,this._onMessage).postMessage(e)}catch(e){g(e.message||e.toString()||"postMessage failed.")}},L.prototype._genCallbackId=function(e,n){var o=n.keepAlive,r=n.callbackId||t();return this._emitter[o?"on":"once"]("callback@AppWorker:"+r,e),r},L.prototype.onReceiveMessage=function(e,t){var n=e.type,o=e.data;void 0===o&&(o={});var r=o.type;"Event"===n&&(r=N(r),o.type=r);var i=o.once?"once":"on";this._emitter[i](n+"."+r,t)},L.prototype.unbindEventListener=function(e,t){this._emitter.off(N(e),t)},L.prototype.emitEvent=function(e,t){void 0===t&&(t={});var n=N(e);this._emitter.emit("Event."+n,{type:n,data:t})};var P=function(e){function t(t,n){void 0===n&&(n={}),e.call(this),this._name=n.pageName||"",this.label=n.clientId||"",t&&c(t.config)&&(this._name=t.config.pageName||"",this.label=t.config.clientId||"",t.config.availableModules?(this.$registerModules(t.config.availableModules),this._gotAvailableModulesFromWeex=!0):m("No available modules in weex options.")),h("Create a new RendererRuntime. ("+this.label+", "+this._name+")"),this.bridge=new L(t,n),this._init()}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype._init=function(){var e=this;this.bridge.onReceiveMessage({origin:"AppWorker",target:this.label,type:"Event",data:{type:"registerModules"}},function(t){t&&"registerModules"===t.type&&(h("Register available modules in renderer. ("+Object.keys(t.data)+")"),e.$registerModules(t.data))})},t.prototype.ready=function(){this.bridge.dispatchMessage({origin:this.label,target:"AppWorker",type:"Event",data:{type:"[[RendererRuntimeReady]]",data:{label:this.label,handshake:!this._gotAvailableModulesFromWeex}}},u,u)},t.prototype.$getCurrentActivePageId=function(){return this.label},t}(_),W=["$on","$once","$off","$emit","$cycle","$decycle","$call","$callAsync","$navTo","$getAvailableModules","$getCurrentActivePageId"];return function(e,t){var n=!(!e||!e.requireModule);!function(e){if(!e||!e.platform)return console.error("set logger environment failed.");Object.assign(f,e)}({platform:n&&e.config.env.platform,debugMode:n&&e.config.env.debugMode,isWeex:n}),h("Setup Windmill renderer framework."),e&&!e.requireModule&&(t=e,e=void 0),t||(t={}),h("Instantiate renderer in "+(((t=Object.assign({},t)).isWeex=n)?"Weex container":"WindVane container")+".");var o,r,a,s,u,l=new P(e,t),d=(o=l,r={},W.forEach(function(e){"function"==typeof o[e]&&(r[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return o[e].apply(o,t)})}),r);return h("Prepare runtime APIs: "+JSON.stringify(W)),t.exposeModuleGetter&&i("__WINDMILL_MODULE_GETTER__",(a=function(){return d},s=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return(e=a()).$call.apply(e,t)},u=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return(e=a()).$callSync.apply(e,t)},function(e){if(!e)return h("Require a universal module proxy."),{call:s};var t=y[e];if(Array.isArray(t)){h('Require the "'+e+'" module.');var n={};return t.forEach(function(t){if("string"==typeof t)n[t]=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return s.apply(void 0,[e+"."+t].concat(n))};else if(c(t)&&t.name){var o=t.name;t.sync?n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return u.apply(void 0,[e+"."+o].concat(t))}:n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.apply(void 0,[e+"."+o].concat(t))}}}),n}m('Require unknown module "'+e+"\".It may not exist or haven't been registered.")})),l.ready(),d}},"object"==s(t)&&void 0!==e?e.exports=c():void 0===(a="function"==typeof(i=c)?i.call(t,n,t,e):i)||(e.exports=a)}).call(this,n(5),n(15))},42:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){r(this,"_map",new Map)}var t=e.prototype;return t._setMountNode=function(e){this.mountNode=e},t.get=function(e){return e?"BODY"===e.nodeName?this.mountNode:this._map.get(e.$$id):null},t.set=function(e,t){return t.$$id=e.$$id,this._map.set(e.$$id,t)},t.delete=function(e){return e?this._map.delete(e.$$id):null},e}(),a=!1;try{addEventListener("test",null,{get passive(){a=!0}})}catch(e){}var c=!a||{capture:!0,passive:!0},s={load:!0,error:!0,unload:!0,abort:!0,loadstart:!0,progress:!0,loadend:!0,blur:!0,focus:!0,scroll:!0,appear:!0,disappear:!0,invalid:!0},u=["touchstart","touchmove","touchend","touchcancel"],l=function(){function e(e,t){var n=this;void 0===t&&(t={}),r(this,"eventProxyHandler",function(e){if("click"===e.type&&n.touch)return!1;var t={type:e.type};for(var r in e.target&&(t.target=e.target.$$id),"scroll"===e.type&&e.target===document&&(t.target=document.body.$$id,t.scrollTop=document.documentElement.scrollTop||document.body.scrollTop),e.detail&&(t.detail=e.detail),e){var i=e[r];"object"==o(i)||"function"==typeof i||r===r.toUpperCase()||t.hasOwnProperty(r)||(t[r]=i)}if(-1!=u.indexOf(e.type)&&(t.touches=d(e.touches),t.changedTouches=d(e.changedTouches)),n.postMessage({type:"event",event:t}),"touchstart"===e.type)n.touch=f(e);else if("touchend"===e.type&&n.touch){var a=f(e);a&&Math.sqrt(Math.pow(a.pageX-n.touch.pageX,2)+Math.pow(a.pageY-n.touch.pageY,2))<10&&(t.type="click",n.postMessage({type:"event",event:t}))}}),this.postMessage=e,this.registeredEventCounts={},this.mountNode=t.mountNode||document,this.touch=null}var t=e.prototype;return t.addEvent=function(e,t){s[t]?this.addNoBubblesEventListener(e,t):this.registeredEventCounts[t]?this.registeredEventCounts[t]++:(this.registeredEventCounts[t]=1,this.mountNode.addEventListener(t,this.eventProxyHandler,c))},t.removeEvent=function(e,t){s[t]?this.removeNoBubblesEventListener(e,t):(this.registeredEventCounts[t]--,0===this.registeredEventCounts[t]&&this.mountNode.removeEventListener(t,this.eventProxyHandler,c))},t.addNoBubblesEventListener=function(e,t){var n=this;function o(o){var r={$$id:e.$$id};n.postMessage({type:"event",event:{type:t,target:r,currentTarget:r,detail:o.detail}})}e["__$"+t+"_listener__"]=o,e.addEventListener(t,o)},t.removeNoBubblesEventListener=function(e,t){var n=e["__$"+t+"_listener__"];n&&(e.removeEventListener(t,n),e["__$"+t+"_listener__"]=null)},e}();function f(e){var t=e.changedTouches&&e.changedTouches[0]||e.touches&&e.touches[0]||e;return t&&{pageX:t.pageX,pageY:t.pageY}}function d(e){for(var t=[],n=0,o=e.length;n<o;n++){var r=e[n];t.push({clientX:r.clientX,clientY:r.clientY,pageX:r.pageX,pageY:r.pageY,identifier:r.identifier,$$id:r.target.$$id})}return t}var p="a-",h={style:!0};function m(e){var t=(e+"").toLowerCase();return function(e){return h.hasOwnProperty(e)}(t)?t:p+t}var v={flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0,lineClamp:!0,textSizeAdjust:!0,textDecorationLine:!0,textDecorationColor:!0,textDecorationStyle:!0,textDecorationSkip:!0,writingMode:!0,animatin:!0,animationName:!0,animationDuration:!0,animationTimingFunction:!0,animationDelay:!0,animationIterationCount:!0,animationDirection:!0,animationFillMode:!0,animationPlayState:!0,transform:!0,transformOrigin:!0,transformStyle:!0,perspective:!0,perspectiveOrigin:!0,backfaceVisibility:!0,appearance:!0,userSelect:!0,columns:!0,columnWidth:!0,columnCount:!0,columnGap:!0,columnRule:!0,columnRuleWidth:!0,columnRuleStyle:!0,columnRuleColor:!0,columnSpan:!0,columnFill:!0,columnBreakBefore:!0,columnBreakAfter:!0,columnBreakInside:!0},g={position:"sticky",display:"flex"},y={shouldPrefix:function(e){return v[e]||g[e]}};function b(e,t){var n={};for(var o in t){var r=t[o];y.shouldPrefix(o)?y[o](r,n):n[o]=r}for(var i in n){var a=n[i];if(Array.isArray(a))for(var c=0;c<a.length;c++)e.style[i]=a[c];else e.style[i]=a}}Object.keys(v).forEach(function(e){var t="webkit"+e[0].toUpperCase()+e.slice(1);y[e]=function(n,o){return void 0===o&&(o={}),o[t]=n,o[e]=n,o}}),Object.keys(g).forEach(function(e){var t=g[e];y[e]=function(n,o){return void 0===o&&(o={}),o[e]=n===t?["-webkit-"+t,t]:n,o}});var w=/-[a-z]/g,_={};var E={};var S="style",O={slot:!0};function I(e,t,n){(function(e){return O.hasOwnProperty(e)})(t)||(t!==S?"object"==o(n)||"boolean"==typeof n?e[function(e){return _[e]||(_[e]=e.replace(w,function(e){return e.slice(1).toUpperCase()}))}(t)]=n:(t=function(e){if(E[e])return E[e];for(var t="",n=0,o=e.length;n<o;n++)/[a-z]/.test(e[n])?t+=e[n]:/[A-Z]/.test(e[n])?t+="-"+e[n].toLowerCase():"-"===e[n]&&(t+="-");return E[e]=t}(t),null==n?e.removeAttribute(t):e.setAttribute(t,n)):b(e,n))}var T="textContent"in document?"textContent":"nodeValue",M=function(){function e(e,t){this.eventHandler=new l(e,{mountNode:t}),this.mountNode=t||document.body,this.sharedNodeMap=new i,this.sharedNodeMap._setMountNode(this.mountNode)}var t=e.prototype;return t.apply=function(e){for(var t=e.mutations,n=0;n<t.length;n++){var o=t[n];this[o.type](o)}},t.childList=function(e){var t=e.removedNodes,n=e.addedNodes,o=e.nextSibling,r=this.sharedNodeMap,i=e.target;i&&"BODY"===i.nodeName&&(this.mountNode.$$id=i.$$id);var a=r.get(i);if(t)for(var c=t.length;c--;){var s=r.get(t[c]);a&&"STYLE"!==a.nodeName&&s&&"STYLE"!==s.nodeName&&(r.delete(s),a.removeChild(s))}if(n)for(var u=0;u<n.length;u++){var l=r.get(n[u]);if(l||(l=this.createNode(n[u])),a){var f=o&&r.get(o)||null;a.insertBefore(l,f)}}},t.createNode=function(e){var t=function(e){var t,n;return 3===e.nodeType?t=document.createTextNode(e.data):1===e.nodeType&&(n=m(e.nodeName))?t=document.createElement(n):8===e.nodeType&&(t=document.createComment(e.data)),t}(e);if(1===e.nodeType&&m(e.nodeName)){if(e.className&&(t.className=e.className),e.style&&b(t,e.style),e.attributes)for(var n=0;n<e.attributes.length;n++){var o=e.attributes[n];I(t,o.name,o.value)}if(e.childNodes)for(var r=0;r<e.childNodes.length;r++)t.appendChild(this.createNode(e.childNodes[r]));if(e.events)for(var i=0;i<e.events.length;i++)this.eventHandler.addEvent(t,e.events[i])}return this.sharedNodeMap.set(e,t),t},t.attributes=function(e){var t=e.attributeName,n=e.newValue,o=e.style,r=this.sharedNodeMap.get(e.target);r&&(o&&I(r,"style",o),t&&I(r,t,n))},t.characterData=function(e){var t=e.newValue;this.sharedNodeMap.get(e.target)[T]=t},t.addEvent=function(e){var t=e.eventName,n=this.sharedNodeMap.get(e.target);n&&this.eventHandler.addEvent(n,t)},t.removeEvent=function(e){var t=e.eventName,n=this.sharedNodeMap.get(e.target);n&&this.eventHandler.removeEvent(n,t)},t.canvasRenderingContext2D=function(e){var t=e.method,n=e.args,o=e.properties,r=this.sharedNodeMap.get(e.target);if(r){var i=r.getContext("2d");if(o)for(var a in o)o.hasOwnProperty(a)&&(i[a]=o[a]);t&&i[t].apply(i,n)}},e}(),k=function(){function e(e){this.sender=e}var t=e.prototype;return t.apply=function(e){var t=e.data;this[t.type](t)},t.returnSuccess=function(e,t){if("object"==o(t))try{t=JSON.parse(JSON.stringify(t))}catch(e){t=""+t}"function"==typeof t&&(t=""+t),this.send({type:"success",id:e,success:t})},t.returnError=function(e,t){this.send({type:"error",id:e,error:{name:t.name,message:t.message}})},t.send=function(e){this.sender({type:"return",return:e})},t.eval=function(e){var t=e.id,n=e.code;try{this.returnSuccess(t,window.eval(n))}catch(e){this.returnError(t,e)}},e}(),x=function(){function e(e){this.sender=e}return e.prototype.apply=function(e){var t=e.data;"call"===t.type&&"replace"===t.prop&&location.replace(t.args[0])},e}();t.default=function(e){var t=e.worker,n=e.mountNode,o=t.postMessage.bind(t),r={MutationRecord:new M(o,n),EvaluationRecord:new k(o),Location:new x(o)};t.onmessage=function(e){var t=e.data,n=t.type;r[n]?r[n].apply(t):console.error("Can not handle with "+n,t)},t.postMessage({type:"init",url:location.href,width:"undefined"!=typeof DEVICE_WIDTH?DEVICE_WIDTH:document.documentElement.clientWidth})}},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},6:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}function i(){}var a="function"==typeof setImmediate&&setImmediate||function(e){"function"==typeof setTimeout?setTimeout(e,0):e()},c=function(e){"undefined"!=typeof console&&console&&console.log("Possible Unhandled Promise Rejection:",e)};function s(e){if("object"!==r(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise resolver is not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void f(t.promise,e)}l(t.promise,o)}else(1===e._state?l:f)(t.promise,e._value)})):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===r(t)||"function"==typeof t)){var n=t.then;if(t instanceof s)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void h((o=n,i=t,function(){o.apply(i,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(t){f(e,t)}var o,i}function f(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a(function(){e._handled||c(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)u(e,e._deferreds[t]);e._deferreds=null}function p(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function h(e,t){var n=!1;try{e(function(e){n||(n=!0,l(t,e))},function(e){n||(n=!0,f(t,e))})}catch(e){if(n)return;n=!0,f(t,e)}}s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var n=new this.constructor(i);return u(this,new p(e,t,n)),n},s.all=function(e){var t=Array.prototype.slice.call(e);return new s(function(e,n){if(0===t.length)return e([]);var o=t.length;function i(a,c){try{if(c&&("object"===r(c)||"function"==typeof c)){var s=c.then;if("function"==typeof s)return void s.call(c,function(e){i(a,e)},n)}t[a]=c,0==--o&&e(t)}catch(e){n(e)}}for(var a=0;a<t.length;a++)i(a,t[a])})},s.resolve=function(e){return e&&"object"===r(e)&&e.constructor===s?e:new s(function(t){t(e)})},s.reject=function(e){return new s(function(t,n){n(e)})},s.race=function(e){return new s(function(t,n){for(var o=0,r=e.length;o<r;o++)e[o].then(t,n)})},s._setImmediateFn=function(e){a=e},s._setUnhandledRejectionFn=function(e){c=e},e.exports=s},9:function(e,t,n){"use strict";t.decode=t.parse=n(17),t.encode=t.stringify=n(18)}});
/*! miniapp framework version: 0.1.95 bulid time: Mon May 27 2019 13:34:24 GMT+0800 (CST) */!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=134)}({0:function(e,t,n){"use strict";n.d(t,"g",function(){return a}),n.d(t,"f",function(){return c}),n.d(t,"e",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return f}),n.d(t,"a",function(){return d}),n.d(t,"i",function(){return h}),n.d(t,"h",function(){return m}),n.d(t,"j",function(){return v});var o=n(1),r={},i="private.addProperties",a="start",c="rendererReady",s="pagePrepared",u="firstRendererToWorker",l="firstWorkerToRenderer",f="DOMMutationStart",d="DOMMutationEnd",p="undefined"!=typeof performance?performance.now.bind(performance):Date.now.bind(Date);function h(e,t){r[e+"@"+t]=p()}function m(e,t){return r[e+"@"+t]||0}function v(e,t,n){Object(o.a)("Renderer Performance",n),e.$call(i,{pageId:t,measureValues:n})}},1:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return c}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return u});var o=n(4),r={all:-1,debug:0,log:1,info:1,warn:2,error:3,none:4},i="error";try{Object(o.a)().__set_log_level__=function(e){i=e}}catch(e){s("mount __set_log_level__ at global object err",e)}function a(){if(r[i]<=r.log){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[Log]"].concat(n))}}function c(){if(r[i]<=r.debug){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[Debug]"].concat(n))}}function s(){if(r[i]<=r.warn){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[WARN]"].concat(n))}}function u(){if(r[i]<=r.error){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[ERROR]"].concat(n))}}},10:function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function retrocycle($){var px=/^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\(?:[\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*")\])*$/;return function rez(value){value&&"object"===_typeof(value)&&(Array.isArray(value)?value.forEach(function(element,i){if("object"===_typeof(element)&&null!==element){var path=element.$ref;"string"==typeof path&&px.test(path)?value[i]=eval(path):rez(element)}}):Object.keys(value).forEach(function(name){var item=value[name];if("object"===_typeof(item)&&null!==item){var path=item.$ref;"string"==typeof path&&px.test(path)?value[name]=eval(path):rez(item)}}))}($),$}__webpack_require__.d(__webpack_exports__,"a",function(){return retrocycle})},11:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o={taobao:{"--color-primary":"#ff5500","--color-warn":"#fb9025","--button-primary-background-color-from":"#ff8800","--button-primary-background-color-to":"#ff5500","--button-primary-text-color":"#ffffff","--button-warn-background-color-from":"#fbca2f","--button-warn-background-color-to":"#fb9025","--button-warn-text-color":"#ffffff","--button-default-background-color-from":"#ffffff","--button-default-background-color-to":"#ffffff","--button-default-text-color":"#ff5500","--button-border-radius":"40px"},alipay:{"--color-primary":"#2E7ADC","--color-warn":"red","--button-primary-background-color-from":"#2E7ADC","--button-primary-background-color-to":"#2E7ADC","--button-primary-text-color":"#ffffff","--button-warn-background-color-from":"red","--button-warn-background-color-to":"red","--button-warn-text-color":"#ffffff","--button-default-background-color-from":"#ffffff","--button-default-background-color-to":"#ffffff","--button-default-text-color":"#2E7ADC","--button-border-radius":"10px"}};function r(e,t){var n=e&&e.themeName,r=o[n];r||(r=o[n="taobao"]),e&&e.customVars&&(r=Object.assign({},r,e.customVars));var i=t.document.documentElement;t.CSS&&t.CSS.supports&&t.CSS.supports("--a",0)?function(e,t){Object.keys(e||{}).forEach(function(n){var o=e[n];t.style.setProperty(n,o)})}(r,i):new t.MutationObserver(function(e){var t=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var c=i.value;if("childList"===c.type){var s=c.addedNodes[0];if(s&&s.shadowRoot){var u=s.shadowRoot.querySelector("style");u&&function(){var e=u.textContent;Object.keys(r).forEach(function(t){var n=r[t];e=e.replace(new RegExp("var\\(".concat(t,"[^\\)]*\\)"),"g"),n)}),u.textContent=e}()}}}}catch(e){n=!0,o=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw o}}}).observe(t.document.body,{childList:!0,subtree:!0})}},12:function(e,t,n){"use strict";var o=function(){return Date.now()},r="Expected a function",i=(Math.max,Math.min);var a=function(e,t){var n,a,c,s,u,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(r);function m(t){var o=n,r=a;return n=a=void 0,f=t,s=e.apply(r,o)}function v(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-f>=c}function g(){var e=o();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-l);return p?i(n,c-(e-f)):n}(e))}function y(e){return u=void 0,h&&n?m(e):(n=a=void 0,s)}function b(){var e=o(),r=v(e);if(n=arguments,a=this,l=e,r){if(void 0===u)return function(e){return f=e,u=setTimeout(g,t),d?m(e):s}(l);if(p)return u=setTimeout(g,t),m(l)}return void 0===u&&(u=setTimeout(g,t)),s}return t=Number(t)||0,b.cancel=function(){void 0!==u&&clearTimeout(u),f=0,n=l=a=u=void 0},b.flush=function(){return void 0===u?s:y(o())},b};n.d(t,"a",function(){return l});var c=50,s="reachbottom",u=100;function l(e){e.addEventListener("scroll",function(e){var t=e.document,n=a(function(){t.body.dispatchEvent(new CustomEvent(s))},u);return function(o){var r=e.innerHeight,i=e.pageYOffset,a=t.body.scrollHeight;i>0&&a-(r+i)<=c&&n()}}(e))}},13:function(e,t,n){"use strict";n(19);var o,r={root:null,rootMargin:"0px",threshold:0};function i(e){e.forEach(function(e){var t=e.target;e.boundingClientRect;e.intersectionRatio>0?(t.dataset.appeared=!0,t.dispatchEvent(a("appear"))):t.dataset.appeared&&(t.dataset.appeared=!1,t.dispatchEvent(a("disappear")))})}function a(e){return new CustomEvent(e,{bubbles:!1,cancelable:!0})}var c=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=arguments.length>1?arguments[1]:void 0,t=e.prototype.addEventListener;e.prototype.addEventListener=function(e,n,r,i){var a,c=e&&String(e).toLowerCase();("appear"===c||"disappear"===c)&&(a=this)instanceof HTMLElement&&(a===document&&(a=document.documentElement),o.observe(a)),t.call(this,e,n,r)}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;o=new IntersectionObserver(i,r),c([],e.Node)}},134:function(e,t,n){"use strict";n.r(t);var o=n(41),r=n.n(o),i=n(9),a=n.n(i),c="undefined"==typeof __sfc__?null:void 0!==__sfc__.getRawJSON?JSON.parse(__sfc__.getRawJSON()):__sfc__;function s(){return c?c.options.clientId:u("clientId")}function u(e){var t=location.href,n=new RegExp("".concat(e,"=([^&]+)")).exec(t);return n?decodeURIComponent(n[1]):"$unknown"}var l,f=n(42),d=n.n(f),p=n(0),h=document.documentElement.style,m="undefined"!=typeof navigator?navigator.userAgent:"unknow",v=/Android/.test(m),g="ontouchstart"in window||"onmsgesturechange"in window,y=s();function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement.clientWidth;h.fontSize=e/750*100+"px"}function w(e){clearTimeout(l);var t=e&&e.param&&e.param.width?e.param.width:document.documentElement.clientWidth;l=setTimeout(function(){return b(t)},66)}var _=n(1),E=n(6),S=n.n(E),O=n(10),I="https://g.alicdn.com/miniapp/miniapp-console/rax-console.js?r="+Date.now(),T=null;var M=[],k=["info","log","error","debug","warn"];function x(e){var t=(e||{}).payload,n=void 0===t?{}:t;"switch"!==n.type?T&&T.instance?-1!==k.indexOf(n.type)&&T&&T.instance&&T.instance.addMessage({source:"console-api",type:"log",level:n.type,parameters:n.args.map(function(e){return Object(O.a)(e)})}):M.push(e):!0===n.value?function(){if(T)return S.a.resolve(T);var e=document.createElement("script");return new S.a(function(t,n){e.onload=function(){T={load:window.RaxConsole.default,unload:window.RaxConsole.unload},t(T)},e.charset="utf-8",e.onerror=n,e.src=I,document.head.appendChild(e)})}().then(function(e){e.instance=e.load(),M.forEach(x),M=[]}):!1===n.value&&(T.unload(),T.instance=null)}var C=1,R=2,A=0;var j=n(13),$=n(11),N=n(12);Object(j.a)(window),Object(N.a)(window);var L,P=r()({}),W=c?c.options.pageName:u("pageName"),B=s(),D=("?"===(L=location.search||"")[0]&&(L=L.slice(1)),a.a.parse(L)),V={inited:!1};P.$on("[[VideoContextAction]]",function(e){var t=e.data,n=t.action,o=t.id,r=t.args,i=document.getElementById(o);null!==i&&i[n].apply(i,r)}),P.$on("[[ModuleAPIEvent]]",function(e){var t=e.data,n=t.type,o=t.data;switch(n){case"pageScrollTo":var r=o.behavior,i=o.scrollTop;window.scrollTo({top:i||0,behavior:r||"auto"})}}),P.$on("r#",function(e){Object(p.i)(p.e,B),V.inited||(!function(e){g&&(document.documentElement.style.cursor="pointer"),b(),window.addEventListener("resize",w),v&&document.addEventListener("documentWidth",w);var t={postMessage:function(t){e.$emit("r2w",{data:t},"AppWorker"),Object(p.h)(p.c,y)||Object(p.i)(p.c,y)}};e.$on("w2r",function(n){"function"==typeof t.onmessage&&(Object(p.h)(p.b,y)||Object(p.i)(p.b,y),t.onmessage(n.data),Object(p.h)(p.a,y)||Object(p.i)(p.a,y)),Object(p.h)(p.d,y)||(Object(p.i)(p.d,y),setTimeout(function(){Object(p.j)(e,y,{"r:preparePage":Object(p.h)(p.e,y)-Object(p.h)(p.f,y),"r:prepareDOM":Object(p.h)(p.c,y)-Object(p.h)(p.e,y),"r:renderPage":Object(p.h)(p.d,y)-Object(p.h)(p.c,y),"r:firstDOMRender":Object(p.h)(p.a,y)-Object(p.h)(p.b,y)})},16))}),d()({worker:t,tagNamePrefix:"a-"})}(P),V.inited=!0)}),P.$on("console",function(e){x(e.data)}),P.$call("miniApp.getConfig",{},function(e){var t=e?e.themeConfig:{};Object($.a)(t,window)},function(e){Object(_.b)("miniApp.getConfig on err",e)}),window.__renderer_to_worker__=function(e){P.$emit(e.type,{payload:e,pageName:W},"AppWorker")},c.options&&c.options.lazyload||(Object(p.i)(p.f,B),P.$emit("r$",{clientId:B,pageName:W,pageQuery:D},"AppWorker")),D.remoteInspectUrl&&function(e){if(!(A>=C)){A=C;var t=document.createElement("script");t.async=!0,t.src=e,t.onload=function(){A=R},document.body.appendChild(t)}}(D.remoteInspectUrl)},15:function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var s,u=[],l=!1,f=-1;function d(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=c(d);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},17:function(e,t,n){"use strict";function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var c=/\+/g;e=e.split(t);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var l=0;l<u;++l){var f,d,p,h,m=e[l].replace(c,"%20"),v=m.indexOf(n);v>=0?(f=m.substr(0,v),d=m.substr(v+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),o(a,p)?r(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},18:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){switch(o(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===o(e)?a(c(e),function(o){var c=encodeURIComponent(r(o))+n;return i(e[o])?a(e[o],function(e){return c+encodeURIComponent(r(e))}).join(t):c+encodeURIComponent(r(e[o]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var c=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},19:function(e,t){!function(e,t){"use strict";if("IntersectionObserver"in e&&"IntersectionObserverEntry"in e&&"intersectionRatio"in e.IntersectionObserverEntry.prototype)"isIntersecting"in e.IntersectionObserverEntry.prototype||Object.defineProperty(e.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(e,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(e,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),n=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(r){var i=r.element,a=c(i),s=this._rootContainsTarget(i),u=r.entry,l=t&&s&&this._computeTargetAndRootIntersection(i,n),f=r.entry=new o({time:e.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n,intersectionRect:l});u?t&&s?this._hasCrossedThreshold(u,f)&&this._queuedEntries.push(f):u&&u.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=e.getComputedStyle(n).display){for(var r,i,a,s,l,f,d,p,h=c(n),m=u(n),v=!1;!v;){var g=null,y=1==m.nodeType?e.getComputedStyle(m):{};if("none"==y.display)return;if(m==this.root||m==t?(v=!0,g=o):m!=t.body&&m!=t.documentElement&&"visible"!=y.overflow&&(g=c(m)),g&&(r=g,i=h,a=void 0,s=void 0,l=void 0,f=void 0,d=void 0,p=void 0,a=Math.max(r.top,i.top),s=Math.min(r.bottom,i.bottom),l=Math.max(r.left,i.left),f=Math.min(r.right,i.right),p=s-a,!(h=(d=f-l)>=0&&p>=0&&{top:a,bottom:s,left:l,right:f,width:d,height:p})))break;m=u(m)}return h}},r.prototype._getRootRect=function(){var e;if(this.root)e=c(this.root);else{var n=t.documentElement,o=t.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var r=0;r<this.thresholds.length;r++){var i=this.thresholds[r];if(i==n||i==o||i<n!=i<o)return!0}},r.prototype._rootIsInDom=function(){return!this.root||s(t,this.root)},r.prototype._rootContainsTarget=function(e){return s(this.root||t,e)},r.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},r.prototype._unregisterInstance=function(){var e=n.indexOf(this);-1!=e&&n.splice(e,1)},e.IntersectionObserver=r,e.IntersectionObserverEntry=o}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function r(e,t){var n,o,r,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,r=null,function(){r||(r=setTimeout(function(){n(),r=null},o))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}function i(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function a(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function s(e,t){for(var n=t;n;){if(n==e)return!0;n=u(n)}return!1}function u(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t}}(window,document)},4:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});var o="undefined"!=typeof navigator?navigator.userAgent:"unknow";/(iPhone|iPad|iPod)/.test(o),/Android/.test(o),/AliTB/.test(o);function r(){return void 0!==e?e:"undefined"!=typeof self?self:new Function("return this")()}}).call(this,n(5))},41:function(e,t,n){(function(o,r){var i,a,c;function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}console.log("Start windmill renderer.min (0.5.1) framework. Build at 2018-12-05 14:27"),c=function(){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{writable:!0,enumerable:!1,configurable:!0,value:function(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),r=1;r<arguments.length;r++){var i=n[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])}return o}});var e,t=(e=1e5,function(){var t=String(e);return e+=1,t});function n(){return void 0!==o?o:"undefined"!=typeof self?self:new Function("return this")()}function i(e,t,o){void 0===o&&(o=!0);var r=n();try{Object.defineProperty(r,e,{value:t,configurable:!0,enumerable:!0,writable:!o})}catch(o){r[e]=t}}function a(e){return Object.prototype.toString.call(e).slice(8,-1)}function c(e){return"Object"===a(e)}function u(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t]}var l=function(){},f={},d=["debug","info","log","warn","error"];function p(e){if("object"==(void 0===r?"undefined":s(r))&&r&&r.env,!0===f.debugMode||"true"===f.debugMode)return!0;var t=f.logLevel||"error";return d.indexOf(e)>=d.indexOf(t)}function h(e){p("debug")&&l("debug",e)}function m(e){p("warn")&&l("warn",e)}function v(e){p("error")&&l("error",e)}function g(e){v(e)}l=function(e,t){var n,o="["+((n=e).charAt(0).toUpperCase()+n.slice(1))+"][wml-r] "+t;return f.isWeex&&-1<["Android","iOS"].indexOf(f.platform)?console.log(o):console.error(o)};var y={network:["request","uploadFile","downloadFile"],miniApp:["setAppShareInfo","hideLauncherLoading","setWebViewTop","setWebViewBackgroundImage","getConfig"],mtop:["request"],storage:["length","setItem","getItem","removeItem","clearStorage","getStorageInfo",{name:"getItemSync",sync:!0},{name:"setItemSync",sync:!0},{name:"removeItemSync",sync:!0},{name:"clearStorageSync",sync:!0},{name:"getStorageInfoSync",sync:!0}],memoryStorage:["setItem","getItem"],tabBar:["show","hide","setTabBarItem","setTabBarStyle","setTabBarBadge","removeTabBarBadge","showTabBarRedDot","hideTabBarRedDot"],navigator:["push","pop","openMessagePage","reloadPage","getBackStack","popToHome","navigateTo","redirectTo","switchTab","navigateBackMiniProgram","navigateToMiniProgram"],user:["login","logout","info"],modal:["alert","confirm","toast","hideToast","showLoading","hideLoading","prompt"],navigatorBar:["show","hide","setTitle","setRightItem","setStyle","setDrawer","setActionSheet","hasIndexBadge","scaleIndexBadge","resetIndexBadge","getHeight","openDrawer","isDrawerOpened","closeDrawer","setLeftItem","showMenu","hideMenu","getStatusBarHeight","setNavigationBar","hideNavigationBarLoading","showNavigationBarLoading"],clipboard:["writeText","readText"],picker:["pick","pickDate","pickTime","chooseCity"],webSocket:["webSocket","send","close","onOpen","onMessage","onClose","onError"],calendar:["addEvent","checkEvent","removeEvent"],connection:["getType","getDownlinkMax","onChange"],screen:["setAlwaysOn","setBrightness","getScreenBrightness"],broadcast:["createChannel","postMessage","onMessage","close"],share:["doShare"],cookie:["read","write","getAllObjects"],audio:["load","play","pause","stop","setVolume","canPlayType"],wopc:["authLogin","checkAuthSession","doAuth","getSessionKey","setSessionKey"],WopcMtopPlugin:["request"],device:["onShake","vibrate","vibrateShort","onUserCaptureScreen","offUserCaptureScreen"],keyboard:["hideKeyboard"],contact:["choosePhoneContact"],location:["getLocation"],alipay:["tradePay"],userTrack:["commit","commitut","commitEvent","customAdvance","pageAppear","pageDisappear","skipPage","updatePageUtparam","updateNextPageUtparam"],"nuvajs-exec":["exec"],aluWVJSBridge:["userIsLogin","refreshAlipayCookie"],TBDeviceInfo:["getUtdid"],actionSheet:["showActionSheet"],image:["chooseImage","previewImage","compressImage","getImageInfo","saveImage"],media:["startVoice","stopVoice"],audioRecord:["startRecord","stopRecord","cancelRecord"],audioPlayer:["playVoice","pauseVoice","stopVoice"],file:["saveFile","getFileInfo","getFileList","removeFile"],video:["chooseVideo","getVideoInfo","saveVideoToPhotosAlbum"],phone:["makePhoneCall"],compass:["startCompass","stopCompass","onCompassChange"],tbsecurity:["secureToken"],sendMtop:["request"],ZCache:["prefetch","fetch"],WVZCache:["prefetch","fetch"],sku:["show","hide"],chat:["open"],ucc:["uccBind","uccTrustLogin","uccUnbind"],address:["choose"]},b="__windmill_post_message__",w="__windmill_on_message__",_=function(){};_.prototype.$on=function(e,t){return void 0===t&&(t=u),h('$on "'+e+'"'),!e&&g("invalid event name "+e+" for windmill.$on."),t===u&&g("bind event "+e+" with no callback through windmill.$on."),this.bridge.onReceiveMessage({data:{type:e},origin:this.label,type:"Event"},t)},_.prototype.$once=function(e,t){return void 0===t&&(t=u),h('$once "'+e+'"'),!e&&g("invalid event name "+e+" for windmill.$once."),t===u&&g("bind event "+e+" with no callback through windmill.$once."),this.bridge.onReceiveMessage({data:{type:e,once:!0},origin:this.label,type:"Event"},t)},_.prototype.$off=function(e,t){return h('$off "'+e+'"'),!e&&g("invalid event name "+e+" for windmill.$off."),this.bridge.unbindEventListener("Event."+e,t)},_.prototype.$cycle=function(e,t){return void 0===t&&(t=u),h('$cycle "'+e+'"'),e&&/^app:|^page(:|@)/.test(e)||g("invalid lifecycle name "+e+" for windmill.$cycle."),t===u&&g("hook lifecycle "+e+" with no callback function through windmill.$cycle."),"AppWorker"!==this.label&&/^app:/.test(e)&&g("Shouldn't bind lifecycle hook for app in a page client."),this.bridge.onReceiveMessage({type:"Lifecycle",origin:this.label,data:{type:e}},t)},_.prototype.$decycle=function(e,t){return h('$decycle "'+e+'"'),e&&/^app:|^page(:|@)/.test(e)||g("invalid lifecycle name "+e+" for windmill.$decycle."),this.bridge.unbindEventListener("Lifecycle."+e,t)},_.prototype.$emit=function(e,t,n){return void 0===t&&(t={}),h('$emit("'+e+'")'),!e&&g("invalid event name "+e+" for windmill.$emit."),n&&n!==this.label?this.bridge.postMessage({data:{type:e,data:t},origin:this.label,target:n,type:"Event"}):this.bridge.emitEvent(""+e,t)},_.prototype.$callAsync=function(e,t){var n=this;return void 0===t&&(t={}),h('$callAsync "'+e+'"'),e||g("invalid method name "+e+" for windmill.$callAsync."),new Promise(function(o,r){n.bridge.dispatchMessage({type:"ModuleCall",origin:n.label,target:"AppWorker",data:{method:e,params:t}},o,r,!1)})},_.prototype.$call=function(e,t,n,o){return void 0===t&&(t={}),void 0===n&&(n=u),void 0===o&&(o=u),h('$call "'+e+'", params: '+JSON.stringify(t)),e||g("invalid method name "+e+" for windmill.$call."),this.bridge.dispatchMessage({type:"ModuleCall",origin:this.label,target:"AppWorker",data:{method:e,params:t}},n,o,!0)},_.prototype.$registerModules=function(e){!function(e,t){if(void 0===t&&(t=!1),c(e)){var n=function(n){var o=e[n];y[n]?t||m('The "'+n+'" module has already been registered.It would be overridden.'):y[n]=[];var r=y[n];Array.isArray(o)?o.forEach(function(e){if(c(e))r.push(e);else if("string"==typeof e){var o=e;-1===r.indexOf(o)?r.push(o):t||m('The "'+o+'" of the "'+n+'" module has already been registered.')}}):v('Invalid parameter type! The method list of the "'+n+'" module should be an Array.')};for(var o in e)n(o)}else v("Invalid parameter type! The module definition is not a plain object.")}(e,!0)},_.prototype.$getAvailableModules=function(){return function(e){var t={};try{t=JSON.parse(JSON.stringify(e))}catch(e){}return t}(y)};var E="[[EVENT_MAP]]";function S(e,t){var n=e[E];return Array.isArray(n[t])||(n[t]=[]),n[t]}var O=function(){h("Create new EventEmitter."),Object.defineProperty(this,E,{configurable:!1,enumerable:!1,writable:!1,value:{}})};O.prototype.on=function(e,t){return h('EventEmitter: on("'+e+'")'),S(this,e).push({listener:t,once:!1,callCount:0}),this},O.prototype.once=function(e,t){return h('EventEmitter: once("'+e+'")'),S(this,e).push({listener:t,once:!0,callCount:0}),this},O.prototype.off=function(e,t){h('EventEmitter: off("'+e+'"'+(t?", listener":"")+")");var n=this[E];if(t){var o=n[e];if(Array.isArray(o)){var r=o.findIndex(function(e){return e.listener===t});-1!==r&&o.splice(r,1)}}else delete n[e];return this};var I,T=3;function M(e){var t;try{t=JSON.stringify(e)}catch(n){t=e}g("failed to postMessage: "+t)}function k(e,t,n,o,r,i){var a=t+"."+n;return e.WindVane?e.WindVane.call(t,n,o,r,i):g("should have WindVane in global context"+(a?" to call "+a:"")+".")}var x=!(O.prototype.emit=function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];h('EventEmitter: emit("'+e+'", '+JSON.stringify(t)+")");var o=this[E],r=o[e];return Array.isArray(r)&&(o[e]=r.filter(function(n){try{n.listener.apply(null,t),n.callCount+=1}catch(t){throw v('Failed to emit the "'+e+'" event: '+t.toString()+"\nSource code: "+("function"==typeof(o=n.listener)?Function.prototype.toString.call(o):"")),t}var o;return!n.once})),this}),C=function(){this._messages=[]};C.prototype.postMessage=function(e){h("cache message in lazyMsgModule. "+JSON.stringify(e)),this._messages.push(e)},C.prototype.replaceWith=function(e){R=!1,this._messageModule=e,this._flush()},C.prototype._flush=function(){var e=this;this._messages.forEach(function(t){return e._messageModule.postMessage(t)})};var R,A,j=new C;function $(e,t){var r,a=e?(r=e).requireModule("@weex/windmill")||r.requireModule("windmill"):function(){var e=n();if("function"!=typeof e[b])return 0<T&&(T--,v("Can't find available \""+b+'" API in the context.')),!1;var t={};return t.postMessage=e[b],t.onmessage=function(e){h('Register the "'+w+'" API.'),i(w,e)},t}()||function(){if(!I){var e="undefined"!=typeof window?window:o;I={postMessage:function(t){return k(e,"Windmill","postMessage",t,function(){},M)},onmessage:function(t){if(!x)return x=!0,k(e,"Windmill","onMessage",{},t,M)}}}return I}();if(!a)return g("can't find message module ("+(e?"windmill module":"message module in webview")+")."),R=!0,j;if("function"==typeof t){h('Set the "onmessage" method to the bridge through callback.');try{a.onmessage(t)}catch(e){v('Failed to set the "onmessage" method to the bridge through callback.'),v(e.toString())}}return R&&j.replaceWith(a),a}function N(e){var t=e.match(/([^@]+)(@\S+)/);return t&&t[1]||e}var L=function(e,t){var n=this;void 0===t&&(t={}),h("Create a new RendererBridge."),A=t.isWeex,this._emitter=new O,h("Register onmessage api for "+(A?"Weex windmill module":"webview")+"."),A&&(this._weex=e),this._onMessage=function(e){if(h("Receive message from the worker. (message: "+JSON.stringify(e)+")"),!c(e)&&(v("The parameter of onmessage should be a plain object! Not "+a(e)),"string"==typeof e))try{e=JSON.parse(e)}catch(e){return void v("Failed to parse the message string. "+e.toString())}var t=e.type,o=e.data;void 0===o&&(o={});var r=e.origin,i=e.callbackId;switch(t){case"Callback":n._emitter.emit("callback@AppWorker:"+i,o);break;case"Event":var s=N(o.type);n._emitter.emit(t+"."+s,Object.assign({origin:r},o,{type:s}));break;case"Lifecycle":n._emitter.emit(t+"."+o.lifecycle,o.options);break;case"SetData":n._emitter.emit("Event.setdata",o);break;default:g('Unknown message type received from worker: "'+t+'"')}},$(e,this._onMessage)};L.prototype.dispatchMessage=function(e,t,n,o){h("Dispatch message to worker. (message: "+JSON.stringify(e)+")"),e.callbackId=this._genCallbackId(function(o){return o.status&&"SUCCESS"===o.status?t(o):(o.status,v("call API "+e.data.method+" from renderer failed: "+o.status+", "+o.error),n(o))},{keepAlive:o});try{e.keepAlive=!0,this.postMessage(e)}catch(o){n(o)}},L.prototype.postMessage=function(e){try{h("Call postMessage to worker. (message: "+JSON.stringify(e)+")"),$(this._weex,this._onMessage).postMessage(e)}catch(e){g(e.message||e.toString()||"postMessage failed.")}},L.prototype._genCallbackId=function(e,n){var o=n.keepAlive,r=n.callbackId||t();return this._emitter[o?"on":"once"]("callback@AppWorker:"+r,e),r},L.prototype.onReceiveMessage=function(e,t){var n=e.type,o=e.data;void 0===o&&(o={});var r=o.type;"Event"===n&&(r=N(r),o.type=r);var i=o.once?"once":"on";this._emitter[i](n+"."+r,t)},L.prototype.unbindEventListener=function(e,t){this._emitter.off(N(e),t)},L.prototype.emitEvent=function(e,t){void 0===t&&(t={});var n=N(e);this._emitter.emit("Event."+n,{type:n,data:t})};var P=function(e){function t(t,n){void 0===n&&(n={}),e.call(this),this._name=n.pageName||"",this.label=n.clientId||"",t&&c(t.config)&&(this._name=t.config.pageName||"",this.label=t.config.clientId||"",t.config.availableModules?(this.$registerModules(t.config.availableModules),this._gotAvailableModulesFromWeex=!0):m("No available modules in weex options.")),h("Create a new RendererRuntime. ("+this.label+", "+this._name+")"),this.bridge=new L(t,n),this._init()}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype._init=function(){var e=this;this.bridge.onReceiveMessage({origin:"AppWorker",target:this.label,type:"Event",data:{type:"registerModules"}},function(t){t&&"registerModules"===t.type&&(h("Register available modules in renderer. ("+Object.keys(t.data)+")"),e.$registerModules(t.data))})},t.prototype.ready=function(){this.bridge.dispatchMessage({origin:this.label,target:"AppWorker",type:"Event",data:{type:"[[RendererRuntimeReady]]",data:{label:this.label,handshake:!this._gotAvailableModulesFromWeex}}},u,u)},t.prototype.$getCurrentActivePageId=function(){return this.label},t}(_),W=["$on","$once","$off","$emit","$cycle","$decycle","$call","$callAsync","$navTo","$getAvailableModules","$getCurrentActivePageId"];return function(e,t){var n=!(!e||!e.requireModule);!function(e){if(!e||!e.platform)return console.error("set logger environment failed.");Object.assign(f,e)}({platform:n&&e.config.env.platform,debugMode:n&&e.config.env.debugMode,isWeex:n}),h("Setup Windmill renderer framework."),e&&!e.requireModule&&(t=e,e=void 0),t||(t={}),h("Instantiate renderer in "+(((t=Object.assign({},t)).isWeex=n)?"Weex container":"WindVane container")+".");var o,r,a,s,u,l=new P(e,t),d=(o=l,r={},W.forEach(function(e){"function"==typeof o[e]&&(r[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return o[e].apply(o,t)})}),r);return h("Prepare runtime APIs: "+JSON.stringify(W)),t.exposeModuleGetter&&i("__WINDMILL_MODULE_GETTER__",(a=function(){return d},s=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return(e=a()).$call.apply(e,t)},u=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return(e=a()).$callSync.apply(e,t)},function(e){if(!e)return h("Require a universal module proxy."),{call:s};var t=y[e];if(Array.isArray(t)){h('Require the "'+e+'" module.');var n={};return t.forEach(function(t){if("string"==typeof t)n[t]=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return s.apply(void 0,[e+"."+t].concat(n))};else if(c(t)&&t.name){var o=t.name;t.sync?n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return u.apply(void 0,[e+"."+o].concat(t))}:n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.apply(void 0,[e+"."+o].concat(t))}}}),n}m('Require unknown module "'+e+"\".It may not exist or haven't been registered.")})),l.ready(),d}},"object"==s(t)&&void 0!==e?e.exports=c():void 0===(a="function"==typeof(i=c)?i.call(t,n,t,e):i)||(e.exports=a)}).call(this,n(5),n(15))},42:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){r(this,"_map",new Map)}var t=e.prototype;return t._setMountNode=function(e){this.mountNode=e},t.get=function(e){return e?"BODY"===e.nodeName?this.mountNode:this._map.get(e.$$id):null},t.set=function(e,t){return t.$$id=e.$$id,this._map.set(e.$$id,t)},t.delete=function(e){return e?this._map.delete(e.$$id):null},e}(),a=!1;try{addEventListener("test",null,{get passive(){a=!0}})}catch(e){}var c=!a||{capture:!0,passive:!0},s={load:!0,error:!0,unload:!0,abort:!0,loadstart:!0,progress:!0,loadend:!0,blur:!0,focus:!0,scroll:!0,appear:!0,disappear:!0,invalid:!0},u=["touchstart","touchmove","touchend","touchcancel"],l=function(){function e(e,t){var n=this;void 0===t&&(t={}),r(this,"eventProxyHandler",function(e){if("click"===e.type&&n.touch)return!1;var t={type:e.type};for(var r in e.target&&(t.target=e.target.$$id),"scroll"===e.type&&e.target===document&&(t.target=document.body.$$id,t.scrollTop=document.documentElement.scrollTop||document.body.scrollTop),e.detail&&(t.detail=e.detail),e){var i=e[r];"object"==o(i)||"function"==typeof i||r===r.toUpperCase()||t.hasOwnProperty(r)||(t[r]=i)}if(-1!=u.indexOf(e.type)&&(t.touches=d(e.touches),t.changedTouches=d(e.changedTouches)),n.postMessage({type:"event",event:t}),"touchstart"===e.type)n.touch=f(e);else if("touchend"===e.type&&n.touch){var a=f(e);a&&Math.sqrt(Math.pow(a.pageX-n.touch.pageX,2)+Math.pow(a.pageY-n.touch.pageY,2))<10&&(t.type="click",n.postMessage({type:"event",event:t}))}}),this.postMessage=e,this.registeredEventCounts={},this.mountNode=t.mountNode||document,this.touch=null}var t=e.prototype;return t.addEvent=function(e,t){s[t]?this.addNoBubblesEventListener(e,t):this.registeredEventCounts[t]?this.registeredEventCounts[t]++:(this.registeredEventCounts[t]=1,this.mountNode.addEventListener(t,this.eventProxyHandler,c))},t.removeEvent=function(e,t){s[t]?this.removeNoBubblesEventListener(e,t):(this.registeredEventCounts[t]--,0===this.registeredEventCounts[t]&&this.mountNode.removeEventListener(t,this.eventProxyHandler,c))},t.addNoBubblesEventListener=function(e,t){var n=this;function o(o){var r={$$id:e.$$id};n.postMessage({type:"event",event:{type:t,target:r,currentTarget:r,detail:o.detail}})}e["__$"+t+"_listener__"]=o,e.addEventListener(t,o)},t.removeNoBubblesEventListener=function(e,t){var n=e["__$"+t+"_listener__"];n&&(e.removeEventListener(t,n),e["__$"+t+"_listener__"]=null)},e}();function f(e){var t=e.changedTouches&&e.changedTouches[0]||e.touches&&e.touches[0]||e;return t&&{pageX:t.pageX,pageY:t.pageY}}function d(e){for(var t=[],n=0,o=e.length;n<o;n++){var r=e[n];t.push({clientX:r.clientX,clientY:r.clientY,pageX:r.pageX,pageY:r.pageY,identifier:r.identifier,$$id:r.target.$$id})}return t}var p="a-",h={style:!0};function m(e){var t=(e+"").toLowerCase();return function(e){return h.hasOwnProperty(e)}(t)?t:p+t}var v={flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0,lineClamp:!0,textSizeAdjust:!0,textDecorationLine:!0,textDecorationColor:!0,textDecorationStyle:!0,textDecorationSkip:!0,writingMode:!0,animatin:!0,animationName:!0,animationDuration:!0,animationTimingFunction:!0,animationDelay:!0,animationIterationCount:!0,animationDirection:!0,animationFillMode:!0,animationPlayState:!0,transform:!0,transformOrigin:!0,transformStyle:!0,perspective:!0,perspectiveOrigin:!0,backfaceVisibility:!0,appearance:!0,userSelect:!0,columns:!0,columnWidth:!0,columnCount:!0,columnGap:!0,columnRule:!0,columnRuleWidth:!0,columnRuleStyle:!0,columnRuleColor:!0,columnSpan:!0,columnFill:!0,columnBreakBefore:!0,columnBreakAfter:!0,columnBreakInside:!0},g={position:"sticky",display:"flex"},y={shouldPrefix:function(e){return v[e]||g[e]}};function b(e,t){var n={};for(var o in t){var r=t[o];y.shouldPrefix(o)?y[o](r,n):n[o]=r}for(var i in n){var a=n[i];if(Array.isArray(a))for(var c=0;c<a.length;c++)e.style[i]=a[c];else e.style[i]=a}}Object.keys(v).forEach(function(e){var t="webkit"+e[0].toUpperCase()+e.slice(1);y[e]=function(n,o){return void 0===o&&(o={}),o[t]=n,o[e]=n,o}}),Object.keys(g).forEach(function(e){var t=g[e];y[e]=function(n,o){return void 0===o&&(o={}),o[e]=n===t?["-webkit-"+t,t]:n,o}});var w=/-[a-z]/g,_={};var E={};var S="style",O={slot:!0};function I(e,t,n){(function(e){return O.hasOwnProperty(e)})(t)||(t!==S?"object"==o(n)||"boolean"==typeof n?e[function(e){return _[e]||(_[e]=e.replace(w,function(e){return e.slice(1).toUpperCase()}))}(t)]=n:(t=function(e){if(E[e])return E[e];for(var t="",n=0,o=e.length;n<o;n++)/[a-z]/.test(e[n])?t+=e[n]:/[A-Z]/.test(e[n])?t+="-"+e[n].toLowerCase():"-"===e[n]&&(t+="-");return E[e]=t}(t),null==n?e.removeAttribute(t):e.setAttribute(t,n)):b(e,n))}var T="textContent"in document?"textContent":"nodeValue",M=function(){function e(e,t){this.eventHandler=new l(e,{mountNode:t}),this.mountNode=t||document.body,this.sharedNodeMap=new i,this.sharedNodeMap._setMountNode(this.mountNode)}var t=e.prototype;return t.apply=function(e){for(var t=e.mutations,n=0;n<t.length;n++){var o=t[n];this[o.type](o)}},t.childList=function(e){var t=e.removedNodes,n=e.addedNodes,o=e.nextSibling,r=this.sharedNodeMap,i=e.target;i&&"BODY"===i.nodeName&&(this.mountNode.$$id=i.$$id);var a=r.get(i);if(t)for(var c=t.length;c--;){var s=r.get(t[c]);a&&"STYLE"!==a.nodeName&&s&&"STYLE"!==s.nodeName&&(r.delete(s),a.removeChild(s))}if(n)for(var u=0;u<n.length;u++){var l=r.get(n[u]);if(l||(l=this.createNode(n[u])),a){var f=o&&r.get(o)||null;a.insertBefore(l,f)}}},t.createNode=function(e){var t=function(e){var t,n;return 3===e.nodeType?t=document.createTextNode(e.data):1===e.nodeType&&(n=m(e.nodeName))?t=document.createElement(n):8===e.nodeType&&(t=document.createComment(e.data)),t}(e);if(1===e.nodeType&&m(e.nodeName)){if(e.className&&(t.className=e.className),e.style&&b(t,e.style),e.attributes)for(var n=0;n<e.attributes.length;n++){var o=e.attributes[n];I(t,o.name,o.value)}if(e.childNodes)for(var r=0;r<e.childNodes.length;r++)t.appendChild(this.createNode(e.childNodes[r]));if(e.events)for(var i=0;i<e.events.length;i++)this.eventHandler.addEvent(t,e.events[i])}return this.sharedNodeMap.set(e,t),t},t.attributes=function(e){var t=e.attributeName,n=e.newValue,o=e.style,r=this.sharedNodeMap.get(e.target);r&&(o&&I(r,"style",o),t&&I(r,t,n))},t.characterData=function(e){var t=e.newValue;this.sharedNodeMap.get(e.target)[T]=t},t.addEvent=function(e){var t=e.eventName,n=this.sharedNodeMap.get(e.target);n&&this.eventHandler.addEvent(n,t)},t.removeEvent=function(e){var t=e.eventName,n=this.sharedNodeMap.get(e.target);n&&this.eventHandler.removeEvent(n,t)},t.canvasRenderingContext2D=function(e){var t=e.method,n=e.args,o=e.properties,r=this.sharedNodeMap.get(e.target);if(r){var i=r.getContext("2d");if(o)for(var a in o)o.hasOwnProperty(a)&&(i[a]=o[a]);t&&i[t].apply(i,n)}},e}(),k=function(){function e(e){this.sender=e}var t=e.prototype;return t.apply=function(e){var t=e.data;this[t.type](t)},t.returnSuccess=function(e,t){if("object"==o(t))try{t=JSON.parse(JSON.stringify(t))}catch(e){t=""+t}"function"==typeof t&&(t=""+t),this.send({type:"success",id:e,success:t})},t.returnError=function(e,t){this.send({type:"error",id:e,error:{name:t.name,message:t.message}})},t.send=function(e){this.sender({type:"return",return:e})},t.eval=function(e){var t=e.id,n=e.code;try{this.returnSuccess(t,window.eval(n))}catch(e){this.returnError(t,e)}},e}(),x=function(){function e(e){this.sender=e}return e.prototype.apply=function(e){var t=e.data;"call"===t.type&&"replace"===t.prop&&location.replace(t.args[0])},e}();t.default=function(e){var t=e.worker,n=e.mountNode,o=t.postMessage.bind(t),r={MutationRecord:new M(o,n),EvaluationRecord:new k(o),Location:new x(o)};t.onmessage=function(e){var t=e.data,n=t.type;r[n]?r[n].apply(t):console.error("Can not handle with "+n,t)},t.postMessage({type:"init",url:location.href,width:"undefined"!=typeof DEVICE_WIDTH?DEVICE_WIDTH:document.documentElement.clientWidth})}},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},6:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}function i(){}var a="function"==typeof setImmediate&&setImmediate||function(e){"function"==typeof setTimeout?setTimeout(e,0):e()},c=function(e){"undefined"!=typeof console&&console&&console.log("Possible Unhandled Promise Rejection:",e)};function s(e){if("object"!==r(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise resolver is not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void f(t.promise,e)}l(t.promise,o)}else(1===e._state?l:f)(t.promise,e._value)})):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===r(t)||"function"==typeof t)){var n=t.then;if(t instanceof s)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void h((o=n,i=t,function(){o.apply(i,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(t){f(e,t)}var o,i}function f(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a(function(){e._handled||c(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)u(e,e._deferreds[t]);e._deferreds=null}function p(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function h(e,t){var n=!1;try{e(function(e){n||(n=!0,l(t,e))},function(e){n||(n=!0,f(t,e))})}catch(e){if(n)return;n=!0,f(t,e)}}s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var n=new this.constructor(i);return u(this,new p(e,t,n)),n},s.all=function(e){var t=Array.prototype.slice.call(e);return new s(function(e,n){if(0===t.length)return e([]);var o=t.length;function i(a,c){try{if(c&&("object"===r(c)||"function"==typeof c)){var s=c.then;if("function"==typeof s)return void s.call(c,function(e){i(a,e)},n)}t[a]=c,0==--o&&e(t)}catch(e){n(e)}}for(var a=0;a<t.length;a++)i(a,t[a])})},s.resolve=function(e){return e&&"object"===r(e)&&e.constructor===s?e:new s(function(t){t(e)})},s.reject=function(e){return new s(function(t,n){n(e)})},s.race=function(e){return new s(function(t,n){for(var o=0,r=e.length;o<r;o++)e[o].then(t,n)})},s._setImmediateFn=function(e){a=e},s._setUnhandledRejectionFn=function(e){c=e},e.exports=s},9:function(e,t,n){"use strict";t.decode=t.parse=n(17),t.encode=t.stringify=n(18)}});
{
"name": "miniapp-framework",
"version": "0.1.94",
"version": "0.1.95",
"description": "",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc