var dsl=function(){"use strict";const e={initApp:"quickapp.app.initApp",initPage:"quickapp.page.initPage",destroyPage:"quickapp.page.destroyPage",fireEvent:"quickapp.page.fireEvent",onShow:"quickapp.page.onShow",onHide:"quickapp.page.onHide",onBackPress:"quickapp.page.onBackPress",onMenuPress:"quickapp.page.onMenuPress",onOrientationChange:"quickapp.page.onOrientationChange",onConfigurationChanged:"quickapp.page.onConfigurationChanged",onRefresh:"quickapp.page.onRefresh",callbackDone:"quickapp.page.callbackDone"},t=/^@(app)-application\//,n=/^@(app)-component\//,r=/^@(app)-module\//;function o(e){return e.replace(t,"").replace(n,"").replace(r,"")}var i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var a,s,c=(function(e){e.exports=function(e,t,n){var r=Object.freeze({});function o(e){return null==e}function a(e){return null!=e}function s(e){return!0===e}function c(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function p(e){return"[object Object]"===l.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(e,t){return _.call(e,t)}function $(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var A=/-(\w)/g,k=$(function(e){return e.replace(A,function(e,t){return t?t.toUpperCase():""})}),w=$(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),O=/\B([A-Z])/g,x=$(function(e){return e.replace(O,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function S(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function j(e,t){for(var n in t)e[n]=t[n];return e}function E(e,t,n){}var P=function(e,t,n){return!1},I=function(e){return e};function F(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every(function(e,n){return F(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every(function(n){return F(e[n],t[n])})}catch(e){return!1}}function D(e,t){for(var n=0;n0,X=W&&W.indexOf("edge/")>0,G=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===K),Z=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/),{}.watch);if(U)try{var Y={};Object.defineProperty(Y,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Y)}catch(e){}var ee=function(){return void 0===B&&(B=!U&&!z&&void 0!==i&&(i.process&&"server"===i.process.env.VUE_ENV)),B},te=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ne(e){return"function"==typeof e&&/native code/.test(e.toString())}var re,oe="undefined"!=typeof Symbol&&ne(Symbol)&&"undefined"!=typeof Reflect&&ne(Reflect.ownKeys);re="undefined"!=typeof Set&&ne(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ie=E,ae=0,se=function(){"undefined"!=typeof SharedObject?this.id=SharedObject.uid++:this.id=ae++,this.subs=[]};function ce(e){se.SharedObject.targetStack.push(e),se.SharedObject.target=e}function ue(){se.SharedObject.targetStack.pop(),se.SharedObject.target=se.SharedObject.targetStack[se.SharedObject.targetStack.length-1]}se.prototype.addSub=function(e){this.subs.push(e)},se.prototype.removeSub=function(e){g(this.subs,e)},se.prototype.depend=function(){se.SharedObject.target&&se.SharedObject.target.addDep(this)},se.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(i&&!b(o,"default"))a=!1;else if(""===a||a===x(e)){var c=Me(String,o.type);(c<0||s0&&(it((u=e(u,(n||"")+"_"+i))[0])&&it(p)&&(r[l]=de(p.text+u[0].text),u.shift()),r.push.apply(r,u)):c(u)?it(p)?r[l]=de(p.text+u):""!==u&&r.push(de(u)):it(u)&&it(p)?r[l]=de(p.text+u.text):(s(t._isVList)&&a(u.tag)&&o(u.key)&&a(n)&&(u.key="__vlist"+n+"_"+i+"__"),r.push(u)));return r}(e):void 0}function it(e){return a(e)&&a(e.text)&&!1===e.isComment}function at(e,t){if(e){for(var n=Object.create(null),r=oe?Reflect.ownKeys(e):Object.keys(e),o=0;o0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=lt(t,c,e[c]))}else o={};for(var u in t)u in o||(o[u]=pt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=o),R(o,"$stable",a),R(o,"$key",s),R(o,"$hasNormal",i),o}function lt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ot(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function pt(e,t){return function(){return e[t]}}function ft(e,t){var n,r,o,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,o=e.length;rt.createEvent("Event").timeStamp&&(en=function(){return tn.now()})}function nn(){var e,t;for(en(),Zt=!0,Jt.sort(function(e,t){return e.id-t.id}),Yt=0;YtYt&&Jt[n].id>e.id;)n--;Jt.splice(n+1,0,e)}else Jt.push(e);Gt||(Gt=!0,Qe(nn))}}(this)},on.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ne(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},on.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},on.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},on.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var an={enumerable:!0,configurable:!0,get:E,set:E};function sn(e,t,n){an.get=function(){return this[t][n]},an.set=function(e){this[t][n]=e},Object.defineProperty(e,n,an)}function cn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];e.$parent&&_e(!1);var i=function(i){o.push(i);var a=Fe(i,t,n,e);Ae(r,i,a),i in e||sn(e,"_props",i)};for(var a in t)i(a);_e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?E:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;p(t=e._data="function"==typeof t?function(e,t){ce();try{return e.call(t,t)}catch(e){return Ne(e,t,"data()"),{}}finally{ue()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);for(;o--;){var i=n[o];r&&b(r,i)||(a=void 0,36!==(a=(i+"").charCodeAt(0))&&95!==a&&sn(e,"_data",i))}var a;$e(t,!0)}(e):$e(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ee();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;r||(n[o]=new on(e,a||E,E,un)),o in e||ln(e,o,i)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===l.call(n)&&e.test(t));var n}function bn(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=gn(a.componentOptions);s&&!t(s)&&$n(n,i,r,o)}}}function $n(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=vn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Pe(hn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ht(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=st(t._renderChildren,o),e.$scopedSlots=r,e._c=function(t,n,r,o){return Mt(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return Mt(e,t,n,r,o,!0)};var i=n&&n.data;Ae(e,"$attrs",i&&i.attrs||r,null,!0),Ae(e,"$listeners",t._parentListeners||r,null,!0)}(t),Wt(t,"beforeCreate"),"mp-toutiao"!==t.mpHost&&function(e){var t=at(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach(function(n){Ae(e,n,t[n])}),_e(!0))}(t),cn(t),"mp-toutiao"!==t.mpHost&&function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),"mp-toutiao"!==t.mpHost&&Wt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(yn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ke,e.prototype.$delete=we,e.prototype.$watch=function(e,t,n){if(p(t))return dn(this,e,t,n);(n=n||{}).user=!0;var r=new on(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Ne(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(yn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?S(t):t;for(var n=S(arguments,1),r='event handler for "'+e+'"',o=0,i=t.length;oparseInt(this.max)&&$n(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return L}};Object.defineProperty(e,"config",t),e.util={warn:ie,extend:j,mergeOptions:Pe,defineReactive:Ae},e.set=ke,e.delete=we,e.nextTick=Qe,e.observable=function(e){return $e(e),e},e.options=Object.create(null),N.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,j(e.options.components,kn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Pe(this.options,e),this}}(e),mn(e),function(e){N.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&p(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(yn),Object.defineProperty(yn.prototype,"$isServer",{get:ee}),Object.defineProperty(yn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(yn,"FunctionalRenderContext",{value:Ct}),yn.version="2.6.11";function wn(e,t,r){n.setElementAttr(e,t,r)}var On=Object.freeze({namespaceMap:{},createElement:function(e){var r=t.createElement(e);return n.bindElementMethods(r),r},createElementNS:function(e,n){return t.createElement(e+":"+n)},createTextNode:function(e){return t.createTextNode(e)},createComment:function(e){return t.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){n.setElementAttr(e.parentNode,"value",t)},setAttribute:wn}),xn={create:function(e,t){Cn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Cn(e,!0),Cn(t))},destroy:function(e){Cn(e,!0)}};function Cn(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?g(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0);var Sn=y("text,number,password,search,email,tel,url"),jn=new le("",{},[]),En=["create","activate","update","remove","destroy"];function Pn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,o=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===o||Sn(r)&&Sn(o)}(e,t)||s(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&o(t.asyncFactory.error))}function In(e,t,n){var r,o,i={};for(r=t;r<=n;++r)a(o=e[r].key)&&(i[o]=r);return i}var Fn={create:Dn,update:Dn,destroy:function(e){Dn(e,jn)}};function Dn(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===jn,a=t===jn,s=Mn(e.data.directives,e.context),c=Mn(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,qn(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(qn(o,"bind",t,e),o.def&&o.def.inserted&&u.push(o));if(u.length){var p=function(){for(var n=0;n1,P=t.context.$options.style||{},I=P[$],F=P["@TRANSITION"]&&P["@TRANSITION"][k]||{},D=function(e,t,n,r,o,i){var a={},s=t[n],c=t[r],u=t[o];if(s)for(var l in s)a[l]=e.style[l];if(u)for(var p in u)0!==p.indexOf("transition")&&(a[p]=u[p]);c&&j(a,c);return a}(n,P,$,A,k,t.context),M=Object.keys(D).length>0,N=n._enterCb=T(function(){N.cancelled?C&&C(n):x&&x(n),n._enterCb=null});if(setTimeout(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];(r&&r.context===t.context&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,N),M)?t.context.$requireQuickappModule("animation").transition(n.ref,{styles:D,duration:F.duration||0,delay:F.delay||0,timingFunction:F.timingFunction||"linear"},S?E:N):S||N()},16),w&&w(n),I)for(var q in I)n.setStyle(q,I[q]);M||S||N()}}}function ur(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,i=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in a(c.__ob__)&&(c=t.data.domProps=j({},c)),s)o(c[n])&&wn(i,n,"");for(n in c){if(r=c[n],"value"===n)wn(i,n,o(r)?"":String(r));else wn(i,n,r)}}}var lr=function(e){var t,n,r={},i=e.modules,u=e.nodeOps;for(t=0;tv?_(e,o(n[m+1])?null:n[m+1].elm,n,d,m,r):d>m&&$(t,f,v)}(f,y,m,n,l):a(m)?(a(e.text)&&u.setTextContent(f,""),_(f,null,m,0,m.length-1,n)):a(y)?$(y,0,y.length-1):a(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),a(v)&&a(d=v.hook)&&a(d=d.postpatch)&&d(e,t)}}}function O(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r1,d=e.context.$options.style||{},v=d[o],h=d[i]||d[a],y=d["@TRANSITION"]&&d["@TRANSITION"][a]||{},m=n._leaveCb=T(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),m.cancelled?l&&l(n):(t(),u&&u(n)),n._leaveCb=null});p?p(g):g();function g(){var t=e.context.$requireQuickappModule("animation");function r(){t.transition(n.ref,{styles:h,duration:y.duration||0,delay:y.delay||0,timingFunction:y.timingFunction||"linear"},f?E:m)}m.cancelled||(e.data.show||((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),s&&s(n),v?t.transition(n.ref,{styles:v},r):r(),c&&c(n,m),h||f||m())}}}].concat(Ln),LONG_LIST_THRESHOLD:10}),pr={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?tt(n,"postpatch",function(){pr.componentUpdated(e,t,n)}):fr(e,t,n.context),e._vOptions=[].map.call(e.options,vr)):("textarea"===n.tag||Jn(e.attr.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||e.addEventListener("change",hr))},componentUpdated:function(e,t,n){if("select"===n.tag){fr(e,t,n.context);var r=e._vOptions,o=e._vOptions=[].map.call(e.options,vr);if(o.some(function(e,t){return!F(e,r[t])}))(e.multiple?t.value.some(function(e){return dr(e,o)}):t.value!==t.oldValue&&dr(t.value,o))&&yr(e,"change")}}};function fr(e,t,n){!function(e,t,n){var r,o,i=t.value,a=e.multiple;if(a&&!Array.isArray(i))return;for(var s=0,c=e.options.length;s-1,o.selected!==r&&(o.selected=r);else if(F(vr(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}(e,t)}function dr(e,t){return t.every(function(t){return!F(t,e)})}function vr(e){return"_value"in e?e._value:e.value}function hr(e){e.target.composing=!1,yr(e.target,"input")}function yr(e,n){var r=t.createEvent(n);e.dispatchEvent(r)}var mr={model:pr,show:{bind:function(e,t,r){var o=t.value,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display||"";n.setElementStyle(e,"display",o?i:"none")},update:function(e,t,r){var o=t.value;o!==t.oldValue&&n.setElementStyle(e,"display",o?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,o,i){i||n.setElementStyle(e,"display",e.__vOriginalDisplay)}}};j(yn.options.directives,mr),j(yn.options.components,{});var gr=["public","protected","private"];yn.config.mustUseProp=function(){},yn.config.isReservedTag=Kn,yn.config.isRuntimeComponent=Wn,yn.config.isUnknownElement=function(){},yn.prototype.__patch__=lr,yn.prototype.$mount=function(e,t){var n=this.$options.type;void 0===n&&(n="component");var r=function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=fe),Wt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new on(e,r,E,{before:function(){e._isMounted&&!e._isDestroyed&&Wt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(Wt(e,"onServiceCreated"),Wt(e,"onServiceAttached"),e._isMounted=!0,Wt(e,"mounted")),e}(this,e&&function(e,t){if("object"==typeof e&&null!==e)return e;var n=t.body,r=t.createElement("div");return n.appendChild(r),r}.bind(this)(e,this.$document),t);return"page"===n&&(this._connectVm2Page&&this._connectVm2Page(),this._registerPageLifecycle&&this._registerPageLifecycle()),r},yn.prototype._initExternalData=function(){var e=yn.config.externalData;if("page"===this.$options.type&&e)if(this.$options._descriptor){var t=this._page.intent&&this._page.intent.fromExternal;for(var n in this._page.intent&&void 0!==this._page.intent.fromExternal||(t=!0),global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 页面VM中声明的权限定义:"+JSON.stringify(this.$options._descriptor)),this.$options.$props&&!function(e){for(var t in e)return!1;return!0}(e)&&console.warn("### App Framework ### 页面VM中不支持props,推荐在public或protected中声明参数"),e){var r=this.$options._descriptor[n];if(r){var o=t&&gr.indexOf(r.access)>0,i=!t&&gr.indexOf(r.access)>1;o||i?console.warn("### App Framework ### 传递外部数据"+n+"在VM中声明为"+r.access+",放弃更新"):(global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 传递外部数据"+n+",原值为:"+JSON.stringify(this._data[n])),global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 传递外部数据"+n+",新值为:"+JSON.stringify(e[n])),this.$options.data[n]=e[n])}else global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 传递外部数据"+n+"在VM中未声明,放弃更新")}}else(function e(t){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];if("function"==typeof Object.assign)Object.assign.apply(Object,[t].concat(n));else{var o=n.shift();for(var i in o)t[i]=o[i];n.length&&e.apply(void 0,[t].concat(n))}return t})(this.$options.data,e)},yn.prototype._mergeAccess2Data=function(e){if("function"==typeof e.data&&(e.data=e.data()),e.data&&gr.some(function(t){return e[t]}))throw new Error("页面VM对象中的属性data不可与"+gr.join(",")+"同时存在,请使用private替换data名称");e.data||(e.data={},e._descriptor={},gr.forEach(function(t){var n=typeof e[t];if("object"===n)for(var r in e.data=Object.assign(e.data,e[t]),e[t])e._descriptor[r]={access:t};else"function"===n&&console.warn("页面VM对象中的属性"+t+"的值不能是函数,请使用对象")}))};var _r=yn.prototype._init;yn.prototype._init=function(e){var t=this.constructor.options;"page"===t.type&&(this._connectLifecycle&&this._connectLifecycle(t),this._mergeAccess2Data&&this._mergeAccess2Data(t)),_r.call(this,e)},yn.prototype._connectLifecycle=function(e){var t=this;e.mounted=e.mounted||[],e.mounted=Array.isArray(e.mounted)?e.mounted:[e.mounted],e.mounted.push(function(){t._ready=!0});e.created=e.created||[],e.created=Array.isArray(e.created)?e.created:[e.created],e.created.push(function(){t._initExternalData()}),e.created.unshift(function(){var e=t.$options.onInit;e&&"function"==typeof e&&e.call(t,t._page._meta.query)})},e.Vue=yn}}(a={exports:{}},a.exports),a.exports),u=(s=c)&&s.__esModule?s.default:s,l={VueFactory:u};function p(e,t,n){return"function"==typeof global.compileAndRunScript?function(e,t,n){let r="(function (";const o=[],i=[];for(const t in e)o.push(t),i.push(e[t]);for(let e=0;e{e.doc.listener.updateFinish(),g=null}))}function $(e,t,n,r){const i=e.id,a=e.doc.listener,s=a.addActions;a.addActions=((...t)=>{b(e),s.apply(a,t)});const c=e.doc,f=c.createElement("div");c.documentElement.appendChild(f);const d=h[i]={instanceId:i,document:c},g=d.Vue=function(e,t,n){const r=t.page,o=t.appRequireModule,i={setElementAttr(e,t,n){l.quickapp.runtime.helper.setElementAttr(e,t,n)},setElementStyle(e,t,n){"number"==typeof n&&(n+=""),l.quickapp.runtime.helper.setElementStyle(e,t,n)},bindElementMethods(e){l.quickapp.dock.bindComponentMethods(r,e)}},a={};u(a,r.doc,i);const s=a.Vue;global.Vue=!0;const c=h[e],p=/^quickapp:/i,f=s.config.isReservedTag||function(){return!1},d=s.config.isRuntimeComponent||function(){return!1};return s.config.externalData=n,s.config.isReservedTag=function(e){return d(e),f(e)||p.test(e)},s.config.parsePlatformTagName=function(e){return e.replace(p,"")},s.prototype.$instanceId=e,s.prototype.$document=c.document,s.prototype._connectVm2Page=function(){r.vm=this},Object.defineProperty(s.prototype,"$app",{get(){if(!this._isDestroyed)return r.app}}),Object.defineProperty(s.prototype,"$page",{get(){if(this._isDestroyed)return;const e=r.app;return Object.assign({setTitleBar:function(e){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 setTitleBar ----`),l.quickapp.runtime.helper.updatePageTitleBar(r.doc,e))},scrollTo:function(e){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 scrollTo ----`),l.quickapp.runtime.helper.scrollTo(r.doc,e))},scrollBy:function(e){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 scrollBy ----`),l.quickapp.runtime.helper.scrollBy(r.doc,e))},exitFullscreen:function(){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 exitFullscreen ----`),l.quickapp.runtime.helper.exitFullscreen(r.doc))},setStatusBar:function(e){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 setStatusBar ----`),l.quickapp.runtime.helper.updatePageStatusBar(r.doc,e))},finish:function(){r&&r.doc&&(null===y&&(y=l.quickapp.platform.requireModule(e,"system.page")),y.finishPage(r.id))}},r&&r._meta)}}),Object.defineProperties(s.prototype,{$valid:{get:()=>!!r&&r._valid,configurable:!1},$visible:{get:()=>!!r&&r._valid&&r._visible,configurable:!1},$destroyed:{get:()=>!!r&&r.vm&&r.vm._isDestroyed,configurable:!1}}),s.prototype._registerPageLifecycle=function(){Object.keys(v).forEach(e=>{this.$on(`xlc:${e}`,(...t)=>{let n=!1;const r=this.$options[e];if(!r||"function"!=typeof r)return;const o=Array.isArray(r)?r:[r];if(o&&o.length)for(let e=0;e{},$app_bootstrap$:()=>{},$app_define_wrap$:()=>{},$app_require$:t=>l.quickapp.platform.requireModule(e,o(t)),$app_evaluate$:l.quickapp.dock.makeEvaluateBuildScript(r)},r);let $;"function"==typeof m&&m(_),$="(function(global){"+($=t.toString())+"\n })(Object.create(this))";{const t=e.pageName?`${e.pageName}/${e.pageComponent}.js`:"";global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### bundleUrl----",t),p(_,$,t)}return e.doc.listener.createFinish(),d}function A(e,t,n,...r){let o=!1;return t.vm&&t.vm._ready?(t.vm.$emit(`xlc:${e}`,n,...r),o=t.vm._events[`xlc:${e}`].result,b(t),global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### ${e} (${t.id})----`)):global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### ${e} 页面(${t.id})创建失败, 无法响应事件---- `),o}return{init:function(t){l.quickapp=t,global.process=global.process||{},global.process.env={},t.subscribe(e.initApp,e=>(function(e,t){global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### 开始初始化App(${e.id})`);const n=t=>l.quickapp.platform.requireModule(e,o(t)),r=t=>{e.$def=t,"function"==typeof d&&d(t)},i=()=>{global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### 调用App(${e.name})生命周期---- onCreate`),e.$emit("applc:onCreate")};"function"==typeof f&&f({context:l,inst:e,instRequireModule:n});const a=l.quickapp.dock.makeEvaluateBuildScript(null);let s;s=`(function(global){"use strict"; ${s=t.toString()}; \n })(Object.create(this))`,global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 开始编译代码----"),p({$app_define$:r,$app_require$:n,$app_bootstrap$:i,$app_evaluate$:a},s,"app.js")})(...e)),t.subscribe(e.initPage,e=>$(...e)),t.subscribe(e.destroyPage,e=>{!function(e){e.vm&&(e.vm.$emit("xlc:onDestroy"),e.vm.$destroy())}(...e)}),t.subscribe(e.fireEvent,e=>{const t=_(...e);return b(e[0]),t}),t.subscribe(e.callbackDone,e=>{b(e[0])}),t.subscribe(e.onShow,e=>A(v.onShow,...e)),t.subscribe(e.onHide,e=>A(v.onHide,...e)),t.subscribe(e.onBackPress,e=>A(v.onBackPress,...e)),t.subscribe(e.onMenuPress,e=>(A(v.onMenuPress,...e),function(e){let t=!1;if(e.vm&&e.vm._ready){const n=e.vm._events,r=n&&n["xlc:onMenuPress"]&&n["xlc:onMenuPress"].handlers;r&&r.length&&(t=!0)}return t}(...e))),t.subscribe(e.onConfigurationChanged,e=>A(v.onConfigurationChanged,...e)),t.subscribe(e.onOrientationChange,e=>A(v.onOrientationChange,...e)),t.subscribe(e.onRefresh,e=>A(v.onRefresh,...e))},onInitApp:function(e){f=e},onDefineApp:function(e){d=e},onInitPage:function(e){m=e}}}(); !function(){"use strict";class e{constructor(){this._events=Object.create(null)}on(e,t){const n=this;if(Array.isArray(e))for(let s=0,r=e.length;se);const o=r;!function(){"use strict";var r=["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor","request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","navigateTo","redirectTo","reLaunch","switchTab","navigateBack","setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync","getLocation","chooseLocation","openLocation","createMapContext","chooseImage","previewImage","getImageInfo","saveImageToPhotosAlbum","compressImage","getRecorderManager","getBackgroundAudioManager","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext","getSystemInfo","getSystemInfoSync","canIUse","onMemoryWarning","getNetworkType","onNetworkStatusChange","onAccelerometerChange","startAccelerometer","stopAccelerometer","onCompassChange","startCompass","stopCompass","onGyroscopeChange","startGyroscope","stopGyroscope","makePhoneCall","scanCode","setClipboardData","getClipboardData","setScreenBrightness","getScreenBrightness","setKeepScreenOn","onUserCaptureScreen","vibrateLong","vibrateShort","addPhoneContact","openBluetoothAdapter","startBluetoothDevicesDiscovery","onBluetoothDeviceFound","stopBluetoothDevicesDiscovery","onBluetoothAdapterStateChange","getConnectedBluetoothDevices","getBluetoothDevices","getBluetoothAdapterState","closeBluetoothAdapter","writeBLECharacteristicValue","readBLECharacteristicValue","onBLEConnectionStateChange","onBLECharacteristicValueChange","notifyBLECharacteristicValueChange","getBLEDeviceServices","getBLEDeviceCharacteristics","createBLEConnection","closeBLEConnection","onBeaconServiceChange","onBeaconUpdate","getBeacons","startBeaconDiscovery","stopBeaconDiscovery","checkIsSupportSoterAuthentication","checkIsSoterEnrolledInDevice","startSoterAuthentication","onUIStyleChange","hideKeyboard","onKeyboardHeightChange","showToast","hideToast","showLoading","hideLoading","showModal","showActionSheet","setNavigationBarTitle","setNavigationBarColor","showNavigationBarLoading","hideNavigationBarLoading","setTabBarItem","setTabBarStyle","hideTabBar","showTabBar","setTabBarBadge","removeTabBarBadge","showTabBarRedDot","hideTabBarRedDot","onTabBarMidButtonTap","setBackgroundColor","setBackgroundTextStyle","createAnimation","pageScrollTo","onWindowResize","offWindowResize","loadFontFace","startPullDownRefresh","stopPullDownRefresh","createSelectorQuery","createIntersectionObserver","getMenuButtonBoundingClientRect","$emit","$on","$once","$off","saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager","createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData","getProvider","login","checkSession","getUserInfo","share","shareWithSystem","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","onNativeEventReceive","sendNativeEvent","createRewardedVideoAd"];let n=!1;try{const e={};Object.defineProperty(e,"passive",{get(){n=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}const a=Object.prototype.toString,i=Object.prototype.hasOwnProperty;function s(e){return"function"==typeof e}function c(e){return"[object Object]"===a.call(e)}function u(e,t){return i.call(e,t)}function l(e){return a.call(e).slice(8,-1)}const d=decodeURIComponent;function p(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const r=e.replace(/\+/g," ").split("="),o=d(r.shift()),n=r.length>0?d(r.join("=")):null;void 0===t[o]?t[o]=n:Array.isArray(t[o])?t[o].push(n):t[o]=[t[o],n]}),t):t}function f(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}function g(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}const y=["invoke","success","fail","complete","returnValue"],h={},b={};function m(e,t){Object.keys(t).forEach(r=>{-1!==y.indexOf(r)&&s(t[r])&&(e[r]=function(e,t){const r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?function(e){const t=[];for(let r=0;r{-1!==y.indexOf(r)&&s(t[r])&&function(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}(e[r],t[r])})}function S(e){return function(t){return e(t)||t}}function T(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function _(e,t){let r=!1;for(let o=0;oe(t)}}function k(e,t={}){return["success","fail","complete"].forEach(r=>{if(Array.isArray(e[r])){const o=t[r];t[r]=function(t){_(e[r],t).then(e=>s(o)&&o(e)||e)}}}),t}function O(e,t){const r=[];Array.isArray(h.returnValue)&&r.push(...h.returnValue);const o=b[e];return o&&Array.isArray(o.returnValue)&&r.push(...o.returnValue),r.forEach(e=>{t=e(t)||t}),t}function C(e,t,r,...o){const n=function(e){const t=Object.create(null);Object.keys(h).forEach(e=>{"returnValue"!==e&&(t[e]=h[e].slice())});const r=b[e];return r&&Object.keys(r).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(r[e]))}),t}(e);if(n&&Object.keys(n).length){if(Array.isArray(n.invoke)){return _(n.invoke,r).then(e=>t(k(n,e),...o))}return t(k(n,r),...o)}return t(r,...o)}const j={returnValue:e=>T(e)?e.then(e=>e[1]).catch(e=>e[0]):e},B=/^\$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/,A=/^create|Manager$/,x=["createBLEConnection"],q=["request","downloadFile","uploadFile","connectSocket"],I=["createBLEConnection"],w=/^on|^off/;function E(e){return B.test(e)&&-1===I.indexOf(e)}function M(e){return w.test(e)&&"onPush"!==e}function N(e){return!(function(e){return A.test(e)&&-1===x.indexOf(e)}(e)||E(e)||M(e))}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(r=>t.resolve(e()).then(()=>r),r=>t.resolve(e()).then(()=>{throw r}))});const P=[{name:"base64",type:String,required:!0}],D=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}];var L=Object.freeze({__proto__:null,base64ToArrayBuffer:P,arrayBufferToBase64:D});const z=[{name:"schema",type:String,required:!0}];var R=Object.freeze({__proto__:null,canIUse:z});const U=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}],F=U,$=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],V=[{name:"event",type:String,required:!0}];var G=Object.freeze({__proto__:null,$on:U,$once:F,$off:$,$emit:V});const H=[{name:"method",type:[String,Object],required:!0}],J=H;var W=Object.freeze({__proto__:null,addInterceptor:H,removeInterceptor:J});const K=[{name:"upx",type:[Number,String],required:!0}];var Y=Object.freeze({__proto__:null,upx2px:K});function X(e){return function(t,r){t&&(r[e]=Math.round(t))}}const Q={canvasId:{type:String,required:!0},x:{type:Number,required:!0,validator:X("x")},y:{type:Number,required:!0,validator:X("y")},width:{type:Number,required:!0,validator:X("width")},height:{type:Number,required:!0,validator:X("height")}},Z={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0,validator:X("x")},y:{type:Number,required:!0,validator:X("y")},width:{type:Number,required:!0,validator:X("width")},height:{type:Number,validator:X("height")}},ee={PNG:"png",JPG:"jpg",JPEG:"jpg"},te={x:{type:Number,default:0,validator:X("x")},y:{type:Number,default:0,validator:X("y")},width:{type:Number,validator:X("width")},height:{type:Number,validator:X("height")},destWidth:{type:Number,validator:X("destWidth")},destHeight:{type:Number,validator:X("destHeight")},canvasId:{type:String,require:!0},fileType:{type:String,validator(e,t){e=(e||"").toUpperCase(),t.fileType=e in ee?ee[e]:ee.PNG}},quality:{type:Number,validator(e,t){e=Math.floor(e),t.quality=e>0&&e<1?e:1}}},re={canvasId:{type:String,require:!0},actions:{type:Array,require:!0},reserve:{type:Boolean,default:!1}};var oe=Object.freeze({__proto__:null,canvasGetImageData:Q,canvasPutImageData:Z,canvasToTempFilePath:te,drawCanvas:re});const ne=[{name:"id",type:String,required:!0}],ae=ne,ie=ne,se=ne,ce=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}];var ue=Object.freeze({__proto__:null,createAudioContext:ae,createVideoContext:ie,createMapContext:se,createCanvasContext:ce});const le={phoneNumber:{type:String,required:!0,validator(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}};var de=Object.freeze({__proto__:null,makePhoneCall:le});const pe={beforeSuccess(){uni.showToast({title:"内容已复制",icon:"success",mask:!1})}};var fe=Object.freeze({__proto__:null,setClipboardData:pe});const ge={filePath:{type:String,required:!0},fileType:{type:String}};var ye=Object.freeze({__proto__:null,openDocument:ge});const he={keyword:{type:String}};var be=Object.freeze({__proto__:null,chooseLocation:he});const me={WGS84:"WGS84",GCJ02:"GCJ02"},ve={type:{type:String,validator(e,t){e=(e||"").toUpperCase(),t.type=Object.values(me).indexOf(e)<0?me.WGS84:e},default:me.WGS84},altitude:{altitude:Boolean,default:!1}};var Se=Object.freeze({__proto__:null,getLocation:ve});const Te={latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},scale:{type:Number,validator(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18},default:18},name:{type:String},address:{type:String}};var _e=Object.freeze({__proto__:null,openLocation:Te});const ke=["original","compressed"],Oe=["album","camera"],Ce={count:{type:Number,required:!1,default:9,validator(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:ke,validator(e,t){const r=e.length;if(r){if("string"==typeof e)~ke.indexOf(e)||(t.sizeType=ke);else for(let o=0;o0?e.split("/"):[];return a.splice(a.length-n-1,n+1),"/"+a.concat(r).join("/")}const Ie=/^([a-z-]+:)?\/\//i,we=/^data:.*,.*/;function Ee(e){const t=__uniConfig.router.base;return t?"/"!==t&&0===("/"+e).indexOf(t)?"/"+e:t+e:e}function Me(e){if(0===e.indexOf("/")){if(0!==e.indexOf("//"))return Ee(e.substr(1));e="https:"+e}if(Ie.test(e)||we.test(e)||0===e.indexOf("blob:"))return e;const t=getCurrentPages();return t.length?Ee(qe(t[t.length-1].$page.route,e).substr(1)):e}const Ne={src:{type:String,required:!0,validator(e,t){t.src=Me(e)}}};var Pe=Object.freeze({__proto__:null,getImageInfo:Ne});const De={urls:{type:Array,required:!0,validator(e,t){var r;if(t.urls=e.map(e=>{if("string"==typeof e)return Me(e);r=!0}),r)return"url is not string"}},current:{type:[String,Number],validator(e,t){"number"==typeof e?t.current=e>0&&ee);n={},a.forEach(e=>{e=e.split("="),n[e[0]]=e[1]});for(const e in t)if(u(t,e)){let r=t[e];null==r?r="":c(r)&&(r=JSON.stringify(r)),n[Ve(e)]=Ve(r)}return n=Object.keys(n).map(e=>`${e}=${n[e]}`).join("&"),e+(n?"?"+n:"")+(o?"#"+o:"")}(e,t.data))}},header:{type:Object,validator(e,t){const r=t.header=e||{};t.method!==Ue.GET&&(Object.keys(r).find(e=>"content-type"===e.toLowerCase())||(r["Content-Type"]="application/json"))}},dataType:{type:String,validator(e,t){t.dataType=(e||Fe).toLowerCase()}},responseType:{type:String,validator(e,t){e=(e||"").toLowerCase(),t.responseType=Object.values($e).indexOf(e)<0?$e.TEXT:e}},withCredentials:{type:Boolean}};var He=Object.freeze({__proto__:null,request:Ge});const Je={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},We={url:{type:String,required:!0},header:{type:Object,validator(e,t){t.header=e||{}}},method:{type:String,validator(e,t){e=(e||"").toUpperCase(),t.method=Object.values(Je).indexOf(e)<0?Je.GET:e}},protocols:{type:[Array,String],validator(e,t){"string"==typeof e&&(e=[e]),t.protocols=(e||[]).filter(e=>"string"==typeof e)}}},Ke={data:{type:[String,ArrayBuffer]}},Ye={code:{type:Number},reason:{type:String}};var Xe=Object.freeze({__proto__:null,connectSocket:We,sendSocketMessage:Ke,closeSocket:Ye});const Qe={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator(e,t){e&&(t.type=Me(e))}},name:{type:String},header:{type:Object,validator(e,t){t.header=e||{}}},formData:{type:Object,validator(e,t){t.formData=e||{}}}};var Ze=Object.freeze({__proto__:null,uploadFile:Qe});const et={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},tt={service:{type:String,required:!0,validator(e,t){if((e=(e||"").toUpperCase())&&Object.values(et).indexOf(e)<0)return"service error"}}};var rt=Object.freeze({__proto__:null,getProvider:tt});function ot(e){return function(t,r){const o=(t=qe(t)).split("?")[0],n=__uniRoutes.find(({path:e,alias:t})=>e===o||t===o);if(!n)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(n.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!n.meta.isTabBar)return"can not switch to no-tabBar page";n.meta.isTabBar&&(t=o),n.meta.isEntry&&(t=t.replace(n.alias,"/")),r.url=function(e){if("string"!=typeof e)return e;const t=e.indexOf("?");if(-1===t)return e;const r=e.substr(t+1).trim().replace(/^(\?|#|&)/,"");if(!r)return e;e=e.substr(0,t);const o=[];return r.split("&").forEach(e=>{const t=e.replace(/\+/g," ").split("="),r=t.shift(),n=t.length>0?t.join("="):"";o.push(r+"="+encodeURIComponent(n))}),o.length?e+"?"+o.join("&"):e}(t)}}function nt(e,t={}){return Object.assign({url:{type:String,required:!0,validator:ot(e)}},t)}function at(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}const it=nt("redirectTo"),st=nt("reLaunch"),ct=nt("navigateTo",at(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),ut=nt("switchTab"),lt=Object.assign({delta:{type:Number,validator(e,t){e=parseInt(e)||1,t.delta=Math.min(getCurrentPages().length-1,e)}}},at(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]));var dt=Object.freeze({__proto__:null,redirectTo:it,reLaunch:st,navigateTo:ct,switchTab:ut,navigateBack:lt});const pt={key:{type:String,required:!0}},ft=[{name:"key",type:String,required:!0}],gt={key:{type:String,required:!0},data:{required:!0}},yt=[{name:"key",type:String,required:!0},{name:"data",required:!0}],ht=pt,bt=ft;var mt=Object.freeze({__proto__:null,getStorage:pt,getStorageSync:ft,setStorage:gt,setStorageSync:yt,removeStorage:ht,removeStorageSync:bt});const vt={family:{type:String,required:!0},source:{type:String,required:!0},desc:{type:Object,required:!1},success:{type:Function,required:!1},fail:{type:Function,required:!1},complete:{type:Function,required:!1}};var St=Object.freeze({__proto__:null,loadFontFace:vt});const Tt=["#ffffff","#000000"],_t={frontColor:{type:String,required:!0,validator(e,t){if(-1===Tt.indexOf(e))return`invalid frontColor "${e}"`}},backgroundColor:{type:String,required:!0},animation:{type:Object,default:()=>({duration:0,timingFunc:"linear"}),validator(e={},t){t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},kt={title:{type:String,required:!0}};var Ot=Object.freeze({__proto__:null,setNavigationBarColor:_t,setNavigationBarTitle:kt});const Ct={scrollTop:{type:Number,required:!0},duration:{type:Number,default:300,validator(e,t){t.duration=Math.max(0,e)}}};var jt=Object.freeze({__proto__:null,pageScrollTo:Ct});const Bt={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"确定"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},At={title:{type:String,default:""},icon:{default:"success",validator(e,t){-1===["success","loading","none"].indexOf(e)&&(t.icon="success")}},image:{type:String,default:"",validator(e,t){e&&(t.image=Me(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},xt={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},qt={itemList:{type:Array,required:!0,validator(e,t){if(!e.length)return"parameter.itemList should have at least 1 item"}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!0},popover:{type:Object}};var It=Object.freeze({__proto__:null,showModal:Bt,showToast:At,showLoading:xt,showActionSheet:qt});const wt={type:Number,required:!0},Et={index:wt,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String}},Mt={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},borderStyle:{type:String,validator(e,t){e&&(t.borderStyle="black"===e?"black":"white")}}},Nt={animation:{type:Boolean,default:!1}},Pt={animation:{type:Boolean,default:!1}},Dt={index:wt},Lt={index:wt},zt={index:wt},Rt={index:wt,text:{type:String,required:!0,validator(e,t){(function(e=""){return(""+e).replace(/[^\x00-\xff]/g,"**").length})(e)>=4&&(t.text="...")}}};var Ut=Object.freeze({__proto__:null,setTabBarItem:Et,setTabBarStyle:Mt,hideTabBar:Nt,showTabBar:Pt,hideTabBarRedDot:Dt,showTabBarRedDot:Lt,removeTabBarBadge:zt,setTabBarBadge:Rt});const Ft=Object.create(null),$t=(Vt={"./base/base64.js":L,"./base/can-i-use.js":R,"./base/event-bus.js":G,"./base/interceptor.js":W,"./base/upx2px.js":Y,"./context/canvas.js":oe,"./context/context.js":ue,"./device/make-phone-call.js":de,"./device/set-clipboard-data.js":fe,"./file/open-document.js":ye,"./location/choose-location.js":be,"./location/get-location.js":Se,"./location/open-location.js":_e,"./media/choose-image.js":je,"./media/choose-video.js":xe,"./media/get-image-info.js":Pe,"./media/preview-image.js":Le,"./network/download-file.js":Re,"./network/request.js":He,"./network/socket.js":Xe,"./network/upload-file.js":Ze,"./plugin/get-provider.js":rt,"./route/route.js":dt,"./storage/storage.js":mt,"./ui/load-font-face.js":St,"./ui/navigation-bar.js":Ot,"./ui/page-scroll-to.js":jt,"./ui/popup.js":It,"./ui/tab-bar.js":Ut},(Gt=function(e){return Vt[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}).keys=function(){return Object.keys(Vt)},Gt);var Vt,Gt;function Ht(e,t,r){const o=t[e],n=!u(r,e);let a=r[e];if(function(e,t){if(!Array.isArray(t))return Yt(t,e)?0:-1;for(let r=0,o=t.length;r-1&&n&&!u(o,"default")&&(a=!1),void 0===a&&u(o,"default")){const t=o.default;a=s(t)?t():t,r[e]=a}return function(e,t,r,o,n){if(e.required&&o)return`Missing required parameter \`${t}\``;if(null==r&&!e.required){const t=e.validator;return t?t(r,n):void 0}let a=e.type,i=!a||!0===a;const s=[];if(a){Array.isArray(a)||(a=[a]);for(let e=0;e"boolean"===e.toLowerCase())}(n,a)&&(o+=" with value "+i);o+=`, got ${a} `,Zt(a)&&(o+=`with value ${s}.`);return o}(t,r,s);const c=e.validator;if(c)return c(r,n)}(o,e,a,n,r)}$t.keys().forEach((function(e){Object.assign(Ft,$t(e))}));const Jt=/^(String|Number|Boolean|Function|Symbol)$/;function Wt(e,t){let r;const o=Kt(t);if(Jt.test(o)){const n=typeof e;r=n===o.toLowerCase(),r||"object"!==n||(r=e instanceof t)}else r=e.byteLength>=0||("Object"===o?c(e):"Array"===o?Array.isArray(e):e instanceof t||l(e)===Kt(t));return{valid:r,expectedType:o}}function Kt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Yt(e,t){return Kt(e)===Kt(t)}function Xt(e,t){return"String"===t?`"${e}"`:"Number"===t?""+Number(e):""+e}const Qt=["string","number","boolean"];function Zt(e){return Qt.some(t=>e.toLowerCase()===t)}function er(e,t,r){const o=`${t}:fail ${e}`;if(console.error(o),-1===r)throw new Error(o);return"number"==typeof r&&ir(r,{errMsg:o}),!1}const tr=[{name:"callback",type:Function,required:!0}];function rr(e,t,r){let o=Ft[e];if(!o&&M(e)&&(o=tr),o){if(Array.isArray(o)&&Array.isArray(t)){const e=Object.create(null),r=Object.create(null),n=t.length;o.forEach((o,a)=>{e[o.name]=o,n>a&&(r[o.name]=t[a])}),o=e,t=r}if(s(o.beforeValidate)){const n=o.beforeValidate(t);if(n)return er(n,e,r)}const n=Object.keys(o);for(let a=0;a-1&&(r=t.errMsg.substr(o)),t.errMsg=e+":fail"+r}const r=t.errMsg;0===r.indexOf(e+":ok")?(s(b)&&b(t),l&&n(t),s(m)&&m(t)):0===r.indexOf(e+":cancel")?(t.errMsg=t.errMsg.replace(e+":cancel",e+":fail cancel"),d&&a(t),s(T)&&T(t),p&&i(t),s(_)&&_(t)):0===r.indexOf(e+":fail")&&(s(v)&&v(t),d&&a(t),s(S)&&S(t)),y&&u(t),s(k)&&k(t)}},{params:t,callbackId:O}}(e,t,r);return c(o)&&!rr(e,o,n)?{params:o,callbackId:!1}:{params:o,callbackId:n}}function ir(e,t,r){if("number"==typeof e){const o=nr[e];if(o)return o.keepAlive||delete nr[e],o.callback(t,r)}return t}function sr(e,t,r={}){return s(t)?(function(e,t){const r=Ft[e];r&&s(r.beforeSuccess)&&(t.beforeSuccess=r.beforeSuccess)}(e,r),function(...o){if(E(e)){if(rr(e,o,-1))return t.apply(null,o)}else if(M(e)){if(rr(e,o,-1))return t(function(e,t){const r=or++,o="api."+e+"."+r;return nr[r]={name:o,keepAlive:!0,callback:function(e,r){t(e,r)}},r}(e,o[0]))}else{let n={};o.length&&(n=o[0]);const{params:a,callbackId:i}=ar(e,n,r);if(!1!==i){let r;return r=s(a)?t(i):t(a,i),r&&!function(e){return-1!==q.indexOf(e)}(e)&&(r=ir(i,r),c(r)&&(r.errMsg=r.errMsg||e+":ok")),r}}}):t}var cr,ur=(function(e,t){!function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256),o=0;o>2],a+=e[(3&o[r])<<4|o[r+1]>>4],a+=e[(15&o[r+1])<<2|o[r+2]>>6],a+=e[63&o[r+2]];return n%3==2?a=a.substring(0,a.length-1)+"=":n%3==1&&(a=a.substring(0,a.length-2)+"=="),a},t.decode=function(e){var t,o,n,a,i,s=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),d=new Uint8Array(l);for(t=0;t>4,d[u++]=(15&n)<<4|a>>2,d[u++]=(3&a)<<6|63&i;return l}}()}(cr={exports:{}},cr.exports),cr.exports),lr=ur.encode,dr=ur.decode;var pr={};const fr={promiseInterceptor:j};let gr=!1,yr=0,hr=0;var br=o("@app-module/system.router");function mr(e){return e.substr(0,e.lastIndexOf("/"))}var vr=o("@app-module/system.router");var Sr=o("@app-module/system.router");function Tr(...e){return global.UniServiceJSBridge.invokeCallbackHandler(...e)}var _r=o("@app-module/system.clipboard");var kr=o("@app-module/system.fetch");let Or=0;const Cr={},jr=e=>{!function(e,...t){global.UniServiceJSBridge.emit("api."+e,...t)}("onRequestTaskStateChange",e),delete Cr[Or]};function Br(e,{url:t,data:r,header:o,method:n="GET",responseType:a,sslVerify:i=!0}={}){let s,c;s=setTimeout(()=>{c=!0,jr({requestTaskId:e,state:"fail",statusCode:0,errMsg:"timeout"})},60100);const u={method:n,url:t.trim(),header:o,type:a,timeout:6e4};"GET"!==n&&(u.data=r);try{kr.fetch({...u,success:({code:t,data:r,headers:o})=>{if(console.log(r),c)return;s&&clearTimeout(s);jr(t>0?{requestTaskId:e,state:"success",data:r,statusCode:t,header:o}:{requestTaskId:e,state:"fail",statusCode:t,errMsg:"abort statusCode:"+t})},fail:(t,r)=>{jr({requestTaskId:e,state:"fail",statusCode:r,errMsg:"abort statusCode:"+r})}}),Cr[e]={abort(){c=!0,s&&clearTimeout(s),jr({requestTaskId:e,state:"fail",statusCode:0,errMsg:"abort"})}}}catch(t){return{requestTaskId:e,errMsg:"createRequestTask:fail"}}return{requestTaskId:e,errMsg:"createRequestTask:ok"}}var Ar=o("@app-module/system.storage");function xr(e){const t=["object","string","number","boolean","undefined"];try{const r="string"==typeof e?JSON.parse(e):e,o=r.type;if(t.indexOf(o)>=0){const e=Object.keys(r);if(2===e.length&&"data"in r&&typeof r.data===o)return r.data;if(1===e.length)return""}}catch(e){}}var qr=o("@app-module/system.prompt");var Ir=Object.freeze({__proto__:null,navigateBack:function({delta:e}){return br.back(),{errMsg:"navigateBack:ok"}},navigateTo:function({url:e}){const t=e.split("?"),r=t[0],o=p(t[1]||"");return vr.push({uri:mr(r),params:o}),{errMsg:"navigateTo:ok"}},redirectTo:function({url:e}){const t=e.split("?"),r=t[0],o=p(t[1]||"");return Sr.replace({uri:mr(r),params:o}),{errMsg:"redirectTo:ok"}},getClipboardData:function(e,t){_r.get({success:e=>{Tr(t,{data:e.text,errMsg:"getClipboardData:ok"})},fail:(e,r)=>{Tr(t,{data:r,errMsg:"getClipboardData:fail"})}})},setClipboardData:function({data:e}){return _r.set({text:e}),{errMsg:"setClipboardData:ok"}},createRequestTaskById:Br,createRequestTask:function(e){return Br(++Or,e)},operateRequestTask:function({requestTaskId:e,operationType:t}={}){const r=Cr[e];return r&&"abort"===t?(r.abort(),{errMsg:"operateRequestTask:ok"}):{errMsg:"operateRequestTask:fail"}},setStorage:function({key:e,data:t,isSync:r}={},o){const n=typeof t,a="string"===n?t:JSON.stringify({type:n,data:t});try{Ar.set({key:e,value:a,success:e=>{Tr(o,{errMsg:"setStorage:ok"})},fail:(e,t)=>{Tr(o,{errMsg:"setStorage:fail "+t})}})}catch(e){Tr(o,{errMsg:"setStorage:fail "+e})}},getStorage:function({key:e}={},t){Ar.get({key:e,success:e=>{Tr(t,{data:xr(e)||e,errMsg:"getStorage:ok"})},fail:(e,r)=>{Tr(t,{data:"",errMsg:"getStorage:fail "+r})}})},removeStorage:function({key:e}={},t){Ar.delete({key:e,success:e=>{Tr(t,{errMsg:"removeStorage:ok"})},fail:(e,r)=>{Tr(t,{errMsg:"removeStorage:fail "+r})}})},clearStorage:function(e,t){Ar.clear({success:e=>{Tr(t,{errMsg:"clearStorage:ok"})},fail:(e,r)=>{Tr(t,{errMsg:"clearStorage:fail "+r})}})},showModal:function({title:e="",content:t="",showCancel:r=!0,cancelText:o="取消",cancelColor:n="#000000",confirmText:a="确定",confirmColor:i="#3CC51F"}={},s){qr.showDialog({title:e,message:t,buttons:[{text:"确定",color:i}],success:e=>{console.log("handling callback"),Tr(s,{errMsg:"showModal:ok",confirm:!0,cancel:!1})},cancel:()=>{console.log("handling cancel")},fail:(e,t)=>{console.log("handling fail, code = "+t)}})}});function wr(e,...t){return Ir[e].apply(null,t)}function Er(e,t){return UniServiceJSBridge.on("api."+e,t)}const Mr=["canplay","play","pause","stop","ended","timeUpdate","error","waiting","seeking","seeked"],Nr=[{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"autoplay",default:!1,cache:!0},{name:"loop",default:!1,cache:!0},{name:"obeyMuteSwitch",default:!0,readonly:!0,cache:!0},{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"buffered",readonly:!0},{name:"volume"}];class Pr{constructor(e){this.id=e,this._callbacks={},this._options={},Mr.forEach(e=>{this._callbacks[e.toLowerCase()]=[]}),Nr.forEach(e=>{const t=e.name,r={get(){const r=e.cache?this._options:wr("getAudioState",{audioId:this.id}),o=t in r?r[t]:e.default;return"number"==typeof o&&"volume"!==t?o/1e3:o}};e.readonly||(r.set=function(e){this._options[t]=e,wr("setAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(this,t,r)})}play(){this._operate("play")}pause(){this._operate("pause")}stop(){this._operate("stop")}seek(e){this._operate("seek",{currentTime:1e3*e})}destroy(){clearInterval(this.__timing),wr("destroyAudioInstance",{audioId:this.id}),delete Lr[this.id]}_operate(e,t){wr("operateAudio",Object.assign({},t,{audioId:this.id,operationType:e}))}}function Dr(e,t,r,o){e._callbacks[t].forEach(e=>{"function"==typeof e&&e("error"===t?{errMsg:r,errCode:o}:{})})}Mr.forEach(e=>{const t=e[0].toUpperCase()+e.substr(1);e=e.toLowerCase(),Pr.prototype["on"+t]=function(t){this._callbacks[e].push(t)},Pr.prototype["off"+t]=function(t){const r=this._callbacks[e],o=r.indexOf(t);o>=0&&r.splice(o,1)}}),Er("onAudioStateChange",({state:e,audioId:t,errMsg:r,errCode:o})=>{const n=Lr[t];if(n)if(Dr(n,e,r,o),"play"===e){const e=n.currentTime;n.__timing=setInterval(()=>{n.currentTime!==e&&Dr(n,"timeupdate")},200)}else"pause"!==e&&"stop"!==e&&"error"!==e||clearInterval(n.__timing)});const Lr=Object.create(null);const zr=["canplay","play","pause","stop","ended","timeUpdate","prev","next","error","waiting"],Rr={};zr.forEach(e=>{Rr[e]=[]});const Ur=[{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"buffered",readonly:!0},{name:"title",cache:!0},{name:"epname",cache:!0},{name:"singer",cache:!0},{name:"coverImgUrl",cache:!0},{name:"webUrl",cache:!0},{name:"protocol",readonly:!0,default:"http"}];class Fr{constructor(){this._options={},Er("onBackgroundAudioStateChange",({state:e,errMsg:t,errCode:r})=>{Rr[e].forEach(o=>{"function"==typeof o&&o("error"===e?{errMsg:t,errCode:r}:{})})}),Ur.forEach(e=>{const t=e.name,r={get(){const r=e.cache?this._options:wr("getBackgroundAudioState");return t in r?r[t]:e.default}};e.readonly||(r.set=function(e){this._options[t]=e,wr("setBackgroundAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(this,t,r)})}play(){this._operate("play")}pause(){this._operate("pause")}stop(){this._operate("stop")}seek(e){this._operate("seek",{currentTime:e})}_operate(e,t){wr("operateBackgroundAudio",Object.assign({},t,{operationType:e}))}}let $r;function Vr(...e){return UniServiceJSBridge.invokeCallbackHandler(...e)}zr.forEach(e=>{const t=e[0].toUpperCase()+e.substr(1);Fr.prototype["on"+t]=function(t){Rr[e].push(t)}});const Gr=Object.create(null);Er("onRequestTaskStateChange",(function({requestTaskId:e,state:t,data:r,statusCode:o,header:n,errMsg:a}){const{args:i,callbackId:s}=Gr[e]||{};if(s)switch(delete Gr[e],t){case"success":Vr(s,function(e,t){if("string"==typeof e.data&&65279===e.data.charCodeAt(0)&&(e.data=e.data.substr(1)),e.statusCode=parseInt(e.statusCode,10),c(e.header)&&(e.header=Object.keys(e.header).reduce((function(t,r){const o=e.header[r];return Array.isArray(o)?t[r]=o.join(","):"string"==typeof o&&(t[r]=o),t}),{})),t.dataType&&"json"===t.dataType.toLowerCase())try{e.data=JSON.parse(e.data)}catch(e){}return e}({data:r,statusCode:o,header:n,errMsg:"request:ok"},i));break;case"fail":Vr(s,{errMsg:"request:fail "+a})}}));class Hr{constructor(e){this.id=e}abort(){wr("operateRequestTask",{requestTaskId:this.id,operationType:"abort"})}offHeadersReceived(){}onHeadersReceived(){}}var Jr={...Object.freeze({__proto__:null,base64ToArrayBuffer:function(e){return dr(e)},arrayBufferToBase64:function(e){return lr(e)},canIUse:function(e){return!u(pr,e)||pr[e]},addInterceptor:function(e,t){"string"==typeof e&&c(t)?m(b[e]||(b[e]={}),t):c(e)&&m(h,e)},removeInterceptor:function(e,t){"string"==typeof e?c(t)?v(b[e],t):delete b[e]:c(e)&&v(h,e)},interceptors:fr,upx2px:function(e,t){if(0===yr&&function(){const{platform:e,pixelRatio:t,windowWidth:r}=uni.getSystemInfoSync();yr=r,hr=t,gr="ios"===e}(),0===(e=Number(e)))return 0;let r=e/750*(t||yr);return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r?1!==hr&&gr?.5:1:e<0?-r:r},createInnerAudioContext:function(){const{audioId:e}=wr("createAudioInstance"),t=new Pr(e);return Lr[e]=t,t},getBackgroundAudioManager:function(){return $r||($r=new Fr)},request:function(e,t){let r;for(const t in e.header)if("content-type"===t.toLowerCase()){r=e.header[t];break}"GET"!==e.method&&0===r.indexOf("application/json")&&c(e.data)&&(e.data=JSON.stringify(e.data));const{requestTaskId:o}=wr("createRequestTask",e);return Gr[o]={args:e,callbackId:t},new Hr(o)}}),...Ir};const Wr=Object.create(null);let Kr;r.forEach(e=>{Jr[e]?Wr[e]=function(e,t){return N(e)?function(r={},...o){return s(r.success)||s(r.fail)||s(r.complete)?O(e,C(e,t,r,...o)):O(e,new Promise((n,a)=>{C(e,t,Object.assign({},r,{success:n,fail:a}),...o)}).then(e=>[null,e]).catch(e=>[e]))}:t}(e,sr(e,Jr[e])):Wr[e]=function(e){return function(t){console.error("API `"+e+"` is not yet implemented")}}(e)});const Yr=[],Xr=[],Qr=[];function Zr(e){e&&e.store&&(Kr=e.store)}Zr.prototype.$mount=function(){},Zr.config={},Zr.use=function(e){if(e.Store&&e.mapState){const r={};t.VueFactory(r,{},{}),e.install(r.Vue)}else Xr.push(e)},Zr.mixin=function(e){Yr.push(e)},Zr.component=function(e,t){Qr.push({id:e,definition:t})},(Object.getPrototypeOf(global)||global).__VuePlugin={install(e,t){Yr.forEach(t=>{e.mixin(t)}),Xr.forEach(t=>{e.use(t)}),Qr.forEach(({id:t,definition:r})=>{e.component(t,r)}),Object.keys(Zr.prototype).forEach(t=>{"$mount"!==t&&(e.prototype[t]=Zr.prototype[t])}),Kr&&(e.prototype.$store=Kr)}};const eo={globalData:{}};global.UniServiceJSBridge.invokeCallbackHandler=ir;var to={uni:Wr,Vue:Zr,getApp:function({allowDefault:t=!1}={}){return e.$def?function(e){if(e.__$processed)return e;const t=e.methods;return t&&(Object.keys(t).forEach(r=>{e[r]=t[r]}),delete e.methods),Object.keys(eo).forEach(t=>{"globalData"!==t&&(e[t]=eo[t])}),e.globalData||(e.globalData={}),Object.assign(e.globalData,eo.globalData),e.__$processed=!0,e}(e.$def):t?eo:void 0},getCurrentPages:function(){return[]}};const ro=Object.getPrototypeOf(global)||global;dsl.onDefineApp(t=>{const r="function"==typeof t.onLaunch,o="function"==typeof t.onShow;(r||o)&&(e._events["applc:onCreate"]||(e._events["applc:onCreate"]=[])).push(()=>{r&&t.onLaunch(),o&&t.onShow()}),ro.__uniRoutes=function({pages:e}){const t=[];return Object.keys(e).forEach(r=>{const o=e[r];t.push({path:"/"+r+"/"+o.component,meta:{}})}),t}(t.manifest.router)}),Object.assign(ro,to)}()})); dsl.onInitPage((function({$app_require$:e,Vue:u}){!function(){"use strict";"undefined"!=typeof __VuePlugin&&u.use(__VuePlugin)}()}));