functione(){for(vare=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;varn=Array(e),o=0;for(t=0;t<r;t++)for(varu=arguments[t],i=0,c=u.length;i<c;i++,o++)n[o]=u[i];returnn}vart="undefined"!=typeofcrypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeofmsCrypto&&"function"==typeofmsCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),r=newUint8Array(16);functionn(){if(!t)thrownewError("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");returnt(r)}for(varo=[],u=0;u<256;++u)o[u]=(u+256).toString(16).substr(1);functioni(e,t,r){varu=t&&r||0;"string"==typeofe&&(t="binary"===e?newArray(16):null,e=null);vari=(e=e||{}).random||(e.rng||n)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(varc=0;c<16;++c)t[u+c]=i[c];returnt||function(e,t){varr=t||0,n=o;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}(i)}varc=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(e){vart=Object.create(null);returnfunction(r){returnt[r]||(t[r]=e(r))}},l=/-(\w)/g,f=s((function(e){returne.replace(l,(function(e,t){returnt?t.toUpperCase():""}))})),p=s((function(e){returne.charAt(0).toUpperCase()+e.slice(1)})),g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;functiond(e,t){if(a(e))returne;if(t&&(r=t,n=e,c.call(r,n)))return[e];varr,n,o=[];returne.replace(g,(function(e,t,r,n){returno.push(r?n.replace(/\\(\\)?/g,"$1"):t||e),n})),o}functionm(e,t){varr,n=d(t,e);for(r=n.shift();null!=r;){if(null==(e=e[r]))return;r=n.shift()}returne}varv=newMap;functionh(e){if(!function(e){if(e){vart=e.tagName;return0===t.indexOf("UNI-")||"BODY"===t}return!1}(e))throwError("no such element");vart,r,n={elementId:(t=e,r=t._id,r||(r=i(),t._id=r,v.set(r,{id:r,element:t})),r),tagName:e.tagName.toLocaleLowerCase().replace("uni-","")},o=e.__vue__;returno&&!o.$options.isReserved&&(n.nodeId=function(e){if(e._$weex)returne._uid;if(e._$id)returne._$id;vart=function(e){for(vart=e.$parent;t;){if(t._$id)returnt;t=t.$parent}}(e);if(!e.$parent)return"-1";varr=e.$vnode,n=r.context;returnn&&n!==t&&n._$id?n._$id+";"+t._$id+","+r.data.attrs._i:t._$id+","+r.data.attrs._i}(o)),"video"===n.tagName&&(n.videoId=n.nodeId),n}var_={input:{input:function(e,t){varr=e.__vue__;r.valueSync=t,r.$triggerInput({},{value:t})}},textarea:{input:function(e,t){varr=e.__vue__;r.valueSync=t,r.$triggerInput({},{value:t})}},"scroll-view":{scrollTo:function(e,t,r){varn=e.__vue__.$refs.main;n.scrollLeft=t,n.scrollTop=r},scrollTop:function(e){returne.__vue__.$refs.main.scrollTop},scrollLeft:function(e){returne.__vue__.$refs.main.scrollLeft},scrollWidth:function(e){returne.__vue__.$refs.main.scrollWidth},scrollHeight:function(e){returne.__vue__.$refs.main.scrollHeight}},swiper:{swipeTo:function(e,t){e.__vue__.current=t}},"movable-view":{moveTo:function(e,t,r){e.__vue__._animationTo(t,r)}},switch:{tap:function(e){e.click()}},slider:{slideTo:function(e,t){varr=e.__vue__,n=r.$refs["uni-slider"],o=n.offsetWidth,u=n.getBoundingClientRect().left;r.value=t,r._onClick({x:(t-r.min)*o/(r.max-r.min)+u})}}},y={getWindow:function(e){returnwindow},getDocument:function(e){returndocument},getEl:function(e){vart=v.get(e);if(!t)throwError("element destroyed");returnt.element},getOffset:function(e){vart=e.getBoundingClientRect();returnPromise.resolve({left:t.left+window.pageXOffset,top:t.top+window.pageYOffset})},querySelector:function(e,t){returnPromise.resolve(h(e.querySelector(t)))},querySelectorAll:function(e,t){varr=[];returndocument.querySelectorAll(t).forEach((function(e){try{r.push(h(e))}catch(e){}})),Promise.resolve({elements:r})},queryProperties:function(e,t){returnPromise.resolve({properties:t.map((function(t){varr=m(e,t);return"document.documentElement.scrollTop"===t&&0===r&&(r=m(e,"document.body.scrollTop")),r}))})},queryAttributes:function(e,t){returnPromise.resolve({attributes:t.map((function(t){returnString(e.getAttribute(t))}))})},queryStyles:function(e,t){varr=getComputedStyle(e);returnPromise.resolve({styles:t.map((function(e){returnr[e]}))})},queryHTML:function(e,t){returnPromise.resolve({html:(r="outer"===t?e.outerHTML:e.innerHTML,r.replace(/\n/g,"").replace(/(<uni-text[^>]*>)(<span[^>]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(e){return-1<e.indexOf("<body")?"<page>":"</body>"===e?"</page>":0!==e.indexOf("<uni-")&&0!==e.indexOf("</uni-")?"":e.replace(/uni-/g,"").replace(/ role=""/g,"").replace(/ aria-label=""/g,"")})))});varr},dispatchTapEvent:function(e){returne.click(),Promise.resolve()},dispatchLongpressEvent:function(e){returnPromise.resolve()},dispatchTouchEvent:function(e,t,r){r||(r={}),r.touches||(r.touches=[]),r.changedTouches||(r.changedTouches=[]),r.touches.length||r.touches.push({identifier:Date.now(),target:e});varn=r.touches.map((function(e){returnnewTouch(e)})),o=r.changedTouches.map((function(e){returnnewTouch(e)}));returne.dispatchEvent(newTouchEvent(t,{cancelable:!0,bubbles:!0,touches:n,targetTouches:[],changedTouches:o})),Promise.resolve()},callFunction:function(t,r,n){varo=m(_,r);returno?Promise.resolve({result:o.apply(null,e([t],n))}):Promise.reject(Error(r+" not exists"))},triggerEvent:function(e,t,r){varn=e.__vue__;returnn.$trigger&&n.$trigger(t,{},r),Promise.resolve()}};["movable-view","picker","ad","button","checkbox-group","checkbox","form","icon","label","movable-area","navigator","picker-view-column","picker-view","progress","radio-group","radio","rich-text","u-slider","swiper-item","swiper","switch"].map((function(e){returnp(f(e))}));varE=Object.assign({},function(e){return{"Page.getElement":function(t){returne.querySelector(e.getDocument(t.pageId),t.selector)},"Page.getElements":function(t){returne.querySelectorAll(e.getDocument(t.pageId),t.selector)},"Page.getWindowProperties":function(t){returne.queryProperties(e.getWindow(t.pageId),t.names)}}}(y),function(e){vart=function(t){returne.getEl(t.elementId,t.pageId)};return{"Element.getElement":function(r){returne.querySelector(t(r),r.selector)},"Element.getElements":function(r){returne.querySelectorAll(t(r),r.selector)},"Element.getDOMProperties":function(r){returne.queryProperties(t(r),r.names)},"Element.getProperties":function(r){varn=t(r),o=n.__vue__||n.attr||{};returne.queryProperties(o,r.names)},"Element.getOffset":function(r){returne.getOffset(t(r))},"Element.getAttributes":function(r){returne.queryAttributes(t(r),r.names)},"Element.getStyles":function(r){returne.queryStyles(t(r),r.names)},"Element.getHTML":function(r){returne.queryHTML(t(r),r.type)},"Element.tap":function(r){returne.dispatchTapEvent(t(r))},"Element.longpress":function(r){returne.dispatchLongpressEvent(t(r))},"Element.touchstart":function(r){returne.dispatchTouchEvent(t(r),"touchstart",r)},"Element.touchmove":function(r){returne.dispatchTouchEvent(t(r),"touchmove",r)},"Element.touchend":function(r){returne.dispatchTouchEvent(t(r),"touchend",r)},"Element.callFunction":function(r){returne.callFunction(t(r),r.functionName,r.args)},"Element.triggerEvent":function(r){returne.triggerEvent(t(r),r.type,r.detail)}}}(y));functionw(e){returnUniViewJSBridge.publishHandler("onAutoMessageReceive",e)}UniViewJSBridge.subscribe("sendAutoMessage",(function(e){vart=e.id,r=e.method,n=e.params,o={id:t},u=E[r];if(!u)returno.error={message:r+" unimplemented"},w(o);try{u(n).then((function(e){e&&(o.result=e)})).catch((function(e){o.error={message:e.message}})).finally((function(){w(o)}))}catch(e){o.error={message:e.message},w(o)}}));
functione(){for(vare=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;varn=Array(e),o=0;for(t=0;t<r;t++)for(varu=arguments[t],i=0,c=u.length;i<c;i++,o++)n[o]=u[i];returnn}vart="undefined"!=typeofcrypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeofmsCrypto&&"function"==typeofmsCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),r=newUint8Array(16);functionn(){if(!t)thrownewError("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");returnt(r)}for(varo=[],u=0;u<256;++u)o[u]=(u+256).toString(16).substr(1);functioni(e,t,r){varu=t&&r||0;"string"==typeofe&&(t="binary"===e?newArray(16):null,e=null);vari=(e=e||{}).random||(e.rng||n)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(varc=0;c<16;++c)t[u+c]=i[c];returnt||function(e,t){varr=t||0,n=o;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}(i)}varc=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(e){vart=Object.create(null);returnfunction(r){returnt[r]||(t[r]=e(r))}},l=/-(\w)/g,f=s((function(e){returne.replace(l,(function(e,t){returnt?t.toUpperCase():""}))})),p=s((function(e){returne.charAt(0).toUpperCase()+e.slice(1)})),g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;functiond(e,t){if(a(e))returne;if(t&&(r=t,n=e,c.call(r,n)))return[e];varr,n,o=[];returne.replace(g,(function(e,t,r,n){returno.push(r?n.replace(/\\(\\)?/g,"$1"):t||e),n})),o}functionm(e,t){varr,n=d(t,e);for(r=n.shift();null!=r;){if(null==(e=e[r]))return;r=n.shift()}returne}varv=newMap;functionh(e){if(!function(e){if(e){vart=e.tagName;return0===t.indexOf("UNI-")||"BODY"===t}return!1}(e))throwError("no such element");vart,r,n={elementId:(t=e,r=t._id,r||(r=i(),t._id=r,v.set(r,{id:r,element:t})),r),tagName:e.tagName.toLocaleLowerCase().replace("uni-","")},o=e.__vue__;returno.$parent&&o.$parent.$el===e&&(o=o.$parent),o&&!o.$options.isReserved&&(n.nodeId=function(e){if(e._$weex)returne._uid;if(e._$id)returne._$id;vart=function(e){for(vart=e.$parent;t;){if(t._$id)returnt;t=t.$parent}}(e);if(!e.$parent)return"-1";varr=e.$vnode,n=r.context;returnn&&n!==t&&n._$id?n._$id+";"+t._$id+","+r.data.attrs._i:t._$id+","+r.data.attrs._i}(o)),"video"===n.tagName&&(n.videoId=n.nodeId),n}var_={input:{input:function(e,t){varr=e.__vue__;r.valueSync=t,r.$triggerInput({},{value:t})}},textarea:{input:function(e,t){varr=e.__vue__;r.valueSync=t,r.$triggerInput({},{value:t})}},"scroll-view":{scrollTo:function(e,t,r){varn=e.__vue__.$refs.main;n.scrollLeft=t,n.scrollTop=r},scrollTop:function(e){returne.__vue__.$refs.main.scrollTop},scrollLeft:function(e){returne.__vue__.$refs.main.scrollLeft},scrollWidth:function(e){returne.__vue__.$refs.main.scrollWidth},scrollHeight:function(e){returne.__vue__.$refs.main.scrollHeight}},swiper:{swipeTo:function(e,t){e.__vue__.current=t}},"movable-view":{moveTo:function(e,t,r){e.__vue__._animationTo(t,r)}},switch:{tap:function(e){e.click()}},slider:{slideTo:function(e,t){varr=e.__vue__,n=r.$refs["uni-slider"],o=n.offsetWidth,u=n.getBoundingClientRect().left;r.value=t,r._onClick({x:(t-r.min)*o/(r.max-r.min)+u})}}},y={getWindow:function(e){returnwindow},getDocument:function(e){returndocument},getEl:function(e){vart=v.get(e);if(!t)throwError("element destroyed");returnt.element},getOffset:function(e){vart=e.getBoundingClientRect();returnPromise.resolve({left:t.left+window.pageXOffset,top:t.top+window.pageYOffset})},querySelector:function(e,t){returnPromise.resolve(h(e.querySelector(t)))},querySelectorAll:function(e,t){varr=[];returndocument.querySelectorAll(t).forEach((function(e){try{r.push(h(e))}catch(e){}})),Promise.resolve({elements:r})},queryProperties:function(e,t){returnPromise.resolve({properties:t.map((function(t){varr=m(e,t);return"document.documentElement.scrollTop"===t&&0===r&&(r=m(e,"document.body.scrollTop")),r}))})},queryAttributes:function(e,t){returnPromise.resolve({attributes:t.map((function(t){returnString(e.getAttribute(t))}))})},queryStyles:function(e,t){varr=getComputedStyle(e);returnPromise.resolve({styles:t.map((function(e){returnr[e]}))})},queryHTML:function(e,t){returnPromise.resolve({html:(r="outer"===t?e.outerHTML:e.innerHTML,r.replace(/\n/g,"").replace(/(<uni-text[^>]*>)(<span[^>]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(e){return-1<e.indexOf("<body")?"<page>":"</body>"===e?"</page>":0!==e.indexOf("<uni-")&&0!==e.indexOf("</uni-")?"":e.replace(/uni-/g,"").replace(/ role=""/g,"").replace(/ aria-label=""/g,"")})))});varr},dispatchTapEvent:function(e){returne.click(),Promise.resolve()},dispatchLongpressEvent:function(e){returnPromise.resolve()},dispatchTouchEvent:function(e,t,r){r||(r={}),r.touches||(r.touches=[]),r.changedTouches||(r.changedTouches=[]),r.touches.length||r.touches.push({identifier:Date.now(),target:e});varn=r.touches.map((function(e){returnnewTouch(e)})),o=r.changedTouches.map((function(e){returnnewTouch(e)}));returne.dispatchEvent(newTouchEvent(t,{cancelable:!0,bubbles:!0,touches:n,targetTouches:[],changedTouches:o})),Promise.resolve()},callFunction:function(t,r,n){varo=m(_,r);returno?Promise.resolve({result:o.apply(null,e([t],n))}):Promise.reject(Error(r+" not exists"))},triggerEvent:function(e,t,r){varn=e.__vue__;returnn.$trigger&&n.$trigger(t,{},r),Promise.resolve()}};["movable-view","picker","ad","button","checkbox-group","checkbox","form","icon","label","movable-area","navigator","picker-view-column","picker-view","progress","radio-group","radio","rich-text","u-slider","swiper-item","swiper","switch"].map((function(e){returnp(f(e))}));varE=Object.assign({},function(e){return{"Page.getElement":function(t){returne.querySelector(e.getDocument(t.pageId),t.selector)},"Page.getElements":function(t){returne.querySelectorAll(e.getDocument(t.pageId),t.selector)},"Page.getWindowProperties":function(t){returne.queryProperties(e.getWindow(t.pageId),t.names)}}}(y),function(e){vart=function(t){returne.getEl(t.elementId,t.pageId)};return{"Element.getElement":function(r){returne.querySelector(t(r),r.selector)},"Element.getElements":function(r){returne.querySelectorAll(t(r),r.selector)},"Element.getDOMProperties":function(r){returne.queryProperties(t(r),r.names)},"Element.getProperties":function(r){varn=t(r),o=n.__vue__||n.attr||{};returne.queryProperties(o,r.names)},"Element.getOffset":function(r){returne.getOffset(t(r))},"Element.getAttributes":function(r){returne.queryAttributes(t(r),r.names)},"Element.getStyles":function(r){returne.queryStyles(t(r),r.names)},"Element.getHTML":function(r){returne.queryHTML(t(r),r.type)},"Element.tap":function(r){returne.dispatchTapEvent(t(r))},"Element.longpress":function(r){returne.dispatchLongpressEvent(t(r))},"Element.touchstart":function(r){returne.dispatchTouchEvent(t(r),"touchstart",r)},"Element.touchmove":function(r){returne.dispatchTouchEvent(t(r),"touchmove",r)},"Element.touchend":function(r){returne.dispatchTouchEvent(t(r),"touchend",r)},"Element.callFunction":function(r){returne.callFunction(t(r),r.functionName,r.args)},"Element.triggerEvent":function(r){returne.triggerEvent(t(r),r.type,r.detail)}}}(y));functionw(e){returnUniViewJSBridge.publishHandler("onAutoMessageReceive",e)}UniViewJSBridge.subscribe("sendAutoMessage",(function(e){vart=e.id,r=e.method,n=e.params,o={id:t},u=E[r];if(!u)returno.error={message:r+" unimplemented"},w(o);try{u(n).then((function(e){e&&(o.result=e)})).catch((function(e){o.error={message:e.message}})).finally((function(){w(o)}))}catch(e){o.error={message:e.message},w(o)}}));