vue.dev.js 122.8 KB
Newer Older
fxy060608's avatar
fxy060608 已提交
1
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 l.call(e).slice(8,-1)}function f(e){return"[object Object]"===l.call(e)}function d(e){return"[object RegExp]"===l.call(e)}function v(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var _=g("slot,component",!0),b=g("key,ref,slot,slot-scope,is");function $(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function A(e,t){return w.call(e,t)}function k(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,O=k(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():""})}),C=k(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),S=/\B([A-Z])/g,j=k(function(e){return e.replace(S,"-$1").toLowerCase()});var E=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 I(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function M(e,t,n){}var T=function(e,t,n){return!1},F=function(e){return e};function D(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 D(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 D(e[n],t[n])})}catch(e){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(D(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var q="data-server-rendered",R=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:T,isReservedAttr:T,isUnknownElement:T,getTagNamespace:M,parsePlatformTagName:F,mustUseProp:T,async:!0,_lifecycleHooks:V},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function z(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var J=new RegExp("[^"+H.source+".$_\\d]");var W,K="__proto__"in{},Q="undefined"!=typeof window,Y="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,G=Y&&WXEnvironment.platform.toLowerCase(),X=Q&&window.navigator.userAgent.toLowerCase(),Z=X&&/msie|trident/.test(X),ee=X&&X.indexOf("msie 9.0")>0,te=X&&X.indexOf("edge/")>0,ne=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===G),re=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/),{}.watch);if(Q)try{var oe={};Object.defineProperty(oe,"passive",{get:function(){}}),window.addEventListener("test-passive",null,oe)}catch(e){}var ie=function(){return void 0===W&&(W=!Q&&!Y&&void 0!==i&&(i.process&&"server"===i.process.env.VUE_ENV)),W},ae=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var ce,ue="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);ce="undefined"!=typeof Set&&se(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 le=M,pe=M,fe=M,de=M,ve="undefined"!=typeof console,he=/(?:^|[-_])(\w)/g;le=function(e,t){var n=t?fe(t):"";B.warnHandler?B.warnHandler.call(null,e,t,n):ve&&!B.silent&&console.error("[Vue warn]: "+e+n)},pe=function(e,t){ve&&!B.silent&&console.warn("[Vue tip]: "+e+(t?fe(t):""))},de=function(e,t){if(e.$root===e)return"<Root>";var n="function"==typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,r=n.name||n._componentTag,o=n.__file;if(!r&&o){var i=o.match(/([^/\\]+)\.vue$/);r=i&&i[1]}return(r?"<"+r.replace(he,function(e){return e.toUpperCase()}).replace(/[-_]/g,"")+">":"<Anonymous>")+(o&&!1!==t?" at "+o:"")};fe=function(e){if(e._isVue&&e.$parent){for(var t=[],n=0;e;){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map(function(e,t){return""+(0===t?"---\x3e ":function(e,t){for(var n="";t;)t%2==1&&(n+=e),t>1&&(e+=e),t>>=1;return n}(" ",5+2*t))+(Array.isArray(e)?de(e[0])+"... ("+e[1]+" recursive calls)":de(e))}).join("\n")}return"\n\n(found in "+de(e)+")"};var me=0,ye=function(){"undefined"!=typeof SharedObject?this.id=SharedObject.uid++:this.id=me++,this.subs=[]};function ge(e){ye.SharedObject.targetStack.push(e),ye.SharedObject.target=e}function _e(){ye.SharedObject.targetStack.pop(),ye.SharedObject.target=ye.SharedObject.targetStack[ye.SharedObject.targetStack.length-1]}ye.prototype.addSub=function(e){this.subs.push(e)},ye.prototype.removeSub=function(e){$(this.subs,e)},ye.prototype.depend=function(){ye.SharedObject.target&&ye.SharedObject.target.addDep(this)},ye.prototype.notify=function(){var e=this.subs.slice();B.async||e.sort(function(e,t){return e.id-t.id});for(var t=0,n=e.length;t<n;t++)e[t].update()},ye.SharedObject="undefined"!=typeof SharedObject?SharedObject:{},ye.SharedObject.target=null,ye.SharedObject.targetStack=[];var be=function(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},$e={child:{configurable:!0}};$e.child.get=function(){return this.componentInstance},Object.defineProperties(be.prototype,$e);var we=function(e){void 0===e&&(e="");var t=new be;return t.text=e,t.isComment=!0,t};function Ae(e){return new be(void 0,void 0,void 0,String(e))}function ke(e){var t=new be(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var xe=Array.prototype,Oe=Object.create(xe);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=xe[e];z(Oe,e,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o,i=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&a.observeArray(o),a.dep.notify(),i})});var Ce=Object.getOwnPropertyNames(Oe),Se=!0;function je(e){Se=e}var Ee=function(e){var t;this.value=e,this.dep=new ye,this.vmCount=0,z(e,"__ob__",this),Array.isArray(e)?(K?(t=Oe,e.__proto__=t):function(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];z(e,i,t[i])}}(e,Oe,Ce),this.observeArray(e)):this.walk(e)};function Ie(e,t){var n;if(u(e)&&!(e instanceof be))return A(e,"__ob__")&&e.__ob__ instanceof Ee?n=e.__ob__:Se&&!ie()&&(Array.isArray(e)||f(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ee(e)),t&&n&&n.vmCount++,n}function Pe(e,t,n,r,o){var i=new ye,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!o&&Ie(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ye.SharedObject.target&&(i.depend(),u&&(u.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,o=t.length;r<o;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var a=s?s.call(e):n;t===a||t!=t&&a!=a||(r&&r(),s&&!c||(c?c.call(e,t):n=t,u=!o&&Ie(t),i.notify()))}})}}function Me(e,t,n){if((o(e)||c(e))&&le("Cannot set reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&v(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?(le("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):r?(Pe(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Te(e,t){if((o(e)||c(e))&&le("Cannot delete reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&v(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount?le("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):A(e,t)&&(delete e[t],n&&n.dep.notify())}}Ee.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Pe(e,t[n])},Ee.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ie(e[t])};var Fe=B.optionMergeStrategies;function De(e,t){if(!t)return e;for(var n,r,o,i=ue?Reflect.ownKeys(t):Object.keys(t),a=0;a<i.length;a++)"__ob__"!==(n=i[a])&&(r=e[n],o=t[n],A(e,n)?r!==o&&f(r)&&f(o)&&De(r,o):Me(e,n,o));return e}function Ne(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,o="function"==typeof e?e.call(n,n):e;return r?De(r,o):o}:t?e?function(){return De("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Le(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function qe(e,t,n,r){var o=Object.create(e||null);return t?(Be(r,t,n),P(o,t)):o}Fe.el=Fe.propsData=function(e,t,n,r){return n||le('option "'+r+'" can only be used during instance creation with the `new` keyword.'),Re(e,t)},Fe.data=function(e,t,n){return n?Ne(e,t,n):t&&"function"!=typeof t?(le('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):Ne(e,t)},V.forEach(function(e){Fe[e]=Le}),R.forEach(function(e){Fe[e+"s"]=qe}),Fe.watch=function(e,t,n,r){if(e===re&&(e=void 0),t===re&&(t=void 0),!t)return Object.create(e||null);if(Be(r,t,n),!e)return t;var o={};for(var i in P(o,e),t){var a=o[i],s=t[i];a&&!Array.isArray(a)&&(a=[a]),o[i]=a?a.concat(s):Array.isArray(s)?s:[s]}return o},Fe.props=Fe.methods=Fe.inject=Fe.computed=function(e,t,n,r){if(t&&Be(r,t,n),!e)return t;var o=Object.create(null);return P(o,e),t&&P(o,t),o},Fe.provide=Ne;var Re=function(e,t){return void 0===t?e:t};function Ve(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+H.source+"]*$").test(e)||le('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(_(e)||B.isReservedTag(e))&&le("Do not use built-in or reserved HTML elements as component id: "+e)}function Be(e,t,n){f(t)||le('Invalid value for option "'+e+'": expected an Object, but got '+p(t)+".",n)}function He(e,t,n){if(function(e){for(var t in e.components)Ve(t)}(t),"function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,o,i={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(o=n[r])?i[O(o)]={type:null}:le("props must be strings when using array syntax.");else if(f(n))for(var a in n)o=n[a],i[O(a)]=f(o)?o:{type:o};else le('Invalid value for option "props": expected an Array or an Object, but got '+p(n)+".",t);e.props=i}}(t,n),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(f(n))for(var i in n){var a=n[i];r[i]=f(a)?P({from:i},a):{from:a}}else le('Invalid value for option "inject": expected an Array or an Object, but got '+p(n)+".",t)}}(t,n),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=He(e,t.extends,n)),t.mixins))for(var r=0,o=t.mixins.length;r<o;r++)e=He(e,t.mixins[r],n);var i,a={};for(i in e)s(i);for(i in t)A(e,i)||s(i);function s(r){var o=Fe[r]||Re;a[r]=o(e[r],t[r],n,r)}return a}function Ue(e,t,n,r){if("string"==typeof n){var o=e[t];if(A(o,n))return o[n];var i=O(n);if(A(o,i))return o[i];var a=C(i);if(A(o,a))return o[a];var s=o[n]||o[i]||o[a];return r&&!s&&le("Failed to resolve "+t.slice(0,-1)+": "+n,e),s}}function ze(e,t,n,r){var o=t[e],i=!A(n,e),a=n[e],s=Ye(Boolean,o.type);if(s>-1)if(i&&!A(o,"default"))a=!1;else if(""===a||a===j(e)){var c=Ye(String,o.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!A(t,"default"))return;var r=t.default;u(r)&&le('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e);if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Ke(t.type)?r.call(e):r}(r,o,e);var l=Se;je(!0),Ie(a),je(l)}return function(e,t,n,r,o){if(e.required&&o)return void le('Missing required prop: "'+t+'"',r);if(null==n&&!e.required)return;var i=e.type,a=!i||!0===i,s=[];if(i){Array.isArray(i)||(i=[i]);for(var c=0;c<i.length&&!a;c++){var u=We(n,i[c]);s.push(u.expectedType||""),a=u.valid}}if(!a)return void le(function(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(C).join(", "),o=n[0],i=p(t),a=Ge(t,o),s=Ge(t,i);1===n.length&&Xe(o)&&!function(){var e=[],t=arguments.length;for(;t--;)e[t]=arguments[t];return e.some(function(e){return"boolean"===e.toLowerCase()})}(o,i)&&(r+=" with value "+a);r+=", got "+i+" ",Xe(i)&&(r+="with value "+s+".");return r}(t,n,s),r);var l=e.validator;l&&(l(n)||le('Invalid prop: custom validator check failed for prop "'+t+'".',r))}(o,e,a,r,i),a}var Je=/^(String|Number|Boolean|Function|Symbol)$/;function We(e,t){var n,r=Ke(t);if(Je.test(r)){var o=typeof e;(n=o===r.toLowerCase())||"object"!==o||(n=e instanceof t)}else n="Object"===r?f(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function Ke(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Qe(e,t){return Ke(e)===Ke(t)}function Ye(e,t){if(!Array.isArray(t))return Qe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Qe(t[n],e))return n;return-1}function Ge(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function Xe(e){return["string","number","boolean"].some(function(t){return e.toLowerCase()===t})}function Ze(e,t,n){ge();try{if(t)for(var r=t;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{if(!1===o[i].call(r,e,t,n))return}catch(e){tt(e,r,"errorCaptured hook")}}tt(e,t,n)}finally{_e()}}function et(e,t,n,r,o){var i;try{(i=n?e.apply(t,n):e.call(t))&&!i._isVue&&h(i)&&!i._handled&&(i.catch(function(e){return Ze(e,r,o+" (Promise/async)")}),i._handled=!0)}catch(e){Ze(e,r,o)}return i}function tt(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(t){t!==e&&nt(t,null,"config.errorHandler")}nt(e,t,n)}function nt(e,t,n){if(le("Error in "+n+': "'+e.toString()+'"',t),!Q&&!Y||"undefined"==typeof console)throw e;console.error(e)}var rt,ot,it=[],at=!1;function st(){at=!1;var e=it.slice(0);it.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){var ct=Promise.resolve();rt=function(){ct.then(st),ne&&setTimeout(M)}}else if(Z||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())rt="undefined"!=typeof setImmediate&&se(setImmediate)?function(){setImmediate(st)}:function(){setTimeout(st,0)};else{var ut=1,lt=new MutationObserver(st),pt=t.createTextNode(String(ut));lt.observe(pt,{characterData:!0}),rt=function(){ut=(ut+1)%2,pt.data=String(ut)}}function ft(e,t){var n;if(it.push(function(){if(e)try{e.call(t)}catch(e){Ze(e,t,"nextTick")}else n&&n(t)}),at||(at=!0,rt()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var dt=g("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),vt=function(e,t){le('Property or method "'+t+'" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',e)},ht=function(e,t){le('Property "'+t+'" must be accessed with "$data.'+t+'" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data',e)},mt="undefined"!=typeof Proxy&&se(Proxy);if(mt){var yt=g("stop,prevent,self,ctrl,shift,alt,meta,exact");B.keyCodes=new Proxy(B.keyCodes,{set:function(e,t,n){return yt(t)?(le("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var gt={has:function(e,t){var n=t in e,r=dt(t)||"string"==typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||r||(t in e.$data?ht(e,t):vt(e,t)),n||!r}},_t={get:function(e,t){return"string"!=typeof t||t in e||(t in e.$data?ht(e,t):vt(e,t)),e[t]}};ot=function(e){if(mt){var t=e.$options,n=t.render&&t.render._withStripped?_t:gt;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var bt,$t,wt=new ce;function At(e){!function e(t,n){var r,o;var i=Array.isArray(t);if(!i&&!u(t)||Object.isFrozen(t)||t instanceof be)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(i)for(r=t.length;r--;)e(t[r],n);else for(o=Object.keys(t),r=o.length;r--;)e(t[o[r]],n)}(e,wt),wt.clear()}var kt=Q&&window.performance;kt&&kt.mark&&kt.measure&&kt.clearMarks&&kt.clearMeasures&&(bt=function(e){return kt.mark(e)},$t=function(e,t,n){kt.measure(e,t,n),kt.clearMarks(t),kt.clearMarks(n)});var xt=k(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function Ot(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return et(r,null,arguments,t,"v-on handler");for(var o=r.slice(),i=0;i<o.length;i++)et(o[i],null,e,t,"v-on handler")}return n.fns=e,n}function Ct(e,t,n,r,i,a){var c,u,l,p;for(c in e)u=e[c],l=t[c],p=xt(c),o(u)?le('Invalid handler for event "'+p.name+'": got '+String(u),a):o(l)?(o(u.fns)&&(u=e[c]=Ot(u,a)),s(p.once)&&(u=e[c]=i(p.name,u,p.capture)),n(p.name,u,p.capture,p.passive,p.params)):u!==l&&(l.fns=u,e[c]=l);for(c in t)o(e[c])&&r((p=xt(c)).name,t[c],p.capture)}function St(e,t,n){var r;e instanceof be&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function c(){n.apply(this,arguments),$(r.fns,c)}o(i)?r=Ot([c]):a(i.fns)&&s(i.merged)?(r=i).fns.push(c):r=Ot([i,c]),r.merged=!0,e[t]=r}function jt(e,t,n,r){var i=t.options.mpOptions&&t.options.mpOptions.properties;if(o(i))return n;var s=t.options.mpOptions.externalClasses||[],c=e.attrs,u=e.props;if(a(c)||a(u))for(var l in i){var p=j(l);(Et(n,u,l,p,!0)||Et(n,c,l,p,!1))&&n[l]&&-1!==s.indexOf(p)&&r[O(n[l])]&&(n[l]=r[O(n[l])])}return n}function Et(e,t,n,r,o){if(a(t)){if(A(t,n))return e[n]=t[n],o||delete t[n],!0;if(A(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function It(e){return c(e)?[Ae(e)]:Array.isArray(e)?function e(t,n){var r=[];var i,u,l,p;for(i=0;i<t.length;i++)o(u=t[i])||"boolean"==typeof u||(l=r.length-1,p=r[l],Array.isArray(u)?u.length>0&&(Pt((u=e(u,(n||"")+"_"+i))[0])&&Pt(p)&&(r[l]=Ae(p.text+u[0].text),u.shift()),r.push.apply(r,u)):c(u)?Pt(p)?r[l]=Ae(p.text+u):""!==u&&r.push(Ae(u)):Pt(u)&&Pt(p)?r[l]=Ae(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 Pt(e){return a(e)&&a(e.text)&&!1===e.isComment}function Mt(e,t){if(e){for(var n=Object.create(null),r=ue?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){for(var a=e[i].from,s=t;s;){if(s._provided&&A(s._provided,a)){n[i]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[i]){var c=e[i].default;n[i]="function"==typeof c?c.call(t):c}else le('Injection "'+i+'" not found',t)}}return n}}function Tt(e,t){if(!e||!e.length)return{};for(var n={},r=0,o=e.length;r<o;r++){var i=e[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==t&&i.fnContext!==t||!a||null==a.slot)i.asyncMeta&&i.asyncMeta.data&&"page"===i.asyncMeta.data.slot?(n.page||(n.page=[])).push(i):(n.default||(n.default=[])).push(i);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===i.tag?c.push.apply(c,i.children||[]):c.push(i)}}for(var u in n)n[u].every(Ft)&&delete n[u];return n}function Ft(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Dt(e,t,n){var o,i=Object.keys(t).length>0,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]=Nt(t,c,e[c]))}else o={};for(var u in t)u in o||(o[u]=Lt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=o),z(o,"$stable",a),z(o,"$key",s),z(o,"$hasNormal",i),o}function Nt(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]:It(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 Lt(e,t){return function(){return e[t]}}function qt(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;r<o;r++)n[r]=t(e[r],r,r,r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(u(e))if(ue&&e[Symbol.iterator]){n=[];for(var c=e[Symbol.iterator](),l=c.next();!l.done;)n.push(t(l.value,n.length,r++,r)),l=c.next()}else for(i=Object.keys(e),n=new Array(i.length),r=0,o=i.length;r<o;r++)s=i[r],n[r]=t(e[s],s,r,r);return a(n)||(n=[]),n._isVList=!0,n}function Rt(e,t,n,r){var o,i=this.$scopedSlots[e];i?(n=n||{},r&&(u(r)||le("slot v-bind without argument expects an Object",this),n=P(P({},r),n)),o=i(n,this,n._i)||t):o=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},o):o}function Vt(e){return Ue(this.$options,"filters",e,!0)||F}function Bt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Ht(e,t,n,r,o){var i=B.keyCodes[t]||n;return o&&r&&!B.keyCodes[t]?Bt(o,r):i?Bt(i,e):r?j(r)!==t:void 0}function Ut(e,t,n,r,o){if(n)if(u(n)){var i;Array.isArray(n)&&(n=function(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}(n));var a=function(a){if("class"===a||"style"===a||b(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||B.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=O(a),u=j(a);c in i||u in i||(i[a]=n[a],o&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var s in n)a(s)}else le("v-bind without argument expects an Object or Array value",this);return e}function zt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(Wt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function Jt(e,t,n){return Wt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Wt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Kt(e[r],t+"_"+r,n);else Kt(e,t,n)}function Kt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Qt(e,t){if(t)if(f(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(o,i):i}}else le("v-on without argument expects an Object value",this);return e}function Yt(e,t,n,r){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var i=e[o];Array.isArray(i)?Yt(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function Gt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r?e[t[n]]=t[n+1]:""!==r&&null!==r&&le("Invalid value for dynamic directive argument (expected string or null): "+r,this)}return e}function Xt(e,t){return"string"==typeof e?t+e:e}function Zt(e){e._o=Jt,e._n=y,e._s=m,e._l=qt,e._t=Rt,e._q=D,e._i=N,e._m=zt,e._f=Vt,e._k=Ht,e._b=Ut,e._v=Ae,e._e=we,e._u=Yt,e._g=Qt,e._d=Gt,e._p=Xt}function en(e,t,n,o,i){var a,c=this,u=i.options;A(o,"_uid")?(a=Object.create(o))._original=o:(a=o,o=o._original);var l=s(u._compiled),p=!l;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||r,this.injections=Mt(u.inject,o),this.slots=function(){return c.$slots||Dt(e.scopedSlots,c.$slots=Tt(n,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Dt(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Dt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=ln(a,e,t,n,r,p);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return ln(a,e,t,n,r,p)}}function tn(e,t,n,r,o){var i=ke(e);return i.fnContext=n,i.fnOptions=r,(i.devtoolsMeta=i.devtoolsMeta||{}).renderContext=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function nn(e,t){for(var n in t)e[O(n)]=t[n]}Zt(en.prototype);var rn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;rn.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,gn)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,o,i){_n=!0;var a=o.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(i||e.$options._renderChildren||c);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=i,e.$attrs=o.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){je(!1);for(var l=e._props,p=e.$options._propKeys||[],f=0;f<p.length;f++){var d=p[f],v=e.$options.props;l[d]=ze(d,v,t,e)}je(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),n=n||r;var h=e.$options._parentListeners;e.$options._parentListeners=n,yn(e,n,h),u&&(e.$slots=Tt(i,o.context),e.$forceUpdate());_n=!1}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(wn(r,"onServiceCreated"),wn(r,"onServiceAttached"),r._isMounted=!0,wn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,xn.push(t)):$n(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,bn(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);wn(t,"deactivated")}}(t,!0):t.$destroy())}},on=Object.keys(rn);function an(e,t,n,i,c){if(!o(e)){var l=n.$options._base;if(u(e)&&(e=l.extend(e)),"function"==typeof e){var p;if(o(e.cid)&&void 0===(e=function(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=fn;n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],i=!0,c=null,l=null;n.$on("hook:destroyed",function(){return $(r,n)});var p=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},f=L(function(n){e.resolved=dn(n,t),i?r.length=0:p(!0)}),d=L(function(t){le("Failed to resolve async component: "+String(e)+(t?"\nReason: "+t:"")),a(e.errorComp)&&(e.error=!0,p(!0))}),v=e(f,d);return u(v)&&(h(v)?o(e.resolved)&&v.then(f,d):h(v.component)&&(v.component.then(f,d),a(v.error)&&(e.errorComp=dn(v.error,t)),a(v.loading)&&(e.loadingComp=dn(v.loading,t),0===v.delay?e.loading=!0:c=setTimeout(function(){c=null,o(e.resolved)&&o(e.error)&&(e.loading=!0,p(!1))},v.delay||200)),a(v.timeout)&&(l=setTimeout(function(){l=null,o(e.resolved)&&d("timeout ("+v.timeout+"ms)")},v.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(p=e,l)))return function(e,t,n,r,o){var i=we();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}(p,t,n,i,c);t=t||{},zn(e),a(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),i=o[r],s=t.model.callback;a(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(o[r]=[s].concat(i)):o[r]=s}(e.options,t);var f=function(e,t,n,r){var i=t.options.props;if(o(i))return jt(e,t,{},r);var s={},c=e.attrs,u=e.props;if(a(c)||a(u))for(var l in i){var p=j(l),f=l.toLowerCase();l!==f&&c&&A(c,f)&&pe('Prop "'+f+'" is passed to component '+de(n||t)+', but the declared prop name is "'+l+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+p+'" instead of "'+l+'".'),Et(s,u,l,p,!0)||Et(s,c,l,p,!1)}return jt(e,t,s,r)}(t,e,c,n);if(s(e.options.functional))return function(e,t,n,o,i){var s=e.options,c={},u=s.props;if(a(u))for(var l in u)c[l]=ze(l,u,t||r);else a(n.attrs)&&nn(c,n.attrs),a(n.props)&&nn(c,n.props);var p=new en(n,c,i,o,e),f=s.render.call(null,p._c,p);if(f instanceof be)return tn(f,n,p.parent,s,p);if(Array.isArray(f)){for(var d=It(f)||[],v=new Array(d.length),h=0;h<d.length;h++)v[h]=tn(d[h],n,p.parent,s,p);return v}}(e,f,t,n,i);var d=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var v=t.slot;t={},v&&(t.slot=v)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<on.length;n++){var r=on[n],o=t[r],i=rn[r];o===i||o&&o._merged||(t[r]=o?sn(i,o):i)}}(t);var m=e.options.name||c;return new be("vue-component-"+e.cid+(m?"-"+m:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:d,tag:c,children:i},p)}le("Invalid Component definition: "+String(e),n)}}function sn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}var cn=1,un=2;function ln(e,t,n,r,i,l){return(Array.isArray(n)||c(n))&&(i=r,r=n,n=void 0),s(l)&&(i=un),function(e,t,n,r,i){if(a(n)&&a(n.__ob__))return le("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",e),we();a(n)&&a(n.is)&&(t=n.is);if(!t)return we();a(n)&&a(n.key)&&!c(n.key)&&le("Avoid using non-primitive value as key, use string/number value instead.",e);Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===un?r=It(r):i===cn&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var l,p;if("string"==typeof t){var f;p=e.$vnode&&e.$vnode.ns||B.getTagNamespace(t),B.isReservedTag(t)?(a(n)&&a(n.nativeOn)&&le("The .native modifier for v-on is only valid on components but it was used on <"+t+">.",e),l=new be(B.parsePlatformTagName(t),n,r,void 0,void 0,e)):l=n&&n.pre||!a(f=Ue(e.$options,"components",t))?new be(t,n,r,void 0,void 0,e):an(f,n,e,r,t)}else l=an(t,n,e,r);return Array.isArray(l)?l:a(l)?(a(p)&&function e(t,n,r){t.ns=n;"foreignObject"===t.tag&&(n=void 0,r=!0);if(a(t.children))for(var i=0,c=t.children.length;i<c;i++){var u=t.children[i];a(u.tag)&&(o(u.ns)||s(r)&&"svg"!==u.tag)&&e(u,n,r)}}(l,p),a(n)&&function(e){u(e.style)&&At(e.style);u(e.class)&&At(e.class)}(n),l):we()}(e,t,n,r,i)}var pn,fn=null;function dn(e,t){return(e.__esModule||ue&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function vn(e,t){pn.$on(e,t)}function hn(e,t){pn.$off(e,t)}function mn(e,t){var n=pn;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function yn(e,t,n){pn=e,Ct(t,n||{},vn,hn,mn,e),pn=void 0}var gn=null,_n=!1;function bn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function $n(e,t){if(t){if(e._directInactive=!1,bn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)$n(e.$children[n]);wn(e,"activated")}}function wn(e,t){ge();var n=e.$options[t],r=t+" hook";if(n)for(var o=0,i=n.length;o<i;o++)et(n[o],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),_e()}var An=100,kn=[],xn=[],On={},Cn={},Sn=!1,jn=!1,En=0;var In=Date.now;if(Q&&!Z){var Pn=window.performance;Pn&&"function"==typeof Pn.now&&In()>t.createEvent("Event").timeStamp&&(In=function(){return Pn.now()})}function Mn(){var e,t;for(In(),jn=!0,kn.sort(function(e,t){return e.id-t.id}),En=0;En<kn.length;En++)if((e=kn[En]).before&&e.before(),t=e.id,On[t]=null,e.run(),null!=On[t]&&(Cn[t]=(Cn[t]||0)+1,Cn[t]>An)){le("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var n=xn.slice(),r=kn.slice();En=kn.length=xn.length=0,On={},Cn={},Sn=jn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,$n(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&wn(r,"updated")}}(r),ae&&B.devtools&&ae.emit("flush")}var Tn=0,Fn=function(e,t,n,r,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Tn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ce,this.newDepIds=new ce,this.expression=t.toString(),"function"==typeof t?this.getter=t:(this.getter=function(e){if(!J.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=M,le('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};Fn.prototype.get=function(){var e;ge(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Ze(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&At(e),_e(),this.cleanupDeps()}return e},Fn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Fn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Fn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==On[t]){if(On[t]=!0,jn){for(var n=kn.length-1;n>En&&kn[n].id>e.id;)n--;kn.splice(n+1,0,e)}else kn.push(e);if(!Sn){if(Sn=!0,!B.async)return void Mn();ft(Mn)}}}(this)},Fn.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){Ze(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||$(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Dn={enumerable:!0,configurable:!0,get:M,set:M};function Nn(e,t,n){Dn.get=function(){return this[t][n]},Dn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Dn)}function Ln(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;i||je(!1);var a=function(a){o.push(a);var s=ze(a,t,n,e),c=j(a);(b(c)||B.isReservedAttr(c))&&le('"'+c+'" is a reserved attribute and cannot be used as component prop.',e),Pe(r,a,s,function(){i||_n||le("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',e)}),a in e||Nn(e,"_props",a)};for(var s in t)a(s);je(!0)}(e,t.props),t.methods&&function(e,t){var n=e.$options.props;for(var r in t)"function"!=typeof t[r]&&le('Method "'+r+'" has type "'+typeof t[r]+'" in the component definition. Did you reference the function correctly?',e),n&&A(n,r)&&le('Method "'+r+'" has already been defined as a prop.',e),r in e&&U(r)&&le('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[r]="function"!=typeof t[r]?M:E(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;f(t=e._data="function"==typeof t?function(e,t){ge();try{return e.call(t,t)}catch(e){return Ze(e,t,"data()"),{}}finally{_e()}}(t,e):t||{})||(t={},le("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var n=Object.keys(t),r=e.$options.props,o=e.$options.methods,i=n.length;for(;i--;){var a=n[i];o&&A(o,a)&&le('Method "'+a+'" has already been defined as a data property.',e),r&&A(r,a)?le('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',e):U(a)||Nn(e,"_data",a)}Ie(t,!0)}(e):Ie(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ie();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;null==a&&le('Getter is missing for computed property "'+o+'".',e),r||(n[o]=new Fn(e,a||M,M,qn)),o in e?o in e.$data?le('The computed property "'+o+'" is already defined in data.',e):e.$options.props&&o in e.$options.props&&le('The computed property "'+o+'" is already defined as a prop.',e):Rn(e,o,i)}}(e,t.computed),t.watch&&t.watch!==re&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)Hn(e,n,r[o]);else Hn(e,n,r)}}(e,t.watch)}var qn={lazy:!0};function Rn(e,t,n){var r=!ie();"function"==typeof n?(Dn.get=r?Vn(t):Bn(n),Dn.set=M):(Dn.get=n.get?r&&!1!==n.cache?Vn(t):Bn(n.get):M,Dn.set=n.set||M),Dn.set===M&&(Dn.set=function(){le('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,Dn)}function Vn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ye.SharedObject.target&&t.depend(),t.value}}function Bn(e){return function(){return e.call(this,this)}}function Hn(e,t,n,r){return f(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Un=0;function zn(e){var t=e.options;if(e.super){var n=zn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}(e);r&&P(e.extendOptions,r),(t=e.options=He(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Jn(e){this instanceof Jn||le("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function Wn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name;i&&Ve(i);var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=He(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)Nn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)Rn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=P({},a.options),o[r]=a,a}}function Kn(e){return e&&(e.Ctor.options.name||e.tag)}function Qn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Yn(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=Kn(a.componentOptions);s&&!t(s)&&Gn(n,i,r,o)}}}function Gn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,$(n,t)}!function(e){e.prototype._init=function(e){var t,n,o=this;o._uid=Un++,B.performance&&bt&&(t="vue-perf-start:"+o._uid,n="vue-perf-end:"+o._uid,bt(t)),o._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)}(o,e):o.$options=He(zn(o.constructor),e||{},o),ot(o),o._self=o,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}(o),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&yn(e,t)}(o),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=Tt(t._renderChildren,o),e.$scopedSlots=r,e._c=function(t,n,r,o){return ln(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return ln(e,t,n,r,o,!0)};var i=n&&n.data;Pe(e,"$attrs",i&&i.attrs||r,function(){!_n&&le("$attrs is readonly.",e)},!0),Pe(e,"$listeners",t._parentListeners||r,function(){!_n&&le("$listeners is readonly.",e)},!0)}(o),wn(o,"beforeCreate"),"mp-toutiao"!==o.mpHost&&function(e){var t=Mt(e.$options.inject,e);t&&(je(!1),Object.keys(t).forEach(function(n){Pe(e,n,t[n],function(){le('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',e)})}),je(!0))}(o),Ln(o),"mp-toutiao"!==o.mpHost&&function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(o),"mp-toutiao"!==o.mpHost&&wn(o,"created"),B.performance&&bt&&(o._name=de(o,!1),bt(n),$t("vue "+o._name+" init",t,n)),o.$options.el&&o.$mount(o.$options.el)}}(Jn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};t.set=function(){le("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){le("$props is readonly.",this)},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Me,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(f(t))return Hn(this,e,t,n);(n=n||{}).user=!0;var r=new Fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Ze(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Jn),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;o<i;o++)r.$on(e[o],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var i,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((i=a[s])===t||i.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=e.toLowerCase();n!==e&&t._events[n]&&pe('Event "'+n+'" is emitted in component '+de(t)+' but the handler is registered for "'+e+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+j(e)+'" instead of "'+e+'".');var r=t._events[e];if(r){r=r.length>1?I(r):r;for(var o=I(arguments,1),i='event handler for "'+e+'"',a=0,s=r.length;a<s;a++)et(r[a],t,o,t,i)}return t}}(Jn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,o=n._vnode,i=function(e){var t=gn;return gn=e,function(){gn=t}}(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){wn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||$(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),wn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Jn),function(e){Zt(e.prototype),e.prototype.$nextTick=function(e){return ft(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,o=n._parentVnode;o&&(t.$scopedSlots=Dt(o.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=o;try{fn=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){if(Ze(n,t,"render"),t.$options.renderError)try{e=t.$options.renderError.call(t._renderProxy,t.$createElement,n)}catch(n){Ze(n,t,"renderError"),e=t._vnode}else e=t._vnode}finally{fn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof be||(Array.isArray(e)&&le("Multiple root nodes returned from render function. Render function should return a single root node.",t),e=we()),e.parent=o,e}}(Jn);var Xn=[String,RegExp,Array],Zn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Xn,exclude:Xn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Gn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){Yn(e,function(e){return Qn(t,e)})}),this.$watch("exclude",function(t){Yn(e,function(e){return!Qn(t,e)})})},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||(r=n).isComment&&r.asyncFactory))return n}var r}(e),n=t&&t.componentOptions;if(n){var r=Kn(n),o=this.include,i=this.exclude;if(o&&(!r||!Qn(o,r))||i&&r&&Qn(i,r))return t;var s=this.cache,c=this.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;s[u]?(t.componentInstance=s[u].componentInstance,$(c,u),c.push(u)):(s[u]=t,c.push(u),this.max&&c.length>parseInt(this.max)&&Gn(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return B},set:function(){le("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:P,mergeOptions:He,defineReactive:Pe},e.set=Me,e.delete=Te,e.nextTick=ft,e.observable=function(e){return Ie(e),e},e.options=Object.create(null),R.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,P(e.options.components,Zn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=I(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=He(this.options,e),this}}(e),Wn(e),function(e){R.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&Ve(e),"component"===t&&f(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)}(Jn),Object.defineProperty(Jn.prototype,"$isServer",{get:ie}),Object.defineProperty(Jn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Jn,"FunctionalRenderContext",{value:en}),Jn.version="2.6.11";function er(e,t,r){n.setElementAttr(e,t,r)}var tr=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:er}),nr={create:function(e,t){rr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(rr(e,!0),rr(t))},destroy:function(e){rr(e,!0)}};function rr(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])?$(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}}g("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"),g("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 or=g("text,number,password,search,email,tel,url"),ir=new be("",{},[]),ar=["create","activate","update","remove","destroy"];function sr(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||or(r)&&or(o)}(e,t)||s(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&o(t.asyncFactory.error))}function cr(e,t,n){var r,o,i={};for(r=t;r<=n;++r)a(o=e[r].key)&&(i[o]=r);return i}var ur={create:lr,update:lr,destroy:function(e){lr(e,ir)}};function lr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===ir,a=t===ir,s=fr(e.data.directives,e.context),c=fr(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,vr(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(vr(o,"bind",t,e),o.def&&o.def.inserted&&u.push(o));if(u.length){var p=function(){for(var n=0;n<u.length;n++)vr(u[n],"inserted",t,e)};i?St(t,"insert",p):p()}l.length&&St(t,"postpatch",function(){for(var n=0;n<l.length;n++)vr(l[n],"componentUpdated",t,e)});if(!i)for(n in s)c[n]||vr(s[n],"unbind",e,e,a)}(e,t)}var pr=Object.create(null);function fr(e,t){var n,r,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=pr),o[dr(r)]=r,r.def=Ue(t.$options,"directives",r.name,!0);return o}function dr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function vr(e,t,n,r,o){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){Ze(r,n.context,"directive "+e.name+" "+t+" hook")}}var hr=[nr,ur];function mr(e,t){if(e.data.attrs||t.data.attrs){var n,r,o=t.elm,i=e.data.attrs||{},a=t.data.attrs||{};for(n in a.__ob__&&(a=t.data.attrs=P({},a)),a)r=a[n],i[n]!==r&&er(o,n,r);for(n in i)null==a[n]&&er(o,n,"")}}var yr={create:mr,update:mr};function gr(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode).data&&(t=_r(r.data,t));for(;a(n=n.parent);)n.data&&(t=_r(t,n.data));return function(e,t){if(a(e)||a(t))return br(e,$r(t));return""}(t.staticClass,t.class)}function _r(e,t){return{staticClass:br(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function br(e,t){return e?t?e+" "+t:e:t||""}function $r(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r<o;r++)a(t=$r(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):u(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var wr=g("template,script,style,element,content,slot,link,meta,svg,view,a,div,img,image,text,span,input,switch,textarea,spinner,select,slider,slider-neighbor,indicator,canvas,list,cell,header,loading,loading-indicator,refresh,scrollable,scroller,video,web,embed,tabbar,tabheader,datepicker,timepicker,marquee,countdown",!0),Ar=(g("web,spinner,switch,video,textarea,canvas,indicator,marquee,countdown",!0),g("richtext,trisition,trisition-group",!0)),kr=(g("embed,img,image,input,link,meta",!0),g("text,number,password,search,email,tel,url"));function xr(e,t){var n=t.elm,r=t.data,i=e.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=gr(t),c=n._transitionClasses;a(c)&&(s=br(s,$r(c))),s!==n._prevClass&&(er(n,"class",s),n._prevClass=s)}}var Or,Cr={create:xr,update:xr};function Sr(e,t,n,r){if(n){var o=t,i=Or;t=function(n){var a=1===arguments.length?o(n):o.apply(null,arguments);return jr(e,t,r,i),a}}Or.addEventListener(e,t,r)}function jr(e,t,n,r){(r||Or).removeEventListener(e,t,n)}function Er(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};Or=t.elm,Ct(n,r,Sr,jr,t.context),Or=void 0}}var Ir={create:Er,update:Er},Pr=k(O);function Mr(e){for(var t,n=/([\w-]*)\s*:\s*([^;]*)/g,r={};t=n.exec(e);)r[t[1]]=t[2].trim();return r}function Tr(e,t){if(e.data.style||t.data.style){var r,o,i=t.elm,a=e.data.style||{},s=t.data.style||{};"string"==typeof s&&(s=Mr(s)),"string"==typeof a&&(a=Mr(a));var c=s.__ob__;for(o in Array.isArray(s)&&(s=t.data.style=function(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}(s)),c&&(s=t.data.style=P({},s)),a)s[o]||n.setElementStyle(i,Pr(o),"");for(o in s)r=s[o],n.setElementStyle(i,Pr(o),r)}}var Fr={create:function(e,t){if(t.data.staticStyle){var r=t.elm,o=t.data.staticStyle;for(var i in o)o[i]&&n.setElementStyle(r,Pr(i),o[i]);Tr(e,t)}else Tr(e,t)},update:Tr};function Dr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&P(t,Nr(e.name||"v")),P(t,e),t}return"string"==typeof e?Nr(e):void 0}}var Nr=k(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}});Q&&!ee&&(void 0===window.ontransitionend&&window.onwebkittransitionend,void 0===window.onanimationend&&window.onwebkitanimationend);Q&&(window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout);function Lr(e,t){var n=t.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Dr(t.data.transition);if(r&&!n._enterCb){for(var o=r.enterClass,i=r.enterToClass,a=r.enterActiveClass,s=r.appearClass,c=r.appearToClass,u=r.appearActiveClass,l=r.beforeEnter,p=r.enter,f=r.afterEnter,d=r.enterCancelled,v=r.beforeAppear,h=r.appear,m=r.afterAppear,y=r.appearCancelled,g=gn,_=gn.$vnode;_&&_.parent;)g=(_=_.parent).context;var b=!g._isMounted||!t.isRootInsert;if(!b||h||""===h){var $=b?s:o,w=b?c:i,A=b?u:a,k=b&&v||l,x=b&&"function"==typeof h?h:p,O=b&&m||f,C=b&&y||d,S=x&&(x._length||x.length)>1,j=t.context.$options.style||{},E=j[$],I=j["@TRANSITION"]&&j["@TRANSITION"][A]||{},T=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],null!=a[l]||u&&null!=u[l]||c&&null!=c[l]||le('transition property "'+l+'" is declared in enter starting class (.'+n+"), but not declared anywhere in enter ending class (."+r+"), enter active cass (."+o+") or the element's default styling. Note in Quickapp, CSS properties need explicit values to be transitionable.");if(u)for(var p in u)0!==p.indexOf("transition")&&(a[p]=u[p]);c&&P(a,c);return a}(n,j,$,w,A,t.context),F=Object.keys(T).length>0,D=n._enterCb=L(function(){D.cancelled?C&&C(n):O&&O(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(),x&&x(n,D),F)?t.context.$requireQuickappModule("animation").transition(n.ref,{styles:T,duration:I.duration||0,delay:I.delay||0,timingFunction:I.timingFunction||"linear"},S?M:D):S||D()},16),k&&k(n),E)for(var N in E)n.setStyle(N,E[N]);F||S||D()}}}function qr(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=P({},c)),s)o(c[n])&&er(i,n,"");for(n in c){if(r=c[n],"value"===n)er(i,n,o(r)?"":String(r));else er(i,n,r)}}}var Rr=function(e){var t,n,r={},i=e.modules,u=e.nodeOps;for(t=0;t<ar.length;++t)for(r[ar[t]]=[],n=0;n<i.length;++n)a(i[n][ar[t]])&&r[ar[t]].push(i[n][ar[t]]);function l(e){var t=u.parentNode(e);a(t)&&u.removeChild(t,e)}function p(e,t){return!t&&!e.ns&&!(B.ignoredElements.length&&B.ignoredElements.some(function(t){return d(t)?t.test(e.tag):t===e.tag}))&&B.isUnknownElement(e.tag)}var f=0;function v(e,t,n,o,i,c,l){if(a(e.elm)&&a(c)&&(e=c[l]=ke(e)),e.isRootInsert=!i,!function(e,t,n,o){var i=e.data;if(a(i)){var c=a(e.componentInstance)&&i.keepAlive;if(a(i=i.hook)&&a(i=i.init)&&i(e,!1),a(e.componentInstance))return h(e,t),m(n,e.elm,o),s(c)&&function(e,t,n,o){for(var i,s=e;s.componentInstance;)if(s=s.componentInstance._vnode,a(i=s.data)&&a(i=i.transition)){for(i=0;i<r.activate.length;++i)r.activate[i](ir,s);t.push(s);break}m(n,e.elm,o)}(e,t,n,o),!0}}(e,t,n,o)){var d=e.data,v=e.children,g=e.tag;a(g)?(d&&d.pre&&f++,p(e,f)&&le("Unknown custom element: <"+g+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context),e.elm=e.ns?u.createElementNS(e.ns,g):u.createElement(g,e),$(e),y(e,v,t),a(d)&&b(e,t),m(n,e.elm,o),d&&d.pre&&f--):s(e.isComment)?(e.elm=u.createComment(e.text),m(n,e.elm,o)):(e.elm=u.createTextNode(e.text),m(n,e.elm,o))}}function h(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(b(e,t),$(e)):(rr(e),t.push(e))}function m(e,t,n){a(e)&&(a(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function y(e,t,n){if(Array.isArray(t)){O(t);for(var r=0;r<t.length;++r)v(t[r],n,e.elm,null,!0,t,r)}else c(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function _(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return a(e.tag)}function b(e,n){for(var o=0;o<r.create.length;++o)r.create[o](ir,e);a(t=e.data.hook)&&(a(t.create)&&t.create(ir,e),a(t.insert)&&n.push(e))}function $(e){var t;if(a(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)a(t=n.context)&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;a(t=gn)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function w(e,t,n,r,o,i){for(;r<=o;++r)v(n[r],i,e,t,!1,n,r)}function A(e){var t,n,o=e.data;if(a(o))for(a(t=o.hook)&&a(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)A(e.children[n])}function k(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(a(r.tag)?(x(r),A(r)):l(r.elm))}}function x(e,t){if(a(t)||a(e.data)){var n,o=r.remove.length+1;for(a(t)?t.listeners+=o:t=function(e,t){function n(){0==--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,o),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&x(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else l(e.elm)}function O(e){for(var t={},n=0;n<e.length;n++){var r=e[n],o=r.key;a(o)&&(t[o]?le("Duplicate keys detected: '"+o+"'. This may cause an update error.",r.context):t[o]=!0)}}function C(e,t,n,r){for(var o=n;o<r;o++){var i=t[o];if(a(i)&&sr(e,i))return o}}function S(e,t,n,i,c,l){if(e!==t){a(t.elm)&&a(i)&&(t=i[c]=ke(t));var p=t.elm=e.elm;if(s(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?P(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,d=t.data;a(d)&&a(f=d.hook)&&a(f=f.prepatch)&&f(e,t);var h=e.children,m=t.children;if(a(d)&&_(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);a(f=d.hook)&&a(f=f.update)&&f(e,t)}o(t.text)?a(h)&&a(m)?h!==m&&function(e,t,n,r,i){var s,c,l,p=0,f=0,d=t.length-1,h=t[0],m=t[d],y=n.length-1,g=n[0],_=n[y],b=!i;for(O(n);p<=d&&f<=y;)o(h)?h=t[++p]:o(m)?m=t[--d]:sr(h,g)?(S(h,g,r,n,f),h=t[++p],g=n[++f]):sr(m,_)?(S(m,_,r,n,y),m=t[--d],_=n[--y]):sr(h,_)?(S(h,_,r,n,y),b&&u.insertBefore(e,h.elm,u.nextSibling(m.elm)),h=t[++p],_=n[--y]):sr(m,g)?(S(m,g,r,n,f),b&&u.insertBefore(e,m.elm,h.elm),m=t[--d],g=n[++f]):(o(s)&&(s=cr(t,p,d)),o(c=a(g.key)?s[g.key]:C(g,t,p,d))?v(g,r,e,h.elm,!1,n,f):sr(l=t[c],g)?(S(l,g,r,n,f),t[c]=void 0,b&&u.insertBefore(e,l.elm,h.elm)):v(g,r,e,h.elm,!1,n,f),g=n[++f]);p>d?w(e,o(n[y+1])?null:n[y+1].elm,n,f,y,r):f>y&&k(t,p,d)}(p,h,m,n,l):a(m)?(O(m),a(e.text)&&u.setTextContent(p,""),w(p,null,m,0,m.length-1,n)):a(h)?k(h,0,h.length-1):a(e.text)&&u.setTextContent(p,""):e.text!==t.text&&u.setTextContent(p,t.text),a(d)&&a(f=d.hook)&&a(f=f.postpatch)&&f(e,t)}}}function j(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var E=!1,I=g("attrs,class,staticClass,staticStyle,key");function P(e,t,n,r){var o,i=t.tag,c=t.data,u=t.children;if(r=r||c&&c.pre,t.elm=e,s(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(!function(e,t,n){return a(t.tag)?0===t.tag.indexOf("vue-component")||!p(t,n)&&t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):e.nodeType===(t.isComment?8:3)}(e,t,r))return!1;if(a(c)&&(a(o=c.hook)&&a(o=o.init)&&o(t,!0),a(o=t.componentInstance)))return h(t,n),!0;if(a(i)){if(a(u))if(e.hasChildNodes())if(a(o=c)&&a(o=o.domProps)&&a(o=o.innerHTML)){if(o!==e.innerHTML)return"undefined"==typeof console||E||(E=!0,console.warn("Parent: ",e),console.warn("server innerHTML: ",o),console.warn("client innerHTML: ",e.innerHTML)),!1}else{for(var l=!0,f=e.firstChild,d=0;d<u.length;d++){if(!f||!P(f,u[d],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return"undefined"==typeof console||E||(E=!0,console.warn("Parent: ",e),console.warn("Mismatching childNodes vs. VNodes: ",e.childNodes,u)),!1}else y(t,u,n);if(a(c)){var v=!1;for(var m in c)if(!I(m)){v=!0,b(t,n);break}!v&&c.class&&At(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!o(t)){var c,l=!1,p=[];if(o(e))l=!0,v(t,p);else{var f=a(e.nodeType);if(!f&&sr(e,t))S(e,t,p,null,null,i);else{if(f){if(1===e.nodeType&&e.hasAttribute(q)&&(e.removeAttribute(q),n=!0),s(n)){if(P(e,t,p))return j(t,p,!0),e;le("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}c=e,e=new be(u.tagName(c).toLowerCase(),{},[],void 0,c)}var d=e.elm,h=u.parentNode(d);if(v(t,p,d._leaveCb?null:h,u.nextSibling(d)),a(t.parent))for(var m=t.parent,y=_(t);m;){for(var g=0;g<r.destroy.length;++g)r.destroy[g](m);if(m.elm=t.elm,y){for(var b=0;b<r.create.length;++b)r.create[b](ir,m);var $=m.data.hook.insert;if($.merged)for(var w=1;w<$.fns.length;w++)$.fns[w]()}else rr(m);m=m.parent}a(h)?k([e],0,0):a(e.tag)&&A(e)}}return j(t,p,l),t.elm}a(e)&&A(e)}}({nodeOps:tr,modules:[yr,Cr,Ir,Fr,{create:qr,update:qr},{create:Lr,activate:Lr,remove:function(e,t){var n=e.elm;n._enterCb&&(n._enterCb.cancelled=!0,n._enterCb());var r=Dr(e.data.transition);if(!r)return t();if(n._leaveCb)return;var o=r.leaveClass,i=r.leaveToClass,a=r.leaveActiveClass,s=r.beforeLeave,c=r.leave,u=r.afterLeave,l=r.leaveCancelled,p=r.delayLeave,f=c&&(c._length||c.length)>1,d=e.context.$options.style||{},v=d[o],h=d[i]||d[a],m=d["@TRANSITION"]&&d["@TRANSITION"][a]||{},y=n._leaveCb=L(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y.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:m.duration||0,delay:m.delay||0,timingFunction:m.timingFunction||"linear"},f?M:y)}y.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,y),h||f||y())}}}].concat(hr),LONG_LIST_THRESHOLD:10}),Vr={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?St(n,"postpatch",function(){Vr.componentUpdated(e,t,n)}):Br(e,t,n.context),e._vOptions=[].map.call(e.options,Ur)):("textarea"===n.tag||kr(e.attr.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||e.addEventListener("change",zr))},componentUpdated:function(e,t,n){if("select"===n.tag){Br(e,t,n.context);var r=e._vOptions,o=e._vOptions=[].map.call(e.options,Ur);if(o.some(function(e,t){return!D(e,r[t])}))(e.multiple?t.value.some(function(e){return Hr(e,o)}):t.value!==t.oldValue&&Hr(t.value,o))&&Jr(e,"change")}}};function Br(e,t,n){!function(e,t,n){var r,o,i=t.value,a=e.multiple;if(a&&!Array.isArray(i))return void le('<select multiple v-model="'+t.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(i).slice(8,-1),n);for(var s=0,c=e.options.length;s<c;s++)if(o=e.options[s],a)r=N(i,Ur(o))>-1,o.selected!==r&&(o.selected=r);else if(D(Ur(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}(e,t,n)}function Hr(e,t){return t.every(function(t){return!D(t,e)})}function Ur(e){return"_value"in e?e._value:e.value}function zr(e){e.target.composing=!1,Jr(e.target,"input")}function Jr(e,n){var r=t.createEvent(n);e.dispatchEvent(r)}var Wr={model:Vr,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)}}};P(Jn.options.directives,Wr),P(Jn.options.components,{});var Kr=["public","protected","private"];Jn.config.mustUseProp=function(){},Jn.config.isReservedTag=wr,Jn.config.isRuntimeComponent=Ar,Jn.config.isUnknownElement=function(){},Jn.prototype.__patch__=Rr,Jn.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=we,e.$options.template&&"#"!==e.$options.template.charAt(0)||e.$options.el||t?le("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):le("Failed to mount component: template or render function not defined.",e)),wn(e,"beforeMount"),r=B.performance&&bt?function(){var t=e._name,r=e._uid,o="vue-perf-start:"+r,i="vue-perf-end:"+r;bt(o);var a=e._render();bt(i),$t("vue "+t+" render",o,i),bt(o),e._update(a,n),bt(i),$t("vue "+t+" patch",o,i)}:function(){e._update(e._render(),n)},new Fn(e,r,M,{before:function(){e._isMounted&&!e._isDestroyed&&wn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(wn(e,"onServiceCreated"),wn(e,"onServiceAttached"),e._isMounted=!0,wn(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},Jn.prototype._initExternalData=function(){var e=Jn.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&&Kr.indexOf(r.access)>0,i=!t&&Kr.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)},Jn.prototype._mergeAccess2Data=function(e){if("function"==typeof e.data&&(e.data=e.data()),e.data&&Kr.some(function(t){return e[t]}))throw new Error("页面VM对象中的属性data不可与"+Kr.join(",")+"同时存在,请使用private替换data名称");e.data||(e.data={},e._descriptor={},Kr.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 Qr=Jn.prototype._init;Jn.prototype._init=function(e){var t=this.constructor.options;"page"===t.type&&(this._connectLifecycle&&this._connectLifecycle(t),this._mergeAccess2Data&&this._mergeAccess2Data(t)),Qr.call(this,e)},Jn.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=Jn}}(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<o.length-1;++e)r+=o[e],r+=",";r+=o[o.length-1],r+=") {",r+=t,r+="} )";const a=global.compileAndRunScript(r,n);return a&&"function"==typeof a?a(...i):a}(e,t,n):function(e,t){const n=[],r=[];for(const t in e)n.push(t),r.push(e[t]);return n.push(t),new Function(...n)(...r)}(e,t)}let f,d;const v={onShow:"onShow",onHide:"onHide",onBackPress:"onBackPress",onMenuPress:"onMenuPress",onDestroy:"onDestroy",onConfigurationChanged:"onConfigurationChanged",onOrientationChange:"onOrientationChange",onRefresh:"onRefresh"},h={};let m=null;let y,g=null;function _(e,t,n,r,o){const i=function(e,t){return l.quickapp.runtime.helper.getDocumentNodeByRef(e,t)}(e.doc,t);if(i){return function(e,t,n,r){if(!e)return;const o=l.quickapp.runtime.helper.createEvent(t);if(Object.assign(o,n),global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### fireEventWrap():事件(${t})的参数:${JSON.stringify(n)}, ${JSON.stringify(r)}`),r){const t=r.attr||{};for(const n in t)l.quickapp.runtime.helper.setElementAttr(e,n,t[n],!0);const n=r.style||{};for(const t in n)l.quickapp.runtime.helper.setElementStyle(e,t,n[t],!0)}return e.dispatchEvent(o)}(i,n,r,{attr:o})}return new Error(`fireEvent: 无效element索引 "${t}"`)}function b(e){g||(g=Promise.resolve().then(()=>{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===m&&(m=l.quickapp.platform.requireModule(e,"system.page")),m.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<o.length;e++)try{o[e].apply(this,t)&&(n=!0)}catch(e){console.error(e)}this._events[`xlc:${e}`].result=n,this._events[`xlc:${e}`].handlers=o})})},s.prototype.$requireQuickappModule=o,s.mixin({beforeCreate:function(){const e=this.$options;if(e.el){const t=e.data,n=("function"==typeof t?t():t)||{};e.data=Object.assign(n,c.data),c.app=this}this._page=r}}),s.prototype.$getConfig=function(){if(c.app instanceof s)return c.config},s}(i,{page:e},n),_=Object.assign({Vue:g,$app_define$:()=>{},$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 y&&y(_),$="(function(global){"+($=t.toString())+"\n })(Object.create(this))";{const t=e.pageName?`${e.pageName}/${e.pageComponent}.js`:"<anonymous>";global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### bundleUrl----",t),p(_,$,t)}return e.doc.listener.createFinish(),d}function w(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=>w(v.onShow,...e)),t.subscribe(e.onHide,e=>w(v.onHide,...e)),t.subscribe(e.onBackPress,e=>w(v.onBackPress,...e)),t.subscribe(e.onMenuPress,e=>(w(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=>w(v.onConfigurationChanged,...e)),t.subscribe(e.onOrientationChange,e=>w(v.onOrientationChange,...e)),t.subscribe(e.onRefresh,e=>w(v.onRefresh,...e))},onInitApp:function(e){f=e},onDefineApp:function(e){d=e},onInitPage:function(e){y=e}}}();
fxy060608's avatar
fxy060608 已提交
2
!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;s<r;s++)n.on(e[s],t);else(n._events[e]||(n._events[e]=[])).push(t);return n}emit(e,...t){const n=this,s=n._events[e];if(s){const e=s.slice(0);for(let s=0,r=e.length;s<r;s++)e[s].apply(n,t)}return n}}const t=Object.getPrototypeOf(global)||global;t.UniServiceJSBridge=new e,t.UniViewJSBridge=new e}();
Q
qiang 已提交
3
dsl.onInitApp((function({inst:e,context:t,instRequireModule:r}){t.quickapp.dock.makeEvaluateBuildScript||(t.quickapp.dock.makeEvaluateBuildScript=e=>e);const o=r;!function(){"use strict";var r=["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor","interceptors","request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","getUpdateManager","configMTLS","navigateTo","redirectTo","reLaunch","switchTab","navigateBack","setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync","getLocation","chooseLocation","openLocation","createMapContext","chooseImage","chooseFile","previewImage","closePreviewImage","getImageInfo","getVideoInfo","saveImageToPhotosAlbum","compressImage","compressVideo","getRecorderManager","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext","getSystemInfo","getSystemInfoSync","getWindowInfo","getDeviceInfo","getAppBaseInfo","canIUse","onMemoryWarning","getNetworkType","onNetworkStatusChange","offNetworkStatusChange","onAccelerometerChange","offAccelerometerChange","startAccelerometer","stopAccelerometer","onCompassChange","offCompassChange","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","setBLEMTU","getBLEDeviceRSSI","onBeaconServiceChange","onBeaconUpdate","getBeacons","startBeaconDiscovery","stopBeaconDiscovery","checkIsSupportSoterAuthentication","checkIsSoterEnrolledInDevice","startSoterAuthentication","onThemeChange","onUIStyleChange","hideKeyboard","onKeyboardHeightChange","offKeyboardHeightChange","getSelectedTextRange","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","createMediaQueryObserver","getMenuButtonBoundingClientRect","showTopWindow","showLeftWindow","showRightWindow","hideTopWindow","hideLeftWindow","hideRightWindow","getTopWindowStyle","getLeftWindowStyle","getRightWindowStyle","setTopWindowStyle","setLeftWindowStyle","setRightWindowStyle","getLocale","setLocale","onLocaleChange","$emit","$on","$once","$off","saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager","createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData","getProvider","login","checkSession","getUserInfo","getUserProfile","preLogin","closeAuthView","getCheckBoxState","getUniverifyManager","share","shareWithSystem","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","requireGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","onHostEventReceive","onNativeEventReceive","sendNativeEvent","preloadPage","unPreloadPage","loadSubPackage","sendHostEvent","navigateToMiniProgram","getLaunchOptionsSync","getEnterOptionsSync","createRewardedVideoAd","createFullScreenVideoAd","createInterstitialAd","createInteractiveAd","invokePushCallback","getPushClientId","onPushMessage","offPushMessage"];let a=!1;try{const e={};Object.defineProperty(e,"passive",{get(){a=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}const n=Object.prototype.toString,i=Object.prototype.hasOwnProperty;function s(e){return"function"==typeof e}function c(e){return"[object Object]"===n.call(e)}function l(e,t){return i.call(e,t)}function u(e){return n.call(e).slice(8,-1)}const d=decodeURIComponent;function f(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const r=e.replace(/\+/g," ").split("="),o=d(r.shift()),a=r.length>0?d(r.join("=")):null;void 0===t[o]?t[o]=a:Array.isArray(t[o])?t[o].push(a):t[o]=[t[o],a]}),t):t}function p(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 h=["invoke","success","fail","complete","returnValue"],y={},m={};function b(e,t){Object.keys(t).forEach(r=>{-1!==h.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<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r):r}(e[r],t[r]))})}function v(e,t){e&&t&&Object.keys(t).forEach(r=>{-1!==h.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 _(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function k(e,t){let r=!1;for(let o=0;o<e.length;o++){const a=e[o];if(r)r=Promise.resolve(S(a));else{const e=a(t);if(_(e)&&(r=Promise.resolve(e)),!1===e)return{then(){}}}}return r||{then:e=>e(t)}}function C(e,t={}){return["success","fail","complete"].forEach(r=>{if(Array.isArray(e[r])){const o=t[r];t[r]=function(t){k(e[r],t).then(e=>s(o)&&o(e)||e)}}}),t}function O(e,t){const r=[];Array.isArray(y.returnValue)&&r.push(...y.returnValue);const o=m[e];return o&&Array.isArray(o.returnValue)&&r.push(...o.returnValue),r.forEach(e=>{t=e(t)||t}),t}function T(e,t,r,...o){const a=function(e){const t=Object.create(null);Object.keys(y).forEach(e=>{"returnValue"!==e&&(t[e]=y[e].slice())});const r=m[e];return r&&Object.keys(r).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(r[e]))}),t}(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){return k(a.invoke,r).then(e=>t(C(a,e),...o))}return t(C(a,r),...o)}return t(r,...o)}const j={returnValue:e=>_(e)?new Promise((t,r)=>{e.then(e=>{e[0]?r(e[0]):t(e[1])})}):e},w=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting/,A=/^create|Manager$/,B=["createBLEConnection"],x=["request","downloadFile","uploadFile","connectSocket"],q=["createBLEConnection"],I=/^on|^off/;function P(e){return w.test(e)&&-1===q.indexOf(e)}function E(e){return I.test(e)&&"onPush"!==e}function L(e){return!(function(e){return A.test(e)&&-1===B.indexOf(e)}(e)||P(e)||E(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 N=[{name:"base64",type:String,required:!0}],M=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}];var D=Object.freeze({__proto__:null,base64ToArrayBuffer:N,arrayBufferToBase64:M});const z=[{name:"schema",type:String,required:!0}];var R=Object.freeze({__proto__:null,canIUse:z});const $=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}],U=$,F=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],V=[{name:"event",type:String,required:!0}];var H=Object.freeze({__proto__:null,$on:$,$once:U,$off:F,$emit:V});const W=[{name:"method",type:[String,Object],required:!0}],G=W;var J=Object.freeze({__proto__:null,addInterceptor:W,removeInterceptor:G});const K=[{name:"upx",type:[Number,String],required:!0}];var Y=Object.freeze({__proto__:null,upx2px:K});function Q(e){return function(t,r){t&&(r[e]=Math.round(t))}}const X={canvasId:{type:String,required:!0},x:{type:Number,required:!0,validator:Q("x")},y:{type:Number,required:!0,validator:Q("y")},width:{type:Number,required:!0,validator:Q("width")},height:{type:Number,required:!0,validator:Q("height")}},Z={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0,validator:Q("x")},y:{type:Number,required:!0,validator:Q("y")},width:{type:Number,required:!0,validator:Q("width")},height:{type:Number,validator:Q("height")}},ee={PNG:"png",JPG:"jpg",JPEG:"jpg"},te={x:{type:Number,default:0,validator:Q("x")},y:{type:Number,default:0,validator:Q("y")},width:{type:Number,validator:Q("width")},height:{type:Number,validator:Q("height")},destWidth:{type:Number,validator:Q("destWidth")},destHeight:{type:Number,validator:Q("destHeight")},canvasId:{type:String,required:!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){t.quality=e>0&&e<1?e:1}}},re={canvasId:{type:String,required:!0},actions:{type:Array,required:!0},reserve:{type:Boolean,default:!1}};var oe=Object.freeze({__proto__:null,canvasGetImageData:X,canvasPutImageData:Z,canvasToTempFilePath:te,drawCanvas:re});const ae=[{name:"id",type:String,required:!0}],ne=ae,ie=ae,se=ae,ce=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}];var le=Object.freeze({__proto__:null,createAudioContext:ne,createVideoContext:ie,createMapContext:se,createCanvasContext:ce});const ue={firstName:{type:String,required:!0,validator(e){if(!e)return"addPhoneContact:fail parameter error: parameter.firstName should not be empty String;"}}};var de=Object.freeze({__proto__:null,addPhoneContact:ue});const fe={phoneNumber:{type:String,required:!0,validator(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}};var pe=Object.freeze({__proto__:null,makePhoneCall:fe});const ge={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean},sound:{type:String,default:"none"}};var he=Object.freeze({__proto__:null,scanCode:ge});const ye=Array.isArray,me=["{","}"];const be=/^(?:\d)+/,ve=/^(?:\w)+/;const Se=Object.prototype.hasOwnProperty,_e=(e,t)=>Se.call(e,t),ke=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,r=me){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,r]){const o=[];let a=0,n="";for(;a<e.length;){let i=e[a++];if(i===t){n&&o.push({type:"text",value:n}),n="";let t="";for(i=e[a++];void 0!==i&&i!==r;)t+=i,i=e[a++];const s=i===r,c=be.test(t)?"list":s&&ve.test(t)?"named":"unknown";o.push({value:t,type:c})}else n+=i}return n&&o.push({type:"text",value:n}),o}(e,r),this._caches[e]=o),function(e,t){const r=[];let o=0;const a=ye(t)?"list":(n=t,null!==n&&"object"==typeof n?"named":"unknown");var n;if("unknown"===a)return r;for(;o<e.length;){const n=e[o];switch(n.type){case"text":r.push(n.value);break;case"list":r.push(t[parseInt(n.value,10)]);break;case"named":"named"===a?r.push(t[n.value]):"production"!==process.env.NODE_ENV&&console.warn(`Type of token '${n.type}' and format of value '${a}' don't match!`);break;case"unknown":"production"!==process.env.NODE_ENV&&console.warn("Detect 'unknown' type of token!")}o++}return r}(o,t)}};function Ce(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(0===(e=e.toLowerCase()).indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(r=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==r.indexOf(e))?"zh-Hant":"zh-Hans");var r;const o=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,["en","fr","es"]);return o||void 0}class Oe{constructor({locale:e,fallbackLocale:t,messages:r,watcher:o,formater:a}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=a||ke,this.messages=r||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Ce(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(e=>{e(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,r=!0){const o=this.messages[e];o?r?Object.assign(o,t):Object.keys(t).forEach(e=>{_e(o,e)||(o[e]=t[e])}):this.messages[e]=t}f(e,t,r){return this.formater.interpolate(e,t,r).join("")}t(e,t,r){let o=this.message;return"string"==typeof t?(t=Ce(t,this.messages))&&(o=this.messages[t]):r=t,_e(o,e)?this.formater.interpolate(o[e],r).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}const Te={};let je;je=function(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(r=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==r.indexOf(e))?"zh-Hant":"zh-Hans");var r;const o=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,["en","fr","es"]);if(o)return o}(__GLOBAL__.getSystemInfoSync().language)||"en",function(){if("undefined"==typeof __uniConfig||!__uniConfig.locales||!Object.keys(__uniConfig.locales).length)return;const e=Object.keys(__uniConfig.locales);e.length&&e.forEach(e=>{const t=Te[e],r=__uniConfig.locales[e];t?Object.assign(t,r):Te[e]=r})}();const we=function(e,t={},r,o){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof r&&(r="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const a=new Oe({locale:e,fallbackLocale:r,messages:t,watcher:o});let n=(e,t)=>{if("function"!=typeof getApp)n=function(e,t){return a.t(e,t)};else{let e=!1;n=function(t,r){const o=getApp().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale(e=>{t.setLocale(e)}):e.$watch(()=>e.$locale,e=>{t.setLocale(e)})}(o,a))),a.t(t,r)}}return n(e,t)};return{i18n:a,f:(e,t,r)=>a.f(e,t,r),t:(e,t)=>n(e,t),add:(e,t,r=!0)=>a.add(e,t,r),watch:e=>a.watchLocale(e),getLocale:()=>a.getLocale(),setLocale:e=>a.setLocale(e)}}(je,{}),Ae=we.t;we.mixin={beforeCreate(){const e=we.i18n.watchLocale(()=>{this.$forceUpdate()});this.$once("hook:beforeDestroy",(function(){e()}))},methods:{$$t:(e,t)=>Ae(e,t)}};const Be={data:{type:String,required:!0},showToast:{type:Boolean,default:!0},beforeSuccess(e,t){if(!t.showToast)return;const r=Ae("uni.setClipboardData.success");r&&uni.showToast({title:r,icon:"success",mask:!1,style:{width:void 0}})}};var xe=Object.freeze({__proto__:null,setClipboardData:Be});function qe(e,t){if(t){if(0===t.indexOf("/"))return t}else{if(0===(t=e).indexOf("/"))return t;const r=getCurrentPages();e=r.length?r[r.length-1].$page.route:""}if(0===t.indexOf("./"))return qe(e,t.substr(2));const r=t.split("/"),o=r.length;let a=0;for(;a<o&&".."===r[a];a++);r.splice(0,a),t=r.join("/");const n=e.length>0?e.split("/"):[];return n.splice(n.length-a-1,a+1),"/"+n.concat(r).join("/")}const Ie=/^([a-z-]+:)?\/\//i,Pe=/^data:.*,.*/;function Ee(e){const t=__uniConfig.router.base;return t?"/"!==t&&0===("/"+e).indexOf(t)?"/"+e:t+e:e}function Le(e){if("./"===__uniConfig.router.base&&(e=e.replace(/^\.\/static\//,"/static/")),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Ee(e.substr(1));e="https:"+e}if(Ie.test(e)||Pe.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={tempFilePath:{type:String,required:!0,validator(e,t){t.tempFilePath=Le(e)}}},Me=["md5","sha1"],De={filePath:{type:String,required:!0,validator(e,t){t.filePath=Le(e)}},digestAlgorithm:{type:String,validator(e,t){t.digestAlgorithm=Me.includes(e)?e:Me[0]},default:Me[0]}},ze={filePath:{type:String,required:!0,validator(e,t){t.filePath=Le(e)}}},Re={filePath:{type:String,required:!0,validator(e,t){t.filePath=Le(e)}}};var $e=Object.freeze({__proto__:null,saveFile:Ne,getFileInfo:De,getSavedFileInfo:ze,removeSavedFile:Re});const Ue={filePath:{type:String,required:!0},fileType:{type:String}};var Fe=Object.freeze({__proto__:null,openDocument:Ue});const Ve={keyword:{type:String}};var He=Object.freeze({__proto__:null,chooseLocation:Ve});const We=["wgs84","gcj02"],Ge={type:{type:String,validator(e,t){e=(e||"").toLowerCase(),t.type=We.indexOf(e)<0?We[0]:e}},altitude:{type:Boolean,default:!1}};var Je=Object.freeze({__proto__:null,getLocation:Ge});const Ke={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 Ye=Object.freeze({__proto__:null,openLocation:Ke});const Qe=["all","image","video"],Xe=["album","camera"],Ze={count:{type:Number,required:!1,default:100,validator(e,t){e<=0&&(t.count=100)}},sourceType:{type:Array,required:!1,default:Xe,validator(e,t){e=e.filter(e=>Xe.includes(e)),t.sourceType=e.length?e:Xe}},type:{type:String,required:!1,default:"all",validator(e,t){Qe.includes(e)||(t.type=Qe[0]),t.type="all"===t.type?t.type="*":t.type}},extension:{type:Array,default:[""],validator(e,t){if(0===e.length)return"param extension should not be empty."}}};var et=Object.freeze({__proto__:null,chooseFile:Ze});const tt=["original","compressed"],rt=["album","camera"],ot={count:{type:Number,required:!1,default:9,validator(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:tt,validator(e,t){e=(e="string"==typeof e?[e]:e).filter(e=>tt.includes(e)),t.sizeType=e.length?e:tt}},sourceType:{type:Array,required:!1,default:rt,validator(e,t){e=e.filter(e=>rt.includes(e)),t.sourceType=e.length?e:rt}},extension:{type:Array,default:["*"],validator(e,t){if(0===e.length)return"param extension should not be empty."}}};var at=Object.freeze({__proto__:null,chooseImage:ot});const nt=["album","camera"],it={sourceType:{type:Array,required:!1,default:nt,validator(e,t){e=e.filter(e=>nt.includes(e)),t.sourceType=e.length?e:nt}},compressed:{type:Boolean,default:!0},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"],validator(e,t){if(0===e.length)return"param extension should not be empty."}}};var st=Object.freeze({__proto__:null,chooseVideo:it});const ct={src:{type:String,required:!0,validator(e,t){t.src=Le(e)}}};var lt=Object.freeze({__proto__:null,compressImage:ct});const ut={src:{type:String,required:!0,validator(e,t){t.src=Le(e)}},quality:{type:String},bitrate:{type:Number},fps:{type:Number},resolution:{type:Number}};var dt=Object.freeze({__proto__:null,compressVideo:ut});const ft={src:{type:String,required:!0,validator(e,t){t.src=Le(e)}}};var pt=Object.freeze({__proto__:null,getImageInfo:ft});const gt={src:{type:String,required:!0,validator(e,t){t.src=Le(e)}}};var ht=Object.freeze({__proto__:null,getVideoInfo:gt});const yt={urls:{type:Array,required:!0,validator(e,t){var r;if(t.urls=e.map(e=>{if("string"==typeof e)return Le(e);r=!0}),r)return"url is not string"}},current:{type:[String,Number],validator(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:"string"==typeof e&&e&&(t.current=Le(e))},default:0}};var mt=Object.freeze({__proto__:null,previewImage:yt});const bt={filePath:{type:String,required:!0,validator(e,t){t.filePath=Le(e)}}};var vt=Object.freeze({__proto__:null,saveImageToPhotosAlbum:bt});const St={url:{type:String,required:!0},header:{type:Object,validator(e,t){t.header=e||{}}}};var _t=Object.freeze({__proto__:null,downloadFile:St});const kt={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT",PATCH:"PATCH"},Ct="json",Ot={TEXT:"text",ARRAYBUFFER:"arraybuffer"},Tt=encodeURIComponent;const jt={method:{type:String,validator(e,t){e=(e||"").toUpperCase(),t.method=Object.values(kt).indexOf(e)<0?kt.GET:e}},data:{type:[Object,String,Array,ArrayBuffer],validator(e,t){t.data=e||""}},url:{type:String,required:!0,validator(e,t){t.method===kt.GET&&c(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let r=e.split("#");const o=r[1]||"";r=r[0].split("?");let a=r[1]||"";e=r[0];const n=a.split("&").filter(e=>e);a={},n.forEach(e=>{e=e.split("="),a[e[0]]=e[1]});for(const e in t)if(l(t,e)){let r=t[e];null==r?r="":c(r)&&(r=JSON.stringify(r)),a[Tt(e)]=Tt(r)}return a=Object.keys(a).map(e=>`${e}=${a[e]}`).join("&"),e+(a?"?"+a:"")+(o?"#"+o:"")}(e,t.data))}},header:{type:Object,validator(e,t){const r=t.header=e||{};t.method!==kt.GET&&(Object.keys(r).find(e=>"content-type"===e.toLowerCase())||(r["Content-Type"]="application/json"))}},dataType:{type:String,validator(e,t){t.dataType=(e||Ct).toLowerCase()}},responseType:{type:String,validator(e,t){e=(e||"").toLowerCase(),t.responseType=Object.values(Ot).indexOf(e)<0?Ot.TEXT:e}},withCredentials:{type:Boolean},timeout:{type:Number}},wt={certificates:{type:Array,required:!0,validator(e){if(e.some(e=>"String"!==u(e.host)))return"参数配置错误,请确认后重试"}}};var At=Object.freeze({__proto__:null,request:jt,configMTLS:wt});const Bt={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},xt={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(Bt).indexOf(e)<0?Bt.GET:e}},protocols:{type:[Array,String],validator(e,t){"string"==typeof e&&(e=[e]),t.protocols=(e||[]).filter(e=>"string"==typeof e)}}},qt={data:{type:[String,ArrayBuffer]}},It={code:{type:Number},reason:{type:String}};var Pt=Object.freeze({__proto__:null,connectSocket:xt,sendSocketMessage:qt,closeSocket:It});const Et={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator(e,t){e&&(t.filePath=Le(e))}},name:{type:String},header:{type:Object,validator(e,t){t.header=e||{}}},formData:{type:Object,validator(e,t){t.formData=e||{}}}};var Lt=Object.freeze({__proto__:null,uploadFile:Et});const Nt={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},Mt={service:{type:String,required:!0,validator(e,t){if((e=(e||"").toUpperCase())&&Object.values(Nt).indexOf(e)<0)return"service error"}}};var Dt=Object.freeze({__proto__:null,getProvider:Mt});const zt={root:{type:String,required:!0,validator(e,t){const r=__uniConfig.subPackages;return Array.isArray(r)&&0!==r.length?r.find(t=>t.root===e)?void 0:"root `"+e+"` is not found":"no subPackages"}}};var Rt=Object.freeze({__proto__:null,loadSubPackage:zt});const $t={UNIVERIFY:"univerify"},Ut={provider:{type:String,required:!0,default:$t.UNIVERIFY,validator(e,t){if(Object.values($t).indexOf(e)<0)return"provider error"}}};var Ft=Object.freeze({__proto__:null,preLogin:Ut});function Vt(e){return function(t,r){const o=(t=qe(t)).split("?")[0],a=__uniRoutes.find(({path:e,alias:t})=>e===o||t===o);if(!a)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(a.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!a.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!a.meta.isTabBar||"appLaunch"===r.openType||(t=o),a.meta.isEntry&&(t=t.replace(a.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(),a=t.length>0?t.join("="):"";o.push(r+"="+encodeURIComponent(a))}),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(Ht===t&&"appLaunch"!==r.openType)return Ht+" locked";__uniConfig.ready&&!1!==__uniConfig.enableNavigatorLock&&(Ht=t)}else if(a.meta.isTabBar){const e=getCurrentPages(!0),t=(a.alias||a.path).substr(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}let Ht;function Wt(e,t={}){return Object.assign({url:{type:String,required:!0,validator:Vt(e)},beforeAll(){Ht=""}},t)}function Gt(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 Jt=Wt("redirectTo"),Kt=Wt("reLaunch"),Yt=Wt("navigateTo",Gt(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),Qt=Wt("switchTab"),Xt=Object.assign({delta:{type:Number,validator(e,t){e=parseInt(e)||1,t.delta=Math.min(getCurrentPages().length-1,e)}}},Gt(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),Zt={url:{type:String,required:!0,validator:Vt("preloadPage")}},er={url:{type:String,required:!0,validator:Vt("unPreloadPage")}};var tr=Object.freeze({__proto__:null,redirectTo:Jt,reLaunch:Kt,navigateTo:Yt,switchTab:Qt,navigateBack:Xt,preloadPage:Zt,unPreloadPage:er});const rr={key:{type:String,required:!0}},or=[{name:"key",type:String,required:!0}],ar={key:{type:String,required:!0},data:{required:!0}},nr=[{name:"key",type:String,required:!0},{name:"data",required:!0}],ir=rr,sr=or;var cr=Object.freeze({__proto__:null,getStorage:rr,getStorageSync:or,setStorage:ar,setStorageSync:nr,removeStorage:ir,removeStorageSync:sr});const lr={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 ur=Object.freeze({__proto__:null,loadFontFace:lr});const dr=["#ffffff","#000000"],fr={frontColor:{type:String,required:!0,validator(e,t){if(-1===dr.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"}}}},pr={title:{type:String,required:!0}};var gr=Object.freeze({__proto__:null,setNavigationBarColor:fr,setNavigationBarTitle:pr});const hr={scrollTop:{type:Number},duration:{type:Number,default:300,validator(e,t){t.duration=Math.max(0,e)}}};var yr=Object.freeze({__proto__:null,pageScrollTo:hr});const mr={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:()=>Ae("uni.showModal.cancel")},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:()=>Ae("uni.showModal.confirm")},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},br={title:{type:String,default:""},icon:{default:"success",validator(e,t){-1===["success","loading","error","none"].indexOf(e)&&(t.icon="success")}},image:{type:String,default:"",validator(e,t){e&&(t.image=Le(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},vr={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},Sr={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 _r=Object.freeze({__proto__:null,showModal:mr,showToast:br,showLoading:vr,showActionSheet:Sr});const kr={type:Number,required:!0},Cr={index:kr,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},Or={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator(e,t){e&&!/^(linear|radial)-gradient\(.+?\);?$/.test(e)&&(t.backgroundImage=Le(e))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator(e,t){e&&(t.borderStyle="black"===e?"black":"white")}}},Tr={animation:{type:Boolean,default:!1}},jr={animation:{type:Boolean,default:!1}},wr={index:kr},Ar={index:kr},Br={index:kr},xr={index:kr,text:{type:String,required:!0,validator(e,t){(function(e=""){return(""+e).replace(/[^\x00-\xff]/g,"**").length})(e)>=4&&(t.text="...")}}};var qr=Object.freeze({__proto__:null,setTabBarItem:Cr,setTabBarStyle:Or,hideTabBar:Tr,showTabBar:jr,hideTabBarRedDot:wr,showTabBarRedDot:Ar,removeTabBarBadge:Br,setTabBarBadge:xr});const Ir=Object.create(null),Pr=(Er={"./base/base64.js":D,"./base/can-i-use.js":R,"./base/event-bus.js":H,"./base/interceptor.js":J,"./base/upx2px.js":Y,"./context/canvas.js":oe,"./context/context.js":le,"./device/add-phone-contact.js":de,"./device/make-phone-call.js":pe,"./device/scan-code.js":he,"./device/set-clipboard-data.js":xe,"./file/file.js":$e,"./file/open-document.js":Fe,"./location/choose-location.js":He,"./location/get-location.js":Je,"./location/open-location.js":Ye,"./media/choose-file.js":et,"./media/choose-image.js":at,"./media/choose-video.js":st,"./media/compress-image.js":lt,"./media/compress-video.js":dt,"./media/get-image-info.js":pt,"./media/get-video-info.js":ht,"./media/preview-image.js":mt,"./media/save-image-to-photos-album.js":vt,"./network/download-file.js":_t,"./network/request.js":At,"./network/socket.js":Pt,"./network/upload-file.js":Lt,"./plugin/get-provider.js":Dt,"./plugin/load-sub-package.js":Rt,"./plugin/pre-login.js":Ft,"./route/route.js":tr,"./storage/storage.js":cr,"./ui/load-font-face.js":ur,"./ui/navigation-bar.js":gr,"./ui/page-scroll-to.js":yr,"./ui/popup.js":_r,"./ui/tab-bar.js":qr},(Lr=function(e){return Er[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}).keys=function(){return Object.keys(Er)},Lr);var Er,Lr;function Nr(e,t,r){const o=t[e],a=!l(r,e);let n=r[e];if(function(e,t){if(!Array.isArray(t))return Rr(t,e)?0:-1;for(let r=0,o=t.length;r<o;r++)if(Rr(t[r],e))return r;return-1}(Boolean,o.type)>-1&&a&&!l(o,"default")&&(n=!1),void 0===n&&l(o,"default")){const t=o.default;n=s(t)?t():t,r[e]=n}return function(e,t,r,o,a){if(e.required&&o)return`Missing required parameter \`${t}\``;if(null==r&&!e.required){const t=e.validator;return t?t(r,a):void 0}let n=e.type,i=!n||!0===n;const s=[];if(n){Array.isArray(n)||(n=[n]);for(let e=0;e<n.length&&!i;e++){const t=Dr(r,n[e]);s.push(t.expectedType||""),i=t.valid}}if(!i)return function(e,t,r){let o=`parameter \`${e}\`. Expected `+r.join(", ");const a=r[0],n=u(t),i=$r(t,a),s=$r(t,n);1===r.length&&Fr(a)&&!function(...e){return e.some(e=>"boolean"===e.toLowerCase())}(a,n)&&(o+=" with value "+i);o+=`, got ${n} `,Fr(n)&&(o+=`with value ${s}.`);return o}(t,r,s);const c=e.validator;if(c)return c(r,a)}(o,e,n,a,r)}Pr.keys().forEach((function(e){Object.assign(Ir,Pr(e))}));const Mr=/^(String|Number|Boolean|Function|Symbol)$/;function Dr(e,t){let r;const o=zr(t);if(Mr.test(o)){const a=typeof e;r=a===o.toLowerCase(),r||"object"!==a||(r=e instanceof t)}else r=e.byteLength>=0||("Object"===o?c(e):"Array"===o?Array.isArray(e):e instanceof t||u(e)===zr(t));return{valid:r,expectedType:o}}function zr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Rr(e,t){return zr(e)===zr(t)}function $r(e,t){return"String"===t?`"${e}"`:"Number"===t?""+Number(e):""+e}const Ur=["string","number","boolean"];function Fr(e){return Ur.some(t=>e.toLowerCase()===t)}function Vr(e,t,r){const o=`${t}:fail ${e}`;if("production"!==process.env.NODE_ENV&&console.error(o),-1===r)throw new Error(o);return"number"==typeof r&&Zr(r,{errMsg:o}),!1}const Hr=[{name:"callback",type:Function,required:!0}],Wr=["beforeValidate","beforeAll","beforeSuccess"];function Gr(e,t,r){let o=Ir[e];if(!o&&E(e)&&(o=Hr),o){if(Array.isArray(o)&&Array.isArray(t)){const e=Object.create(null),r=Object.create(null),a=t.length;o.forEach((o,n)=>{e[o.name]=o,a>n&&(r[o.name]=t[n])}),o=e,t=r}if(s(o.beforeValidate)){const a=o.beforeValidate(t);if(a)return Vr(a,e,r)}const a=Object.keys(o);for(let n=0;n<a.length;n++){if(-1!==Wr.indexOf(a[n]))continue;const i=Nr(a[n],o,t);if(i)return Vr(i,e,r)}}return!0}let Jr=1;const Kr={};function Yr(e,t){const r=Jr++,o="api."+e+"."+r;return Kr[r]={name:o,keepAlive:!0,callback:t},r}function Qr(e,t){for(const r in Kr){const o=Kr[r];if(o.name.startsWith("api."+e.replace(/^off/,"on"))&&o.callback===t)return delete Kr[r],Number(r)}return"fail"}function Xr(e,t={},r={}){if(!c(t))return{params:t};t=Object.assign({},t);const{success:o,fail:a,cancel:n,complete:i}=function(e){const t={};for(const r in e){const o=e[r];s(o)&&(t[r]=g(o),delete e[r])}return t}(t),l=s(o),u=s(a),d=s(n),f=s(i);if(!(l||u||d||f))return{params:t};const h={};for(const e in r){const t=r[e];s(t)&&(h[e]=p(t))}const{beforeSuccess:y,afterSuccess:m,beforeFail:b,afterFail:v,beforeCancel:S,afterCancel:_,beforeAll:k,afterAll:C}=h,O=Jr++,T="api."+e+"."+O;return Kr[O]={name:T,callback:function(r){if(r.errMsg=r.errMsg||e+":ok",-1!==r.errMsg.indexOf(":ok"))r.errMsg=e+":ok";else if(-1!==r.errMsg.indexOf(":cancel"))r.errMsg=e+":cancel";else if(-1!==r.errMsg.indexOf(":fail")){let t="";const o=r.errMsg.indexOf(" ");o>-1&&(t=r.errMsg.substr(o)),r.errMsg=e+":fail"+t}s(k)&&k(r);const c=r.errMsg;0===c.indexOf(e+":ok")?(s(y)&&y(r,t),l&&o(r),s(m)&&m(r)):0===c.indexOf(e+":cancel")?(r.errMsg=r.errMsg.replace(e+":cancel",e+":fail cancel"),u&&a(r),s(S)&&S(r),d&&n(r),s(_)&&_(r)):0===c.indexOf(e+":fail")&&(s(b)&&b(r),u&&a(r),s(v)&&v(r)),f&&i(r),s(C)&&C(r)}},{params:t,callbackId:O}}function Zr(e,t,r){if("number"==typeof e){const o=Kr[e];if(o)return o.keepAlive||delete Kr[e],o.callback(t,r)}return t}const eo=["getPushClientId","onPushMessage","offPushMessage"];function to(e,t,r={}){return eo.indexOf(e)>-1||!s(t)?t:(function(e,t){const r=Ir[e];r&&(s(r.beforeAll)&&(t.beforeAll=r.beforeAll),s(r.beforeSuccess)&&(t.beforeSuccess=r.beforeSuccess))}(e,r),function(...o){if(P(e)){if(Gr(e,o,-1))return t.apply(null,o)}else if(E(e)){if(Gr(e,o,-1))return t((e.startsWith("off")?Qr:Yr)(e,o[0]))}else{let a={};o.length&&(a=o[0]);const{params:n,callbackId:i}=function(e,t={},r={}){const{params:o,callbackId:a}=Xr(e,t,r);return c(o)&&!Gr(e,o,a)?{params:o,callbackId:!1}:{params:o,callbackId:a}}(e,a,r);if(!1!==i){let r;return r=s(n)?t(i):t(n,i),r&&!function(e){return-1!==x.indexOf(e)}(e)&&(r=Zr(i,r),c(r)&&(r.errMsg=r.errMsg||e+":ok")),r}}})}var ro,oo=(function(e,t){!function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256),o=0;o<e.length;o++)r[e.charCodeAt(o)]=o;t.encode=function(t){var r,o=new Uint8Array(t),a=o.length,n="";for(r=0;r<a;r+=3)n+=e[o[r]>>2],n+=e[(3&o[r])<<4|o[r+1]>>4],n+=e[(15&o[r+1])<<2|o[r+2]>>6],n+=e[63&o[r+2]];return a%3==2?n=n.substring(0,n.length-1)+"=":a%3==1&&(n=n.substring(0,n.length-2)+"=="),n},t.decode=function(e){var t,o,a,n,i,s=.75*e.length,c=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(t=0;t<c;t+=4)o=r[e.charCodeAt(t)],a=r[e.charCodeAt(t+1)],n=r[e.charCodeAt(t+2)],i=r[e.charCodeAt(t+3)],d[l++]=o<<2|a>>4,d[l++]=(15&a)<<4|n>>2,d[l++]=(3&n)<<6|63&i;return u}}()}(ro={exports:{}},ro.exports),ro.exports),ao=oo.encode,no=oo.decode;var io={};const so={promiseInterceptor:j};let co=!1,lo=0,uo=0;function fo(e,t){return e=Number(e),isNaN(e)?t:e}function po(e,t,r,o){UniServiceJSBridge.publishHandler(t+"-audio-"+e,{audioId:e,type:r,data:o},t)}class go{constructor(e,t){this.id=e,this.pageId=t}setSrc(e){po(this.id,this.pageId,"setSrc",{src:e})}play(){po(this.id,this.pageId,"play")}pause(){po(this.id,this.pageId,"pause")}seek(e){po(this.id,this.pageId,"seek",{position:e})}}var ho=o("@app-module/system.router");function yo(e){return e.substr(0,e.lastIndexOf("/"))}var mo=o("@app-module/system.router");var bo=o("@app-module/system.router");function vo(...e){return global.UniServiceJSBridge.invokeCallbackHandler(...e)}var So=o("@app-module/system.clipboard");var _o=o("@app-module/system.fetch");let ko=0;const Co={},Oo=e=>{!function(e,...t){global.UniServiceJSBridge.emit("api."+e,...t)}("onRequestTaskStateChange",e),delete Co[ko]};function To(e,{url:t,data:r,header:o,method:a="GET",responseType:n,sslVerify:i=!0}={}){let s,c;s=setTimeout(()=>{c=!0,Oo({requestTaskId:e,state:"fail",statusCode:0,errMsg:"timeout"})},60100);const l={method:a,url:t.trim(),header:o,type:n,timeout:6e4};"GET"!==a&&(l.data=r);try{_o.fetch({...l,success:({code:t,data:r,headers:o})=>{if(console.log(r),c)return;s&&clearTimeout(s);Oo(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)=>{Oo({requestTaskId:e,state:"fail",statusCode:r,errMsg:"abort statusCode:"+r})}}),Co[e]={abort(){c=!0,s&&clearTimeout(s),Oo({requestTaskId:e,state:"fail",statusCode:0,errMsg:"abort"})}}}catch(t){return{requestTaskId:e,errMsg:"createRequestTask:fail"}}return{requestTaskId:e,errMsg:"createRequestTask:ok"}}var jo=o("@app-module/system.storage");function wo(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 Ao=o("@app-module/system.prompt");var Bo=Object.freeze({__proto__:null,navigateBack:function({delta:e}){return ho.back(),{errMsg:"navigateBack:ok"}},navigateTo:function({url:e}){const t=e.split("?"),r=t[0],o=f(t[1]||"");return mo.push({uri:yo(r),params:o}),{errMsg:"navigateTo:ok"}},redirectTo:function({url:e}){const t=e.split("?"),r=t[0],o=f(t[1]||"");return bo.replace({uri:yo(r),params:o}),{errMsg:"redirectTo:ok"}},getClipboardData:function(e,t){So.get({success:e=>{vo(t,{data:e.text,errMsg:"getClipboardData:ok"})},fail:(e,r)=>{vo(t,{data:r,errMsg:"getClipboardData:fail"})}})},setClipboardData:function({data:e}){return So.set({text:e}),{errMsg:"setClipboardData:ok"}},createRequestTaskById:To,createRequestTask:function(e){return To(++ko,e)},operateRequestTask:function({requestTaskId:e,operationType:t}={}){const r=Co[e];return r&&"abort"===t?(r.abort(),{errMsg:"operateRequestTask:ok"}):{errMsg:"operateRequestTask:fail"}},setStorage:function({key:e,data:t,isSync:r}={},o){const a=typeof t,n="string"===a?t:JSON.stringify({type:a,data:t});try{jo.set({key:e,value:n,success:e=>{vo(o,{errMsg:"setStorage:ok"})},fail:(e,t)=>{vo(o,{errMsg:"setStorage:fail "+t})}})}catch(e){vo(o,{errMsg:"setStorage:fail "+e})}},getStorage:function({key:e}={},t){jo.get({key:e,success:e=>{vo(t,{data:wo(e)||e,errMsg:"getStorage:ok"})},fail:(e,r)=>{vo(t,{data:"",errMsg:"getStorage:fail "+r})}})},removeStorage:function({key:e}={},t){jo.delete({key:e,success:e=>{vo(t,{errMsg:"removeStorage:ok"})},fail:(e,r)=>{vo(t,{errMsg:"removeStorage:fail "+r})}})},clearStorage:function(e,t){jo.clear({success:e=>{vo(t,{errMsg:"clearStorage:ok"})},fail:(e,r)=>{vo(t,{errMsg:"clearStorage:fail "+r})}})},showModal:function({title:e="",content:t="",showCancel:r=!0,cancelText:o="取消",cancelColor:a="#000000",confirmText:n="确定",confirmColor:i="#3CC51F"}={},s){Ao.showDialog({title:e,message:t,buttons:[{text:"确定",color:i}],success:e=>{console.log("handling callback"),vo(s,{errMsg:"showModal:ok",confirm:!0,cancel:!1})},cancel:()=>{console.log("handling cancel")},fail:(e,t)=>{console.log("handling fail, code = "+t)}})}});function xo(e,...t){return Bo[e].apply(null,t)}function qo(e,t){return UniServiceJSBridge.on("api."+e,t)}const Io=["canplay","play","pause","stop","ended","timeUpdate","prev","next","error","waiting"],Po={};Io.forEach(e=>{Po[e]=[]});const Eo=[{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"},{name:"playbackRate",default:1,cache:!0}],Lo=["prev","next"];class No{constructor(){this._options={},qo("onBackgroundAudioStateChange",({state:e,errMsg:t,errCode:r})=>{Po[e].forEach(o=>{"function"==typeof o&&o("error"===e?{errMsg:t,errCode:r}:{})})}),Lo.forEach(e=>{qo("onBackgroundAudio"+(e[0].toUpperCase()+e.substr(1)),()=>{Po[e].forEach(e=>{"function"==typeof e&&e({})})})}),Eo.forEach(e=>{const t=e.name,r={get(){const r=e.cache?this._options:xo("getBackgroundAudioState");return t in r?r[t]:e.default}};e.readonly||(r.set=function(e){this._options[t]=e,xo("setBackgroundAudioState",Object.assign({},this._options,{audioId:this.id}),t)}),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){xo("operateBackgroundAudio",Object.assign({},t,{operationType:e}))}}let Mo;function Do(...e){return UniServiceJSBridge.invokeCallbackHandler(...e)}Io.forEach(e=>{const t=e[0].toUpperCase()+e.substr(1);No.prototype["on"+t]=function(t){Po[e].push(t)}});const zo=Object.create(null);qo("onRequestTaskStateChange",(function({requestTaskId:e,state:t,data:r,statusCode:o,header:a,errMsg:n,cookies:i}){const{args:s,callbackId:l}=zo[e]||{};if(l)switch(delete zo[e],t){case"success":Do(l,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:a,errMsg:"request:ok",cookies:i},s));break;case"fail":Do(l,{errMsg:"request:fail "+n})}}));class Ro{constructor(e){this.id=e}abort(){xo("operateRequestTask",{requestTaskId:this.id,operationType:"abort"})}offHeadersReceived(){}onHeadersReceived(){}}var $o={...Object.freeze({__proto__:null,base64ToArrayBuffer:function(e){return no(e)},arrayBufferToBase64:function(e){return ao(e)},canIUse:function(e){return l(io,e)?io[e]:!!l($o,e)},addInterceptor:function(e,t){"string"==typeof e&&c(t)?b(m[e]||(m[e]={}),t):c(e)&&b(y,e)},removeInterceptor:function(e,t){"string"==typeof e?c(t)?v(m[e],t):delete m[e]:c(e)&&v(y,e)},interceptors:so,upx2px:function(e,t){if(0===lo&&function(){const{platform:e,pixelRatio:t,windowWidth:r}=uni.getSystemInfoSync();lo=r,uo=t,co="ios"===e}(),0===(e=Number(e)))return 0;const r=__uniConfig.globalStyle||__uniConfig.window||{},o=fo(r.rpxCalcMaxDeviceWidth,960),a=fo(r.rpxCalcBaseDeviceWidth,375),n=fo(r.rpxCalcIncludeWidth,750);let i=t||lo;i=e===n||i<=o?i:a;let s=e/750*i;return s<0&&(s=-s),s=Math.floor(s+1e-4),0===s&&(s=1!==uo&&co?.5:1),e<0?-s:s},createAudioContext:function(e,t){if(t)return new go(e,t.$page.id);const r=getApp();if(r.$route&&r.$route.params.__id__)return new go(e,r.$route.params.__id__);UniServiceJSBridge.emit("onError","createAudioContext:fail")},getBackgroundAudioManager:function(){return Mo||(Mo=new No)},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}=xo("createRequestTask",e);return zo[o]={args:e,callbackId:t},new Ro(o)}}),...Bo};const Uo=Object.create(null);let Fo;r.forEach(e=>{$o[e]?Uo[e]=function(e,t){return L(e)?function(r={},...o){return s(r.success)||s(r.fail)||s(r.complete)?O(e,T(e,t,r,...o)):O(e,new Promise((a,n)=>{T(e,t,Object.assign({},r,{success:a,fail:n}),...o)}).then(e=>[null,e]).catch(e=>[e]))}:t}(e,to(e,$o[e])):Uo[e]=function(e){return function(t){console.error("API `"+e+"` is not yet implemented")}}(e)});const Vo=[],Ho=[],Wo=[];function Go(e){e&&e.store&&(Fo=e.store)}Go.prototype.$mount=function(){},Go.config={},Go.use=function(e){if(e.Store&&e.mapState){const r={};t.VueFactory(r,{},{}),e.install(r.Vue)}else Ho.push(e)},Go.mixin=function(e){Vo.push(e)},Go.component=function(e,t){Wo.push({id:e,definition:t})},(Object.getPrototypeOf(global)||global).__VuePlugin={install(e,t){Vo.forEach(t=>{e.mixin(t)}),Ho.forEach(t=>{e.use(t)}),Wo.forEach(({id:t,definition:r})=>{e.component(t,r)}),Object.keys(Go.prototype).forEach(t=>{"$mount"!==t&&(e.prototype[t]=Go.prototype[t])}),Fo&&(e.prototype.$store=Fo)}};const Jo={globalData:{}};global.UniServiceJSBridge.invokeCallbackHandler=Zr;var Ko={uni:Uo,Vue:Go,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(Jo).forEach(t=>{"globalData"!==t&&(e[t]=Jo[t])}),e.globalData||(e.globalData={}),Object.assign(e.globalData,Jo.globalData),e.__$processed=!0,e}(e.$def):t?Jo:void 0},getCurrentPages:function(){return[]}};const Yo=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()}),Yo.__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(Yo,Ko)}()}));
4
dsl.onInitPage((function({$app_require$:e,Vue:u}){!function(){"use strict";"undefined"!=typeof __VuePlugin&&u.use(__VuePlugin)}()}));