!function(e,n){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=n():"function"==typeofdefine&&define.amd?define(n):(e=e||self).uni=n()}(this,function(){"use strict";functioni(e,n){vari={options:{timestamp:+newDate},name:e,arg:n};if(window.__dcloud_weex_postMessage||window.__dcloud_weex_){if("postMessage"===e){vart={data:[n]};returnwindow.__dcloud_weex_postMessage?window.__dcloud_weex_postMessage(t):window.__dcloud_weex_.postMessage(JSON.stringify(t))}varo={type:c,args:{data:i,webviewIds:w}};window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessageToService(o):window.__dcloud_weex_.postMessageToService(JSON.stringify(o))}if(!window.plus)returnwindow.parent.postMessage({type:c,data:i,pageId:""},"*");if(0===w.length){vara=plus.webview.currentWebview();if(!a)thrownewError("plus.webview.currentWebview() is undefined");vard=a.parent(),r="";r=d?d.id:a.id,w.push(r)}if(plus.webview.getWebviewById(u))plus.webview.postMessageToUniNView({type:c,args:{data:i,webviewIds:w}},u);else{vars=JSON.stringify(i);plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler("'.concat(c,'",').concat(s,",").concat(JSON.stringify(w),");"))}}varw=[],u="__uniapp__service",c="WEB_INVOKE_APPSERVICE",n={navigateTo:function(e){varn=(0<arguments.length&&void0!==e?e:{}).url;i("navigateTo",{url:encodeURI(n)})},navigateBack:function(e){varn=(0<arguments.length&&void0!==e?e:{}).delta;i("navigateBack",{delta:parseInt(n)||1})},switchTab:function(e){varn=(0<arguments.length&&void0!==e?e:{}).url;i("switchTab",{url:encodeURI(n)})},reLaunch:function(e){varn=(0<arguments.length&&void0!==e?e:{}).url;i("reLaunch",{url:encodeURI(n)})},redirectTo:function(e){varn=(0<arguments.length&&void0!==e?e:{}).url;i("redirectTo",{url:encodeURI(n)})},getEnv:function(e){window.plus?e({plus:!0}):e({h5:!0})},postMessage:function(e){i("postMessage",(0<arguments.length&&void0!==e?e:{}).data||{})}},t=/uni-app/i.test(navigator.userAgent),o=/complete|loaded|interactive/;vara=window.my&&-1<navigator.userAgent.indexOf("AlipayClient");vard=window.swan&&window.swan.webView&&/swan/i.test(navigator.userAgent);varr=window.qq&&window.qq.miniProgram&&/QQ/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);vars=window.tt&&window.tt.miniProgram&&/toutiaomicroapp/i.test(navigator.userAgent);varg=window.wx&&window.wx.miniProgram&&/micromessenger/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);for(vare,v=function(){window.UniAppJSBridge=!0,document.dispatchEvent(newCustomEvent("UniAppJSBridgeReady",{bubbles:!0,cancelable:!0}))},p=[function(e){if(t)returnwindow.__dcloud_weex_postMessage||window.__dcloud_weex_?document.addEventListener("DOMContentLoaded",e):window.plus&&o.test(document.readyState)?setTimeout(e,0):document.addEventListener("plusready",e),n},function(e){if(g)returnwindow.WeixinJSBridge&&window.WeixinJSBridge.invoke?setTimeout(e,0):document.addEventListener("WeixinJSBridgeReady",e),window.wx.miniProgram},function(e){if(r)returnwindow.QQJSBridge&&window.QQJSBridge.invoke?setTimeout(e,0):document.addEventListener("QQJSBridgeReady",e),window.qq.miniProgram},function(e){if(a){document.addEventListener("DOMContentLoaded",e);varn=window.my;return{navigateTo:n.navigateTo,navigateBack:n.navigateBack,switchTab:n.switchTab,reLaunch:n.reLaunch,redirectTo:n.redirectTo,postMessage:n.postMessage,getEnv:n.getEnv}}},function(e){if(d)returndocument.addEventListener("DOMContentLoaded",e),window.swan.webView},function(e){if(s)returndocument.addEventListener("DOMContentLoaded",e),window.tt.miniProgram},function(e){returndocument.addEventListener("DOMContentLoaded",e),n}],l=0;l<p.length&&!(e=p[l](v));l++);e=e||{};varf="undefined"!=typeofuni?uni:{};returnf.navigateTo?f.webView=e:Object.assign(f,e,{webView:e}),f});
!function(e,n){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=n():"function"==typeofdefine&&define.amd?define(n):(e=e||self).uni=n()}(this,function(){"use strict";functioni(e,n){vari={options:{timestamp:+newDate},name:e,arg:n};if(window.__dcloud_weex_postMessage||window.__dcloud_weex_){if("postMessage"===e){vart={data:[n]};returnwindow.__dcloud_weex_postMessage?window.__dcloud_weex_postMessage(t):window.__dcloud_weex_.postMessage(JSON.stringify(t))}varo={type:c,args:{data:i,webviewIds:w}};window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessageToService(o):window.__dcloud_weex_.postMessageToService(JSON.stringify(o))}if(!window.plus)returnwindow.parent.postMessage({type:c,data:i,pageId:""},"*");if(0===w.length){vara=plus.webview.currentWebview();if(!a)thrownewError("plus.webview.currentWebview() is undefined");vard=a.parent(),r="";r=d?d.id:a.id,w.push(r)}if(plus.webview.getWebviewById(u))plus.webview.postMessageToUniNView({type:c,args:{data:i,webviewIds:w}},u);else{vars=JSON.stringify(i);plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler("'.concat(c,'",').concat(s,",").concat(JSON.stringify(w),");"))}}varw=[],u="__uniapp__service",c="WEB_INVOKE_APPSERVICE",n={navigateTo:function(e){varn=(0<arguments.length&&void0!==e?e:{}).url;i("navigateTo",{url:encodeURI(n)})},navigateBack:function(e){varn=(0<arguments.length&&void0!==e?e:{}).delta;i("navigateBack",{delta:parseInt(n)||1})},switchTab:function(e){varn=(0<arguments.length&&void0!==e?e:{}).url;i("switchTab",{url:encodeURI(n)})},reLaunch:function(e){varn=(0<arguments.length&&void0!==e?e:{}).url;i("reLaunch",{url:encodeURI(n)})},redirectTo:function(e){varn=(0<arguments.length&&void0!==e?e:{}).url;i("redirectTo",{url:encodeURI(n)})},getEnv:function(e){window.plus?e({plus:!0}):e({h5:!0})},postMessage:function(e){i("postMessage",(0<arguments.length&&void0!==e?e:{}).data||{})}},t=/uni-app/i.test(navigator.userAgent),o=/complete|loaded|interactive/;vara=window.my&&-1<navigator.userAgent.indexOf("AlipayClient");vard=window.swan&&window.swan.webView&&/swan/i.test(navigator.userAgent);varr=window.qq&&window.qq.miniProgram&&/QQ/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);vars=window.tt&&window.tt.miniProgram&&/toutiaomicroapp/i.test(navigator.userAgent);varg=window.wx&&window.wx.miniProgram&&/micromessenger/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);for(vare,v=function(){window.UniAppJSBridge=!0,document.dispatchEvent(newCustomEvent("UniAppJSBridgeReady",{bubbles:!0,cancelable:!0}))},p=[function(e){if(t)returnwindow.__dcloud_weex_postMessage||window.__dcloud_weex_?document.addEventListener("DOMContentLoaded",e):window.plus&&o.test(document.readyState)?setTimeout(e,0):document.addEventListener("plusready",e),n},function(e){if(g)returnwindow.WeixinJSBridge&&window.WeixinJSBridge.invoke?setTimeout(e,0):document.addEventListener("WeixinJSBridgeReady",e),window.wx.miniProgram},function(e){if(r)returnwindow.QQJSBridge&&window.QQJSBridge.invoke?setTimeout(e,0):document.addEventListener("QQJSBridgeReady",e),window.qq.miniProgram},function(e){if(a){document.addEventListener("DOMContentLoaded",e);varn=window.my;return{navigateTo:n.navigateTo,navigateBack:n.navigateBack,switchTab:n.switchTab,reLaunch:n.reLaunch,redirectTo:n.redirectTo,postMessage:n.postMessage,getEnv:n.getEnv}}},function(e){if(d)returndocument.addEventListener("DOMContentLoaded",e),window.swan.webView},function(e){if(s)returndocument.addEventListener("DOMContentLoaded",e),window.tt.miniProgram},function(e){returndocument.addEventListener("DOMContentLoaded",e),n}],l=0;l<p.length&&!(e=p[l](v));l++);e=e||{};varf="undefined"!=typeofuni?uni:{};if(!f.navigateTo)for(var_ine)e.hasOwnProperty(_)&&(f[_]=e[_]);returnf.webView=e,f});