"use weex:vue";

if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
  Promise.prototype.finally = function(callback) {
    const promise = this.constructor
    return this.then(
      value => promise.resolve(callback()).then(() => value),
      reason => promise.resolve(callback()).then(() => {
        throw reason
      })
    )
  }
};

if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
  const global = uni.requireGlobal()
  ArrayBuffer = global.ArrayBuffer
  Int8Array = global.Int8Array
  Uint8Array = global.Uint8Array
  Uint8ClampedArray = global.Uint8ClampedArray
  Int16Array = global.Int16Array
  Uint16Array = global.Uint16Array
  Int32Array = global.Int32Array
  Uint32Array = global.Uint32Array
  Float32Array = global.Float32Array
  Float64Array = global.Float64Array
  BigInt64Array = global.BigInt64Array
  BigUint64Array = global.BigUint64Array
};


(()=>{var S=Object.create;var _=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var P=(a,n)=>()=>(n||a((n={exports:{}}).exports,n),n.exports);var D=(a,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C(n))!L.call(a,o)&&o!==t&&_(a,o,{get:()=>n[o],enumerable:!(r=w(n,o))||r.enumerable});return a};var g=(a,n,t)=>(t=a!=null?S(I(a)):{},D(n||!a||!a.__esModule?_(t,"default",{value:a,enumerable:!0}):t,a));var h=P((j,T)=>{T.exports=Vue});var p=g(h());var d=(a,n)=>{let t=a.__vccOpts||a;for(let[r,o]of n)t[r]=o;return t};var R={name:"u-link",props:{href:{type:String,default:""},text:{type:String,default:""},inWhiteList:{type:Boolean,default:!1}},methods:{openURL(){plus.runtime.openURL(this.href)}}};function F(a,n,t,r,o,i){return(0,p.openBlock)(),(0,p.createElementBlock)("u-text",{style:{"text-decoration":"underline"},href:t.href,onClick:n[0]||(n[0]=(...m)=>i.openURL&&i.openURL(...m)),inWhiteList:t.inWhiteList},(0,p.toDisplayString)(t.text),9,["href","inWhiteList"])}var y=d(R,[["render",F]]);var e=g(h());var K=g(h());function b(a,n){return typeof a=="string"?n:a}var l=g(h());var W={name:"page-head",props:{title:{type:String,default:""}}};function A(a,n,t,r,o,i){return(0,l.openBlock)(),(0,l.createElementBlock)("view",{class:"common-page-head",renderWhole:!0},[(0,l.createElementVNode)("view",{class:"common-page-head-title"},[(0,l.createElementVNode)("u-text",null,(0,l.toDisplayString)(t.title),1)])])}var k=d(W,[["render",A]]);var N={button:{"":{marginTop:"30rpx",marginLeft:0,marginRight:0}},"btn-area":{"":{paddingTop:"30rpx"}}},E={data(){return{title:"tababr",hasSetTabBarBadge:!1,hasShownTabBarRedDot:!1,hasCustomedStyle:!1,hasCustomedItem:!1,hasHiddenTabBar:!1}},destroyed(){if(this.hasSetTabBarBadge&&uni.removeTabBarBadge({index:1}),this.hasShownTabBarRedDot&&uni.hideTabBarRedDot({index:1}),this.hasHiddenTabBar&&uni.showTabBar(),this.hasCustomedStyle&&uni.setTabBarStyle({color:"#7A7E83",selectedColor:"#007AFF",backgroundColor:"#F8F8F8",borderStyle:"black"}),this.hasCustomedItem){let a={index:1,text:"\u63A5\u53E3",iconPath:"/static/api.png",selectedIconPath:"/static/apiHL.png"};uni.setTabBarItem(a)}},methods:{navigateBack(){this.$emit("unmount")},setTabBarBadge(){this.hasShownTabBarRedDot&&(uni.hideTabBarRedDot({index:1}),this.hasShownTabBarRedDot=!this.hasShownTabBarRedDot),this.hasSetTabBarBadge?uni.removeTabBarBadge({index:1}):uni.setTabBarBadge({index:1,text:"1"}),this.hasSetTabBarBadge=!this.hasSetTabBarBadge},showTabBarRedDot(){this.hasSetTabBarBadge&&(uni.removeTabBarBadge({index:1}),this.hasSetTabBarBadge=!this.hasSetTabBarBadge),this.hasShownTabBarRedDot?uni.hideTabBarRedDot({index:1}):uni.showTabBarRedDot({index:1}),this.hasShownTabBarRedDot=!this.hasShownTabBarRedDot},hideTabBar(){this.hasHiddenTabBar?uni.showTabBar():uni.hideTabBar(),this.hasHiddenTabBar=!this.hasHiddenTabBar},customStyle(){this.hasCustomedStyle?uni.setTabBarStyle({color:"#7A7E83",selectedColor:"#007AFF",backgroundColor:"#F8F8F8",borderStyle:"black"}):uni.setTabBarStyle({color:"#FFF",selectedColor:"#007AFF",backgroundColor:"#000000",borderStyle:"black"}),this.hasCustomedStyle=!this.hasCustomedStyle},customItem(){let a={index:1,text:"\u63A5\u53E3",iconPath:"/static/api.png",selectedIconPath:"/static/apiHL.png"};this.hasCustomedItem||(a.text="API"),uni.setTabBarItem(a),this.hasCustomedItem=!this.hasCustomedItem}}};function H(a,n,t,r,o,i){let m=b((0,e.resolveDynamicComponent)("page-head"),k),u=(0,e.resolveComponent)("button");return(0,e.openBlock)(),(0,e.createElementBlock)("view",{class:"uni-padding-wrap",renderWhole:!0},[(0,e.createVNode)(m,{title:o.title},null,8,["title"]),(0,e.createVNode)(u,{class:"button",onClick:i.setTabBarBadge},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(o.hasSetTabBarBadge?"\u79FB\u9664tab\u5FBD\u6807":"\u8BBE\u7F6Etab\u5FBD\u6807"),1)]),_:1},8,["onClick"]),(0,e.createVNode)(u,{class:"button",onClick:i.showTabBarRedDot},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(o.hasShownTabBarRedDot?"\u79FB\u9664\u7EA2\u70B9":"\u663E\u793A\u7EA2\u70B9"),1)]),_:1},8,["onClick"]),(0,e.createVNode)(u,{class:"button",onClick:i.customStyle},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(o.hasCustomedStyle?"\u79FB\u9664\u81EA\u5B9A\u4E49\u6837\u5F0F":"\u81EA\u5B9A\u4E49Tab\u6837\u5F0F"),1)]),_:1},8,["onClick"]),(0,e.createVNode)(u,{class:"button",onClick:i.customItem},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(o.hasCustomedItem?"\u79FB\u9664\u81EA\u5B9A\u4E49\u4FE1\u606F":"\u81EA\u5B9A\u4E49Tab\u4FE1\u606F"),1)]),_:1},8,["onClick"]),(0,e.createVNode)(u,{class:"button",onClick:i.hideTabBar},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(o.hasHiddenTabBar?"\u663E\u793ATabBar":"\u9690\u85CFTabBar"),1)]),_:1},8,["onClick"]),(0,e.createElementVNode)("view",{class:"btn-area"},[(0,e.createVNode)(u,{class:"button",type:"primary",onClick:i.navigateBack},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)("\u8FD4\u56DE\u4E0A\u4E00\u7EA7")]),_:1},8,["onClick"])])])}var V=d(E,[["render",H],["styles",[N]]]),z="/static/apiIndex.png",q={"uni-icon":{"":{fontFamily:"uniicons",fontWeight:"normal"}},"uni-container":{"":{paddingTop:15,paddingRight:15,paddingBottom:15,paddingLeft:15,backgroundColor:"#f8f8f8"}},"uni-header-logo":{"":{paddingTop:15,paddingRight:15,paddingBottom:15,paddingLeft:15,flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10rpx"}},"uni-header-image":{"":{width:80,height:80}},"uni-hello-text":{"":{marginBottom:20}},"hello-text":{"":{color:"#7A7E83",fontSize:14,lineHeight:20}},"hello-link":{"":{color:"#7A7E83",fontSize:14,lineHeight:20}},"uni-panel":{"":{marginBottom:12}},"uni-panel-h":{"":{backgroundColor:"#ffffff","!flexDirection":"row","!alignItems":"center",paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12}},"uni-panel-h-on":{"":{backgroundColor:"#f0f0f0"}},"uni-panel-text":{"":{flex:1,color:"#000000",fontSize:14,fontWeight:"normal"}},"uni-panel-icon":{"":{marginLeft:15,color:"#999999",fontSize:14,fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"}},"uni-panel-icon-on":{"":{transform:"rotate(180deg)"}},"uni-navigate-item":{"":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:1,paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,"backgroundColor:active":"#f8f8f8"}},"uni-navigate-text":{"":{flex:1,color:"#000000",fontSize:14,fontWeight:"normal"}},"uni-navigate-icon":{"":{marginLeft:15,color:"#999999",fontSize:14,fontWeight:"normal"}},"@TRANSITION":{"uni-panel-icon":{duration:0,property:"transform"}}},O={components:{setTabBar:V},props:{hasLeftWin:{type:Boolean},leftWinActive:{type:String}},data(){return{showSetTabBarPage:!1,list:[{id:"page",name:"\u754C\u9762",open:!1,pages:[{name:"\u8BBE\u7F6E\u5BFC\u822A\u6761",url:"set-navigation-bar-title"},{name:"\u539F\u751F\u5B50\u7A97\u4F53",url:"subnvue"},{name:"\u9875\u9762\u8DF3\u8F6C",url:"navigator"},{name:"\u8BBE\u7F6ETabBar",url:"set-tabbar"},{name:"\u4E0B\u62C9\u5237\u65B0",url:"pull-down-refresh"},{name:"\u521B\u5EFA\u52A8\u753B",url:"animation"},{name:"\u521B\u5EFA\u7ED8\u753B",url:"canvas"},{name:"\u8282\u70B9\u4FE1\u606F",url:"get-node-info"},{name:"\u8282\u70B9\u5E03\u5C40\u4EA4\u4E92\u72B6\u6001",url:"intersection-observer"},{name:"\u663E\u793A\u64CD\u4F5C\u83DC\u5355",url:"action-sheet"},{name:"\u663E\u793A\u6A21\u6001\u5F39\u7A97",url:"modal"},{name:"\u663E\u793A\u52A0\u8F7D\u63D0\u793A\u6846",url:"show-loading"},{name:"\u663E\u793A\u6D88\u606F\u63D0\u793A\u6846",url:"toast"}]},{id:"device",name:"\u8BBE\u5907",open:!1,pages:[{name:"\u83B7\u53D6\u8BBE\u5907\u7F51\u7EDC\u72B6\u6001",url:"get-network-type"},{name:"\u83B7\u53D6\u8BBE\u5907\u7CFB\u7EDF\u4FE1\u606F",url:"get-system-info"},{name:"\u6253\u7535\u8BDD",url:"make-phone-call"},{name:"\u9707\u52A8",url:"vibrate"},{name:"\u6DFB\u52A0\u624B\u673A\u8054\u7CFB\u4EBA",url:"add-phone-contact"},{name:"\u626B\u7801",url:"scan-code"},{name:"\u526A\u8D34\u677F",url:"clipboard"},{name:"\u5C4F\u5E55\u4EAE\u5EA6",url:"brightness"},{name:"\u84DD\u7259",url:"bluetooth"},{name:"\u751F\u7269\u8BA4\u8BC1",url:"soter"},{name:"iBeacon",url:"ibeacon"},{name:"\u76D1\u542C\u52A0\u901F\u5EA6\u4F20\u611F\u5668",url:"on-accelerometer-change"},{name:"\u76D1\u542C\u7F57\u76D8\u6570\u636E",url:"on-compass-change"},{name:"\u76D1\u542C\u8DDD\u79BB\u4F20\u611F\u5668",url:"/platforms/app-plus/proximity/proximity"},{name:"\u76D1\u542C\u65B9\u5411\u4F20\u611F\u5668",url:"/platforms/app-plus/orientation/orientation"}]},{id:"network",name:"\u7F51\u7EDC",open:!1,pages:[{name:"\u53D1\u8D77\u4E00\u4E2A\u8BF7\u6C42",url:"request"},{name:"\u4E0A\u4F20\u6587\u4EF6",url:"upload-file"},{name:"\u4E0B\u8F7D\u6587\u4EF6",url:"download-file"}]},{id:"websocket",name:"websocket",open:!1,pages:[{name:"socketTask",url:"websocket-socketTask"},{name:"\u5168\u5C40websocket",url:"websocket-global"}]},{id:"media",name:"\u5A92\u4F53",open:!1,pages:[{name:"\u56FE\u7247",url:"image"},{name:"\u97F3\u9891",url:"inner-audio"},{name:"\u5F55\u97F3",url:"voice"},{name:"\u80CC\u666F\u97F3\u9891",url:"background-audio"},{name:"\u89C6\u9891",url:"video"},{name:"\u6587\u4EF6",url:"file"},{name:"\u4FDD\u5B58\u5A92\u4F53\u5230\u672C\u5730",url:"save-media"}]},{id:"location",name:"\u4F4D\u7F6E",open:!1,pages:[{name:"\u83B7\u53D6\u5F53\u524D\u4F4D\u7F6E",url:"get-location"},{name:"\u4F7F\u7528\u5730\u56FE\u67E5\u770B\u4F4D\u7F6E",url:"open-location"},{name:"\u4F7F\u7528\u5730\u56FE\u9009\u62E9\u4F4D\u7F6E",url:"choose-location"},{name:"\u5730\u56FE\u63A7\u5236",url:"map"},{name:"\u5730\u56FE\u641C\u7D22",url:"map-search"}]},{id:"storage",name:"\u6570\u636E",open:!1,pages:[{name:"\u6570\u636E\u5B58\u50A8\uFF08key-value\uFF09",url:"storage"},{name:"SQLite",url:"sqlite"}]},{url:"rewarded-video-ad",name:"\u6FC0\u52B1\u89C6\u9891\u5E7F\u544A",open:!1},{url:"full-screen-video-ad",name:"\u5168\u5C4F\u89C6\u9891\u5E7F\u544A",open:!1},{id:"login",name:"\u767B\u5F55",open:!1,pages:[{name:"\u767B\u5F55",url:"login"},{name:"\u83B7\u53D6\u7528\u6237\u4FE1\u606F",url:"get-user-info"}]},{id:"share",name:"\u5206\u4EAB",open:!1,pages:[{name:"\u5206\u4EAB",url:"share"}]},{id:"payment",name:"\u652F\u4ED8",open:!1,pages:[{name:"\u53D1\u8D77\u652F\u4ED8",url:"request-payment"}]},{id:"speech",name:"\u8BED\u97F3",open:!1,pages:[{name:"\u8BED\u97F3\u8BC6\u522B",url:"/platforms/app-plus/speech/speech"}]},{id:"push",name:"\u63A8\u9001",open:!1,pages:[{name:"\u63A8\u9001",url:"/platforms/app-plus/push/push"}]}],notForPc:[{name:"\u8BBE\u7F6ETabBar",url:"set-tabbar"}]}},onShareAppMessage(){return{title:"\u6B22\u8FCE\u4F53\u9A8Cuni-app",path:"/pages/tabBar/API/API"}},onNavigationBarButtonTap(a){uni.navigateTo({url:"/pages/about/about"})},onLoad(){},onReady(){},onShow(){this.navigateFlag=!1,this.leaveSetTabBarPage()},onHide(){this.leaveSetTabBarPage()},methods:{triggerCollapse(a,n){if(!this.list[a].pages){this.goDetailPage("",this.list[a].url);return}for(var t=0;t<this.list.length;++t)a===t?this.list[t].open=!this.list[t].open:this.list[t].open=!1},goDetailPage(a,n){if(n==="set-tabbar"){this.showSetTabBarPage=!0;return}let t=~n.indexOf("platform")?n:"/pages/API/"+n+"/"+n;this.hasLeftWin?uni.reLaunch({url:t}):uni.navigateTo({url:t})},leaveSetTabBarPage(){this.showSetTabBarPage=!1}}};function U(a,n,t,r,o,i){let m=(0,e.resolveComponent)("set-tab-bar"),u=b((0,e.resolveDynamicComponent)("u-link"),y);return(0,e.openBlock)(),(0,e.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,e.createElementVNode)("view",{class:"uni-container"},[o.showSetTabBarPage?((0,e.openBlock)(),(0,e.createBlock)(m,{key:0,onUnmount:i.leaveSetTabBarPage},null,8,["onUnmount"])):((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:1},[t.hasLeftWin?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:0,class:"uni-header-logo"},[(0,e.createElementVNode)("u-image",{class:"uni-header-image",src:z})])),t.hasLeftWin?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:1,class:"uni-hello-text"},[(0,e.createElementVNode)("u-text",{class:"hello-text"},"\u4EE5\u4E0B\u5C06\u6F14\u793Auni-app\u63A5\u53E3\u80FD\u529B\uFF0C\u8BE6\u7EC6\u6587\u6863\u89C1\uFF1A"),(0,e.createVNode)(u,{class:"hello-link",href:"https://uniapp.dcloud.io/api/",text:"https://uniapp.dcloud.io/api/",inWhiteList:!0},null,8,["href","text"])])),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.list,(s,v)=>((0,e.openBlock)(),(0,e.createElementBlock)("view",{class:"uni-panel",key:s.id},[(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)(["uni-panel-h",s.open?"uni-panel-h-on":""]),onClick:c=>i.triggerCollapse(v,s.id)},[(0,e.createElementVNode)("u-text",{class:"uni-panel-text"},(0,e.toDisplayString)(s.name),1),(0,e.createElementVNode)("u-text",{class:(0,e.normalizeClass)(["uni-panel-icon uni-icon",s.open?"uni-panel-icon-on":""])},(0,e.toDisplayString)(s.pages?"\uE581":"\uE470"),3)],10,["onClick"]),s.open?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:0,class:"uni-panel-c"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(s.pages,(c,x)=>((0,e.openBlock)(),(0,e.createElementBlock)("view",{class:(0,e.normalizeClass)([{"left-win-active":t.leftWinActive===c.url&&t.hasLeftWin,"pc-hide":c.name==="\u8BBE\u7F6ETabBar"&&t.hasLeftWin},"uni-navigate-item"]),key:x,url:s.url,onClick:M=>i.goDetailPage(s.id,c.url)},[(0,e.createElementVNode)("u-text",{class:"uni-navigate-text"},(0,e.toDisplayString)(c.name?c.name:c),1),(0,e.createElementVNode)("u-text",{class:"uni-navigate-icon uni-icon"},"\uE470")],10,["url","onClick"]))),128))])):(0,e.createCommentVNode)("",!0)]))),128))],64))])])}var f=d(O,[["render",U],["styles",[q]]]);var B=plus.webview.currentWebview();if(B){let a=parseInt(B.id),n="pages/tabBar/API/API",t={};try{t=JSON.parse(B.__query__)}catch(o){}f.mpType="page";let r=Vue.createPageApp(f,{$store:getApp({allowDefault:!0}).$store,__pageId:a,__pagePath:n,__pageQuery:t});r.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...f.styles||[]])),r.mount("#root")}})();
