|
|
var __UniServiceStartTime__=Date.now(),global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";var subversion={framework:"0.29.6",transformer:">=0.1.5 <0.5"};function getHookKey(e,t,n){return t+"@"+n+"#"+e}var CallbackManager=function(e){this.instanceId=String(e),this.lastCallbackId=0,this.callbacks={},this.hooks={}};CallbackManager.prototype.add=function(e){return this.lastCallbackId++,this.callbacks[this.lastCallbackId]=e,this.lastCallbackId},CallbackManager.prototype.remove=function(e){var t=this.callbacks[e];return delete this.callbacks[e],t},CallbackManager.prototype.registerHook=function(e,t,n,r){var i=getHookKey(e,t,n);this.hooks[i]&&console.warn('[JS Framework] Override an existing component hook "'+i+'".'),this.hooks[i]=r},CallbackManager.prototype.triggerHook=function(e,t,n,r){var i=getHookKey(e,t,n),o=this.hooks[i];if("function"!=typeof o)return console.error("[JS Framework] Invalid hook function type ("+typeof o+') on "'+i+'".'),null;var a=null;try{a=o.apply(null,r||[])}catch(e){throw console.error('[JS Framework] Failed to execute the hook function on "'+i+'".'),e}return a},CallbackManager.prototype.consume=function(e,t,n){var r=this.callbacks[e];if(void 0!==n&&!1!==n||delete this.callbacks[e],"function"==typeof r)try{return r.call(null,t,n)}catch(e){throw console.error("[JS Framework] Failed to execute the callback function:\n "+e.toString()),e}return new Error('invalid callback id "'+e+'"')},CallbackManager.prototype.close=function(){this.callbacks={},this.hooks={}};var nextNodeRef=1;function uniqueId(){return(nextNodeRef++).toString()}function typof(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function isPlainObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function hasOwn(e,t){return isPlainObject(e)&&Object.prototype.hasOwnProperty.call(e,t)}function bufferToBase64(e){if("function"!=typeof btoa)return"";var t=Array.prototype.map.call(new Uint8Array(e),function(e){return String.fromCharCode(e)}).join("");return btoa(t)}function isEmpty(e){if(!e||"object"!=typeof e)return!0;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var LEVELS=["off","error","warn","info","log","debug"],levelMap={};function generateLevelMap(){LEVELS.forEach(function(t){var n=LEVELS.indexOf(t);levelMap[t]={},LEVELS.forEach(function(e){LEVELS.indexOf(e)<=n&&(levelMap[t][e]=!0)})})}function checkLevel(e){var t=global.WXEnvironment&&global.WXEnvironment.logLevel||"log";return levelMap[t]&&levelMap[t][e]}function debugLog(e){global.nativeLog("wxInteractionAnalyzer: [jsfm]"+e,"__DEBUG")}var docMap={};function addDoc(e,t){e&&(docMap[e]=t)}function getDoc(e){return docMap[e]}function removeDoc(e){delete docMap[e]}function getTaskCenter(e){var t=docMap[e];return t&&t.taskCenter?t.taskCenter:null}function appendBody(e,t,n){var r=e.documentElement;if(!(0<r.pureChildren.length||t.parentNode)){var i=r.children,o=i.indexOf(n);o<0?i.push(t):i.splice(o,0,t),1===t.nodeType?("body"===t.role?(t.docId=e.id,t.ownerDocument=e,t.parentNode=r,linkParent(t,r)):(t.children.forEach(function(e){e.parentNode=t}),setBody(e,t),t.docId=e.id,t.ownerDocument=e,linkParent(t,r),delete e.nodeMap[t.nodeId]),r.pureChildren.push(t),sendBody(e,t)):(t.parentNode=r,e.nodeMap[t.ref]=t),t.ready=!0,t.computeClassList&&t.computeClassList()}}function sendBody(e,t){var n=t.toJSON();e&&e.taskCenter&&"function"==typeof e.taskCenter.send&&e.taskCenter.send("dom",{action:"createBody"},[n])}function setBody(e,t){t.role="body",t.depth=1,delete e.nodeMap[t.nodeId],t.ref="_root",e.nodeMap._root=t,e.body=t}function linkParent(t,e){(t.parentNode=e).docId&&(t.docId=e.docId,t.ownerDocument=e.ownerDocument,(t.ownerDocument.nodeMap[t.nodeId]=t).depth=e.depth+1),t.children.forEach(function(e){linkParent(e,t)})}function nextElement(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function previousElement(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function insertIndex(e,t,n,r){n<0&&(n=0);var i=t[n-1],o=t[n];return t.splice(n,0,e),r&&(i&&(i.nextSibling=e),e.previousSibling=i,(e.nextSibling=o)&&(o.previousSibling=e)),n}function moveIndex(e,t,n,r){var i=t.indexOf(e);if(i<0)return-1;if(r){var o=t[i-1],a=t[i+1];o&&(o.nextSibling=a),a&&(a.previousSibling=o)}t.splice(i,1);var s=n;i<=n&&(s=n-1);var c=t[s-1],u=t[s];return t.splice(s,0,e),r&&(c&&(c.nextSibling=e),e.previousSibling=c,(e.nextSibling=u)&&(u.previousSibling=e)),i===s?-1:n}function removeIndex(e,t,n){var r=t.indexOf(e);if(!(r<0)){if(n){var i=t[r-1],o=t[r+1];i&&(i.nextSibling=o),o&&(o.previousSibling=i)}t.splice(r,1)}}var Node=function(){this.nodeId=uniqueId(),this.ref=this.nodeId,this.children=[],this.pureChildren=[],this.parentNode=null,this.nextSibling=null,this.previousSibling=null},Element$2;function setElement(e){Element$2=e}Node.prototype.destroy=function(){var e=getDoc(this.docId);e&&(delete this.docId,delete e.nodeMap[this.nodeId]),this.children.forEach(function(e){e.destroy()})};var registeredElements={};function registerElement(i,e){if(Array.isArray(e)&&e.length){var t=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(Element$2);e.forEach(function(r){t.prototype[r]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=getTaskCenter(this.docId);if(n)return n.send("component",{ref:this.ref,component:i,method:r},e)}}),registeredElements[i]=t}}function getWeexElement(e){return registeredElements[e]}function cached(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var parseStyleText=cached(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n}),firstLetterToLowerCase=cached(function(e){return e.charAt(0).toLowerCase()+e.slice(1)});function isDef(e){return void 0!==e}function isFn(e){return"function"==typeof e}var processors={slider:{change:function(e){return{index:e.index,source:e.source}},scroll:function(e){return{offsetXRatio:e.offsetXRatio,offsetYRatio:e.offsetYRatio,drag:e.drag}}},"scroll-view":{scrollend:function(e){return{contentOffset:e.contentOffset}}}};function processTarget(e){var t=e.attr,n=e.offsetLeft,r=e.offsetTop,i={};return Object.keys(t||{}).forEach(function(e){0===e.indexOf("data")&&(i[firstLetterToLowerCase(e.replace("data",""))]=t[e])}),{id:t&&t.id||"",dataset:i,offsetLeft:n||0,offsetTop:r||0}}function processCustomEvent(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),n=processTarget(n),{type:e,timeStamp:Date.now(),target:n,currentTarget:n,detail:t}}var WEEX_TAGS=["a","div","list","cell","loading","refresh","recycle-list","scroller","indicator","waterfall","web","richtext"],IGNORE_EVENTS=["viewappear","viewdisappear"],EVENT_EXTRAS={markertap:["markerId"],controltap:["controlId"],regionchange:["causedBy"],end:["causedBy"],appear:["direction"],disappear:["direction"]};function processEvent(t,e){var n=t.type;if(-1!==IGNORE_EVENTS.indexOf(n))return t;var r=t.currentTarget,i=r.type.replace("u-","");if(-1!==WEEX_TAGS.indexOf(i))return t;var o=t.timestamp,a=t.target;if(!isDef(e)){var s=processors[i];e=s&&isFn(s[n])?s[n](t):t.detail||{}}var c={type:n,timeStamp:o,target:processTarget(a),currentTarget:processTarget(r),detail:e,touches:"touchend"===n||"panend"===n?[]:t.changedTouches,changedTouches:t.changedTouches};t.componentId&&(c.componentId=t.componentId);var u=EVENT_EXTRAS[n];return u&&u.forEach(function(e){t.hasOwnProperty(e)&&(c[e]=t[e])}),c}var EPS=1e-4,BASE_DEVICE_WIDTH=750,deviceDPR=1,deviceWidth=0;function upx2px(e,t){if(0===deviceWidth&&(deviceDPR=global.WXEnvironment.scale,deviceWidth=Math.ceil(global.WXEnvironment.deviceWidth/deviceDPR)),0===(e=Number(e)))return 0;var n=e/BASE_DEVICE_WIDTH*(t||deviceWidth);return n<0&&(n=-n),0===(n=Math.floor(n+EPS))?1===deviceDPR?1:.5:e<0?-n:n}var UNIT_RE=/([+-]?\d+(\.\d+)?)[r|u]px/g;function normalizeUnit(n){return"Object"===typof(n)&&Object.keys(n).forEach(function(e){var t=n[e];"string"==typeof t&&(n[e]=t.replace(UNIT_RE,function(e,t){return upx2px(t)}))}),n}function deepClone(e,i){return e.map(function e(t){var n=t.children&&t.children.map(e),r=i(t.tag,t.data,n);return r.text=t.text,r.isComment=t.isComment,r.componentOptions=t.componentOptions,r.elm=t.elm,r.context=t.context,r.ns=t.ns,r.isStatic=t.isStatic,r.key=t.key,r})}function generateDeclaration(e,t,n){return{type:"declaration",property:e,value:t}}function clearImportant(e){var t=String(e).replace(/\s*!important/g,"");return{value:t,important:e!==t}}function margin(e){var t=clearImportant(e.value),n=t.value,r=t.important,i=e.position,o=n.split(/\s+/),a=[];switch(o.length){case 1:o.push(o[0],o[0],o[0]);break;case 2:o.push(o[0],o[1]);break;case 3:o.push(o[1])}return a.push(generateDeclaration("marginTop",o[0],r,i),generateDeclaration("marginRight",o[1],r,i),generateDeclaration("marginBottom",o[2],r,i),generateDeclaration("marginLeft",o[3],r,i)),a}function border(e){var t=clearImportant(e.value),n=t.value,r=t.important,i=e.property,o=n.replace(/\s*,\s*/g,",").split(/\s+/),a=[/^[\d.]+\S*$/,/^(solid|dashed|dotted)$/,/\S+/].map(function(t){var e=o.findIndex(function(e){return t.test(e)});return e<0?null:o.splice(e,1)[0]});return o.length?e:[generateDeclaration(i+"Width",(a[0]||"0").trim(),r),generateDeclaration(i+"Style",(a[1]||"solid").trim(),r),generateDeclaration(i+"Color",(a[2]||"#000000").trim(),r)]}function borderProperty(e){var t=clearImportant(e.value),n=t.value,r=t.important,i=e.property.substring(6),o=n.replace(/\s*,\s*/g,",").split(/\s+/),a=[];switch(o.length){case 1:return e;case 2:o.push(o[0],o[1]);break;case 3:o.push(o[1])}return a.push(generateDeclaration("borderTop"+i,o[0],r),generateDeclaration("borderRight"+i,o[1],r),generateDeclaration("borderBottom"+i,o[2],r),generateDeclaration("borderLeft"+i,o[3],r)),a}function borderRadius(e){var t=clearImportant(e.value),n=t.value,r=t.important,i=n.split(/\s+/),o=[];if(n.includes("/"))return e;switch(i.length){case 1:return e;case 2:i.push(i[0],i[1]);break;case 3:i.push(i[1])}return o.push(generateDeclaration("borderTopLeftRadius",i[0],r),generateDeclaration("borderTopLightRadius",i[1],r),generateDeclaration("borderBottomRightRadius",i[2],r),generateDeclaration("borderBottomLeftRadius",i[3],r)),o}function flexFlow(e){var t=clearImportant(e.value),n=t.value,r=t.important,i=n.split(/\s+/),o=[/^(column|column-reverse|row|row-reverse)$/,/^(nowrap|wrap|wrap-reverse)$/].map(function(t){var e=i.findIndex(function(e){return t.test(e)});return e<0?null:i.splice(e,1)[0]});return i.length?e:[generateDeclaration("flexDirection",o[0]||"column",r),generateDeclaration("flexWrap",o[1]||"nowrap",r)]}function font(e){var t=clearImportant(e.value),n=t.value,r=t.important,i=n.replace(/,\s*/g,",").replace(/\s*\/\s*/,"/").replace(/['"].+?['"]/g,function(e){return e.replace(/\s+/g,"#")}).split(/\s+/),o=[],a=["normal","italic","oblique"];o.push(generateDeclaration("fontStyle",a[Math.max(0,a.indexOf(i[0]))],r));var s=i.slice(0,-2).find(function(e){return/normal|bold|lighter|bolder|\d+/.test(e)});if(s&&o.push(generateDeclaration("fontWeight",s,r)),i=i.slice(-2),/[\d.]+\S*(\/[\d.]+\S*)?/.test(i[0])){var c=i[0].split("/"),u=c[0],l=c[1];return o.push(generateDeclaration("fontSize",u,r),generateDeclaration("lineHeight",l||"normal",r),generateDeclaration("fontFamily",i[1].replace(/#/g," "),r)),o}return[]}function background(e){var t=clearImportant(e.value),n=t.value,r=t.important;return/^#?\S+$/.test(n)||/^rgba?(.+)$/.test(n)?generateDeclaration("backgroundColor",n,r):/^linear-gradient(.+)$/.test(n)?generateDeclaration("backgroundImage",n,r):e}var parserCollection={margin:margin,border:border,borderTop:border,borderRight:border,borderBottom:border,borderLeft:border,borderStyle:borderProperty,borderWidth:borderProperty,borderColor:borderProperty,borderRadius:borderRadius,flexFlow:flexFlow,font:font,background:background};function expandShorthandProperty(e){var t=parserCollection[e.property];return t&&(e=t(e)),[].concat(e)}var DEFAULT_TAG_NAME="div",BUBBLE_EVENTS=["click","longpress","touchstart","touchmove","touchend","panstart","panmove","panend","horizontalpan","verticalpan","swipe"];function registerNode(e,t){getDoc(e).nodeMap[t.nodeId]=t}var Element=function(i){function e(e,t,n){void 0===e&&(e=DEFAULT_TAG_NAME),i.call(this);var r=getWeexElement(e);if(r&&!n)return new r(e,t,!0);t=t||{},this.nodeType=1,this.nodeId=uniqueId(),this.ref=this.nodeId,this.type=e,this.attr=t.attr||{},this.style=t.style||{},this.classStyle=t.classStyle||{},this.event={},this.children=[],this.pureChildren=[],this.classList=t.classList||[],this.stylesheet=t.stylesheet||[],this.ready=!1}return i&&(e.__proto__=i),((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.appendChild=function(e){if(!e.parentNode||e.parentNode===this)if(e.parentNode){if(checkLevel("debug")&&debugLog("[appendChild]("+this.docId+","+e.type+","+e.ref+") Move <"+e.type+"> to "+this.children.length+" of <"+this.type+"> ("+this.ref+")."),moveIndex(e,this.children,this.children.length,!0),1===e.nodeType){var t=moveIndex(e,this.pureChildren,this.pureChildren.length),n=getTaskCenter(this.docId);n&&0<=t&&(this.computeChildrenClassList(e),n.send("dom",{action:"moveElement"},[e.ref,this.ref,t]))}}else if(checkLevel("debug")&&debugLog("[appendChild]("+this.docId+","+e.type+","+e.ref+") Append <"+e.type+"> to <"+this.type+"> ("+this.ref+")."),linkParent(e,this),insertIndex(e,this.children,this.children.length,!0),this.docId&®isterNode(this.docId,e),1===e.nodeType){insertIndex(e,this.pureChildren,this.pureChildren.length);var r=getTaskCenter(this.docId);r&&(this.computeChildrenClassList(e),r.send("dom",{action:"addElement"},[this.ref,e.toJSON(),-1])),e.ready=!0}},e.prototype.insertBefore=function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.nextSibling&&e.nextSibling===t))if(e.parentNode){if(moveIndex(e,this.children,this.children.indexOf(t),!0),1===e.nodeType){var n=nextElement(t),r=moveIndex(e,this.pureChildren,n?this.pureChildren.indexOf(n):this.pureChildren.length),i=getTaskCenter(this.docId);i&&0<=r&&(this.computeChildrenClassList(e),i.send("dom",{action:"moveElement"},[e.ref,this.ref,r]))}}else if(checkLevel("debug")&&debugLog("[insertBefore]("+this.docId+","+e.type+","+e.ref+") Insert <"+e.type+"> to <"+this.type+"> ("+this.ref+"), before ("+t.ref+")."),linkParent(e,this),insertIndex(e,this.children,this.children.indexOf(t),!0),this.docId&®isterNode(this.docId,e),1===e.nodeType){var o=nextElement(t),a=insertIndex(e,this.pureChildren,o?this.pureChildren.indexOf(o):this.pureChildren.length),s=getTaskCenter(this.docId);s&&(this.computeChildrenClassList(e),s.send("dom",{action:"addElement"},[this.ref,e.toJSON(),a])),e.ready=!0}},e.prototype.insertAfter=function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.previousSibling&&e.previousSibling===t))if(e.parentNode){if(moveIndex(e,this.children,this.children.indexOf(t)+1,!0),1===e.nodeType){var n=moveIndex(e,this.pureChildren,this.pureChildren.indexOf(previousElement(t))+1),r=getTaskCenter(this.docId);r&&0<=n&&(this.computeChildrenClassList(e),r.send("dom",{action:"moveElement"},[e.ref,this.ref,n]))}}else if(checkLevel("debug")&&debugLog("[insertAfter]("+this.docId+","+e.type+","+e.ref+") Insert <"+e.type+"> to <"+this.type+"> ("+this.ref+"), after ("+t.ref+")."),linkParent(e,this),insertIndex(e,this.children,this.children.indexOf(t)+1,!0),this.docId&®isterNode(this.docId,e),1===e.nodeType){var i=insertIndex(e,this.pureChildren,this.pureChildren.indexOf(previousElement(t))+1),o=getTaskCenter(this.docId);o&&(this.computeChildrenClassList(e),o.send("dom",{action:"addElement"},[this.ref,e.toJSON(),i])),e.ready=!0}},e.prototype.removeChild=function(e,t){if(e.parentNode){if(removeIndex(e,this.children,!0),1===e.nodeType){checkLevel("debug")&&debugLog("[removeChild]("+this.docId+","+e.type+","+e.ref+") Remove <"+e.type+"> from <"+this.type+"> ("+this.ref+")."),removeIndex(e,this.pureChildren);var n=getTaskCenter(this.docId);n&&n.send("dom",{action:"removeElement"},[e.ref]),e.ready=!1}this.computeChildrenClassList(e,e.nextSibling||{})}t||e.destroy()},e.prototype.clear=function(){var t=getTaskCenter(this.docId);this.pureChildren.forEach(function(e){t&&t.send("dom",{action:"removeElement"},[e.ref]),e.ready=!1}),this.children.forEach(function(e){e.destroy()}),this.children.length=0,this.pureChildren.length=0},e.prototype.setAttr=function(e,t,n){if(this.attr[e]!==t||!1===n){this.attr[e]=t;var r=getTaskCenter(this.docId);if(!n&&r){var i={};i[e]=t,r.send("dom",{action:"updateAttrs"},[this.ref,i])}}},e.prototype.setAttrs=function(e,t){if(!isEmpty(e)){var n={};for(var r in e)this.attr[r]!==e[r]&&(this.attr[r]=e[r],n[r]=e[r]);if(!isEmpty(n)){var i=getTaskCenter(this.docId);!t&&i&&i.send("dom",{action:"updateAttrs"},[this.ref,n])}}},e.prototype.setStyle=function(e,t,o){var a=this;expandShorthandProperty({property:e,value:t}).forEach(function(e){var t=e.property,n=e.value;if(a.style[t]!==n||!1===o){a.style[t]=n;var r=getTaskCenter(a.docId);if(!o&&r){var i={};i[t]=n,r.send("dom",{action:"updateStyle"},[a.ref,i])}}})},e.prototype.setStyles=function(e,t){var r=this;if(!isEmpty(e)){var i={};for(var n in e){expandShorthandProperty({property:n,value:e[n]}).forEach(function(e){var t=e.property,n=e.value;r.style[t]!==n&&(r.style[t]=n,i[t]=n)})}if(!isEmpty(i)){var o=getTaskCenter(this.docId);!t&&o&&o.send("dom",{action:"updateStyle"},[this.ref,i])}}},e.prototype.setClassStyle=function(e){for(var t in this.classStyle)this.classStyle[t]="";Object.assign(this.classStyle,e);var n=getTaskCenter(this.docId);n&&this.ready&&n.send("dom",{action:"updateStyle"},[this.ref,this.toStyle()])},e.prototype.addEvent=function(e,t,n){if(this.event||(this.event={}),!this.event[e]){checkLevel("debug")&&debugLog("[addEvent]("+this.docId+","+this.type+","+this.ref+') Add "'+e+'" event on <'+this.type+"> ("+this.ref+")."),this.event[e]={handler:t,params:n};var r=getTaskCenter(this.docId);r&&r.send("dom",{action:"addEvent"},[this.ref,e])}},e.prototype.removeEvent=function(e){if(this.event&&this.event[e]){checkLevel("debug")&&debugLog("[removeEvent]("+this.docId+","+this.type+","+this.ref+') Remove "'+e+'" event on <'+this.type+"> ("+this.ref+")."),delete this.event[e];var t=getTaskCenter(this.docId);t&&t.send("dom",{action:"removeEvent"},[this.ref,e])}},e.prototype.fireEvent=function(t,e,n,r){var i=null,o=!1,a=this.event[t];if(a&&e){checkLevel("debug")&&debugLog("[fireEvent]("+this.docId+","+this.type+","+this.ref+') Fire "'+t+'" event on <'+this.type+"> ("+this.ref+").");var s=a.handler;e.stopPropagation=function(){o=!0};try{i=r&&r.params?s.call.apply(s,[this].concat(r.params,[e])):s.call(this,e)}catch(e){throw console.error('[JS Framework] Failed to invoke the event handler of "'+t+'" on '+this.type+" ("+this.ref+"):\n "+e.toString()),e}}return!o&&n&&-1!==BUBBLE_EVENTS.indexOf(t)&&this.parentNode&&this.parentNode.fireEvent&&(e.currentTarget=this.parentNode,this.parentNode.fireEvent(t,e,n)),i},e.prototype.toStyle=function(){return Object.assign({},this.classStyle,this.style)},e.prototype.toJSON=function(e){void 0===e&&(e=!1);var t={ref:this.ref.toString(),type:this.type,attr:this.attr,style:normalizeUnit(this.toStyle())};this.classList&&this.classList.length&&(t.class=this.classList.join(" "));var n=[];for(var r in this.event){var i=this.event[r].params;i?n.push({type:r,params:i}):n.push(r)}return n.length&&(t.event=n),!e&&this.pureChildren.length&&(t.children=this.pureChildren.map(function(e){return e.toJSON()})),t},e.prototype.toString=function(){return"<"+this.type+" attr="+JSON.stringify(this.attr)+" style="+JSON.stringify(this.toStyle())+">"+this.pureChildren.map(function(e){return e.toString()}).join("")+"</"+this.type+">"},e.prototype.setClassList=function(e){var t=this;e.length===this.classList.length&&0===e.filter(function(e){return!t.classList.includes(e)}).length||(this.classList=e,this.parentNode&&this.computeClassList())},e.prototype.setStylesheet=function(e){var t=this;e.length===this.stylesheet.length&&0===e.filter(function(e){return!t.stylesheet.includes(e)}).length||(this.stylesheet=e,this.classList.length&&this.parentNode&&this.computeClassList())},e.prototype.computeChildrenClassList=function(e,t){var n=this.children,r=t||e,i=r?n.indexOf(r):0,o=n.length-1;for(!e||e.classList&&e.classList.length||(o=t?i-1:i);0<=i&&i<=o;i++){var a=n[i];a.computeClassList&&a.computeClassList()}},e.prototype.computeClassList=function(){var u=this,e=this.classList,t=this.stylesheet,p={},h={};function l(e,t){var n=t&&t.classList;return n&&n.includes(e)}e.forEach(function(n){t.forEach(function(e,f){if((e["@VERSION"]||1)<2){var t=e[n];t&&Object.assign(p,t)}else{var c=e["."+n];c&&Object.keys(c).forEach(function(e){var t=u;if(e)for(var n=e.split("."),r=n.length-1;0<r;r--){var i=n[r],o=i[i.length-1],a=i.replace(/[+~> ]$/,"");if("~"===o||" "===o){for(var s="~"===o?"previousSibling":"parentNode";t&&!l(a,t=t[s]););if(!t)return}else if(">"===o?t=t&&t.parentNode:"+"===o&&(t=t&&t.previousSibling),!l(a,t))return}var d=c[e];Object.keys(d).forEach(function(e){var t=d[e],n=t[0],r=t[1],i=t[2],o=t[3],a=[r,i,f,o],s=h[e],c=!0;if(s)for(var u=0;u<s.length;u++){var l=a[u]-s[u];if(0!==l){c=0<l;break}}c&&(p[e]=n,h[e]=a)})})}})}),this.setClassStyle(p),this.computeChildrenClassList()},e}(Node);function normalizePrimitive(e){var t=typof(e);switch(t){case"Undefined":case"Null":return"";case"RegExp":return e.toString();case"Date":return e.toISOString();case"Number":case"String":case"Boolean":case"Array":case"Object":return e;case"ArrayBuffer":return{"@type":"binary",dataType:t,base64:bufferToBase64(e)};case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return{"@type":"binary",dataType:t,base64:bufferToBase64(e.buffer)};default:return JSON.stringify(e)}}setElement(Element);var fallback=function(){},TaskCenter=function(e,t){Object.defineProperty(this,"instanceId",{enumerable:!0,value:String(e)}),Object.defineProperty(this,"callbackManager",{enumerable:!0,value:new CallbackManager(e)}),fallback=t||function(){}};function init$1(){var e={createFinish:global.callCreateFinish,updateFinish:global.callUpdateFinish,refreshFinish:global.callRefreshFinish,createBody:global.callCreateBody,addElement:global.callAddElement,removeElement:global.callRemoveElement,moveElement:global.callMoveElement,updateAttrs:global.callUpdateAttrs,updateStyle:global.callUpdateStyle,addEvent:global.callAddEvent,removeEvent:global.callRemoveEvent,__updateComponentData:global.__updateComponentData},t=TaskCenter.prototype,n=function(n){var r=e[n];t[n]=r?function(e,t){return r.apply(void 0,[e].concat(t))}:function(e,t){return fallback(e,[{module:"dom",method:n,args:t}],"-1")}};for(var r in e)n(r);t.componentHandler=global.callNativeComponent||function(e,t,n,r,i){return fallback(e,[{component:i.component,ref:t,method:n,args:r}])},t.moduleHandler=global.callNativeModule||function(e,t,n,r){return fallback(e,[{module:t,method:n,args:r}])}}function fireEvent(e,t,n,r,i,o){var a=e.getRef(t);return a?e.fireEvent(a,n,r,i,o):r?(r._nodeId=t,e.fireEvent(e.getRef("_documentElement"),n,r,i,o)):void 0}function callback(e,t,n,r){return e.taskCenter.callback(t,n,r)}function componentHook(e,t,n,r,i){if(!e||!e.taskCenter)return console.error('[JS Framework] Can\'t find "document" or "taskCenter".'),null;var o=null;try{o=e.taskCenter.triggerHook(t,n,r,i)}catch(e){throw console.error('[JS Framework] Failed to trigger the "'+n+"@"+r+'" hook on '+t+"."),e}return o}function receiveTasks(e,t){var n=getDoc(e);return n?Array.isArray(t)?t.map(function(e){switch(e.method){case"callback":return callback.apply(void 0,[n].concat(e.args));case"fireEventSync":case"fireEvent":return fireEvent.apply(void 0,[n].concat(e.args));case"componentHook":return componentHook.apply(void 0,[n].concat(e.args))}}):void 0:new Error("[JS Framework] Failed to receiveTasks, instance ("+e+") is not available.")}TaskCenter.prototype.callback=function(e,t,n){return this.callbackManager.consume(e,t,n)},TaskCenter.prototype.registerHook=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return(e=this.callbackManager).registerHook.apply(e,t)},TaskCenter.prototype.triggerHook=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return(e=this.callbackManager).triggerHook.apply(e,t)},TaskCenter.prototype.updateData=function(e,t,n){this.send("module",{module:"dom",method:"updateComponentData"},[e,t,n])},TaskCenter.prototype.destroyCallback=function(){return this.callbackManager.close()},TaskCenter.prototype.normalize=function(e,t){var n=this;void 0===t&&(t=!1);var r=typof(e);if(e&&e instanceof Element)return e.ref;if(e&&e._isVue&&e.$el instanceof Element)return e.$el.ref;if("Function"===r)return this.callbackManager.add(e).toString();if(t){if("Object"===r){var i={};for(var o in e)i[o]=n.normalize(e[o],!0);return i}if("Array"===r)return e.map(function(e){return n.normalize(e,!0)})}return e&&e.ref&&e["[[VirtualElement]]"]?e.ref:normalizePrimitive(e)},TaskCenter.prototype.send=function(e,t,n,r){var i=this,o=t.action,a=t.component,s=t.ref,c=t.module,u=t.method;switch(n=n.map(function(e){return i.normalize(e)}),"Object"===typof(r)&&(r=this.normalize(r,!0)),e){case"dom":return checkLevel("debug")&&debugLog("[task]("+this.instanceId+","+this.type+","+o+") "+JSON.stringify(n)),this[o](this.instanceId,n);case"component":return this.componentHandler(this.instanceId,s,u,n,Object.assign({component:a},r));default:return checkLevel("debug")&&debugLog("[task]("+this.instanceId+","+c+","+u+") "+JSON.stringify(n)),this.moduleHandler(this.instanceId,c,u,n,r)}},TaskCenter.prototype.callDOM=function(e,t){return this[e](this.instanceId,t)},TaskCenter.prototype.callComponent=function(e,t,n,r){return this.componentHandler(this.instanceId,e,t,n,r)},TaskCenter.prototype.callModule=function(e,t,n,r){return this.moduleHandler(this.instanceId,e,t,n,r)};var weexModules={};function registerModules(e){void 0===e&&(e={});var t=function(t){hasOwn(weexModules,t)||(weexModules[t]={}),Array.isArray(e[t])&&e[t].forEach(function(e){"string"==typeof e?weexModules[t][e]=!0:isPlainObject(e)&&"string"==typeof e.name&&(weexModules[t][e.name]=e.args||[])})};for(var n in e)t(n)}function isRegisteredModule(e,t){return"string"==typeof t?!(!weexModules[e]||!weexModules[e][t]):!!weexModules[e]}function getModuleDescription(e){return weexModules[e]}var weexComponents={};function registerComponents(e){Array.isArray(e)&&e.forEach(function(e){e&&("string"==typeof e?weexComponents[e]=!0:isPlainObject(e)&&"string"==typeof e.type&®isterElement((weexComponents[e.type]=e).type,e.methods))})}function isRegisteredComponent(e){return!!weexComponents[e]}var services=[];function register(e,t){has(e)?console.warn('Service "'+e+'" has been registered already!'):(t=Object.assign({},t),services.push({name:e,options:t}))}function unregister(n){services.some(function(e,t){if(e.name===n)return services.splice(t,1),!0})}function has(e){return 0<=indexOf(e)}function indexOf(e){return services.map(function(e){return e.name}).indexOf(e)}var Comment=function(t){function e(e){t.call(this),this.nodeType=8,this.nodeId=uniqueId(),this.ref=this.nodeId,this.type="comment",this.value=e,this.children=[],this.pureChildren=[]}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.toString=function(){return"\x3c!-- "+this.value+" --\x3e"},e}(Node);function createAction(e,t){return void 0===t&&(t=[]),{module:"dom",method:e,args:t}}var Listener=function(e,t){this.id=e,this.batched=!1,this.updates=[],"function"==typeof t?Object.defineProperty(this,"handler",{configurable:!0,enumerable:!0,writable:!0,value:t}):console.error("[JS Runtime] invalid parameter, handler must be a function")};Listener.prototype.createFinish=function(e){return(0,this.handler)([createAction("createFinish")],e)},Listener.prototype.updateFinish=function(e){return(0,this.handler)([createAction("updateFinish")],e)},Listener.prototype.refreshFinish=function(e){return(0,this.handler)([createAction("refreshFinish")],e)},Listener.prototype.createBody=function(e){var t=e.toJSON(),n=t.children;delete t.children;var r=[createAction("createBody",[t])];return n&&r.push.apply(r,n.map(function(e){return createAction("addElement",[t.ref,e,-1])})),this.addActions(r)},Listener.prototype.addElement=function(e,t,n){return 0<=n||(n=-1),this.addActions(createAction("addElement",[t,e.toJSON(),n]))},Listener.prototype.removeElement=function(e){if(Array.isArray(e)){var t=e.map(function(e){return createAction("removeElement",[e])});return this.addActions(t)}return this.addActions(createAction("removeElement",[e]))},Listener.prototype.moveElement=function(e,t,n){return this.addActions(createAction("moveElement",[e,t,n]))},Listener.prototype.setAttr=function(e,t,n){var r={};return r[t]=n,this.addActions(createAction("updateAttrs",[e,r]))},Listener.prototype.setStyle=function(e,t,n){var r={};return r[t]=n,this.addActions(createAction("updateStyle",[e,r]))},Listener.prototype.setStyles=function(e,t){return this.addActions(createAction("updateStyle",[e,t]))},Listener.prototype.addEvent=function(e,t){return this.addActions(createAction("addEvent",[e,t]))},Listener.prototype.removeEvent=function(e,t){return this.addActions(createAction("removeEvent",[e,t]))},Listener.prototype.handler=function(e,t){return t&&t()},Listener.prototype.addActions=function(e){var t=this.updates,n=this.handler;if(Array.isArray(e)||(e=[e]),!this.batched)return n(e);t.push.apply(t,e)};var handlerMap={createBody:"callCreateBody",addElement:"callAddElement",removeElement:"callRemoveElement",moveElement:"callMoveElement",updateAttrs:"callUpdateAttrs",updateStyle:"callUpdateStyle",addEvent:"callAddEvent",removeEvent:"callRemoveEvent"};function createHandler(r,e){var i=e||global.callNative;return"function"!=typeof i&&console.error("[JS Runtime] no default handler"),function(e){Array.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++){var n=dispatchTask(r,e[t],i);if(-1===n)return n}}}function hasAvailableHandler(e,t){return"dom"===e&&handlerMap[t]&&"function"==typeof global[handlerMap[t]]}function dispatchTask(e,t,n){var r=t.module,i=t.method,o=t.args;return hasAvailableHandler(r,i)?global[handlerMap[i]].apply(global,[e].concat(o,["-1"])):n(e,[t],"-1")}function updateElement(e,t){var n=t.attrs||{};for(var r in n)e.setAttr(r,n[r],!0);var i=t.style||{};for(var o in i)e.setStyle(o,i[o],!0)}var Document=function e(t,n,r){t=t?t.toString():"",this.id=t,this.URL=n,addDoc(t,this),this.nodeMap={};var i=e.Listener||Listener;this.listener=new i(t,r||createHandler(t,e.handler)),this.taskCenter=new TaskCenter(t,r?function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return r.apply(void 0,t)}:e.handler),this.createDocumentElement()};Document.prototype.getRef=function(e){return this.nodeMap[e]},Document.prototype.open=function(){this.listener.batched=!1},Document.prototype.close=function(){this.listener.batched=!0},Document.prototype.createDocumentElement=function(){var n=this;if(!this.documentElement){var e=new Element("document");e.docId=this.id,e.ownerDocument=this,e.role="documentElement",e.depth=0,e.ref="_documentElement",this.nodeMap._documentElement=e,this.documentElement=e,Object.defineProperty(e,"appendChild",{configurable:!0,enumerable:!0,writable:!0,value:function(e){appendBody(n,e)}}),Object.defineProperty(e,"insertBefore",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){appendBody(n,e,t)}}),checkLevel("debug")&&debugLog('Create document element (id: "'+e.docId+'", ref: "'+e.ref+'")')}return this.documentElement},Document.prototype.createBody=function(e,t){if(!this.body){var n=new Element(e,t);setBody(this,n),checkLevel("debug")&&debugLog("[createBody]("+this.id+","+n.type+","+n.ref+") ("+JSON.stringify(n.toJSON(!0))+").")}return this.body},Document.prototype.createElement=function(e,t){var n=new Element(e,t);return checkLevel("debug")&&debugLog("[createElement]("+this.id+","+n.type+","+n.ref+") ("+JSON.stringify(n.toJSON(!0))+")."),n},Document.prototype.createComment=function(e){return new Comment(e)},Document.prototype.fireEvent=function(e,t,n,r,i){if(e){var o;(n=n||{}).type=n.type||t,n.target=e,n.currentTarget=e,n.timestamp=Date.now(),r&&updateElement(e,r);var a=this.getRef("_root");return a&&a.attr&&(o="true"===a.attr.bubble),"weex"!==this.__$compiler__&&(n=processEvent(n)),e.fireEvent(t,n,o,i)}},Document.prototype.destroy=function(){checkLevel("debug")&&debugLog("[destroy]("+this.id+",document,"+this.ref+') Destroy document (id: "'+this.id+'", URL: "'+this.URL+'")'),this.taskCenter.destroyCallback(),delete this.listener,delete this.nodeMap,delete this.taskCenter,removeDoc(this.id)},Document.handler=null;var lex={InputElementDiv:"<WhiteSpace>|<LineTerminator>|<ReservedWord>|<Identifier>|<NumericLiteral>|<Punctuator>|<StringLiteral>",InputElementRegExp:"<WhiteSpace>|<LineTerminator>|<ReservedWord>|<Identifier>|<NumericLiteral>|<Punctuator>|<StringLiteral>",ReservedWord:"<Keyword>|<NullLiteral>|<BooleanLiteral>",WhiteSpace:/[\t\v\f\u0020\u00A0\u1680\u180E\u2000-\u200A\u202F\u205f\u3000\uFEFF]/,LineTerminator:/[\n\r\u2028\u2029]/,Keyword:/new(?![_$a-zA-Z0-9])|void(?![_$a-zA-Z0-9])|delete(?![_$a-zA-Z0-9])|in(?![_$a-zA-Z0-9])|instanceof(?![_$a-zA-Z0-9])|typeof(?![_$a-zA-Z0-9])/,NullLiteral:/null(?![_$a-zA-Z0-9])/,BooleanLiteral:/(?:true|false)(?![_$a-zA-Z0-9])/,Identifier:/[_$a-zA-Z][_$a-zA-Z0-9]*/,Punctuator:/\/|=>|\*\*|>>>=|>>=|<<=|===|!==|>>>|<<|%=|\*=|-=|\+=|<=|>=|==|!=|\^=|\|=|\|\||&&|&=|>>|\+\+|--|\:|}|\*|&|\||\^|!|~|-|\+|\?|%|=|>|<|,|;|\.(?![0-9])|\]|\[|\)|\(|{/,DivPunctuator:/\/=|\//,NumericLiteral:/(?:0[xX][0-9a-fA-F]*|\.[0-9]+|(?:[1-9]+[0-9]*|0)(?:\.[0-9]*|\.)?)(?:[eE][+-]{0,1}[0-9]+)?(?![_$a-zA-Z0-9])/,StringLiteral:/"(?:[^"\n\\\r\u2028\u2029]|\\(?:['"\\bfnrtv\n\r\u2028\u2029]|\r\n)|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\[^0-9ux'"\\bfnrtv\n\\\r\u2028\u2029])*"|'(?:[^'\n\\\r\u2028\u2029]|\\(?:['"\\bfnrtv\n\r\u2028\u2029]|\r\n)|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\[^0-9ux'"\\bfnrtv\n\\\r\u2028\u2029])*'/,RegularExpressionLiteral:/\/(?:\[(?:\\[\s\S]|[^\]])*\]|[^*\/\\\n\r\u2028\u2029]|\\[^\n\r\u2028\u2029])(?:\[(?:\\[\s\S]|[^\]])*\]|[^\/\\\n\r\u2028\u2029]|\\[^\n\r\u2028\u2029])*\/[0-9a-zA-Z]*/};function XRegExp(r,e,i){var o=[e];var a=function n(e){var t=new RegExp;return t.compile(e.replace(/<([^>]+)>/g,function(e,t){return r[t]?(o.push(t),r[t]instanceof RegExp?"("+r[t].source+")":"("+n(r[t]).source+")"):""}),i),t}(r[e]);this.exec=function(e){var t=a.exec(e);if(null==t)return null;for(var n=new String(t[0]),r=0;r<o.length;r++)t[r]&&(n[o[r]]=t[r]);return n},Object.defineProperty(this,"lastIndex",{get:function(){return a.lastIndex},set:function(e){a.lastIndex=e}})}function LexicalParser(){var i,o=new XRegExp(lex,"InputElementDiv","g"),a=new XRegExp(lex,"InputElementRegExp","g");Object.defineProperty(this,"source",{get:function(){return i},set:function(e){i=e,o.lastIndex=0,a.lastIndex=0}}),this.reset=function(){o.lastIndex=0,a.lastIndex=0},this.getNextToken=function(e){var t,n=o.lastIndex,r=(t=e?o:a).exec(i);if(r&&t.lastIndex-n>r.length)throw new SyntaxError("Unexpected token ILLEGAL");return o.lastIndex=t.lastIndex,a.lastIndex=t.lastIndex,r}}var rules={IdentifierName:[["Identifier"]],Literal:[["NullLiteral"],["BooleanLiteral"],["NumericLiteral"],["StringLiteral"],["RegularExpressionLiteral"]],PrimaryExpression:[["Identifier"],["Literal"],["(","Expression",")"]],CallExpression:[["PrimaryExpression","Arguments"],["CallExpression","Arguments"]],Arguments:[["(",")"],["(","ArgumentList",")"]],ArgumentList:[["ConditionalExpression"],["ArgumentList",",","ConditionalExpression"]],LeftHandSideExpression:[["PrimaryExpression"],["CallExpression"]],UnaryExpression:[["LeftHandSideExpression"],["void","UnaryExpression"],["+","UnaryExpression"],["-","UnaryExpression"],["~","UnaryExpression"],["!","UnaryExpression"]],ExponentiationExpression:[["UnaryExpression"],["ExponentiationExpression","**","UnaryExpression"]],MultiplicativeExpression:[["MultiplicativeExpression","/","ExponentiationExpression"],["ExponentiationExpression"],["MultiplicativeExpression","*","ExponentiationExpression"],["MultiplicativeExpression","%","ExponentiationExpression"]],AdditiveExpression:[["MultiplicativeExpression"],["AdditiveExpression","+","MultiplicativeExpression"],["AdditiveExpression","-","MultiplicativeExpression"]],ShiftExpression:[["AdditiveExpression"],["ShiftExpression","<<","AdditiveExpression"],["ShiftExpression",">>","AdditiveExpression"],["ShiftExpression",">>>","AdditiveExpression"]],RelationalExpression:[["ShiftExpression"],["RelationalExpression","<","ShiftExpression"],["RelationalExpression",">","ShiftExpression"],["RelationalExpression","<=","ShiftExpression"],["RelationalExpression",">=","ShiftExpression"],["RelationalExpression","instanceof","ShiftExpression"],["RelationalExpression","in","ShiftExpression"]],EqualityExpression:[["RelationalExpression"],["EqualityExpression","==","RelationalExpression"],["EqualityExpression","!=","RelationalExpression"],["EqualityExpression","===","RelationalExpression"],["EqualityExpression","!==","RelationalExpression"]],BitwiseANDExpression:[["EqualityExpression"],["BitwiseANDExpression","&","EqualityExpression"]],BitwiseXORExpression:[["BitwiseANDExpression"],["BitwiseXORExpression","^","BitwiseANDExpression"]],BitwiseORExpression:[["BitwiseXORExpression"],["BitwiseORExpression","|","BitwiseXORExpression"]],LogicalANDExpression:[["BitwiseORExpression"],["LogicalANDExpression","&&","BitwiseORExpression"]],LogicalORExpression:[["LogicalANDExpression"],["LogicalORExpression","||","LogicalANDExpression"]],ConditionalExpression:[["LogicalORExpression"],["LogicalORExpression","?","LogicalORExpression",":","LogicalORExpression"]],Expression:[["ConditionalExpression"],["Expression",",","ConditionalExpression"]],Program:[["Expression"]]};function Symbol$1(e,t){this.name=e,this.token=t,this.childNodes=[],this.toString=function(e){if(e||(e=""),1==this.childNodes.length)return this.childNodes[0].toString(e);for(var t=e+this.name+(null!=this.token&&this.name!=this.token?":"+this.token:"")+"\n",n=0;n<this.childNodes.length;n++)t+=this.childNodes[n].toString(e+" ");return t}}function SyntacticalParser(){var e={Program:"$"},o={};!function e(n){o[JSON.stringify(n)]=n;for(var r=Object.getOwnPropertyNames(n);r.length;){var i=r.shift();rules[i]&&rules[i].forEach(function(e){n[e[0]]||r.push(e[0]);var t=n;e.forEach(function(e){t[e]||(t[e]={}),t=t[e]}),n[i].$div&&(t.$div=!0),t.$reduce=i,t.$count=e.length})}for(var t in n)"object"!=typeof n[t]||"$"==t.charAt(0)||n[t].$closure||(o[JSON.stringify(n[t])]?n[t]=o[JSON.stringify(n[t])]:e(n[t]));n.$closure=!0}(e);var i=[],a=[e],s=e;this.insertSymbol=function(e,t){for(;!s[e.name]&&s.$reduce;){for(var n=s.$count,r=new Symbol$1(s.$reduce);n--;)r.childNodes.push(i.pop()),a.pop();s=a[a.length-1],this.insertSymbol(r)}if(s=s[e.name],i.push(e),a.push(s),!s)throw new Error;return s.$div},this.reset=function(){i=[],a=[s=e]},Object.defineProperty(this,"grammarTree",{get:function(){try{for(;s.$reduce;){for(var e=s.$count,t=new Symbol$1(s.$reduce);e--;)t.childNodes.push(i.pop()),a.pop();s=a[a.length-1],this.insertSymbol(t)}if(0<i.length&&s[";"])return this.insertSymbol(new Symbol$1(";",";")),this.grammarTree;if(1!=i.length||"Program"!=i[0].name)throw new Error}catch(e){throw new SyntaxError("Unexpected end of input")}return i[0]}})}function Parser(){this.lexicalParser=new LexicalParser,this.syntacticalParser=new SyntacticalParser;var a={};["NullLiteral","BooleanLiteral","NumericLiteral","StringLiteral","RegularExpressionLiteral","Identifier","**","=>","{","}","(",")","[","]",".",";",",","<",">","<=",">=","==","!=","===","!==","+","-","*","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","=","+=","-=","*=","%=","<<=",">>=",">>>=","&=","|=","^=","/","/=","instanceof","typeof","new","void","debugger","this","delete","in"].forEach(function(e){Object.defineProperty(a,e,{})}),this.reset=function(){this.lexicalParser.reset(),this.syntacticalParser.reset()},this.parse=function(e,t){var n,r=this,i=!1;this.lexicalParser.source=e;for(var o=!1;n=this.lexicalParser.getNextToken(o);){t&&t(n);try{if(Object.getOwnPropertyNames(n).some(function(e){return!!a.hasOwnProperty(e)&&(o=r.syntacticalParser.insertSymbol(new Symbol$1(e,n),i),!(i=!1))}))continue;(n.Keyword||n.Punctuator||n.DivPunctuator)&&a.hasOwnProperty(n.toString())&&(o=r.syntacticalParser.insertSymbol(new Symbol$1(n.toString(),n),i))}catch(e){throw new SyntaxError("Unexpected token "+n)}}return this.syntacticalParser.grammarTree}}var parser=new Parser;function JavaScriptExpression(text){parser.reset(),this.tree=parser.parse(text),this.paths=[];var context=Object.create(null),me=this,pathIndex=Object.create(null);function checkSimple(e){for(var t=e;t.childNodes.length<=1&&"MemberExpression"!==t.name;)t=t.childNodes[0];"MemberExpression"===t.name?me.isSimple=!0:me.isSimple=!1}function walk(e){if("CallExpression"===e.name&&"CallExpression"!==e.childNodes[e.childNodes.length-1].name){getPath(e.childNodes[1]);walk(e.childNodes[0])}else if("NewExpression"===e.name&&1===e.childNodes.length)getPath(e.childNodes[0]);else if("MemberExpression"===e.name&&1===e.childNodes.length)getPath(e);else for(var t=0;t<e.childNodes.length;t++)walk(e.childNodes[t])}function getPath(e){var t;if("IdentifierName"===e.childNodes[0].name)return(t=getPath(e.childNodes[2]))&&(t=t.concat(e.childNodes[0].childNodes[0].token.toString())),createPath(t),t;if("PrimaryExpression"===e.childNodes[0].name)return"Identifier"===e.childNodes[0].childNodes[0].name?(createPath(t=[e.childNodes[0].childNodes[0].token.toString()]),t):null;if("]"===e.childNodes[0].name)return getPath(e.childNodes[3]),walk(e.childNodes[1]),null;if("Arguments"===e.childNodes[0].name)return walk(e.childNodes[0]),walk(e.childNodes[1]),null;for(var n=0;n<e.childNodes.length;n++)walk(e.childNodes[n])}function createPath(e){for(var t=context,n=0;n<e.length-1;n++)t[e[n]]||(t[e[n]]=Object.create(null)),t=t[e[n]];me.paths.push(e),pathIndex[e.join(".")]=!1}this.isSimple,this.isConst,walk(this.tree),checkSimple(this.tree),0===this.paths.length&&(this.isConst=!0),this.setter=function(t){for(var n=context,r=0;r<t.length-1;r++)n[t[r]]||(n[t[r]]=Object.create(null)),n=n[t[r]];return{isCompleted:function(){for(var e in pathIndex)if(!pathIndex[e])return!1;return!0},set:function(e){return pathIndex[t.join(".")]||(pathIndex[t.join(".")]=!0),n[t[r]]=e,this.isCompleted()?me.exec():void 0}}},this.valueOf=this.exec=function(){try{return function(){return eval(text)}.call(context)}catch(e){}}}function visit(t){var e,n=t.childNodes.slice().reverse(),r=n.filter(function(e){return!e.token||!e.token.Punctuator});if("UnaryExpression"===t.name&&(2===n.length&&"-"===n[0].name&&1===r.length))return(e=visit(r[0])).value=-e.value,e;if("Arguments"===t.name){for(var i=[],o=r[0];o;)3===o.childNodes.length&&(i.unshift(o.childNodes[0]),o=o.childNodes[2]),1===o.childNodes.length&&(i.unshift(o.childNodes[0]),o=null);return{type:"Arguments",children:i.map(function(e){return visit(e)})}}if(r&&1===r.length)return e=visit(r[0]);if(t.token&&["NullLiteral","BooleanLiteral","NumericLiteral","StringLiteral","Identifier"].some(function(e){return t.token[e]})){var a=Object.keys(t.token).filter(function(e){return e.match(/Literal/)||e.match(/Identifier/)})[0];return{type:a,value:{NullLiteral:null,BooleanLiteral:Boolean(t.token),NumericLiteral:Number(t.token),StringLiteral:t.token,Identifier:t.token}[a]}}return"CallExpression"===t.name?{type:"CallExpression",children:[visit(n[0]),visit(n[1])]}:{type:n.filter(function(e){return e.token&&e.token.Punctuator})[0].name,children:n.filter(function(e){return!e.token||!e.token.Punctuator}).map(function(e){return visit(e)})}}function parse(e){var t=new JavaScriptExpression(e);return JSON.stringify(visit(t.tree),null)}var oldCallUpdateStyle=global.callUpdateStyle;function isBindMethod(e,t){return("bindingx"===e||"binding"===e)&&"bind"===t}function formatExpression(e){if(void 0!==e){try{e=JSON.parse(e)}catch(e){}var t={};if("string"==typeof e?t.origin=e:e&&(t.origin=e.origin,t.transformed=e.transformed),t.transformed||t.origin)return t.transformed=t.transformed||parse(t.origin),t}}function formatExpressions(e){return e&&(e.exitExpression=formatExpression(e.exitExpression),e.props&&e.props.forEach(function(e){e.expression=formatExpression(e.expression)})),e}function fixCallback(t){return function(e){if(void 0===e&&(e={}),"function"==typeof t)return t({state:"end"===e.state?"exit":e.state,t:void 0!==e.t?e.t:e.deltaT})}}function handleModuleGetter(e,t,n){return isBindMethod(e,t)?function(e,t){if(void 0===t&&(t=function(){}),!e)throw new Error("should pass options for binding");return formatExpressions(e),n(e,e&&"timing"===e.eventType?fixCallback(t):t)}:n}function setId(e,t){Object.defineProperty(e,"[[CurrentInstanceId]]",{value:t})}function getId(e){return e["[[CurrentInstanceId]]"]}function moduleGetter(e,n,r){var i=getTaskCenter(e);return i&&"function"==typeof i.send?function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return i.send("module",{module:n,method:r},e)}:(console.error("[JS Framework] Failed to find taskCenter ("+e+")."),null)}function moduleSetter(e,t,n,r){var i=getTaskCenter(e);return i&&"function"==typeof i.send?"function"!=typeof r?(console.error("[JS Framework] "+t+"."+n+" must be assigned as a function."),null):function(e){return i.send("module",{module:t,method:n},[e])}:(console.error("[JS Framework] Failed to find taskCenter ("+e+")."),null)}global.callUpdateStyle=function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return t[1]&&(t[1]=normalizeUnit(t[1])),oldCallUpdateStyle.apply(void 0,[e].concat(t))};var WeexInstance=function(e,t,n){setId(this,String(e)),this.config=t||{},this._nativeData=n||{},this.document=new Document(e,this.config.bundleUrl),this.requireModule=this.requireModule.bind(this),this.importScript=this.importScript.bind(this),this.isRegisteredModule=isRegisteredModule,this.isRegisteredComponent=isRegisteredComponent},__vuePlugin,__definePage,__registerApp,__registerPage,uni,getApp,getCurrentPages,UniServiceJSBridge;function createServiceContext(uh,lh,dh,fh,e){var ph=e.setTimeout,hh=e.clearTimeout,vh=e.setInterval,gh=e.clearInterval,mh=e.__uniConfig,yh=e.__uniRoutes,t=function(){var e=["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor"].concat(["request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","getUpdateManager"],["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"],["setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync"],["getLocation","chooseLocation","openLocation","createMapContext"],["chooseImage","chooseFile","previewImage","getImageInfo","getVideoInfo","saveImageToPhotosAlbum","compressImage","compressVideo","getRecorderManager","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext"],["getSystemInfo","getSystemInfoSync","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"],["$emit","$on","$once","$off"],["saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager"],["createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData"],["getProvider","login","checkSession","getUserInfo","getUserProfile","preLogin","closeAuthView","share","shareWithSystem","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","onNativeEventReceive","sendNativeEvent","preloadPage","unPreloadPage","loadSubPackage"],["createRewardedVideoAd","createFullScreenVideoAd","createInterstitialAd","createInteractiveAd"]);try{var t={};Object.defineProperty(t,"passive",{get:function(){}}),window.addEventListener("test-passive",null,t)}catch(e){}function i(){var e,t,n=_h.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(e){throw new Error("获取当前用户信息出错,详细错误信息为:"+e.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}var n=Object.prototype.toString,r=Object.prototype.hasOwnProperty;function O(e){return"function"==typeof e}function c(e){return null!==e&&"object"==typeof e}function E(e){return"[object Object]"===n.call(e)}function b(e,t){return r.call(e,t)}function o(){}function f(e){return n.call(e).slice(8,-1)}function a(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var s=/-(\w)/g,u=a(function(e){return e.replace(s,function(e,t){return t?t.toUpperCase():""})});function l(t,n){if(t===n)return!0;var e=c(t),r=c(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return l(e,n[t])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return l(t[e],n[e])})}catch(e){return!1}}var d=/[!'()*]/g,p=function(e){return"%"+e.charCodeAt(0).toString(16)},h=/%2C/g,v=function(e){return encodeURIComponent(e).replace(d,p).replace(h,",")},m=decodeURIComponent;function g(e){var i={};return(e=e.trim().replace(/^(\?|#|&)/,""))&&e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),n=m(t.shift()),r=0<t.length?m(t.join("=")):null;void 0===i[n]?i[n]=r:Array.isArray(i[n])?i[n].push(r):i[n]=[i[n],r]}),i}function w(r,i){void 0===i&&(i=v);var e=r?Object.keys(r).map(function(t){var e=r[t];if(void 0===e)return"";if(null===e)return i(t);if(Array.isArray(e)){var n=[];return e.forEach(function(e){void 0!==e&&(null===e?n.push(i(t)):n.push(i(t)+"="+i(e)))}),n.join("&")}return i(t)+"="+i(e)}).filter(function(e){return 0<e.length}).join("&"):null;return e?"?"+e:""}var y=0,_={};function k(e,t){var n=_[e]||{};delete _[e];var r=t.errMsg||"";new RegExp("\\:\\s*fail").test(r)?n.fail&&n.fail(t):n.success&&n.success(t),n.complete&&n.complete(t)}var S={warp:function(i){return function(e){void 0===e&&(e={});var t=String(y++);_[t]={success:e.success,fail:e.fail,complete:e.complete};var n=Object.assign({},e),r=i.bind(this)(n,t);r&&k(t,r)}},invoke:k};function I(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}function A(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var x=["invoke","success","fail","complete","returnValue"],C={},T={};function $(i,o){Object.keys(o).forEach(function(e){var t,n,r;-1!==x.indexOf(e)&&O(o[e])&&(i[e]=(t=i[e],n=o[e],(r=n?t?t.concat(n):Array.isArray(n)?n:[n]:t)?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(r):r))})}function P(i,o){i&&o&&Object.keys(o).forEach(function(e){var t,n,r;-1!==x.indexOf(e)&&O(o[e])&&(t=i[e],n=o[e],-1!==(r=t.indexOf(n))&&t.splice(r,1))})}function M(t){return function(e){return t(e)||e}}function j(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function B(e,t){for(var n=!1,r=0;r<e.length;r++){var i=e[r];if(n)n=Promise.resolve(M(i));else{var o=i(t);if(j(o)&&(n=Promise.resolve(o)),!1===o)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function D(r,e){return void 0===e&&(e={}),["success","fail","complete"].forEach(function(t){if(Array.isArray(r[t])){var n=e[t];e[t]=function(e){B(r[t],e).then(function(e){return O(n)&&n(e)||e})}}}),e}function N(e,t){var n=[];Array.isArray(C.returnValue)&&n.push.apply(n,C.returnValue);var r=T[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,r.returnValue),n.forEach(function(e){t=e(t)||t}),t}function L(e,t,n){for(var r=[],i=arguments.length-3;0<i--;)r[i]=arguments[i+3];var o=function(e){var t=Object.create(null);Object.keys(C).forEach(function(e){"returnValue"!==e&&(t[e]=C[e].slice())});var n=T[e];return n&&Object.keys(n).forEach(function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}(e);return o&&Object.keys(o).length?Array.isArray(o.invoke)?B(o.invoke,n).then(function(e){return t.apply(void 0,[D(o,e)].concat(r))}):t.apply(void 0,[D(o,n)].concat(r)):t.apply(void 0,[n].concat(r))}var R={returnValue:function(e){return j(e)?e.then(function(e){return e[1]}).catch(function(e){return e[0]}):e}},F=/^\$|Window$|WindowStyle$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/,z=/^create|Manager$/,V=["createBLEConnection"],U=["request","downloadFile","uploadFile","connectSocket"],q=["createBLEConnection"],W=/^on|^off/;function H(e){return F.test(e)&&-1===q.indexOf(e)}function G(e){return W.test(e)&&"onPush"!==e}function X(e){return t=e,!(z.test(t)&&-1===V.indexOf(t)||H(e)||G(e));var t}Promise.prototype.finally||(Promise.prototype.finally=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})})});var Y=[{name:"base64",type:String,required:!0}],J=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}],K=Object.freeze({__proto__:null,base64ToArrayBuffer:Y,arrayBufferToBase64:J}),Z=[{name:"schema",type:String,required:!0}],Q=Object.freeze({__proto__:null,canIUse:Z}),ee=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}],te=ee,ne=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],re=[{name:"event",type:String,required:!0}],ie=Object.freeze({__proto__:null,$on:ee,$once:te,$off:ne,$emit:re}),oe=[{name:"method",type:[String,Object],required:!0}],ae=oe,se=Object.freeze({__proto__:null,addInterceptor:oe,removeInterceptor:ae}),ce=[{name:"upx",type:[Number,String],required:!0}],ue=Object.freeze({__proto__:null,upx2px:ce});function le(n){return function(e,t){e&&(t[n]=Math.round(e))}}var de={canvasId:{type:String,required:!0},x:{type:Number,required:!0,validator:le("x")},y:{type:Number,required:!0,validator:le("y")},width:{type:Number,required:!0,validator:le("width")},height:{type:Number,required:!0,validator:le("height")}},fe={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0,validator:le("x")},y:{type:Number,required:!0,validator:le("y")},width:{type:Number,required:!0,validator:le("width")},height:{type:Number,validator:le("height")}},pe={PNG:"png",JPG:"jpg",JPEG:"jpg"},he={x:{type:Number,default:0,validator:le("x")},y:{type:Number,default:0,validator:le("y")},width:{type:Number,validator:le("width")},height:{type:Number,validator:le("height")},destWidth:{type:Number,validator:le("destWidth")},destHeight:{type:Number,validator:le("destHeight")},canvasId:{type:String,required:!0},fileType:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.fileType=e in pe?pe[e]:pe.PNG}},quality:{type:Number,validator:function(e,t){t.quality=0<e&&e<1?e:1}}},ve={canvasId:{type:String,required:!0},actions:{type:Array,required:!0},reserve:{type:Boolean,default:!1}},ge=Object.freeze({__proto__:null,canvasGetImageData:de,canvasPutImageData:fe,canvasToTempFilePath:he,drawCanvas:ve}),me=[{name:"id",type:String,required:!0}],ye=me,_e=me,be=me,we=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}],ke=Object.freeze({__proto__:null,createAudioContext:ye,createVideoContext:_e,createMapContext:be,createCanvasContext:we}),Se={phoneNumber:{type:String,required:!0,validator:function(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}},xe=Object.freeze({__proto__:null,makePhoneCall:Se}),Ce={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean}},Te=Object.freeze({__proto__:null,scanCode:Ce}),Oe=function(){this._caches=Object.create(null)};Oe.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,r="";for(;n<e.length;){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r});var o=r="";for(i=e[n++];void 0!==i&&"}"!==i;)o+=i,i=e[n++];var a="}"===i,s=Ee.test(o)?"list":a&&Ie.test(o)?"named":"unknown";t.push({value:o,type:s})}else"%"===i?"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,i=Array.isArray(t)?"list":(o=t,null!==o&&"object"==typeof o?"named":"unknown");var o;if("unknown"===i)return n;for(;r<e.length;){var a=e[r];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(t[parseInt(a.value,10)]);break;case"named":"named"===i&&n.push(t[a.value])}r++}return n}(n,t)};var Ee=/^(?:\d)+/,Ie=/^(?:\w)+/;var Ae=Object.prototype.hasOwnProperty,$e=new Oe;function Pe(e,t){if(e){if(t[e=e.trim().replace(/_/g,"-")])return e;if(0===(e=e.toLowerCase()).indexOf("zh"))return-1!==e.indexOf("-hans")?"zh-Hans":-1!==e.indexOf("-hant")?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find(function(e){return-1!==n.indexOf(e)})?"zh-Hant":"zh-Hans");var n,r,i=(r=e,["en","fr","es"].find(function(e){return 0===r.indexOf(e)}));return i||void 0}}var Me=function(e){var t=e.locale,n=e.fallbackLocale,r=e.messages,i=e.watcher,o=e.formater;this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=o||$e,this.messages=r,this.setLocale(t),i&&this.watchLocale(i)};Me.prototype.setLocale=function(e){var t=this,n=this.locale;this.locale=Pe(e,this.messages)||this.fallbackLocale,this.message=this.messages[this.locale],this.watchers.forEach(function(e){e(t.locale,n)})},Me.prototype.getLocale=function(){return this.locale},Me.prototype.watchLocale=function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}},Me.prototype.mergeLocaleMessage=function(e,t){this.messages[e]?Object.assign(this.messages[e],t):this.messages[e]=t},Me.prototype.t=function(e,t,n){var r,i,o=this.message;return"string"==typeof t?(t=Pe(t,this.messages))&&(o=this.messages[t]):n=t,r=o,i=e,Ae.call(r,i)?this.formater.interpolate(o[e],n).join(""):(console.warn("Cannot translate the value of keypath "+e+". Use the value of keypath as default."),e)};var je=function(e,t,i){void 0===t&&(t="en");var a=new Me({locale:i||t,fallbackLocale:t,messages:e}),s=function(e,t){if("function"!=typeof bh)s=function(e,t){return a.t(e,t)};else{var o=bh().$vm;o.$t&&o.$i18n?(r=a,(n=o).$i18n&&n.$i18n.vm.$watch("locale",function(e){r.setLocale(e)},{immediate:!0}),s=function(e,t){var n=o.$i18n,r=n.silentTranslationWarn;n.silentTranslationWarn=!0;var i=o.$t(e,t);return n.silentTranslationWarn=r,i!==e?i:a.t(e,n.locale,t)}):(i||a.setLocale("undefined"!=typeof navigator?navigator.userLanguage||navigator.language:void 0!==dh?dh.os.language:_h.getSystemInfoSync().language),s=function(e,t){return a.t(e,t)})}var n,r;return s(e,t)};return{t:function(e,t){return s(e,t)},getLocale:function(){return a.getLocale()},setLocale:function(e){return a.setLocale(e)},mixin:{beforeCreate:function(){var e=this,t=a.watchLocale(function(){e.$forceUpdate()});this.$once("hook:beforeDestroy",function(){t()})},methods:{$$t:function(e,t){return s(e,t)}}}}}({en:{"uni.app.quit":"Press back button again to exit","uni.async.error":"The connection timed out, click the screen to try again.","uni.showActionSheet.cancel":"Cancel","uni.showToast.unpaired":"Please note showToast must be paired with hideToast","uni.showLoading.unpaired":"Please note showLoading must be paired with hideLoading","uni.showModal.cancel":"Cancel","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancel","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Camera","uni.chooseVideo.cancel":"Cancel","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Camera","uni.previewImage.cancel":"Cancel","uni.previewImage.button.save":"Save Image","uni.previewImage.save.success":"Saved successfully","uni.previewImage.save.fail":"Save failed","uni.setClipboardData.success":"Content copied","uni.scanCode.title":"Scan code","uni.scanCode.album":"Album","uni.scanCode.fail":"Recognition failure","uni.scanCode.flash.on":"Tap to turn light on","uni.scanCode.flash.off":"Tap to turn light off","uni.startSoterAuthentication.authContent":"Fingerprint recognition","uni.picker.done":"Done","uni.picker.cancel":"Cancel","uni.video.danmu":"Danmu","uni.video.volume":"Volume","uni.button.feedback.title":"feedback","uni.button.feedback.send":"send"},es:{"uni.app.quit":"Pulse otra vez para salir","uni.async.error":"Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo.","uni.showActionSheet.cancel":"Cancelar","uni.showToast.unpaired":"Tenga en cuenta que showToast debe estar emparejado con hideToast","uni.showLoading.unpaired":"Tenga en cuenta que showLoading debe estar emparejado con hideLoading","uni.showModal.cancel":"Cancelar","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancelar","uni.chooseImage.sourceType.album":"Álbum","uni.chooseImage.sourceType.camera":"Cámara","uni.chooseVideo.cancel":"Cancelar","uni.chooseVideo.sourceType.album":"Álbum","uni.chooseVideo.sourceType.camera":"Cámara","uni.previewImage.cancel":"Cancelar","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Guardado exitosamente","uni.previewImage.save.fail":"Error al guardar","uni.setClipboardData.success":"Contenido copiado","uni.scanCode.title":"Código de escaneo","uni.scanCode.album":"Álbum","uni.scanCode.fail":"Échec de la reconnaissance","uni.scanCode.flash.on":"Toque para encender la luz","uni.scanCode.flash.off":"Toque para apagar la luz","uni.startSoterAuthentication.authContent":"Reconocimiento de huellas dactilares","uni.picker.done":"OK","uni.picker.cancel":"Cancelar","uni.video.danmu":"Danmu","uni.video.volume":"Volumen","uni.button.feedback.title":"realimentación","uni.button.feedback.send":"enviar"},fr:{"uni.app.quit":"Appuyez à nouveau pour quitter l'application","uni.async.error":"La connexion a expiré, cliquez sur l'écran pour réessayer.","uni.showActionSheet.cancel":"Annuler","uni.showToast.unpaired":"Veuillez noter que showToast doit être associé à hideToast","uni.showLoading.unpaired":"Veuillez noter que showLoading doit être associé à hideLoading","uni.showModal.cancel":"Annuler","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Annuler","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Caméra","uni.chooseVideo.cancel":"Annuler","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Caméra","uni.previewImage.cancel":"Annuler","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Enregistré avec succès","uni.previewImage.save.fail":"Échec de la sauvegarde","uni.setClipboardData.success":"Contenu copié","uni.scanCode.title":"Code d’analyse","uni.scanCode.album":"Album","uni.scanCode.fail":"Fallo de reconocimiento","uni.scanCode.flash.on":"Appuyez pour activer l'éclairage","uni.scanCode.flash.off":"Appuyez pour désactiver l'éclairage","uni.startSoterAuthentication.authContent":"Reconnaissance de l'empreinte digitale","uni.picker.done":"OK","uni.picker.cancel":"Annuler","uni.video.danmu":"Danmu","uni.video.volume":"Le Volume","uni.button.feedback.title":"retour d'information","uni.button.feedback.send":"envoyer"},"zh-Hans":{"uni.app.quit":"再按一次退出应用","uni.async.error":"连接服务器超时,点击屏幕重试","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"请注意 showToast 与 hideToast 必须配对使用","uni.showLoading.unpaired":"请注意 showLoading 与 hideLoading 必须配对使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"确定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"从相册选择","uni.chooseImage.sourceType.camera":"拍摄","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"从相册选择","uni.chooseVideo.sourceType.camera":"拍摄","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存图像","uni.previewImage.save.success":"保存图像到相册成功","uni.previewImage.save.fail":"保存图像到相册失败","uni.setClipboardData.success":"内容已复制","uni.scanCode.title":"扫码","uni.scanCode.album":"相册","uni.scanCode.fail":"识别失败","uni.scanCode.flash.on":"轻触照亮","uni.scanCode.flash.off":"轻触关闭","uni.startSoterAuthentication.authContent":"指纹识别中...","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"弹幕","uni.video.volume":"音量","uni.button.feedback.title":"问题反馈","uni.button.feedback.send":"发送"},"zh-Hant":{"uni.app.quit":"再按一次退出應用","uni.async.error":"連接服務器超時,點擊屏幕重試","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"請注意 showToast 與 hideToast 必須配對使用","uni.showLoading.unpaired":"請注意 showLoading 與 hideLoading 必須配對使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"確定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"從相冊選擇","uni.chooseImage.sourceType.camera":"拍攝","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"從相冊選擇","uni.chooseVideo.sourceType.camera":"拍攝","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存圖像","uni.previewImage.save.success":"保存圖像到相冊成功","uni.previewImage.save.fail":"保存圖像到相冊失敗","uni.setClipboardData.success":"內容已復制","uni.scanCode.title":"掃碼","uni.scanCode.album":"相冊","uni.scanCode.fail":"識別失敗","uni.scanCode.flash.on":"輕觸照亮","uni.scanCode.flash.off":"輕觸關閉","uni.startSoterAuthentication.authContent":"指紋識別中...","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"彈幕","uni.video.volume":"音量","uni.button.feedback.title":"問題反饋","uni.button.feedback.send":"發送"}},"en"),Be=je.t,De=je.getLocale,Ne={beforeSuccess:function(){Be("uni.setClipboardData.success")&&_h.showToast({title:Be("uni.setClipboardData.success"),icon:"success",mask:!1,style:{width:void 0}})}},Le=Object.freeze({__proto__:null,setClipboardData:Ne});function Re(e,t){if(t){if(0===t.indexOf("/"))return t}else{if(0===(t=e).indexOf("/"))return t;var n=wh();e=n.length?n[n.length-1].$page.route:""}if(0===t.indexOf("./"))return Re(e,t.substr(2));for(var r=t.split("/"),i=r.length,o=0;o<i&&".."===r[o];o++);r.splice(0,o),t=r.join("/");var a=0<e.length?e.split("/"):[];return a.splice(a.length-o-1,o+1),"/"+a.concat(r).join("/")}var Fe,ze=/^([a-z-]+:)?\/\//i,Ve=/^data:.*,.*/;function Ue(e){return dh.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,"")}function qe(e){return Fe||(Fe="file://"+Ue("_www")+"/"),Fe+e}function We(e){if(0===e.indexOf("/"))return 0===e.indexOf("//")?"https:"+e:e.startsWith("/storage/")||e.includes("/Containers/Data/Application/")?"file://"+e:qe(e.substr(1));if(ze.test(e)||Ve.test(e)||0===e.indexOf("blob:"))return e;if(0===e.indexOf("_www")||0===e.indexOf("_do"))return"file://"+Ue(e);var t=wh();return t.length?qe(Re(t[t.length-1].$page.route,e).substr(1)):e}var He={tempFilePath:{type:String,required:!0,validator:function(e,t){t.tempFilePath=We(e)}}},Ge=["md5","sha1"],Xe={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=We(e)}},digestAlgorithm:{type:String,validator:function(e,t){t.digestAlgorithm=Ge.includes(e)?e:Ge[0]},default:Ge[0]}},Ye={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=We(e)}}},Je={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=We(e)}}},Ke=Object.freeze({__proto__:null,saveFile:He,getFileInfo:Xe,getSavedFileInfo:Ye,removeSavedFile:Je}),Ze={filePath:{type:String,required:!0},fileType:{type:String}},Qe=Object.freeze({__proto__:null,openDocument:Ze}),et={keyword:{type:String}},tt=Object.freeze({__proto__:null,chooseLocation:et}),nt={WGS84:"WGS84",GCJ02:"GCJ02"},rt={type:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.type=Object.values(nt).indexOf(e)<0?nt.WGS84:e},default:nt.WGS84},altitude:{type:Boolean,default:!1}},it=Object.freeze({__proto__:null,getLocation:rt}),ot={latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},scale:{type:Number,validator:function(e,t){e=Math.floor(e),t.scale=5<=e&&e<=18?e:18},default:18},name:{type:String},address:{type:String}},at=Object.freeze({__proto__:null,openLocation:ot}),st=["all","image","video"],ct=["album","camera"],ut={count:{type:Number,required:!1,default:100,validator:function(e,t){e<=0&&(t.count=100)}},sourceType:{type:Array,required:!1,default:ct,validator:function(e,t){e=e.filter(function(e){return ct.includes(e)}),t.sourceType=e.length?e:ct}},type:{type:String,required:!1,default:"all",validator:function(e,t){st.includes(e)||(t.type=st[0]),t.type="all"===t.type?t.type="*":t.type}},extension:{type:Array,default:[""],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}},lt=Object.freeze({__proto__:null,chooseFile:ut}),dt=["original","compressed"],ft=["album","camera"],pt={count:{type:Number,required:!1,default:9,validator:function(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:dt,validator:function(e,t){e=(e="string"==typeof e?[e]:e).filter(function(e){return dt.includes(e)}),t.sizeType=e.length?e:dt}},sourceType:{type:Array,required:!1,default:ft,validator:function(e,t){e=e.filter(function(e){return ft.includes(e)}),t.sourceType=e.length?e:ft}},extension:{type:Array,default:["*"],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}},ht=Object.freeze({__proto__:null,chooseImage:pt}),vt=["album","camera"],gt={sourceType:{type:Array,required:!1,default:vt,validator:function(e,t){e=e.filter(function(e){return vt.includes(e)}),t.sourceType=e.length?e:vt}},compressed:{type:Boolean,default:!0},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}},mt=Object.freeze({__proto__:null,chooseVideo:gt}),yt={src:{type:String,required:!0,validator:function(e,t){t.src=We(e)}}},_t=Object.freeze({__proto__:null,compressImage:yt}),bt={src:{type:String,required:!0,validator:function(e,t){t.src=We(e)}},quality:{type:String},bitrate:{type:Number},fps:{type:Number},resolution:{type:Number}},wt=Object.freeze({__proto__:null,compressVideo:bt}),kt={src:{type:String,required:!0,validator:function(e,t){t.src=We(e)}}},St=Object.freeze({__proto__:null,getImageInfo:kt}),xt={src:{type:String,required:!0,validator:function(e,t){t.src=We(e)}}},Ct=Object.freeze({__proto__:null,getVideoInfo:xt}),Tt={urls:{type:Array,required:!0,validator:function(e,t){var n;if(t.urls=e.map(function(e){if("string"==typeof e)return We(e);n=!0}),n)return"url is not string"}},current:{type:[String,Number],validator:function(e,t){"number"==typeof e?t.current=0<e&&e<t.urls.length?e:0:"string"==typeof e&&e&&(t.current=We(e))},default:0}},Ot=Object.freeze({__proto__:null,previewImage:Tt}),Et={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=We(e)}}},It=Object.freeze({__proto__:null,saveImageToPhotosAlbum:Et}),At={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}}},$t=Object.freeze({__proto__:null,downloadFile:At}),Pt={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},Mt="json",jt={TEXT:"text",ARRAYBUFFER:"arraybuffer"},Bt=encodeURIComponent;var Dt,Nt={method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(Pt).indexOf(e)<0?Pt.GET:e}},data:{type:[Object,String,Array,ArrayBuffer],validator:function(e,t){t.data=e||""}},url:{type:String,required:!0,validator:function(e,t){t.method===Pt.GET&&E(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){var n=e.split("#"),r=n[1]||"",i=(n=n[0].split("?"))[1]||"";e=n[0];var o=i.split("&").filter(function(e){return e});for(var a in i={},o.forEach(function(e){e=e.split("="),i[e[0]]=e[1]}),t)if(b(t,a)){var s=t[a];null==s?s="":E(s)&&(s=JSON.stringify(s)),i[Bt(a)]=Bt(s)}return e+((i=Object.keys(i).map(function(e){return e+"="+i[e]}).join("&"))?"?"+i:"")+(r?"#"+r:"")}(e,t.data))}},header:{type:Object,validator:function(e,t){var n=t.header=e||{};t.method!==Pt.GET&&(Object.keys(n).find(function(e){return"content-type"===e.toLowerCase()})||(n["Content-Type"]="application/json"))}},dataType:{type:String,validator:function(e,t){t.dataType=(e||Mt).toLowerCase()}},responseType:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.responseType=Object.values(jt).indexOf(e)<0?jt.TEXT:e}},withCredentials:{type:Boolean},timeout:{type:Number}},Lt=Object.freeze({__proto__:null,request:Nt}),Rt={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},Ft={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}},method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(Rt).indexOf(e)<0?Rt.GET:e}},protocols:{type:[Array,String],validator:function(e,t){"string"==typeof e&&(e=[e]),t.protocols=(e||[]).filter(function(e){return"string"==typeof e})}}},zt={data:{type:[String,ArrayBuffer]}},Vt={code:{type:Number},reason:{type:String}},Ut=Object.freeze({__proto__:null,connectSocket:Ft,sendSocketMessage:zt,closeSocket:Vt}),qt={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator:function(e,t){e&&(t.filePath=We(e))}},name:{type:String},header:{type:Object,validator:function(e,t){t.header=e||{}}},formData:{type:Object,validator:function(e,t){t.formData=e||{}}}},Wt=Object.freeze({__proto__:null,uploadFile:qt}),Ht={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},Gt={service:{type:String,required:!0,validator:function(e,t){if((e=(e||"").toUpperCase())&&Object.values(Ht).indexOf(e)<0)return"service error"}}},Xt=Object.freeze({__proto__:null,getProvider:Gt}),Yt={root:{type:String,required:!0,validator:function(t,e){var n=mh.subPackages;return Array.isArray(n)&&0!==n.length?n.find(function(e){return e.root===t})?void 0:"root `"+t+"` is not found":"no subPackages"}}},Jt=Object.freeze({__proto__:null,loadSubPackage:Yt}),Kt={UNIVERIFY:"univerify"},Zt={provider:{type:String,required:!0,default:Kt.UNIVERIFY,validator:function(e,t){if(Object.values(Kt).indexOf(e)<0)return"provider error"}}},Qt=Object.freeze({__proto__:null,preLogin:Zt});function en(a){return function(e,t){var r=(e=Re(e)).split("?")[0],n=yh.find(function(e){var t=e.path,n=e.alias;return t===r||n===r});if(!n)return"page `"+e+"` is not found";if("navigateTo"===a||"redirectTo"===a){if(n.meta.isTabBar)return"can not "+a+" a tabbar page"}else if("switchTab"===a&&!n.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==a&&"preloadPage"!==a||!n.meta.isTabBar||"appLaunch"===t.openType||(e=r),n.meta.isEntry&&(e=e.replace(n.alias,"/")),t.url=function(e){if("string"!=typeof e)return e;var t=e.indexOf("?");if(-1===t)return e;var n=e.substr(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.substr(0,t);var i=[];return n.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),r=0<t.length?t.join("="):"";i.push(n+"="+encodeURIComponent(r))}),i.length?e+"?"+i.join("&"):e}(e),"unPreloadPage"!==a)if("preloadPage"!==a){if(Dt===e&&"appLaunch"!==t.openType)return Dt+" locked";mh.ready&&!1!==mh.enableNavigatorLock&&(Dt=e)}else{if(!n.meta.isNVue)return"can not preload vue page";if(n.meta.isTabBar){var i=wh(!0),o=(n.alias||n.path).substr(1);if(i.find(function(e){return e.route===o}))return"tabBar page `"+o+"` already exists"}}}}function tn(e,t){return void 0===t&&(t={}),Object.assign({url:{type:String,required:!0,validator:en(e)},beforeAll:function(){Dt=""}},t)}function nn(t){return{animationType:{type:String,validator:function(e){if(e&&-1===t.indexOf(e))return"`"+e+"` is not supported for `animationType` (supported values are: `"+t.join("`|`")+"`)"}},animationDuration:{type:Number}}}var rn,on,an=tn("redirectTo"),sn=tn("reLaunch"),cn=tn("navigateTo",nn(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),un=tn("switchTab"),ln=Object.assign({delta:{type:Number,validator:function(e,t){e=parseInt(e)||1,t.delta=Math.min(wh().length-1,e)}}},nn(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),dn={url:{type:String,required:!0,validator:en("preloadPage")}},fn={url:{type:String,required:!0,validator:en("unPreloadPage")}},pn=Object.freeze({__proto__:null,redirectTo:an,reLaunch:sn,navigateTo:cn,switchTab:un,navigateBack:ln,preloadPage:dn,unPreloadPage:fn}),hn={key:{type:String,required:!0}},vn=[{name:"key",type:String,required:!0}],gn={key:{type:String,required:!0},data:{required:!0}},mn=[{name:"key",type:String,required:!0},{name:"data",required:!0}],yn=hn,_n=vn,bn=Object.freeze({__proto__:null,getStorage:hn,getStorageSync:vn,setStorage:gn,setStorageSync:mn,removeStorage:yn,removeStorageSync:_n}),wn={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}},kn=Object.freeze({__proto__:null,loadFontFace:wn}),Sn=["#ffffff","#000000"],xn={frontColor:{type:String,required:!0,validator:function(e,t){if(-1===Sn.indexOf(e))return'invalid frontColor "'+e+'"'}},backgroundColor:{type:String,required:!0},animation:{type:Object,default:function(){return{duration:0,timingFunc:"linear"}},validator:function(e,t){void 0===e&&(e={}),t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},Cn={title:{type:String,required:!0}},Tn=Object.freeze({__proto__:null,setNavigationBarColor:xn,setNavigationBarTitle:Cn}),On={scrollTop:{type:Number,required:!0},duration:{type:Number,default:300,validator:function(e,t){t.duration=Math.max(0,e)}}},En=Object.freeze({__proto__:null,pageScrollTo:On}),In={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:function(){return Be("uni.showModal.cancel")}},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:function(){return Be("uni.showModal.confirm")}},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},An={title:{type:String,default:""},icon:{default:"success",validator:function(e,t){-1===["success","loading","none"].indexOf(e)&&(t.icon="success")}},image:{type:String,default:"",validator:function(e,t){e&&(t.image=We(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},$n={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},Pn={itemList:{type:Array,required:!0,validator:function(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}},Mn=Object.freeze({__proto__:null,showModal:In,showToast:An,showLoading:$n,showActionSheet:Pn}),jn={type:Number,required:!0},Bn={index:jn,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},Dn={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator:function(e,t){e&&!/^(linear|radial)-gradient\(.+?\);?$/.test(e)&&(t.backgroundImage=We(e))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator:function(e,t){e&&(t.borderStyle="black"===e?"black":"white")}}},Nn={animation:{type:Boolean,default:!1}},Ln={animation:{type:Boolean,default:!1}},Rn={index:jn},Fn={index:jn},zn={index:jn},Vn={index:jn,text:{type:String,required:!0,validator:function(e,t){var n;void 0===(n=e)&&(n=""),4<=(""+n).replace(/[^\x00-\xff]/g,"**").length&&(t.text="...")}}},Un=Object.freeze({__proto__:null,setTabBarItem:Bn,setTabBarStyle:Dn,hideTabBar:Nn,showTabBar:Ln,hideTabBarRedDot:Rn,showTabBarRedDot:Fn,removeTabBarBadge:zn,setTabBarBadge:Vn}),qn=Object.create(null),Wn=(rn={"./base/base64.js":K,"./base/can-i-use.js":Q,"./base/event-bus.js":ie,"./base/interceptor.js":se,"./base/upx2px.js":ue,"./context/canvas.js":ge,"./context/context.js":ke,"./device/make-phone-call.js":xe,"./device/scan-code.js":Te,"./device/set-clipboard-data.js":Le,"./file/file.js":Ke,"./file/open-document.js":Qe,"./location/choose-location.js":tt,"./location/get-location.js":it,"./location/open-location.js":at,"./media/choose-file.js":lt,"./media/choose-image.js":ht,"./media/choose-video.js":mt,"./media/compress-image.js":_t,"./media/compress-video.js":wt,"./media/get-image-info.js":St,"./media/get-video-info.js":Ct,"./media/preview-image.js":Ot,"./media/save-image-to-photos-album.js":It,"./network/download-file.js":$t,"./network/request.js":Lt,"./network/socket.js":Ut,"./network/upload-file.js":Wt,"./plugin/get-provider.js":Xt,"./plugin/load-sub-package.js":Jt,"./plugin/pre-login.js":Qt,"./route/route.js":pn,"./storage/storage.js":bn,"./ui/load-font-face.js":kn,"./ui/navigation-bar.js":Tn,"./ui/page-scroll-to.js":En,"./ui/popup.js":Mn,"./ui/tab-bar.js":Un},(on=function(e){return rn[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}).keys=function(){return Object.keys(rn)},on);function Hn(e,t,n){var r=t[e],i=!b(n,e),o=n[e];if(-1<function(e,t){if(!Array.isArray(t))return Jn(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Jn(t[n],e))return n;return-1}(Boolean,r.type)&&i&&!b(r,"default")&&(o=!1),void 0===o&&b(r,"default")){var a=r.default;o=O(a)?a():a,n[e]=o}return function(e,t,n,r,i){if(e.required&&r)return"Missing required parameter `"+t+"`";if(null==n&&!e.required){var o=e.validator;return o?o(n,i):void 0}var a=e.type,s=!a||!0===a,c=[];if(a){Array.isArray(a)||(a=[a]);for(var u=0;u<a.length&&!s;u++){var l=Xn(n,a[u]);c.push(l.expectedType||""),s=l.valid}}if(!s)return function(e,t,n){var r="parameter `"+e+"`. Expected "+n.join(", "),i=n[0],o=f(t),a=Kn(t,i),s=Kn(t,o);1===n.length&&Qn(i)&&!function(){var e=[],t=arguments.length;for(;t--;)e[t]=arguments[t];return e.some(function(e){return"boolean"===e.toLowerCase()})}(i,o)&&(r+=" with value "+a);r+=", got "+o+" ",Qn(o)&&(r+="with value "+s+".");return r}(t,n,c);var d=e.validator;if(d)return d(n,i)}(r,e,o,i,n)}Wn.keys().forEach(function(e){Object.assign(qn,Wn(e))});var Gn=/^(String|Number|Boolean|Function|Symbol)$/;function Xn(e,t){var n,r=Yn(t);if(Gn.test(r)){var i=typeof e;(n=i===r.toLowerCase())||"object"!==i||(n=e instanceof t)}else n=0<=e.byteLength||("Object"===r?E(e):"Array"===r?Array.isArray(e):e instanceof t||f(e)===Yn(t));return{valid:n,expectedType:r}}function Yn(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Jn(e,t){return Yn(e)===Yn(t)}function Kn(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}var Zn=["string","number","boolean"];function Qn(t){return Zn.some(function(e){return t.toLowerCase()===e})}function er(e,t,n){var r=t+":fail "+e;if(-1===n)throw new Error(r);return"number"==typeof n&&sr(n,{errMsg:r}),!1}var tr=[{name:"callback",type:Function,required:!0}],nr=["beforeValidate","beforeAll","beforeSuccess"];function rr(e,n,t){var r=qn[e];if(!r&&G(e)&&(r=tr),r){if(Array.isArray(r)&&Array.isArray(n)){var i=Object.create(null),o=Object.create(null),a=n.length;r.forEach(function(e,t){i[e.name]=e,t<a&&(o[e.name]=n[t])}),r=i,n=o}if(O(r.beforeValidate)){var s=r.beforeValidate(n);if(s)return er(s,e,t)}for(var c=Object.keys(r),u=0;u<c.length;u++)if(-1===nr.indexOf(c[u])){var l=Hn(c[u],r,n);if(l)return er(l,e,t)}}return!0}var ir=1,or={};function ar(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=function(i,e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!E(e))return{params:e};e=Object.assign({},e);var n={};for(var r in e){var o=e[r];O(o)&&(n[r]=A(o),delete e[r])}var a=n.success,s=n.fail,c=n.cancel,u=n.complete,l=O(a),d=O(s),f=O(c),p=O(u);if(!(l||d||f||p))return{params:e};var h={};for(var v in t){var g=t[v];O(g)&&(h[v]=I(g))}var m=h.beforeSuccess,y=h.afterSuccess,_=h.beforeFail,b=h.afterFail,w=h.beforeCancel,k=h.afterCancel,S=h.beforeAll,x=h.afterAll,C=ir++,T="api."+i+"."+C;return or[C]={name:T,callback:function(e){if(e.errMsg=e.errMsg||i+":ok",-1!==e.errMsg.indexOf(":ok"))e.errMsg=i+":ok";else if(-1!==e.errMsg.indexOf(":cancel"))e.errMsg=i+":cancel";else if(-1!==e.errMsg.indexOf(":fail")){var t="",n=e.errMsg.indexOf(" ");-1<n&&(t=e.errMsg.substr(n)),e.errMsg=i+":fail"+t}O(S)&&S(e);var r=e.errMsg;0===r.indexOf(i+":ok")?(O(m)&&m(e),l&&a(e),O(y)&&y(e)):0===r.indexOf(i+":cancel")?(e.errMsg=e.errMsg.replace(i+":cancel",i+":fail cancel"),d&&s(e),O(w)&&w(e),f&&c(e),O(k)&&k(e)):0===r.indexOf(i+":fail")&&(O(_)&&_(e),d&&s(e),O(b)&&b(e)),p&&u(e),O(x)&&x(e)}},{params:e,callbackId:C}}(e,t,n),i=r.params,o=r.callbackId;return E(i)&&!rr(e,i,o)?{params:i,callbackId:!1}:{params:i,callbackId:o}}function sr(e,t,n){if("number"==typeof e){var r=or[e];if(r)return r.keepAlive||delete or[e],r.callback(t,n)}return t}function cr(t){return function(e){console.error("API `"+t+"` is not yet implemented")}}function ur(c,u,l){return void 0===l&&(l={}),O(u)?(e=l,(t=qn[c])&&(O(t.beforeAll)&&(e.beforeAll=t.beforeAll),O(t.beforeSuccess)&&(e.beforeSuccess=t.beforeSuccess)),function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];if(H(c)){if(rr(c,t,-1))return u.apply(null,t)}else if(G(c)){if(rr(c,t,-1))return u((c.startsWith("off")?function(e,t){for(var n in or){var r=or[n];if(r.name.startsWith("api."+e.replace(/^off/,"on"))&&r.callback===t)return delete or[n],Number(n)}return"fail"}:function(e,t){var n=ir++,r="api."+e+"."+n;return or[n]={name:r,keepAlive:!0,callback:t},n})(c,t[0]))}else{var r={};t.length&&(r=t[0]);var i,o=ar(c,r,l),a=o.params,s=o.callbackId;if(!1!==s)return(i=O(a)?u(s):u(a,s))&&(e=c,-1===U.indexOf(e))&&E(i=sr(s,i))&&(i.errMsg=i.errMsg||c+":ok"),i}}):u;var e,t}function lr(e,t){return e(t={exports:{}},t.exports),t.exports}var dr=lr(function(e,t){!function(){for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(256),e=0;e<o.length;e++)d[o.charCodeAt(e)]=e;t.encode=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=o[n[t]>>2],i+=o[(3&n[t])<<4|n[t+1]>>4],i+=o[(15&n[t+1])<<2|n[t+2]>>6],i+=o[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,n,r,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),l=new Uint8Array(u);for(t=0;t<s;t+=4)n=d[e.charCodeAt(t)],r=d[e.charCodeAt(t+1)],i=d[e.charCodeAt(t+2)],o=d[e.charCodeAt(t+3)],l[c++]=n<<2|r>>4,l[c++]=(15&r)<<4|i>>2,l[c++]=(3&i)<<6|63&o;return u}}()}),fr=dr.encode,pr=dr.decode;var hr=Object.freeze({__proto__:null,base64ToArrayBuffer:function(e){return pr(e)},arrayBufferToBase64:function(e){return fr(e)}}),vr={};var gr=Object.freeze({__proto__:null,canIUse:function(e){return!b(vr,e)||vr[e]}}),mr={promiseInterceptor:R},yr=Object.freeze({__proto__:null,interceptors:mr,addInterceptor:function(e,t){"string"==typeof e&&E(t)?$(T[e]||(T[e]={}),t):E(e)&&$(C,e)},removeInterceptor:function(e,t){"string"==typeof e?E(t)?P(T[e],t):delete T[e]:E(e)&&P(C,e)}}),_r=!1,br=0,wr=0;function kr(e,t){return e=Number(e),isNaN(e)?t:e}var Sr=Object.freeze({__proto__:null,upx2px:function(e,t){var n,r,i,o;if(0===br&&(n=_h.getSystemInfoSync(),r=n.platform,i=n.pixelRatio,o=n.windowWidth,br=o,wr=i,_r="ios"===r),0===(e=Number(e)))return 0;var a=mh.globalStyle||mh.window||{},s=kr(a.rpxCalcMaxDeviceWidth,960),c=kr(a.rpxCalcBaseDeviceWidth,375),u=kr(a.rpxCalcIncludeWidth,750),l=t||br,d=e/750*(l=e===u||l<=s?l:c);return d<0&&(d=-d),0===(d=Math.floor(d+1e-4))&&(d=1!==wr&&_r?.5:1),e<0?-d:d}});function xr(e,t,n,r){fh.publishHandler(t+"-audio-"+e,{audioId:e,type:n,data:r},t)}var Cr=function(e,t){this.id=e,this.pageId=t};Cr.prototype.setSrc=function(e){xr(this.id,this.pageId,"setSrc",{src:e})},Cr.prototype.play=function(){xr(this.id,this.pageId,"play")},Cr.prototype.pause=function(){xr(this.id,this.pageId,"pause")},Cr.prototype.seek=function(e){xr(this.id,this.pageId,"seek",{position:e})};var Tr=Object.freeze({__proto__:null,createAudioContext:function(e,t){if(t)return new Cr(e,t.$page.id);var n=bh();if(n.$route&&n.$route.params.__id__)return new Cr(e,n.$route.params.__id__);fh.emit("onError","createAudioContext:fail")}}),Or=new uh;function Er(e,t,n){return e[t].apply(e,n)}function Ir(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return Er(Or,"$on",[].concat(t))}function Ar(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return Er(Or,"$off",[].concat(t))}function $r(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return Er(Or,"$once",[].concat(t))}function Pr(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return Er(Or,"$emit",[].concat(t))}var Mr,jr=Object.freeze({__proto__:null,$on:Ir,$off:Ar,$once:$r,$emit:Pr});function Br(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return fh.invokeCallbackHandler.apply(fh,e)}function Dr(e){return _h.requireNativePlugin(e)}function Nr(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return fh.emit.apply(fh,["api."+e].concat(t))}var Lr=dh.navigator.setStatusBarStyle;function Rr(e){Lr(Mr=e)}function Fr(e){if(!e){var t=wh();if(!t.length)return;if(!(e=t[t.length-1].$page.meta.statusBarStyle)||e===Mr)return}e!==Mr&&(Mr=e,dh.navigator.setStatusBarStyle(e))}function zr(t){if(void 0===t&&(t=""),!mh.tabBar||!Array.isArray(mh.tabBar.list))return!1;try{if(!t){var e=wh();if(!e.length)return!1;var n=e[e.length-1];return!!n&&n.$page.meta.isTabBar}/^\//.test(t)||(t="/"+t);var r=yh.find(function(e){return e.path===t});return r&&r.meta.isTabBar}catch(e){}return!1}function Vr(e){return pr(e)}function Ur(e,t,n,r){var i=e(t);return i&&i.errMsg&&(i.errMsg=i.errMsg.replace(n,r)),i}function qr(e){return e?e.$getAppWebview():Wr()}function Wr(){try{var e=wh();if(e.length)return e[e.length-1].$getAppWebview()}catch(e){}}dh.navigator.setStatusBarStyle=Rr;var Hr=function(e,t){if(0===t.indexOf("./"))return Hr(e,t.substr(2));var n,r,i=t.split("/");for(n=0,r=i.length;n<r&&".."===i[n];n++);i.splice(0,n),t=i.join("/");var o=0<e.length?e.split("/"):[];return o.splice(o.length-n-1,n+1),o.concat(i).join("/")},Gr=function(e){return dh.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,"")};function Xr(e){if(0===e.indexOf("//"))return"https:"+e;if(/^([a-z-]+:)?\/\//i.test(e)||/^data:.*,.*/.test(e))return e;if(0===e.indexOf("_www")||0===e.indexOf("_doc")||0===e.indexOf("_documents")||0===e.indexOf("_downloads"))return"file://"+Gr(e);var t="file://"+Gr("_www");if(0===e.indexOf("/"))return e.startsWith("/storage/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(0===e.indexOf("../")||0===e.indexOf("./")){if("string"==typeof __id__)return t+Hr("/"+__id__,e);var n=wh();if(n.length)return t+Hr("/"+n[n.length-1].route,e)}return e}var Yr=3.141592653589793,Jr=6378245,Kr=.006693421622965943;var Zr=function(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Yr)+20*Math.sin(2*e*Yr))/3,n+=2*(20*Math.sin(t*Yr)+40*Math.sin(t/3*Yr))/3,n+=2*(160*Math.sin(t/12*Yr)+320*Math.sin(t*Yr/30))/3},Qr=function(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*Yr)+20*Math.sin(2*e*Yr))/3,n+=2*(20*Math.sin(e*Yr)+40*Math.sin(e/3*Yr))/3,n+=2*(150*Math.sin(e/12*Yr)+300*Math.sin(e/30*Yr))/3},ei=function(e,t){return e<72.004||137.8347<e||t<.8293||55.8271<t||!1};function ti(e,n){return function(t){dh[e][n](function(e){e&&(delete e.code,delete e.message),Br(t,e)})}}function ni(t,n){return function(e){e=e||{},Br(t,Object.assign({},e,{errMsg:n+":ok"}))}}function ri(a,s,c){return function(e){var t=(e=e||{}).code;void 0===t&&(t=0);var n=e.message,r={};for(var i in e)-1===["code","message"].indexOf(i)&&(r[i]=e[i]);var o=r;Br(a,Object.assign({},{errMsg:s+":fail "+(n||c||""),errCode:t,code:t},o))}}function ii(n,r,i,o){return function(e,t){"function"==typeof i&&(e=i(e)),dh[n][r](Object.assign(e,{success:function(e){void 0===e&&(e={}),delete e.code,delete e.message,"function"==typeof o&&(e=o(e)),Br(t,Object.assign({},e,{errMsg:r+":ok"}))},fail:ri(t,r)}))}}function oi(e){var t=e.split("/");return t[t.length-1]}var ai,si={},ci=["play","canplay","ended","stop","waiting","seeking","seeked","pause"],ui=function(e,t){return void 0===t&&(t={}),Nr("onAudioStateChange",Object.assign({state:e},t))};var li=null,di=250,fi=function(e,t){return void 0===t&&(t={}),Nr("onBackgroundAudioStateChange",Object.assign({state:e},t))},pi=["play","pause","ended","stop","canplay"];function hi(){ai||((ai=dh.audio.createPlayer({autoplay:!0,backgroundControl:!0})).src=ai.title=ai.epname=ai.singer=ai.coverImgUrl=ai.webUrl="",ai.startTime=0,pi.forEach(function(t){ai.addEventListener(t,function(){"play"===t?(ai.isStopped=!1,vi(),li=vh(function(){fi("timeUpdate",{})},di)):"stop"===t&&(ai.isStopped=!0),"pause"!==t&&"ended"!==t&&"stop"!==t||vi();var e="onMusic"+(t[0].toUpperCase()+t.substr(1));Nr(e,{dataUrl:ai.src,errMsg:e+":ok"}),fi(t,{dataUrl:ai.src})})}),ai.addEventListener("waiting",function(){vi(),fi("waiting",{dataUrl:ai.src})}),ai.addEventListener("error",function(e){vi(),Nr("onMusicError",{dataUrl:ai.src,errMsg:"Error:"+e.message}),fi("error",{dataUrl:ai.src,errMsg:e.message,errCode:e.code})}),ai.addEventListener("prev",function(){return Nr("onBackgroundAudioPrev")}),ai.addEventListener("next",function(){return Nr("onBackgroundAudioNext")}))}function vi(){null!==li&&gh(li)}function gi(n){hi();var r=["src","startTime","coverImgUrl","webUrl","singer","epname","title"],i={};Object.keys(n).forEach(function(e){if(0<=r.indexOf(e)){var t=n[e];e===r[0]&&t&&(t=Xr(t)),ai[e]=i[e]=t}}),ai.setStyles(i)}function mi(){return ai}function yi(e){var t=e.operationType,n=e.dataUrl,r=e.position,i=e.api;void 0===i&&(i="operateMusicPlayer");var o=e.title,a=e.coverImgUrl,s=mi();return 0<["resume","pause","stop"].indexOf(t)?s&&s[t]():"play"===t?(gi({src:n,startTime:r,title:o,coverImgUrl:a}),s.play()):"seek"===t&&s&&s.seekTo(r),{errMsg:i+":ok"}}var _i="success",bi="fail",wi=[_i,bi,"complete"];function ki(e,t,n,r){if(e){if(void 0===n)return e[t]();var i=Ci(n,r)[1];return Object.keys(i).length?e[t](Ti(t,i)):e[t]()}}function Si(e,t,n,r){if(e){var i=Ci(n,r),o=i[0],a=i[1];return Object.keys(a).length?e[t](o,Ti(t,a)):e[t](o)}}function xi(e,t){var n=function e(t,n){if(!t||!n)return;if(n.attr&&n.attr.id===t)return n;var r=n.children;if(!r)return;for(var i=0,o=r.length;i<o;i++){var a=e(t,r[i]);if(a)return a}}(e,t.$el);return n||console.error("Can not find `"+e+"`")}function Ci(n,e){void 0===n&&(n={});var r=Object.create(null),t=function(e){var t=n[e];O(t)&&(r[e]=t,delete n[e])};return wi.forEach(t),e&&e.forEach(t),[n,r]}function Ti(i,o){return function(e){var t=e.type;delete e.type;var n=o[t];if(t===_i?e.errMsg=i+":ok":t===bi&&(e.errMsg=i+":fail"+(e.msg?" "+e.msg:"")),delete e.code,delete e.msg,O(n)&&n(e),t===_i||t===bi){var r=o.complete;O(r)&&r(e)}}}var Oi={getCenterLocation:function(e,t){return ki(e,"getCenterLocation",t)},moveToLocation:function(e,t){return Si(e,"moveToLocation",t)},translateMarker:function(e,t){return Si(e,"translateMarker",t,["animationEnd"])},includePoints:function(e,t){return Si(e,"includePoints",t)},getRegion:function(e,t){return ki(e,"getRegion",t)},getScale:function(e,t){return ki(e,"getScale",t)},addCustomLayer:function(e,t){return Si(e,"addCustomLayer",t)},removeCustomLayer:function(e,t){return Si(e,"removeCustomLayer",t)},addGroundOverlay:function(e,t){return Si(e,"addGroundOverlay",t)},removeGroundOverlay:function(e,t){return Si(e,"removeGroundOverlay",t)},updateGroundOverlay:function(e,t){return Si(e,"updateGroundOverlay",t)},initMarkerCluster:function(e,t){return Si(e,"initMarkerCluster",t)},addMarkers:function(e,t){return Si(e,"addMarkers",t)},removeMarkers:function(e,t){return Si(e,"removeMarkers",t)},moveAlong:function(e,t){return Si(e,"moveAlong",t)},openMapApp:function(e,t){return Si(e,"openMapApp",t)}};var Ei={play:function(e){return ki(e,"play")},pause:function(e){return ki(e,"pause")},seek:function(e,t){return Si(e,"seek",t.position)},stop:function(e){return ki(e,"stop")},sendDanmu:function(e,t){return Si(e,"sendDanmu",t)},playbackRate:function(e,t){return Si(e,"playbackRate",t.rate)},requestFullScreen:function(e,t){return Si(e,"requestFullScreen",t)},exitFullScreen:function(e){return ki(e,"exitFullScreen")},showStatusBar:function(e){return ki(e,"showStatusBar")},hideStatusBar:function(e){return ki(e,"hideStatusBar")}};var Ii=function(e,t){this.id=e,this.ctx=t};Ii.prototype.start=function(e){return ki(this.ctx,"start",e)},Ii.prototype.stop=function(e){return ki(this.ctx,"stop",e)},Ii.prototype.pause=function(e){return ki(this.ctx,"pause",e)},Ii.prototype.resume=function(e){return ki(this.ctx,"resume",e)},Ii.prototype.switchCamera=function(e){return ki(this.ctx,"switchCamera",e)},Ii.prototype.snapshot=function(e){return ki(this.ctx,"snapshot",e)},Ii.prototype.toggleTorch=function(e){return ki(this.ctx,"toggleTorch",e)},Ii.prototype.playBGM=function(e){return Si(this.ctx,"playBGM",e)},Ii.prototype.stopBGM=function(e){return ki(this.ctx,"stopBGM",e)},Ii.prototype.pauseBGM=function(e){return ki(this.ctx,"pauseBGM",e)},Ii.prototype.resumeBGM=function(e){return ki(this.ctx,"resumeBGM",e)},Ii.prototype.setBGMVolume=function(e){return Si(this.ctx,"setBGMVolume",e)},Ii.prototype.startPreview=function(e){return ki(this.ctx,"startPreview",e)},Ii.prototype.stopPreview=function(e){return ki(this.ctx,"stopPreview",e)};var Ai,$i=200,Pi=["unknown","none","ethernet","wifi","2g","3g","4g","5g"],Mi="__UNIAPP_MAP",ji="_doc/uniapp_temp",Bi=ji+"_"+Date.now(),Di=[];function Ni(e,t){Ai=Ai||dh.accelerometer.watchAcceleration(function(t){Di.forEach(function(e){Br(e,{x:t.xAxis,y:t.yAxis,z:t.zAxis})})},function(e){Ai=null,Br(t,{errMsg:"startAccelerometer:fail "+e.message})},{frequency:$i}),ph(function(){Br(t,{errMsg:"startAccelerometer:ok"})},$i)}function Li(){return Ai&&(dh.accelerometer.clearWatch(Ai),Ai=null),{}}var Ri=ti("bluetooth","onBluetoothDeviceFound"),Fi=ti("bluetooth","onBluetoothAdapterStateChange"),zi=ti("bluetooth","onBLEConnectionStateChange"),Vi=ti("bluetooth","onBLECharacteristicValueChange");function Ui(e){void 0===e&&(e={});var t=e.deviceId;t&&(e.deviceId=t.toUpperCase());var n=e.serviceId;return n&&(e.serviceId=n.toUpperCase()),e}var qi,Wi=ii("bluetooth","openBluetoothAdapter"),Hi=ii("bluetooth","closeBluetoothAdapter"),Gi=ii("bluetooth","getBluetoothAdapterState"),Xi=ii("bluetooth","startBluetoothDevicesDiscovery",Ui),Yi=ii("bluetooth","stopBluetoothDevicesDiscovery"),Ji=ii("bluetooth","getBluetoothDevices"),Ki=ii("bluetooth","getConnectedBluetoothDevices",Ui),Zi=ii("bluetooth","createBLEConnection",Ui),Qi=ii("bluetooth","closeBLEConnection",Ui),eo=ii("bluetooth","getBLEDeviceServices",Ui),to=ii("bluetooth","getBLEDeviceCharacteristics",Ui),no=ii("bluetooth","notifyBLECharacteristicValueChange",Ui),ro=ii("bluetooth","readBLECharacteristicValue",Ui),io=ii("bluetooth","writeBLECharacteristicValue",Ui),oo=ii("bluetooth","setBLEMTU",Ui),ao=ii("bluetooth","getBLEDeviceRSSI",Ui);var so=[];function co(e,t){qi=qi||dh.orientation.watchOrientation(function(t){so.forEach(function(e){Br(e,{direction:t.magneticHeading})})},function(e){qi=null,Br(t,{errMsg:"startCompass:fail "+e.message})},{frequency:$i}),ph(function(){Br(t,{errMsg:"startCompass:ok"})},$i)}function uo(){return qi&&(dh.orientation.clearWatch(qi),qi=null),{}}var lo=ti("ibeacon","onBeaconUpdate"),fo=ti("ibeacon","onBeaconServiceChange"),po=ii("ibeacon","getBeacons"),ho=ii("ibeacon","startBeaconDiscovery"),vo=ii("ibeacon","stopBeaconDiscovery");var go="Android"===dh.os.name&&parseInt(dh.os.version)<6,mo=go?"slide-in-right":"pop-in",yo=300,_o=go?"slide-out-right":"pop-out",bo=50,wo="_www/__uniappview.html",ko="f",So="i",xo="e",Co="v-show",To="c",Oo="s",Eo="sc",Io={},Ao="WEB_INVOKE_APPSERVICE";function $o(e,t){if(e===Ao)return Nr(Ao,t.data,t.webviewIds),!0;var n=Io[e];return!!n&&(n(t),n.keepAlive||delete Io[e],!0)}function Po(e,t,n){if(void 0===n&&(n=!0),Io[e])return console.warn("'"+e+"' registered: "+Io[e].toString());t.keepAlive=!!n,Io[e]=t}var Mo="__UNIAPP_SCAN",jo="_www/__uniappscan.html",Bo="scanCode";var Do,No,Lo,Ro,Fo,zo=Object.freeze({__proto__:null,SCAN_ID:Mo,SCAN_PATH:jo,scanCode:function(e,t){var n=e.onlyFromCamera;void 0===n&&(n=!1);var r=e.scanType,i=e.autoDecodeCharSet,o=dh.barcode,a={qrCode:[o.QR,o.AZTEC,o.MAXICODE],barCode:[o.EAN13,o.EAN8,o.UPCA,o.UPCE,o.CODABAR,o.CODE128,o.CODE39,o.CODE93,o.ITF,o.RSS14,o.RSSEXPANDED],datamatrix:[o.DATAMATRIX],pdf417:[o.PDF417]},s={};s[o.QR]="QR_CODE",s[o.EAN13]="EAN_13",s[o.EAN8]="EAN_8",s[o.DATAMATRIX]="DATA_MATRIX",s[o.UPCA]="UPC_A",s[o.UPCE]="UPC_E",s[o.CODABAR]="CODABAR",s[o.CODE39]="CODE_39",s[o.CODE93]="CODE_93",s[o.CODE128]="CODE_128",s[o.ITF]="CODE_25",s[o.PDF417]="PDF_417",s[o.AZTEC]="AZTEC",s[o.RSS14]="RSS_14",s[o.RSSEXPANDED]="RSSEXPANDED";var c,u,l="light"!==("UIStatusBarStyleBlackTranslucent"===(c=dh.navigator.getStatusBarStyle())||"UIStatusBarStyleBlackOpaque"===c||"null"===c?c="light":"UIStatusBarStyleDefault"===c&&(c="dark"),c),d=[];Array.isArray(r)&&r.length&&r.forEach(function(e){var t=a[e];t&&(d=d.concat(t))}),d.length||(d=d.concat(a.qrCode).concat(a.barCode).concat(a.datamatrix).concat(a.pdf417));var f=[];n||f.push({float:"right",text:Be("uni.scanCode.album"),fontSize:"17px",width:"60px",onclick:function(){dh.gallery.pick(function(e){o.scan(e,function(e,t,n,r){l&&dh.navigator.setStatusBarStyle("dark"),u={type:e,code:t,charSet:r},p.close("auto")},function(){dh.nativeUI.toast(Be("uni.scanCode.fail"))},d,i)},function(e){e.code!==("Android"===dh.os.name?12:-2)&&dh.nativeUI.toast(Be("uni.scanCode.fail"))},{multiple:!1,system:!1,filename:Bi+"/gallery/",permissionAlert:!0})}});var p=dh.webview.create(jo,Mo,{titleNView:{autoBackButton:!0,type:"float",backgroundColor:"rgba(0,0,0,0)",titleColor:"#ffffff",titleText:Be("uni.scanCode.title"),titleSize:"17px",buttons:f},popGesture:"close",backButtonAutoControl:"close"},{__uniapp_type:"scan",__uniapp_dark:l,__uniapp_scan_type:d,__uniapp_auto_decode_char_set:i,__uniapp_locale:De(),"uni-app":"none"}),h=dh.nativeUI.showWaiting();p.addEventListener("titleUpdate",function(){p.show(mo,yo,function(){h.close()})}),p.addEventListener("close",function(){Br(t,u?{result:u.code,scanType:s[u.type]||"",charSet:u.charSet||"utf8",path:"",errMsg:"scanCode:ok"}:{errMsg:"scanCode:fail cancel"}),$o(Bo)}),l&&(dh.navigator.setStatusBarStyle("light"),p.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?dh.navigator.setStatusBarStyle("dark"):"end"!==t||n||dh.navigator.setStatusBarStyle("light")})),Po(Bo,function(e){e&&"code"in e&&(u=e)},!1)}});function Vo(){return"object"==typeof window&&"object"==typeof navigator&&"object"==typeof document?"webview":"v8"}function Uo(){return Do.webview.currentWebview().id}var qo={};function Wo(e){var t=e.data&&e.data.__message;if(t&&t.__page){var n=t.__page,r=qo[n];r&&r(t),t.keep||delete qo[n]}}var Ho=function(e){this.webview=e};function Go(e){var t=e.context;void 0===t&&(t={});var n=e.url,r=e.data;void 0===r&&(r={});var i=e.style;void 0===i&&(i={});var o=e.onMessage,a=e.onClose;Do=t.plus||dh,No=t.weex||("object"==typeof lh?lh:null),Lo=t.BroadcastChannel||("object"==typeof BroadcastChannel?BroadcastChannel:null);var s="page"+Date.now();!1!==(i=Object.assign({},i)).titleNView&&"none"!==i.titleNView&&(i.titleNView=Object.assign({autoBackButton:!0,titleSize:"17px"},i.titleNView));var c={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:("object"==typeof process&&process.env&&process.env.VUE_APP_TEMPLATE_PATH||"")+"/"+n+".js",defaultFontSize:Do.screen.resolutionWidth/20,viewport:Do.screen.resolutionWidth}};i=Object.assign(c,i);var u,l,d=Do.webview.create("",s,i,{extras:{from:Uo(),runtime:Vo(),data:r,useGlobalEvent:!Lo}});return d.addEventListener("close",a),u=s,l=function(e){"function"==typeof o&&o(e.data),e.keep||d.close("auto")},"v8"===Vo()?Lo?(Ro&&Ro.close(),(Ro=new Lo(Uo())).onmessage=Wo):Fo||(Fo=No.requireModule("globalEvent")).addEventListener("plusMessage",Wo):window.__plusMessage=Wo,qo[u]=l,d.show(i.animationType,i.animationDuration),new Ho(d)}Ho.prototype.sendMessage=function(e){var t={__message:{data:e}},n=this.webview.id;Lo?new Lo(n).postMessage(t):Do.webview.postMessageToUniNView(t,n)},Ho.prototype.close=function(){this.webview.close()};var Xo=Object.freeze({__proto__:null,scanCode:function(e,t){var n,r,i="light"!==("UIStatusBarStyleBlackTranslucent"===(n=dh.navigator.getStatusBarStyle())||"UIStatusBarStyleBlackOpaque"===n||"null"===n?n="light":"UIStatusBarStyleDefault"===n&&(n="dark"),n),o=Go({url:"__uniappscan",data:Object.assign({},e,{messages:{fail:Be("uni.scanCode.fail"),"flash.on":Be("uni.scanCode.flash.on"),"flash.off":Be("uni.scanCode.flash.off")}}),style:{animationType:e.animationType||"pop-in",titleNView:{autoBackButton:!0,type:"float",titleText:e.titleText||Be("uni.scanCode.title"),titleColor:"#ffffff",backgroundColor:"rgba(0,0,0,0)",buttons:e.onlyFromCamera?[]:[{text:e.albumText||Be("uni.scanCode.album"),fontSize:"17px",width:"60px",onclick:function(){o.sendMessage({type:"gallery"})}}]},popGesture:"close",background:"#000000",backButtonAutoControl:"close"},onMessage:function(e){var t=e.event,n=e.detail;(r=n).errMsg="marked"===t?"scanCode:ok":"scanCode:fail "+n.message},onClose:function(){i&&dh.navigator.setStatusBarStyle("dark"),Br(t,r||{errMsg:"scanCode:fail cancel"})}});i&&(dh.navigator.setStatusBarStyle("light"),o.webview.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?dh.navigator.setStatusBarStyle("dark"):"end"!==t||n||dh.navigator.setStatusBarStyle("light")}))}});function Yo(){if("ios"!==dh.os.name.toLowerCase())return!1;var e=Dr("faceID");return!(!e||!e.isSupport())}function Jo(){return!(!dh.fingerprint||!dh.fingerprint.isSupport())}function Ko(){var e=[];return Jo()&&e.push("fingerPrint"),Yo()&&e.push("facial"),{supportMode:e,errMsg:"checkIsSupportSoterAuthentication:ok"}}function Zo(e){void 0===e&&(e={});var t=e.checkAuthMode;if("fingerPrint"===t)return Jo()?{isEnrolled:dh.fingerprint.isKeyguardSecure()&&dh.fingerprint.isEnrolledFingerprints(),errMsg:"checkIsSoterEnrolledInDevice:ok"}:{isEnrolled:!1,errMsg:"checkIsSoterEnrolledInDevice:fail not support"};if("facial"===t){if(Yo()){var n=Dr("faceID");return{isEnrolled:n&&n.isKeyguardSecure()&&n.isEnrolledFaceID(),errMsg:"checkIsSoterEnrolledInDevice:ok"}}return{isEnrolled:!1,errMsg:"checkIsSoterEnrolledInDevice:fail not support"}}return{isEnrolled:!1,errMsg:"checkIsSoterEnrolledInDevice:fail not support"}}var Qo,ea,ta=44,na="iOS"===dh.os.name,ra=!0;var ia,oa=[],aa={id:"0",init:function(e,n){e&&e.list.length&&(Qo=e);try{ea=Dr("uni-tabview")}catch(e){console.log('uni.requireNativePlugin("uni-tabview") error '+e)}ea.onMaskClick(function(){oa.forEach(function(e){e()})}),ea&&ea.onClick(function(e){var t=e.index;n(Qo.list[t],t)}),ea&&ea.onMidButtonClick(function(){Nr("onTabBarMidButtonTap",{})})},indexOf:function(e){var t=Qo&&Qo.list&&Qo.list.length;if(t)for(var n=0;n<t;n++)if(Qo.list[n].pagePath===e||Qo.list[n].pagePath===e+".html")return n;return-1},switchTab:function(e){var t=this.indexOf(e);return 0<=t&&(ea&&ea.switchSelect({index:t}),!0)},setTabBarBadge:function(e,t,n){ea&&("none"===e?(ea.hideTabBarRedDot({index:t}),ea.removeTabBarBadge({index:t})):"text"===e?ea.setTabBarBadge({index:t,text:n}):"redDot"===e&&ea.showTabBarRedDot({index:t}))},setTabBarItem:function(e,t,n,r){var i={index:e};void 0!==t&&(i.text=t),n&&(i.iconPath=Xr(n)),r&&(i.selectedIconPath=Xr(r)),ea&&ea.setTabBarItem(i)},setTabBarStyle:function(e){ea&&ea.setTabBarStyle(e)},hideTabBar:function(e){ra=!1,ea&&ea.hideTabBar({animation:e})},showTabBar:function(e){ra=!0,ea&&ea.showTabBar({animation:e})},append:function(t){var n=this;ea&&ea.append({id:t.id},function(e){0!==e.code&&ph(function(){n.append(t)},20)})},get visible(){return ra},get height(){return(Qo&&Qo.height?parseFloat(Qo.height):50)+dh.navigator.getSafeAreaInsets().deviceBottom},get cover(){return na&&0<=["extralight","light","dark"].indexOf(Qo.blurEffect)},setStyle:function(e){var t=e.mask;ea.setMask({color:t})},addEventListener:function(e,t){oa.push(t)},removeEventListener:function(e,t){var n=oa.indexOf(t);oa.splice(n,1)}};function sa(){return dh.navigator.isImmersedStatusbar()?Math.round("iOS"===dh.os.name?dh.navigator.getSafeAreaInsets().top:dh.navigator.getStatusbarHeight()):0}function ca(){var e,t,n,r,i=dh.os.name.toLowerCase(),o="ios"===i,a="android"===i,s=(e=dh.screen.getCurrentSize(),t=e.resolutionWidth,n=e.resolutionHeight,{screenWidth:Math.round(t),screenHeight:Math.round(n)}),c=s.screenWidth,u=s.screenHeight,l=sa(),d={height:0,cover:!1},f=Wr();if(f){var p=f.getStyle();(p=p&&p.titleNView)&&p.type&&"none"!==p.type&&(d.height="transparent"===p.type?0:l+ta,d.cover="transparent"===p.type||"float"===p.type),r=f.getSafeAreaInsets()}else r=dh.navigator.getSafeAreaInsets();var h={height:0,cover:!1};zr()&&(h.height=aa.visible?aa.height:0,h.cover=aa.cover);var v=d.cover?d.height:0,g=h.cover?h.height:0,m=u-d.height-h.height,y=u-(d.cover?0:d.height)-(h.cover?0:h.height),_=c;h.height&&!h.cover||r.bottom||!r.deviceBottom||(m-=r.deviceBottom,y-=r.deviceBottom);var b={left:(r=o?r:{left:0,right:0,top:d.height&&!d.cover?0:l,bottom:0}).left,right:_-r.right,top:r.top,bottom:y-r.bottom,width:_-r.left-r.right,height:y-r.top-r.bottom};return{errMsg:"getSystemInfo:ok",brand:dh.device.vendor,model:dh.device.model,pixelRatio:dh.screen.scale,screenWidth:c,screenHeight:u,windowWidth:_,windowHeight:m,statusBarHeight:l,language:dh.os.language,system:(o?"iOS":a?"Android":"")+" "+dh.os.version,version:dh.runtime.innerVersion,fontSizeSetting:"",platform:i,SDKVersion:"",windowTop:v,windowBottom:g,safeArea:b,safeAreaInsets:{top:r.top,right:r.right,bottom:r.bottom,left:r.left},deviceId:ia=ia||dh.runtime.getDCloudId()}}var ua="uniapp_save",la="_doc/"+ua;function da(t,n){n=n||function(){},dh.io.requestFileSystem(dh.io.PRIVATE_DOC,function(e){e.root.getDirectory(ua,{create:!0},t,n)},n)}var fa=0;var pa=ii("io","getFileInfo");var ha="chooseLocation";var va=Object.freeze({__proto__:null,chooseLocation:function(e,t){var n=dh.navigator.getStatusBarStyle(),r=dh.webview.create("_www/__uniappchooselocation.html",Mi,{titleNView:{autoBackButton:!0,backgroundColor:"#000000",titleColor:"#ffffff",titleText:"选择位置",titleSize:"17px",buttons:[{float:"right",text:"完成",fontSize:"17px",width:"60px",onclick:function(){r.evalJS("__chooseLocationConfirm__()")}}]},popGesture:"close",scrollIndicator:"none"},{__uniapp_type:"map",__uniapp_statusbar_style:n,"uni-app":"none"});"dark"===n&&(dh.navigator.setStatusBarStyle("light"),r.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?dh.navigator.setStatusBarStyle("dark"):"end"!==t||n||dh.navigator.setStatusBarStyle("light")}));var i,o=0,a=function(){2==++o&&r.evalJS("__chooseLocation__("+JSON.stringify(e)+")")};r.addEventListener("loaded",a),r.show("slide-in-bottom",yo,a),r.addEventListener("close",function(){i?Br(t,{name:i.poiname,address:i.poiaddress,latitude:i.latlng.lat,longitude:i.latlng.lng,errMsg:"chooseLocation:ok"}):($o(ha),Br(t,{errMsg:"chooseLocation:fail cancel"}))}),Po(ha,function(e){e&&"latlng"in e&&(i=e)},!1)}});var ga=Object.freeze({__proto__:null,chooseLocation:function(e,t){var n,r,i="light"!==("UIStatusBarStyleBlackTranslucent"===(n=dh.navigator.getStatusBarStyle())||"UIStatusBarStyleBlackOpaque"===n||"null"===n?n="light":"UIStatusBarStyleDefault"===n&&(n="dark"),n),o=Go({url:"__uniappchooselocation",data:e,style:{animationType:e.animationType||"slide-in-bottom",titleNView:!1,popGesture:"close",scrollIndicator:"none"},onMessage:function(e){var t=e.event,n=e.detail;"selected"===t&&((r=n).errMsg="chooseLocation:ok")},onClose:function(){i&&dh.navigator.setStatusBarStyle("dark"),Br(t,r||{errMsg:"chooseLocation:fail cancel"})}});i&&(dh.navigator.setStatusBarStyle("light"),o.webview.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?dh.navigator.setStatusBarStyle("dark"):"end"!==t||n||dh.navigator.setStatusBarStyle("light")}))}});function ma(e,t,n){var r,i=t.coords;e!==t.coordsType&&("wgs84"===e?r=function(e,t){if(ei(e=+e,t=+t))return[e,t];var n=Zr(e-105,t-35),r=Qr(e-105,t-35),i=t/180*Yr,o=Math.sin(i);o=1-Kr*o*o;var a=Math.sqrt(o);return n=180*n/(Jr*(1-Kr)/(o*a)*Yr),[2*e-(e+(r=180*r/(Jr/a*Math.cos(i)*Yr))),2*t-(t+n)]}(i.longitude,i.latitude):"gcj02"===e&&(r=function(e,t){if(ei(e=+e,t=+t))return[e,t];var n=Zr(e-105,t-35),r=Qr(e-105,t-35),i=t/180*Yr,o=Math.sin(i);o=1-Kr*o*o;var a=Math.sqrt(o);return n=180*n/(Jr*(1-Kr)/(o*a)*Yr),[e+(r=180*r/(Jr/a*Math.cos(i)*Yr)),t+n]}(i.longitude,i.latitude)),r&&(i.longitude=r[0],i.latitude=r[1]));Br(n,{type:e,altitude:i.altitude||0,latitude:i.latitude,longitude:i.longitude,speed:i.speed,accuracy:i.accuracy,address:t.address,errMsg:"getLocation:ok"})}var ya=Object.freeze({__proto__:null,openLocation:function(e){var t=dh.navigator.getStatusBarStyle(),n=dh.webview.create("_www/__uniappopenlocation.html",Mi,{titleNView:{autoBackButton:!0,titleColor:"#ffffff",titleText:"",titleSize:"17px",type:"transparent"},popGesture:"close",scrollIndicator:"none"},{__uniapp_type:"map",__uniapp_statusbar_style:t,"uni-app":"none"});return"light"===t&&(dh.navigator.setStatusBarStyle("dark"),n.addEventListener("popGesture",function(e){var t=e.type,n=e.result;"start"===t?dh.navigator.setStatusBarStyle("light"):"end"!==t||n||dh.navigator.setStatusBarStyle("dark")})),n.show(mo,yo,function(){n.evalJS("__openLocation__("+JSON.stringify(e)+")")}),{errMsg:"openLocation:ok"}}});var _a=Object.freeze({__proto__:null,openLocation:function(e,t){return Go({url:"__uniappopenlocation",data:e,style:{titleNView:{type:"transparent"},popGesture:"close",backButtonAutoControl:"close"},onClose:function(){Br(t,{errMsg:"openLocation:fail cancel"})}}),{errMsg:"openLocation:ok"}}});var ba,wa,ka,Sa,xa;function Ca(e){return new Promise(function(t,n){dh.io.resolveLocalFileSystemURL(e,function(e){e.getMetadata(t,n,!1)},n)})}var Ta,Oa,Ea=ii("io","getImageInfo",function(e){return e.savePath=e.filename=Bi+"/download/",e}),Ia=ii("io","getVideoInfo",function(e){return e.filePath=e.src,e},function(e){return{orientation:e.orientation,type:e.type,duration:e.duration,size:e.size,height:e.height,width:e.width,fps:e.fps||30,bitrate:e.bitrate}});var Aa=function(e,t){void 0===t&&(t={}),Nr("onRecorderStateChange",Object.assign({state:e},t))},$a={start:function(e,t){var n=e.duration;void 0===n&&(n=6e4);var r=e.sampleRate,i=(e.numberOfChannels,e.encodeBitRate,e.format);void 0===i&&(i="mp3");e.frameSize;var o=e.audioSource;if(void 0===o&&(o="auto"),Ta)return Aa("start");(Ta=dh.audio.getRecorder()).record({format:i,samplerate:r,filename:Bi+"/recorder/"},function(e){return Aa("stop",{tempFilePath:e})},function(e){return Aa("error",{errMsg:e.message})}),Oa=ph(function(){$a.stop()},n),Aa("start")},stop:function(){Ta&&(Ta.stop(),Ta=!1,Oa&&hh(Oa))},pause:function(){Ta&&Aa("error",{errMsg:"Unsupported operation: pause"})},resume:function(){Ta&&Aa("error",{errMsg:"Unsupported operation: resume"})}};var Pa=0,Ma={},ja=function(e){Nr("onDownloadTaskStateChange",e)};var Ba=0,Da={},Na=function(e){Nr("onRequestTaskStateChange",e),delete Da[Ba]},La=function(e){var t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));for(var r=t.split(";"),i=0;i<r.length;i++)-1!==r[i].indexOf("Expires=")||-1!==r[i].indexOf("expires=")?n.push(r[i].replace(",","")):n.push(r[i]);return n=n.join(";").split(",")};function Ra(c,e){void 0===e&&(e={});var t=e.url,n=e.data,r=e.header,i=e.method;void 0===i&&(i="GET");var u=e.responseType,o=e.sslVerify;void 0===o&&(o=!0);var a=e.firstIpv4;void 0===a&&(a=!1);var s=e.tls,l=e.timeout;void 0===l&&(l=mh.networkTimeout&&mh.networkTimeout.request||6e4);var d,f,p=Dr("stream"),h={},v=!1;for(var g in r)if(v||"content-type"!==g.toLowerCase())h[g]=r[g];else if(v=!0,h["Content-Type"]=r[g],"GET"!==i&&0===r[g].indexOf("application/x-www-form-urlencoded")&&"string"!=typeof n&&!(n instanceof ArrayBuffer)){var m=[];for(var y in n)b(n,y)&&m.push(encodeURIComponent(y)+"="+encodeURIComponent(n[y]));n=m.join("&")}v||"POST"!==i||(h["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),l&&(d=ph(function(){f=!0,Na({requestTaskId:c,state:"fail",statusCode:0,errMsg:"timeout"})},l+200));var _={method:i,url:t.trim(),headers:h,type:"arraybuffer"===u?"base64":"text",timeout:l||6e5,sslVerify:!o,firstIpv4:a,tls:s};"GET"!==i&&(_.body="string"==typeof n?n:JSON.stringify(n));try{p.fetch(_,function(e){var t=e.ok,n=e.status,r=e.data,i=e.headers,o=e.errorMsg;if(!f){d&&hh(d);var a=n;if(0<a)Na({requestTaskId:c,state:"success",data:t&&"arraybuffer"===u?Vr(r):r,statusCode:a,header:i,cookies:La(i)});else{var s="abort statusCode:"+a;o&&(s=s+" "+o),Na({requestTaskId:c,state:"fail",statusCode:a,errMsg:s})}}}),Da[c]={abort:function(){f=!0,d&&hh(d),Na({requestTaskId:c,state:"fail",statusCode:0,errMsg:"abort"})}}}catch(e){return{requestTaskId:c,errMsg:"createRequestTask:fail"}}return{requestTaskId:c,errMsg:"createRequestTask:ok"}}var Fa,za={},Va=function(e){Nr("onSocketTaskStateChange",e)};var Ua=function(e,t){void 0===t&&(t={});var n=t.url,r=(t.data,t.header),i=(t.method,t.protocols),o=Fa||((Fa=Dr("uni-webSocket")).onopen(function(e){Va({socketTaskId:e.id,state:"open"})}),Fa.onmessage(function(e){var t=e.data;Va({socketTaskId:e.id,state:"message",data:"object"==typeof t?Vr(t.base64):t})}),Fa.onerror(function(e){Va({socketTaskId:e.id,state:"error",errMsg:e.data})}),Fa.onclose(function(e){var t=e.id;delete za[t],Va({socketTaskId:t,state:"close"})}),Fa);return o.WebSocket({id:e,url:n,protocol:Array.isArray(i)?i.join(","):i,header:r}),za[e]=o,{socketTaskId:e,errMsg:"createSocketTask:ok"}};var qa=0,Wa={},Ha=function(e){Nr("onUploadTaskStateChange",e)};var Ga,Xa={oauth:function(t){dh.oauth.getServices(function(e){var n=[];e.forEach(function(e){var t=e.id;n.push(t)}),t(null,n)},function(e){t(e)})},share:function(t){dh.share.getServices(function(e){var n=[];e.forEach(function(e){var t=e.id;n.push(t)}),t(null,n)},function(e){t(e)})},payment:function(t){dh.payment.getChannels(function(e){var n=[];e.forEach(function(e){var t=e.id;n.push(t)}),t(null,n)},function(e){t(e)})},push:function(e){e(null,void 0!==lh||void 0!==dh?[dh.push.getClientInfo().id]:[])}};function Ya(i){return new Promise(function(n,r){dh.oauth.getServices(function(e){var t=e.find(function(e){return e.id===i});t?n(t):r(new Error("provider not find"))},r)})}function Ja(a,s){var c=a.provider||"weixin",e=ri(s,"operateWXData");Ya(c).then(function(o){o.getUserInfo(function(e){var t;if("weixin"===c){var n=o.userInfo;t={openId:n.openid,nickName:n.nickname,gender:n.sex,city:n.city,province:n.province,country:n.country,avatarUrl:n.headimgurl,unionId:n.unionid}}else if("apple"===c){var r=o.appleInfo;t={openId:r.user,fullName:r.fullName,email:r.email,authorizationCode:r.authorizationCode,identityToken:r.identityToken,realUserStatus:r.realUserStatus}}else(t=o.userInfo).openId=t.openId||t.openid||o.authResult.openid,t.nickName=t.nickName||t.nickname,t.avatarUrl=t.avatarUrl||t.headimgurl;var i={errMsg:"operateWXData:ok"};a.data&&"webapi_getuserinfo"===a.data.api_name?i.data={data:JSON.stringify(t),rawData:"",signature:"",encryptedData:"",iv:""}:i.userInfo=t,Br(s,i)},e)}).catch(function(){Br(s,{errMsg:"operateWXData:fail 请先调用 uni.login"})})}function Ka(){return Ya("univerify").then(function(e){return e.closeAuthView()})}var Za=!1,Qa=!1;function es(e){return lh.requireModule(e)}var ts={0:{name:"web",title:"图文"},1:{name:"text",title:"纯文字"},2:{name:"image",title:"纯图片"},3:{name:"music",title:"音乐"},4:{name:"video",title:"视频"},5:{name:"miniProgram",title:"小程序"}},ns=function(e,t,n){e.type=e.type||0;var r=e.provider,i=e.type,o=e.title,a=e.summary,s=e.href,c=e.imageUrl,u=e.mediaUrl,l=e.scene,d=e.miniProgram;"string"==typeof c&&c&&(c=Xr(c));var f=ts[i+""];if(f){var p={provider:r,type:f.name,title:o,content:a,href:s,pictures:[c],thumbs:[c],media:u,miniProgram:d,extra:{scene:l}};return"weixin"!==r||1!==i&&2!==i||delete p.thumbs,p}return"分享参数 type 不正确"},rs=function(e,t,n,r){void 0===r&&(r="share");var i=ri(n,r);e.send(t,function(){Br(n,{errMsg:r+":ok"})},i)};function is(n,r,i){void 0===i&&(i="share"),n=ns(n);var o=ri(r,i);if("string"==typeof n)return Br(r,{errMsg:i+":fail "+n});var a=n.provider;dh.share.getServices(function(e){var t=e.find(function(e){return e.id===a});t?t.authenticated?rs(t,n,r):t.authorize(function(){return rs(t,n,r)},o):Br(r,{errMsg:i+":fail service not found"})},o)}function os(n){n.$processed=!0,n.postMessage=function(e){dh.webview.postMessageToUniNView({type:"UniAppSubNVue",data:e},n.id)};var r=[];if(n.onMessage=function(e){r.push(e)},n.$consumeMessage=function(t){r.forEach(function(e){return e(t)})},n.__uniapp_mask_id){var i=n.__uniapp_mask,o="0"===n.__uniapp_mask_id?{setStyle:function(e){var t=e.mask;es("uni-tabview").setMask({color:t})}}:dh.webview.getWebviewById(n.__uniapp_mask_id),a=n.show,s=n.hide,c=n.close,u=function(){o.setStyle({mask:"none"})};n.show=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return o.setStyle({mask:i}),a.apply(n,e)},n.hide=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return u(),s.apply(n,e)},n.close=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return u(),r=[],c.apply(n,e)}}}function as(e){var t=dh.webview.getWebviewById(e);if(null==t)throw new Error("Unable to find SubNVue, id="+e);t&&!t.$processed&&os(t);var n=t.setStyle,r=dh.webview.getWebviewById(t.__uniapp_mask_id);return t.setStyle=function(e){e&&e.mask&&(r&&r.setStyle({mask:e.mask}),delete e.mask),n.call(this,e)},t}var ss=[];fh.on("api.uniMPNativeEvent",function(t){ss.forEach(function(e){Br(e,t.event,t.data)})});var cs=[];function us(t,e){var n=!1,r=mh.subPackages;if(Array.isArray(r)){var i=r.find(function(e){return 0===t.indexOf(e.root)});i&&(n=!0,function(e,t){if(-1!==cs.indexOf(e))return t();ds([e],function(){t()})}(i.root,e))}n||e()}var ls="app-sub-service.js";function ds(e,t){var n,r;n=e.map(function(e){return cs.push(e),e+"/"+ls}),r=function(e){t&&t(!0)},mh.onServiceReady(function(){lh.requireModule("plus").evalJSFiles(n,r)})}var fs=2,ps="vdSync",hs="webviewReady",vs="vdSyncCallback",gs="invokeApi",ms="WEB_INVOKE_APPSERVICE",ys="webviewInserted",_s="webviewRemoved",bs="webviewId";function ws(e){var t=e.buttons;return Array.isArray(t)&&t.forEach(function(e,t){var r;e.onclick=(r=t,function(e){var t=wh();if(t.length){e.index=r;var n=t[t.length-1];n.$vm&&n.$vm.__call_hook&&n.$vm.__call_hook("onNavigationBarButtonTap",e)}})}),e}var ks=/(\d+(\.\d+)?)[r|u]px/g;function Ss(t){var n={},e=JSON.stringify(t);if(~e.indexOf("upx")||~e.indexOf("rpx"))try{n=JSON.parse(e.replace(ks,function(e,t){return _h.upx2px(parseInt(t)||0)+"px"}))}catch(e){n=t,console.error(e)}else n=JSON.parse(e);return n}var xs,Cs=["navigationBarBackgroundColor","navigationBarTextStyle","navigationBarTitleText","navigationBarShadow","navigationStyle","disableScroll","backgroundColor","backgroundTextStyle","enablePullDownRefresh","onReachBottomDistance","usingComponents","titleNView","pullToRefresh"];function Ts(e,t,n){void 0===n&&(n={});var r={bounce:"vertical"};n.window=Ss(Object.assign(JSON.parse(JSON.stringify(mh.window||{})),n.window||{})),Object.keys(n.window).forEach(function(e){-1===Cs.indexOf(e)&&(r[e]=n.window[e])});var i=n.window.backgroundColor;(/^#[a-z0-9]{6}$/i.test(i)||"transparent"===i)&&(r.background||(r.background=i),r.backgroundColorTop||(r.backgroundColorTop=i));var o=function(e){var t=e.window,n=t.titleNView;if(e.meta.statusBarStyle="black"===t.navigationBarTextStyle?"dark":"light",!1===n||"false"===n||"custom"===t.navigationStyle&&!E(n)||"always"===t.transparentTitle&&!E(n))return!1;var r=t.titleImage||"",i=t.transparentTitle||"none",o=t.navigationBarBackgroundColor,a={autoBackButton:!e.meta.isQuit,titleText:""===r&&t.navigationBarTitleText||"",titleColor:"black"===t.navigationBarTextStyle?"#000000":"#ffffff",type:{none:"default",auto:"transparent",always:"float"}[i],backgroundColor:/^#[a-z0-9]{6}$/i.test(o)||"transparent"===o?o:"#f7f7f7",tags:""===r?[]:[{tag:"img",src:r,position:{left:"auto",top:"auto",width:"auto",height:"26px"}}]};return E(n)?Object.assign(a,ws(n)):a}(n);o&&(1===e&&mh.realEntryPagePath&&!n.meta.isQuit&&(o.autoBackButton=!0),r.titleNView=o);var a=function(e){var t=e.window;if(t.enablePullDownRefresh||t.pullToRefresh&&t.pullToRefresh.support){var n=Object.create(null);return"Android"===dh.os.name?Object.assign(n,{support:!0,style:"circle"}):Object.assign(n,{support:!0,style:"default",height:"50px",range:"200px",contentdown:{caption:""},contentover:{caption:""},contentrefresh:{caption:""}}),t.backgroundTextStyle&&(n.color=t.backgroundTextStyle,n.snowColor=t.backgroundTextStyle),Object.assign(n,t.pullToRefresh||{}),n}}(n);return a&&("circle"===a.style&&(r.bounce="none"),r.pullToRefresh=a),"hide"===r.popGesture&&delete r.popGesture,n.meta.isQuit&&(r.popGesture="iOS"===dh.os.name?"appback":"none"),t&&n.meta.isNVue&&(r.uniNView={path:t,defaultFontSize:mh.defaultFontSize,viewport:mh.viewport}),r}function Os(){_h.navigateBack({from:"backbutton"})}function Es(e,t,n){if(e.path){var r=e.style||{},i="navigationBar"===e.type,o="popup"===e.type;delete r.type,o&&!e.id&&console.warn("subNVue["+e.path+"] is missing id"),r.uniNView={path:e.path.replace(".nvue",".js"),defaultFontSize:mh.defaultFontSize,viewport:mh.viewport};var a,s={__uniapp_host:t.path,__uniapp_origin:r.uniNView.path.split("?")[0].replace(".js",""),__uniapp_origin_id:n.id,__uniapp_origin_type:n.__uniapp_type};i?(r.position="dock",r.dock="top",r.top=0,r.width="100%",r.height=ta+sa(),delete r.left,delete r.right,delete r.bottom,delete r.margin):o&&(r.position="absolute",a=zr(t.path)?aa:n,s.__uniapp_mask=r.mask||"rgba(0,0,0,0.5)",s.__uniapp_mask_id=a.id),delete r.mask;var c,u=dh.webview.create("",e.id,r,s);o?function(e,t,n){n.popupSubNVueWebviews||(n.popupSubNVueWebviews={}),n.popupSubNVueWebviews[e.id]=e;var r=function(){n.setStyle({mask:"none"}),e.hide("auto")};n.addEventListener("maskClick",r);var i=!1;e.addEventListener("show",function(){i||(dh.key.removeEventListener("backbutton",Os),dh.key.addEventListener("backbutton",r),i=!0)}),e.addEventListener("hide",function(){i&&(dh.key.removeEventListener("backbutton",r),dh.key.addEventListener("backbutton",Os),i=!1)}),e.addEventListener("close",function(){delete n.popupSubNVueWebviews[e.id],i&&(dh.key.removeEventListener("backbutton",r),dh.key.addEventListener("backbutton",Os),i=!1)})}(u,0,a):(c=u,n.append(c))}}function Is(i){var n,r,o,e;i.addEventListener("resize",(n=function(e){var t=e.width,n=e.height,r={deviceOrientation:90===Math.abs(dh.navigator.getOrientation())?"landscape":"portrait",size:{windowWidth:Math.ceil(t),windowHeight:Math.ceil(n)}};Nr("onViewDidResize",r),fh.emit("onResize",r,parseInt(i.id))},r=50,(e=function(){var e=arguments,t=this;hh(o),o=ph(function(){return n.apply(t,e)},r)}).cancel=function(){hh(o)},e))}var As=2,$s={pullToRefresh:"onPullDownRefresh",titleNViewSearchInputChanged:"onNavigationBarSearchInputChanged",titleNViewSearchInputConfirmed:"onNavigationBarSearchInputConfirmed",titleNViewSearchInputClicked:"onNavigationBarSearchInputClicked",titleNViewSearchInputFocusChanged:"onNavigationBarSearchInputFocusChanged"};function Ps(e){xs=e}function Ms(e){return e}function js(e,t){var n=t?w(t,Ms):"";return{path:e.substr(1),query:n?n.substr(1):n}}function Bs(e,t,n,r){if(void 0===r&&(r={}),t.meta.isNVue){var i=As++,o=Ts(i,e,t);return o.uniPageUrl=js(e,n),o.isTab=!!t.meta.isTabBar,dh.webview.create("",String(i),o,Object.assign({nvue:!0},r))}return 2===As?dh.webview.getLaunchWebview():xs}function Ds(n,e,t,r){if("1"===n.id||!e.meta.isNVue){var i=Ts(parseInt(n.id),"",e);i.uniPageUrl=js(t,r),e.meta.isNVue?i.isTab=!!e.meta.isTabBar:i.debugRefresh=(o=t,s=e,c=(a=r)?w(a,Ms):"",{isTab:s.meta.isTabBar,arguments:JSON.stringify({path:o.substr(1),query:c?c.substr(1):c})}),n.setStyle(i)}var o,a,s,c,u,l,d,f,p,h,v,g,m,y,_=fh.on,b=fh.emit;return l=n,(d=(u=e).window.subNVues)&&d.length&&d.forEach(function(e){Es(e,u,l)}),Object.keys($s).forEach(function(t){n.addEventListener(t,function(e){b($s[t],e,parseInt(n.id))})}),(f=n).popupSubNVueWebviews&&f.addEventListener("close",function(){Object.keys(f.popupSubNVueWebviews).forEach(function(e){f.popupSubNVueWebviews[e].close("none")})}),Is(n),"iOS"===dh.os.name&&(!n.nvue&&(h=n,v=fh.subscribe,g=fh.unsubscribe,m=h.id,y=function(e,t){if(m===t){g(hs,y),t=parseInt(t);var n=wh(!0).find(function(e){return e.$page.id===t});if(!n)return console.error("Page["+t+"] not found");n.$vm._$vd.restore()}},h.addEventListener("recovery",function(e){v(hs,y)})),n.addEventListener("popGesture",function(e){if("start"===e.type){var t=wh(),n=t[t.length-2];p=Mr;var r=n&&n.$page.meta.statusBarStyle;r&&Fr(r)}else if("end"!==e.type||e.result){if("end"===e.type&&e.result){var i=wh(),o=i[i.length-1];o&&o.$remove(),Fr(),fh.emit("onAppRoute",{type:"navigateBack"})}}else Fr(p)})),_(n.id+".startPullDownRefresh",function(){n.beginPullToRefresh()}),_(n.id+".stopPullDownRefresh",function(){n.endPullToRefresh()}),n}var Ns={};function Ls(e,t){(Ns[e]||(Ns[e]=[])).push(t)}var Rs=!1;function Fs(t,e,n){Rs={path:t,nvue:yh.find(function(e){return e.path===t}).meta.isNVue,navigate:e}}function zs(e,t,n){if(n&&mh.splashscreen&&mh.splashscreen.autoclose&&!mh.splashscreen.alwaysShowBeforeRender&&dh.navigator.closeSplashscreen(),!n&&Rs)return console.error("Waiting to navigate to: "+Rs.path+", do not operate continuously: "+e+".");if("native"===mh.renderer)return 0===wh().length?Fs(e,t):t();var r=!xs||xs&&xs.__uniapp_route,i=xs&&!xs.loaded;r||i?Fs(e,t):t(),i&&Ls(xs.id,Vs)}function Vs(){if(Rs){var e=Rs.navigate;return Rs=!1,e()}}function Us(){if("native"===mh.renderer){if(!Rs)return;return Rs.nvue?Vs():void 0}var e=(xs&&!xs.__uniapp_route||(xs=dh.webview.create(wo,String(As++))),xs);if(Rs)return Rs.nvue?Vs():void(e.loaded?Rs.navigate():Ls(e.id,Vs))}function qs(e,t,n){e[e.__preload__?"hide":"close"](t,n)}function Ws(n,r,e,i,t){void 0===t&&(t=n.nvue?0:100);var o=(e=void 0===e?yo:parseInt(e))||yo;ph(function(){var e=function(){e._called||(e._called=!0,i&&i(),Us())},t=ph(function(){e()},o+150);n.show(r||mo,o,function(){e._called||hh(t),e()})},t)}var Hs=0;function Gs(t,n,r){var i=wh(),o=i.length,a=i[o-1];1<t&&i.slice(o-t,o-1).reverse().forEach(function(e){qs(e.$getAppWebview(),"none")});var e=function(e){n?qs(e,n,r||yo):"redirect"===a.$page.openType?qs(e,_o,yo):qs(e,"auto"),i.slice(o-t,o).forEach(function(e){return e.$remove()}),Fr(),fh.emit("onAppRoute",{type:"navigateBack"})},s=a.$getAppWebview();if(!a.__uniapp_webview)return e(s);!function(e,t){var n=e.children();if(!n||!n.length)return t();var r=n.find(function(e){return 0===e.id.indexOf(bs)})||n[0];r.canBack(function(e){e.canBack?r.back():t()})}(s,function(){e(s)})}function Xs(e){var t=e.from;void 0===t&&(t="navigateBack");var n=e.delta,r=e.animationType,i=e.animationDuration,o=wh(),a=o[o.length-1];if(!(a.$vm&&a.$vm.$options.onBackPress&&a.$vm.__call_hook&&a.$vm.__call_hook("onBackPress",{from:t})))return _h.hideToast(),_h.hideLoading(),a.$page.meta.isQuit?Hs?Date.now()-Hs<2e3&&dh.runtime.quit():(Hs=Date.now(),dh.nativeUI.toast(Be("uni.app.quit")),ph(function(){Hs=null},2e3)):1===a.$page.id&&mh.realEntryPagePath?(mh.entryPagePath=mh.realEntryPagePath,delete mh.realEntryPagePath,_h.reLaunch({url:"/"+mh.entryPagePath})):Gs(n,r,i),{errMsg:"navigateBack:ok"}}var Ys=function(e,t){var n=this;this.id=e,this.listener={},this.emitCache={},t&&Object.keys(t).forEach(function(e){n.on(e,t[e])})};Ys.prototype.emit=function(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];var r=this.listener[e];if(!r)return(this.emitCache[e]||(this.emitCache[e]=[])).push(t);r.forEach(function(e){e.fn.apply(e.fn,t)}),this.listener[e]=r.filter(function(e){return"once"!==e.type})},Ys.prototype.on=function(e,t){this._addListener(e,"on",t),this._clearCache(e)},Ys.prototype.once=function(e,t){this._addListener(e,"once",t),this._clearCache(e)},Ys.prototype.off=function(e,t){var n=this.listener[e];if(n)if(t)for(var r=0;r<n.length;)n[r].fn===t&&(n.splice(r,1),r--),r++;else delete this.listener[e]},Ys.prototype._clearCache=function(e){var t=this.emitCache[e];if(t)for(;0<t.length;)this.emit.apply(this,[e].concat(t.shift()))},Ys.prototype._addListener=function(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})};var Js=0;var Ks=Object.create(null);var Zs=a(function(e){return Ks[e]()});var Qs=!1;function ec(){if(!Qs){var e,t;Qs=!0;var n=lh.requireModule("plus");if(n.getRedirectInfo){var r=n.getRedirectInfo()||{};e=r.path,t=r.query?"?"+r.query:""}else{var i=dh.runtime.arguments;if(!i)return;try{var o=JSON.parse(i);e=o.path||o.pathName,t=o.query?"?"+o.query:""}catch(e){}}if(e&&e!==mh.entryPagePath){var a="/"+e,s=yh.find(function(e){return e.path===a});s&&(s.meta.isTabBar||(mh.realEntryPagePath=mh.realEntryPagePath||mh.entryPagePath),mh.entryPagePath=e,mh.entryPageQuery=t)}else t&&(mh.entryPageQuery=t)}}var tc=[];function nc(e){return e?tc.slice(0):tc.filter(function(e){return!e.$page.meta.isTabBar||e.$page.meta.visible})}var rc={};function ic(e){var t=e.url,n=e.path,i=e.query,r=e.openType,o=e.webview,a=e.eventChannel;if(o&&ec(),rc[t]&&(o=rc[t]).__page__){if(!nc(!0).find(function(e){return e===o.__page__}))return a&&(o.__page__.eventChannel=a),tc.push(o.__page__),o;o=null}var s=JSON.parse(JSON.stringify(yh.find(function(e){return e.path===n})));"reLaunch"===r||!mh.realEntryPagePath&&0===nc().length?s.meta.isQuit=!0:s.meta.isTabBar||(s.meta.isQuit=!1),o?(o=dh.webview.getWebviewById(o.id)).nvue=s.meta.isNVue:o=Bs(n,s,i),s.meta.isTabBar&&(s.meta.visible=!0),s.meta.isTabBar&&aa.append(o);var c="1"===o.id&&o.nvue;Ds(o,s,n,i);var u=n.slice(1),l={route:o.__uniapp_route=u,options:Object.assign({},i||{}),$getAppWebview:function(){return dh.webview.getWebviewById(o.id)},eventChannel:a,$page:{id:parseInt(o.id),meta:s.meta,path:n,route:u,fullPath:t,openType:r},$remove:function(){var t=this,e=tc.findIndex(function(e){return e===t});-1!==e&&(o.nvue||this.$vm.$destroy(),tc.splice(e,1))},selectComponent:function(e){return this.$vm.selectComponent(e)},selectAllComponents:function(e){return this.$vm.selectAllComponents(e)}};if(tc.push(l),o.__preload__&&(o.__page__=l),c&&(mh.splashscreen&&mh.splashscreen.autoclose&&!mh.splashscreen.alwaysShowBeforeRender&&dh.navigator.closeSplashscreen(),mh.onReady(function(){Us()})),!o.nvue){var d=o.id;try{us(u,function(){var e,t,n,r;(e=u,t=d,n=i,r=l,Ks[e]||console.error(e+" not found"),new(Zs(e))({mpType:"page",pageId:t,pagePath:e,pageQuery:n,pageInstance:r})).$mount()})}catch(e){console.error(e)}}return o}function oc(e,t){var n=e.url,r=e.path,i=e.query,o=e.events,a=e.animationType,s=e.animationDuration;fh.emit("onAppRoute",{type:"navigateTo",path:r});var c=(void 0===!1&&!0,new Ys(++Js,o));Ws(ic({url:n,path:r,query:i,openType:"navigate",eventChannel:c}),a,s,function(){Br(t,{errMsg:"navigateTo:ok",eventChannel:c})}),Fr()}function ac(e,t){return void 0===e&&(e={}),Array.isArray(e[t])&&e[t].length}function sc(e,r){var t=e.url,n=e.path,i=e.query,o=e.exists,a=wh(),s=a.length-1;if("back"===o){var c=function(e){for(var t=wh(),n=t.length;n--;){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}(t);if(-1!==c){var u=s-c;if(0<u)return Xs({delta:u}),void Br(r,{errMsg:"redirectTo:ok"})}}var l=a[s];l&&l.$remove(),Ws(ic({url:t,path:n,query:i,openType:"redirect"}),"none",0,function(){if(l){var e=l.$getAppWebview();e.__preload__&&(t=e,(n=Object.keys(rc).find(function(e){return rc[e].id===t.id}))&&delete rc[n]),e.close("none")}var t,n;Br(r,{errMsg:"redirectTo:ok"})}),Fr()}var cc,uc,lc,dc,fc="__TYPE",pc="uni-storage-keys";function hc(e){try{var t="string"==typeof e?JSON.parse(e):e,n=t.type;if(0<=["object","string","number","boolean","undefined"].indexOf(n)){var r=Object.keys(t);if(2===r.length&&"data"in t){if(typeof t.data===n)return t.data;if("object"===n&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(t.data))return new Date(t.data)}else if(1===r.length)return""}}catch(e){}}function vc(e,t){var n=t;if("string"!==e||"string"===e&&'{"type":"undefined"}'===t)try{var r=JSON.parse(t),i=hc(r);if(void 0!==i)n=i;else if(e&&"string"==typeof(n=r)){var o=typeof(r=JSON.parse(r));"number"===o&&"date"===e?n=new Date(r):o===(["null","array"].indexOf(e)<0?e:"object")&&(n=r)}}catch(e){}return n}function gc(){for(var e=dh.storage.length||dh.storage.getLength()||0,t=[],n=0,r=0;r<e;r++){var i=dh.storage.key(r);if(i!==pc&&(i.indexOf(fc)<0||i.indexOf(fc)+fc.length!==i.length)){var o=dh.storage.getItem(i);n+=i.length+o.length,t.push(i)}}return{keys:t,currentSize:Math.ceil(2*n/1024),limitSize:Number.MAX_VALUE,errMsg:"getStorageInfo:ok"}}function mc(e){void 0===e&&(e={});var t=e.title;void 0===t&&(t="");var n=e.icon;void 0===n&&(n="success");var r=e.image;void 0===r&&(r="");var i=e.duration;void 0===i&&(i=1500);var o=e.mask;void 0===o&&(o=!1);var a=e.position;void 0===a&&(a="");var s=e.type;void 0===s&&(s="toast");var c=e.style;if(yc(null),uc=s,["top","center","bottom"].includes(a))dh.nativeUI.toast(t,{verticalAlign:a}),cc=!0;else{n&&!~["success","loading","none"].indexOf(n)&&(n="success");var u={modal:o,back:"transmit",padding:"10px",size:"16px"};r||n&&"none"!==n?(u.width="140px",u.height="112px"):u.loading={display:"none"},r?u.loading={display:"block",height:"55px",icon:r,interval:i}:"success"===n&&(u.loading={display:"block",height:"55px",icon:"__uniappsuccess.png",interval:i}),cc=dh.nativeUI.showWaiting(t,Object.assign(u,c))}return lc=ph(function(){yc(null)},i),{errMsg:"showToast:ok"}}function yc(e){if(void 0===e&&(e="toast"),!e||e===uc)return lc&&(hh(lc),lc=null),!0===cc?dh.nativeUI.closeToast():cc&&cc.close&&cc.close(),uc=cc=null,{errMsg:"hide:ok"}}var _c={};function bc(e){var n=_c[e];return n||(n={id:1,callbacks:Object.create(null)},_c[e]=n),{get:function(e){return n.callbacks[e]},pop:function(e){var t=n.callbacks[e];return t&&delete n.callbacks[e],t},push:function(e){var t=n.id++;return n.callbacks[t]=e,t}}}var wc=bc("requestComponentInfo");function kc(n){var r={};return Object.keys(n||{}).forEach(function(e){if(0===e.indexOf("data")){var t=e.replace("data","");t=t.charAt(0).toLowerCase()+t.slice(1),r[t]=n[e]}}),r}function Sc(e,t,n){var r=e._$weex.requireModule("dom"),i=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].selector;0===r.indexOf("#")&&t.push(r.substring(1))}return t}(t),o=new Array(i.length);!function e(t,n,r){var i=n.children;if(!Array.isArray(i))return!1;for(var o=0;o<i.length;o++){var a=i[o];if(a.attr){var s=t.indexOf(a.attr.id);if(0<=s&&(r[s]={id:t[s],ref:a.ref,dataset:kc(a.attr)},1===t.length))break}a.children&&e(t,a,r)}}(i,e.$el,o),function t(n,r,i,o,a){var s=r[i];n.getComponentRect(s.ref,function(e){e.size.id=s.id,e.size.dataset=s.dataset,o.push(e.size),(i+=1)<r.length?t(n,r,i,o,a):a(o)})}(r,o,0,[],function(e){n(e)})}function xc(e,t,n,r){fh.publishHandler(t,{type:n,data:r},e)}fh.subscribe("onAdMethodCallback",function(e,t){var n=e.callbackId;!function(e,n,t){var r=e.adpid,i=e.width,o=r+"-"+i,a=Cc[o];if(a&&0<a.length)return n(a.splice(0,1)[0]);dh.ad.getAds(e,function(e){var t=e.ads;n(t.splice(0,1)[0]),Cc[o]=a?a.concat(t):t},function(e){t({errCode:e.code,errMsg:e.message})})}(e.data,function(e){xc(t,n,"success",e)},function(e){xc(t,n,"fail",e)})});var Cc={};var Tc=["load","close","verify","error","adClicked"],Oc=[-5001,-5002,-5003,-5004,-5005,-5006],Ec={code:-5008,errMsg:"广告数据已过期,请重新加载"},Ic="csj",Ac=function(e){var i=this;void 0===e&&(e={});var n=this._callbacks={};Tc.forEach(function(t){n[t]=[];var e=t[0].toUpperCase()+t.substr(1);i["on"+e]=function(e){n[t].push(e)}}),this._preload=void 0===e.preload||e.preload,this._isLoad=!1,this._isLoading=!1,this._adError="",this._loadPromiseResolve=null,this._loadPromiseReject=null,this._lastLoadTime=0;var t=this._rewardAd=dh.ad.createRewardedVideoAd(e);t.onLoad(function(e){i._isLoad=!0,i._isLoading=!1,i._lastLoadTime=Date.now(),i._dispatchEvent("load",{}),null!=i._loadPromiseResolve&&(i._loadPromiseResolve(),i._loadPromiseResolve=null)}),t.onClose(function(e){i._isLoad=!1,i._isLoading=!1,i._preload&&i._loadAd(),i._dispatchEvent("close",{isEnded:e.isEnded})}),t.onVerify&&t.onVerify(function(e){i._dispatchEvent("verify",{isValid:e.isValid})}),t.onError(function(e){i._isLoading=!1;var t=e.code,n=e.message,r={code:t,errMsg:n};i._adError=n,-5008===t&&(i._isLoad=!1),i._dispatchEvent("error",r),-5005!==t&&-1!==Oc.index(t)||null==i._loadPromiseReject||(i._loadPromiseReject(r),i._loadPromiseReject=null)}),t.onAdClicked(function(e){i._dispatchEvent("adClicked",{})}),this._preload&&this._loadAd()},$c={isExpired:{configurable:!0}};$c.isExpired.get=function(){return 0!==this._lastLoadTime&&18e5<Math.abs(Date.now()-this._lastLoadTime)},Ac.prototype.load=function(){var n=this;return new Promise(function(e,t){n._loadPromiseResolve=e,n._loadPromiseReject=t,n._isLoading||(n._isLoad?e():n._loadAd())})},Ac.prototype.show=function(){var n=this;return new Promise(function(e,t){if(!n._isLoading){if(n.getProvider()===Ic&&n.isExpired)return n._isLoad=!1,n._dispatchEvent("error",Ec),void t(new Error(Ec.errMsg));n._isLoad?(n._rewardAd.show(),e()):t(new Error(n._adError))}})},Ac.prototype.getProvider=function(){return this._rewardAd.getProvider()},Ac.prototype.destroy=function(){this._rewardAd.destroy()},Ac.prototype._loadAd=function(){this._isLoad=!1,this._isLoading=!0,this._rewardAd.load()},Ac.prototype._dispatchEvent=function(e,t){this._callbacks[e].forEach(function(e){"function"==typeof e&&e(t||{})})},Object.defineProperties(Ac.prototype,$c);var Pc="load",Mc="close",jc="error",Bc="adClicked",Dc=[Pc,Mc,jc,Bc],Nc=function(e,t){var r=this,n=this._callbacks={};Dc.forEach(function(t){n[t]=[];var e=t[0].toUpperCase()+t.substr(1);r["on"+e]=function(e){n[t].push(e)}}),this._preload=void 0!==t.preload&&t.preload,this._isLoaded=!1,this._isLoading=!1,this._adError="",this._loadPromiseResolve=null,this._loadPromiseReject=null,this._showPromiseResolve=null,this._showPromiseReject=null;var i=this._ad=e;i.onLoad(function(e){r._isLoaded=!0,r._isLoading=!1,null!=r._loadPromiseResolve&&(r._loadPromiseResolve(),r._loadPromiseResolve=null),null!=r._showPromiseResolve&&(r._showPromiseResolve(),r._showPromiseResolve=null,r._showAd()),r._dispatchEvent(Pc,{})}),i.onClose(function(e){r._isLoaded=!1,r._isLoading=!1,r._dispatchEvent(Mc,{isEnded:e.isEnded}),!0===r._preload&&r._loadAd()}),i.onError(function(e){r._isLoading=!1;var t={code:e.code,errMsg:e.message};r._adError=t,r._dispatchEvent(jc,t);var n=new Error(JSON.stringify(r._adError));n.code=e.code,n.errMsg=e.message,null!=r._loadPromiseReject&&(r._loadPromiseReject(n),r._loadPromiseReject=null),null!=r._showPromiseReject&&(r._showPromiseReject(n),r._showPromiseReject=null)}),i.onAdClicked&&i.onAdClicked(function(e){r._dispatchEvent(Bc,{})})};Nc.prototype.load=function(){var n=this;return new Promise(function(e,t){n._loadPromiseResolve=e,n._loadPromiseReject=t,n._isLoading||(n._isLoaded?e():n._loadAd())})},Nc.prototype.show=function(){var n=this;return new Promise(function(e,t){n._showPromiseResolve=e,n._showPromiseReject=t,n._isLoading||(n._isLoaded?(n._showAd(),e()):n._loadAd())})},Nc.prototype.destroy=function(){this._ad.destroy()},Nc.prototype.getProvider=function(){return this._ad.getProvider()},Nc.prototype._loadAd=function(){this._adError="",this._isLoaded=!1,this._isLoading=!0,this._ad.load()},Nc.prototype._showAd=function(){this._ad.show()},Nc.prototype._dispatchEvent=function(e,t){this._callbacks[e].forEach(function(e){"function"==typeof e&&e(t||{})})};var Lc=function(t){function e(e){void 0===e&&(e={}),t.call(this,dh.ad.createFullScreenVideoAd(e),e)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e}(Nc);var Rc=function(t){function e(e){void 0===e&&(e={}),t.call(this,dh.ad.createInterstitialAd(e),e),this._loadAd()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e}(Nc);var Fc={},zc={};var Vc=function(e){var n=this,r=this._callbacks={};Dc.forEach(function(t){r[t]=[];var e=t[0].toUpperCase()+t.substr(1);n["on"+e]=function(e){r[t].push(e)}}),this._ad=null,this._adError="",this._adpid=e.adpid,this._provider=e.provider,this._userData=e.userData,this._isLoaded=!1,this._isLoading=!1,this._loadPromiseResolve=null,this._loadPromiseReject=null,this._showPromiseResolve=null,this._showPromiseReject=null,ph(function(){n._init()})};Vc.prototype._init=function(){var t=this;this._adError="",function(e){var r=e.provider;if(Fc[r]||(Fc[r]={}),"object"!=typeof Fc[r].plugin)if(zc[r]||(zc[r]=[]),zc[r].push(e),!0!==Fc[r].status){Fc[r].status=!0;var i=Dr(r);if(!i||!i.initSDK)return zc[r].forEach(function(e){e.fail({code:-1,message:"provider ["+r+"] invalid"})}),zc[r].length=0,Fc[r].status=!1;Fc[r].plugin=i,(e.__plugin=i).initSDK(function(t){var n=1===t.code||"1"===t.code;n?Fc[r].plugin=i:Fc[r].status=!1,zc[r].forEach(function(e){n?e.success(e.__plugin):e.fail(t)}),zc[r].length=0})}else e.__plugin=Fc[r].plugin;else e.success(Fc[r].plugin)}({provider:this._provider,success:function(e){t._ad=e,t._userData&&t.bindUserData(t._userData),t._loadAd()},fail:function(e){t._adError=e,t._dispatchEvent(jc,e)}})},Vc.prototype.getProvider=function(){return this._provider},Vc.prototype.load=function(){var n=this;return new Promise(function(e,t){n._loadPromiseResolve=e,n._loadPromiseReject=t,n._isLoading||(n._adError?n._init():n._isLoaded?e():n._loadAd())})},Vc.prototype.show=function(){var n=this;return new Promise(function(e,t){n._showPromiseResolve=e,n._showPromiseReject=t,n._isLoading||(n._adError?n._init():n._isLoaded?(n._showAd(),e()):n._loadAd())})},Vc.prototype.destroy=function(){null!==this._ad&&this._ad.destroy&&this._ad.destroy({adpid:this._adpid})},Vc.prototype.bindUserData=function(e){null!==this._ad&&this._ad.bindUserData(e)},Vc.prototype._loadAd=function(){var t=this;if(null!==this._ad){if(!0===this._isLoading)return;this._isLoading=!0,this._ad.loadData({adpid:this._adpid},function(e){t._isLoaded=!0,t._isLoading=!1,null!=t._loadPromiseResolve&&(t._loadPromiseResolve(),t._loadPromiseResolve=null),null!=t._showPromiseResolve&&(t._showPromiseResolve(),t._showPromiseResolve=null,t._showAd()),t._dispatchEvent(Pc,e)},function(e){t._isLoading=!1,null!=t._showPromiseReject&&(t._showPromiseReject(t._createError(e)),t._showPromiseReject=null),t._dispatchEvent(jc,e)})}},Vc.prototype._showAd=function(){var t=this;null!==this._ad&&!0===this._isLoaded&&this._ad.show({adpid:this._adpid},function(e){t._isLoaded=!1},function(e){t._isLoaded=!1,null!=t._showPromiseReject&&(t._showPromiseReject(t._createError(e)),t._showPromiseReject=null),t._dispatchEvent(jc,e)})},Vc.prototype._createError=function(e){var t=new Error(JSON.stringify(e));return t.code=e.code,t.errMsg=e.message,t},Vc.prototype._dispatchEvent=function(e,t){this._callbacks[e].forEach(function(e){"function"==typeof e&&e(t||{})})};var Uc=Object.freeze({__proto__:null,startPullDownRefresh:function(){return dc&&dc.endPullToRefresh(),(dc=Wr())?(dc.beginPullToRefresh(),{errMsg:"startPullDownRefresh:ok"}):{errMsg:"startPullDownRefresh:fail"}},stopPullDownRefresh:function(){return dc||(dc=Wr()),dc?(dc.endPullToRefresh(),dc=null,{errMsg:"stopPullDownRefresh:ok"}):{errMsg:"stopPullDownRefresh:fail"}},$on:Ir,$off:Ar,$once:$r,$emit:Pr,createAudioInstance:function(){var e=""+Date.now()+Math.random(),t=si[e]=dh.audio.createPlayer("");return t.src="",t.volume=1,t.startTime=0,{errMsg:"createAudioInstance:ok",audioId:e}},destroyAudioInstance:function(e){var t=e.audioId;return si[t]&&(si[t].close(),delete si[t]),{errMsg:"destroyAudioInstance:ok",audioId:t}},setAudioState:function(e){var t=e.audioId,n=e.src,r=e.startTime,i=e.autoplay;void 0===i&&(i=!1);var o=e.loop;void 0===o&&(o=!1),e.obeyMuteSwitch;var a,s,c=e.volume,u=si[t];if(u){var l={loop:o,autoplay:i};n&&(u.src=l.src=Xr(n)),r&&(u.startTime=l.startTime=r),"number"==typeof c&&(u.volume=l.volume=c),u.setStyles(l),(s=si[a=t])&&(s.initStateChage||(s.initStateChage=!0,s.addEventListener("error",function(e){ui("error",{audioId:a,errMsg:"MediaError",errCode:e.code})}),ci.forEach(function(e){s.addEventListener(e,function(){"play"===e?s.isStopped=!1:"stop"===e&&(s.isStopped=!0),ui(e,{audioId:a})})})))}return{errMsg:"setAudioState:ok"}},getAudioState:function(e){var t=e.audioId,n=si[t];if(!n)return{errMsg:"getAudioState:fail"};var r=n.src,i=n.startTime,o=n.volume;return{errMsg:"getAudioState:ok",duration:1e3*(n.getDuration()||0),currentTime:n.isStopped?0:1e3*n.getPosition(),paused:n.isPaused(),src:r,volume:o,startTime:1e3*i,buffered:1e3*n.getBuffered()}},operateAudio:function(e){var t=e.operationType,n=e.audioId,r=e.currentTime,i=si[n],o=["play","pause","stop"];return 0<=o.indexOf(t)?i[t===o[0]&&i.isPaused()?"resume":t]():"seek"===t&&i.seekTo(r/1e3),{errMsg:"operateAudio:ok"}},getMusicPlayerState:function(){var e=mi();return e?{dataUrl:e.src,duration:e.getDuration()||0,currentPosition:e.getPosition(),status:e.isPaused()?0:1,downloadPercent:Math.round(100*e.getBuffered()/e.getDuration()),errMsg:"getMusicPlayerState:ok"}:{status:2,errMsg:"getMusicPlayerState:ok"}},operateMusicPlayer:yi,setBackgroundAudioState:function(e){return gi(e),{errMsg:"setBackgroundAudioState:ok"}},operateBackgroundAudio:function(e){var t=e.operationType,n=e.src,r=e.startTime,i=e.currentTime;return yi({operationType:t,dataUrl:n,position:r||i||0,api:"operateBackgroundAudio"})},getBackgroundAudioState:function(){var e={duration:0,currentTime:0,paused:!1,src:"",buffered:0,title:"",epname:"",singer:"",coverImgUrl:"",webUrl:"",startTime:0,errMsg:"getBackgroundAudioState:ok"},t=mi();if(t){var n={duration:t.getDuration()||0,currentTime:t.isStopped?0:t.getPosition(),paused:t.isPaused(),src:t.src,buffered:t.getBuffered(),title:t.title,epname:t.epname,singer:t.singer,coverImgUrl:t.coverImgUrl,webUrl:t.webUrl,startTime:t.startTime};e=Object.assign(e,n)}return e},operateMapPlayer:function(e,t,n,r){var i,o,a,s,c,u,l;t.$page.meta.isNVue?(c=e,u=t,l=r,Oi[n](xi(c,u),l)):(i=e,o=n,a=r,s=t.$page.id,fh.publishHandler(s+"-map-"+i,{mapId:i,type:o,data:a},s))},operateVideoPlayer:function(e,t,n,r){var i,o,a,s,c,u,l;t.$page.meta.isNVue?(c=e,u=t,l=r,Ei[n](xi(c,u),l)):(i=e,o=n,a=r,s=t.$page.id,fh.publishHandler(s+"-video-"+i,{videoId:i,type:o,data:a},s))},createLivePusherContext:function(e,t){return function(e,t){if(!t)return console.warn("uni.createLivePusherContext: 2 arguments required, but only 1 present");var n=xi(e,t);return n?new Ii(e,n):console.warn("Can not find `"+e+"`")}(e,t)},startAccelerometer:Ni,stopAccelerometer:Li,onAccelerometerChange:function(e){Di.length||Ni(),Di.push(e)},offAccelerometerChange:function(e){if(e){var t=Di.indexOf(e);0<=t&&Di.splice(t,1)}Di.length||Li()},addPhoneContact:function(e,d){void 0===e&&(e={});var f=e.photoFilePath;void 0===f&&(f="");var p=e.nickName,h=e.lastName,v=e.middleName,g=e.firstName,m=e.remark,y=e.mobilePhoneNumber,_=e.weChatNumber,b=e.addressCountry,w=e.addressState,k=e.addressCity,S=e.addressStreet,x=e.addressPostalCode,C=(e.organization,e.title,e.workFaxNumber),T=e.workPhoneNumber,O=e.hostNumber,E=e.email,I=e.url,A=e.workAddressCountry,$=e.workAddressState,P=e.workAddressCity,M=e.workAddressStreet,j=e.workAddressPostalCode,B=e.homeFaxNumber,D=(e.homePhoneNumber,e.homeAddressCountry),N=e.homeAddressState,L=e.homeAddressCity,R=e.homeAddressStreet,F=e.homeAddressPostalCode;dh.contacts.getAddressBook(dh.contacts.ADDRESSBOOK_PHONE,function(e){var t=e.create(),n={};h&&(n.familyName=h),g&&(n.givenName=g),v&&(n.middleName=v),t.name=n,p&&(t.nickname=p),f&&(t.photos=[{type:"url",value:f}]),m&&(t.note=m);var r={type:"mobile"},i={type:"work"},o={type:"company"},a={type:"home fax"},s={type:"work fax"};y&&(r.value=y),T&&(i.value=T),O&&(o.value=O),B&&(a.value=B),C&&(s.value=C),t.phoneNumbers=[r,i,o,a,s],E&&(t.emails=[{type:"home",value:E}]),I&&(t.urls=[{type:"other",value:I}]),_&&(t.ims=[{type:"other",value:_}]);var c={type:"other",preferred:!0},u={type:"home"},l={type:"company"};b&&(c.country=b),w&&(c.region=w),k&&(c.locality=k),S&&(c.streetAddress=S),x&&(c.postalCode=x),D&&(u.country=D),N&&(u.region=N),L&&(u.locality=L),R&&(u.streetAddress=R),F&&(u.postalCode=F),A&&(l.country=A),$&&(l.region=$),P&&(l.locality=P),M&&(l.streetAddress=M),j&&(l.postalCode=j),t.addresses=[c,u,l],t.save(function(){Br(d,{errMsg:"addPhoneContact:ok"})},function(e){Br(d,{errMsg:"addPhoneContact:fail"})})},function(e){Br(d,{errMsg:"addPhoneContact:fail"})})},onBluetoothDeviceFound:Ri,onBluetoothAdapterStateChange:Fi,onBLEConnectionStateChange:zi,onBLECharacteristicValueChange:Vi,openBluetoothAdapter:Wi,closeBluetoothAdapter:Hi,getBluetoothAdapterState:Gi,startBluetoothDevicesDiscovery:Xi,stopBluetoothDevicesDiscovery:Yi,getBluetoothDevices:Ji,getConnectedBluetoothDevices:Ki,createBLEConnection:Zi,closeBLEConnection:Qi,getBLEDeviceServices:eo,getBLEDeviceCharacteristics:to,notifyBLECharacteristicValueChange:no,readBLECharacteristicValue:ro,writeBLECharacteristicValue:io,setBLEMTU:oo,getBLEDeviceRSSI:ao,getScreenBrightness:function(){return{errMsg:"getScreenBrightness:ok",value:dh.screen.getBrightness(!1)}},setScreenBrightness:function(e){void 0===e&&(e={});var t=e.value;return dh.screen.setBrightness(t,!1),{errMsg:"setScreenBrightness:ok"}},setKeepScreenOn:function(e){void 0===e&&(e={});var t=e.keepScreenOn;return dh.device.setWakelock(!!t),{errMsg:"setKeepScreenOn:ok"}},getClipboardData:function(e,t){Dr("clipboard").getString(function(e){"success"===e.result?Br(t,{data:e.data,errMsg:"getClipboardData:ok"}):Br(t,{data:e.result,errMsg:"getClipboardData:fail"})})},setClipboardData:function(e){var t=e.data;return Dr("clipboard").setString(t),{errMsg:"setClipboardData:ok"}},startCompass:co,stopCompass:uo,onCompassChange:function(e){so.length||co(),so.push(e)},offCompassChange:function(e){if(e){var t=so.indexOf(e);0<=t&&so.splice(t,1)}so.length||uo()},getNetworkType:function(){return{errMsg:"getNetworkType:ok",networkType:Pi[dh.networkinfo.getCurrentType()]||"unknown"}},onBeaconUpdate:lo,onBeaconServiceChange:fo,getBeacons:po,startBeaconDiscovery:ho,stopBeaconDiscovery:vo,makePhoneCall:function(e){void 0===e&&(e={});var t=e.phoneNumber;return dh.device.dial(t),{errMsg:"makePhoneCall:ok"}},scanCode:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n="weex"!==mh.nvueCompiler?Xo:zo;return n.scanCode.apply(n,e)},checkIsSupportSoterAuthentication:Ko,checkIsSoterEnrolledInDevice:Zo,startSoterAuthentication:function(e,t){void 0===e&&(e={});var n=e.requestAuthModes,r=e.challenge;void 0===r&&(r=!1);var i=e.authContent,o=Ko().supportMode;if(0===o.length)return{authMode:o[0]||"fingerPrint",errCode:90001,errMsg:"startSoterAuthentication:fail"};var a=[];if(n.map(function(e,t){-1<o.indexOf(e)&&a.push(e)}),0===a.length)return{authMode:a[0]||"fingerPrint",errCode:90003,errMsg:"startSoterAuthentication:fail no corresponding mode"};var s=[];if(a.map(function(e,t){Zo({checkAuthMode:e}).isEnrolled&&s.push(e)}),0===s.length)return{authMode:a[0],errCode:90011,errMsg:"startSoterAuthentication:fail no "+a[0]+" enrolled"};var c=s[0];"fingerPrint"===c?("android"===dh.os.name.toLowerCase()&&(dh.nativeUI.showWaiting(i||Be("uni.startSoterAuthentication.authContent")).onclose=function(){dh.fingerprint.cancel()}),dh.fingerprint.authenticate(function(){dh.nativeUI.closeWaiting(),Br(t,{authMode:c,errCode:0,errMsg:"startSoterAuthentication:ok"})},function(e){switch(e.code){case e.AUTHENTICATE_MISMATCH:break;case e.AUTHENTICATE_OVERLIMIT:dh.nativeUI.closeWaiting(),Br(t,{authMode:c,errCode:90010,errMsg:"startSoterAuthentication:fail authenticate freeze. please try again later"});break;case e.CANCEL:dh.nativeUI.closeWaiting(),Br(t,{authMode:c,errCode:90008,errMsg:"startSoterAuthentication:fail cancel"});break;default:dh.nativeUI.closeWaiting(),Br(t,{authMode:c,errCode:90007,errMsg:"startSoterAuthentication:fail"})}},{message:i})):"facial"===c&&Dr("faceID").authenticate({message:i},function(e){if("success"===e.type&&0===e.code)Br(t,{authMode:c,errCode:0,errMsg:"startSoterAuthentication:ok"});else switch(e.code){case 4:Br(t,{authMode:c,errCode:90009,errMsg:"startSoterAuthentication:fail"});break;case 5:Br(t,{authMode:c,errCode:90010,errMsg:"startSoterAuthentication:fail authenticate freeze. please try again later"});break;case 6:Br(t,{authMode:c,errCode:90008,errMsg:"startSoterAuthentication:fail cancel"});break;default:Br(t,{authMode:c,errCode:90007,errMsg:"startSoterAuthentication:fail"})}})},getSystemInfoSync:function(){return Ur(ca,Object.create(null),"getSystemInfo","getSystemInfoSync")},getSystemInfo:ca,vibrateLong:function(){return dh.device.vibrate(400),{errMsg:"vibrateLong:ok"}},vibrateShort:function(){return dh.device.vibrate(15),{errMsg:"vibrateShort:ok"}},saveFile:function(e,n){void 0===e&&(e={});var t,r=e.tempFilePath,i=ri(n,"saveFile"),o=""+Date.now()+fa+++(1<(t=r.split(".")).length?"."+t[t.length-1]:"");dh.io.resolveLocalFileSystemURL(r,function(t){da(function(e){t.copyTo(e,o,function(){Br(n,{errMsg:"saveFile:ok",savedFilePath:la+"/"+o})},i)},i)},i)},getSavedFileList:function(e,i){var o=ri(i,"getSavedFileList");da(function(e){var t=e.createReader(),r=[];t.readEntries(function(n){n&&n.length?n.forEach(function(t){t.getMetadata(function(e){r.push({filePath:dh.io.convertAbsoluteFileSystem(t.fullPath),createTime:e.modificationTime.getTime(),size:e.size}),r.length===n.length&&Br(i,{errMsg:"getSavedFileList:ok",fileList:r})},o,!1)}):Br(i,{errMsg:"getSavedFileList:ok",fileList:r})},o)},o)},getFileInfo:pa,getSavedFileInfo:function(e,t){void 0===e&&(e={});var n=e.filePath,r=ri(t,"getSavedFileInfo");dh.io.resolveLocalFileSystemURL(n,function(e){e.getMetadata(function(e){Br(t,{createTime:e.modificationTime.getTime(),size:e.size,errMsg:"getSavedFileInfo:ok"})},r,!1)},r)},removeSavedFile:function(e,t){void 0===e&&(e={});var n=e.filePath,r=ri(t,"removeSavedFile");dh.io.resolveLocalFileSystemURL(n,function(e){e.remove(function(){Br(t,{errMsg:"removeSavedFile:ok"})},r)},r)},openDocument:function(e,t){void 0===e&&(e={});var n=e.filePath;e.fileType,dh.io.resolveLocalFileSystemURL(Xr(n),function(e){dh.runtime.openFile(Xr(n)),Br(t,{errMsg:"openDocument:ok"})},function(e){Br(t,{errMsg:"openDocument:fail "+e.message})})},chooseLocation:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n="weex"!==mh.nvueCompiler?ga:va;return n.chooseLocation.apply(n,e)},getLocation:function(e,t){void 0===e&&(e={});var n=e.type;void 0===n&&(n="wgs84");var r=e.geocode;void 0===r&&(r=!1);var i=e.altitude;void 0===i&&(i=!1),dh.geolocation.getCurrentPosition(function(e){ma(n,e,t)},function(e){1501!==e.code?Br(t,{errMsg:"getLocation:fail "+e.message}):ma(n,e,t)},{geocode:r,enableHighAccuracy:i})},openLocation:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n="weex"!==mh.nvueCompiler?_a:ya;return n.openLocation.apply(n,e)},startRecord:function(e,t){ba&&ba.stop(),(ba=dh.audio.getRecorder()).record({filename:"_doc/audio/",format:"aac"},function(e){Br(t,{errMsg:"startRecord:ok",tempFilePath:e})},function(e){Br(t,{errMsg:"startRecord:fail"})}),wa=ph(function(){ba.stop(),ba=!1},36e5)},stopRecord:function(){return ba?(wa&&hh(wa),ba.stop(),{errMsg:"stopRecord:ok"}):{errMsg:"stopRecord:fail"}},playVoice:function(e,t){void 0===e&&(e={});var n=e.filePath;if(ka&&Sa===n&&"pause"===xa)return xa="play",ka.play(function(e){xa=Sa=ka=!1,Br(t,{errMsg:"playVoice:ok"})}),{errMsg:"playVoice:ok"};ka&&ka.stop(),Sa=n,xa="play",(ka=dh.audio.createPlayer(Xr(n))).play(function(e){xa=Sa=ka=!1,Br(t,{errMsg:"playVoice:ok"})})},pauseVoice:function(){return ka&&"play"===xa&&(ka.pause(),xa="pause"),{errMsg:"pauseVoice:ok"}},stopVoice:function(){return ka&&(ka.stop(),xa=Sa=ka=!1),{errMsg:"stopVoice:ok"}},chooseImage:function(e,t){void 0===e&&(e={});var n=e.count,o=e.sizeType,r=e.sourceType,i=ri(t,"chooseImage","cancel");function a(e){var n=[],r=[];e.reduce(function(e,i){return e.then(function(){return Ca(i)}).then(function(e){var t,n,r=e.size;return o.includes("compressed")&&524288<r?(t=i,n=Bi+"/compressed/"+Date.now()+"_"+oi(t),new Promise(function(e){dh.nativeUI.showWaiting(),dh.zip.compressImage({src:t,dst:n,overwrite:!0},function(){dh.nativeUI.closeWaiting(),e(n)},function(){dh.nativeUI.closeWaiting(),e(t)})})).then(function(e){return Ca(i=e)}):e}).then(function(e){var t=e.size;r.push(i),n.push({path:i,size:t})})},Promise.resolve()).then(function(){Br(t,{errMsg:"chooseImage:ok",tempFilePaths:r,tempFiles:n})}).catch(i)}function s(){dh.camera.getCamera().captureImage(function(e){return a([e])},i,{filename:Bi+"/camera/",resolution:"high"})}function c(){dh.gallery.pick(function(e){return a(e.files)},i,{maximum:n,multiple:!0,system:!1,filename:Bi+"/gallery/",permissionAlert:!0})}if(1===r.length){if(r.includes("album"))return void c();if(r.includes("camera"))return void s()}dh.nativeUI.actionSheet({cancel:Be("uni.chooseImage.cancel"),buttons:[{title:Be("uni.chooseImage.sourceType.camera")},{title:Be("uni.chooseImage.sourceType.album")}]},function(e){switch(e.index){case 1:s();break;case 2:c();break;default:i()}})},chooseVideo:function(e,r){void 0===e&&(e={});var t=e.sourceType,i=e.compressed,n=e.maxDuration,o=e.camera,a=ri(r,"chooseVideo","cancel");function s(e){void 0===e&&(e="");var t=Bi+"/compressed/"+Date.now()+"_"+oi(e),n=i?new Promise(function(n){dh.zip.compressVideo({src:e,dst:t},function(e){var t=e.tempFilePath;n(t)},function(){n(e)})}):Promise.resolve(e);i&&dh.nativeUI.showWaiting(),n.then(function(n){i&&dh.nativeUI.closeWaiting(),dh.io.getVideoInfo({filePath:n,success:function(e){var t={errMsg:"chooseVideo:ok",tempFilePath:n};t.size=e.size,t.duration=e.duration,t.width=e.width,t.height=e.height,Br(r,t)},fail:a})})}function c(){dh.gallery.pick(function(e){return s(e.files[0])},a,{filter:"video",system:!1,multiple:!0,maximum:1,filename:Bi+"/gallery/",permissionAlert:!0})}function u(){dh.camera.getCamera().startVideoCapture(s,a,{index:"front"===o?2:1,videoMaximumDuration:n,filename:Bi+"/camera/"})}if(1===t.length){if(t.includes("album"))return void c();if(t.includes("camera"))return void u()}dh.nativeUI.actionSheet({cancel:Be("uni.chooseVideo.cancel"),buttons:[{title:Be("uni.chooseVideo.sourceType.camera")},{title:Be("uni.chooseVideo.sourceType.album")}]},function(e){switch(e.index){case 1:u();break;case 2:c();break;default:a()}})},compressImage:function(e,t){var n=Bi+"/compressed/"+Date.now()+"_"+oi(e.src),r=ri(t,"compressImage");dh.zip.compressImage(Object.assign({},e,{dst:n}),function(){Br(t,{errMsg:"compressImage:ok",tempFilePath:n})},r)},compressVideo:function(e,t){var n=Bi+"/compressed/"+Date.now()+"_"+oi(e.src),r=ni(t,"compressVideo"),i=ri(t,"compressVideo");dh.zip.compressVideo(Object.assign({},e,{dst:n}),r,i)},getImageInfo:Ea,getVideoInfo:Ia,previewImagePlus:function(e){void 0===e&&(e={});var t=e.current;void 0===t&&(t=0);var n=e.background;void 0===n&&(n="#000000");var r=e.indicator;void 0===r&&(r="number");var i=e.loop;void 0===i&&(i=!1);var o=e.urls,a=e.longPressActions;o=o.map(function(e){return Xr(e)});var s=Number(t);return t=isNaN(s)?(t=o.indexOf(Xr(t)))<0?0:t:s,dh.nativeUI.previewImage(o,{current:t,background:n,indicator:r,loop:i,onLongPress:function(t){var e=[],n="",r="",i=a&&a.callbackId;i?(e=a.itemList?a.itemList:[],n=a.itemColor?a.itemColor:"#000000",r=a.title?a.title:""):(e=[Be("uni.previewImage.button.save")],n="#000000",r="");var o={buttons:e.map(function(e){return{title:e,color:n}}),cancel:Be("uni.previewImage.cancel")};r&&(o.title=r),dh.nativeUI.actionSheet(o,function(e){if(0<e.index){if(i)return void Nr(a.callbackId,{errMsg:"showActionSheet:ok",tapIndex:e.index-1,index:t.index});dh.gallery.save(t.url,function(e){dh.nativeUI.toast(Be("uni.previewImage.save.success"))},function(){dh.nativeUI.toast(Be("uni.previewImage.save.fail"))})}else i&&Nr(a.callbackId,{errMsg:"showActionSheet:fail cancel"})})}}),{errMsg:"previewImage:ok"}},operateRecorder:function(e,t){var n=e.operationType,r={};for(var i in e)-1===["operationType"].indexOf(i)&&(r[i]=e[i]);var o=r;return $a[n](o),{errMsg:"operateRecorder:ok"}},saveImageToPhotosAlbum:function(e,t){void 0===e&&(e={});var n=e.filePath,r=ni(t,"saveImageToPhotosAlbum"),i=ri(t,"saveImageToPhotosAlbum");dh.gallery.save(Xr(n),r,i)},saveVideoToPhotosAlbum:function(e,t){void 0===e&&(e={});var n=e.filePath;dh.gallery.save(Xr(n),function(e){Br(t,{errMsg:"saveVideoToPhotosAlbum:ok"})},function(e){Br(t,{errMsg:"saveVideoToPhotosAlbum:fail"})})},operateDownloadTask:function(e){void 0===e&&(e={});var t=e.downloadTaskId,n=e.operationType,r=Ma[t];return r&&"abort"===n?(delete Ma[t],r.abort(),ja({downloadTaskId:t,state:"fail",errMsg:"abort"}),{errMsg:"operateDownloadTask:ok"}):{errMsg:"operateDownloadTask:fail"}},createDownloadTask:function(e){return function(n,e){void 0===e&&(e={});var t=e.url,r=e.header,i=e.timeout;i=(i||mh.networkTimeout&&mh.networkTimeout.request||6e4)/1e3;var o=dh.downloader.createDownload(t,{timeout:i,filename:Bi+"/download/",retry:0,retryInterval:0},function(e,t){ja(t?{downloadTaskId:n,state:"success",tempFilePath:e.filename,statusCode:t}:{downloadTaskId:n,state:"fail",statusCode:t})});for(var a in r)b(r,a)&&o.setRequestHeader(a,r[a]);return o.addEventListener("statechanged",function(e,t){e.downloadedSize&&e.totalSize&&ja({downloadTaskId:n,state:"progressUpdate",progress:parseInt(e.downloadedSize/e.totalSize*100),totalBytesWritten:e.downloadedSize,totalBytesExpectedToWrite:e.totalSize})}),(Ma[n]=o).start(),{downloadTaskId:n,errMsg:"createDownloadTask:ok"}}(++Pa,e)},createRequestTaskById:Ra,createRequestTask:function(e){return Ra(++Ba,e)},operateRequestTask:function(e){void 0===e&&(e={});var t=e.requestTaskId,n=e.operationType,r=Da[t];return r&&"abort"===n?(r.abort(),{errMsg:"operateRequestTask:ok"}):{errMsg:"operateRequestTask:fail"}},createSocketTask:function(e){return Ua(String(Date.now()),e)},operateSocketTask:function(e){var t,n=e,r=n.operationType,i=n.code,o=n.reason,a=n.data,s=n.socketTaskId,c=za[s];if(!c)return{errMsg:"operateSocketTask:fail"};switch(r){case"send":return a&&c.send({id:s,data:"object"==typeof a?{"@type":"binary",base64:(t=a,fr(t))}:a}),{errMsg:"operateSocketTask:ok"};case"close":return c.close({id:s,code:i,reason:o}),delete za[s],{errMsg:"operateSocketTask:ok"}}return{errMsg:"operateSocketTask:fail"}},operateUploadTask:function(e){void 0===e&&(e={});var t=e.uploadTaskId,n=e.operationType,r=Wa[t];return r&&"abort"===n?(delete Wa[t],r.abort(),Ha({uploadTaskId:t,state:"fail",errMsg:"abort"}),{errMsg:"operateUploadTask:ok"}):{errMsg:"operateUploadTask:fail"}},createUploadTask:function(e){return function(n,e){void 0===e&&(e={});var t=e.url,r=e.filePath,i=e.name,o=e.files,a=e.header,s=e.formData,c=e.timeout;void 0===c&&(c=mh.networkTimeout.uploadFile?mh.networkTimeout.uploadFile/1e3:120);var u=dh.uploader.createUpload(t,{timeout:c,retry:0,retryInterval:0},function(e,t){Ha(t?{uploadTaskId:n,state:"success",data:e.responseText,statusCode:t}:{uploadTaskId:n,state:"fail",data:"",statusCode:t}),delete Wa[n]});for(var l in a)b(a,l)&&u.setRequestHeader(l,String(a[l]));for(var d in s)b(s,d)&&u.addData(d,String(s[d]));return o&&o.length?o.forEach(function(e){u.addFile(Xr(e.uri),{key:e.name||"file"})}):u.addFile(Xr(r),{key:i}),u.addEventListener("statechanged",function(e,t){e.uploadedSize&&e.totalSize&&Ha({uploadTaskId:n,state:"progressUpdate",progress:parseInt(e.uploadedSize/e.totalSize*100),totalBytesSent:e.uploadedSize,totalBytesExpectedToSend:e.totalSize})}),(Wa[n]=u).start(),{uploadTaskId:n,errMsg:"createUploadTask:ok"}}(++qa,e)},getProvider:function(e,n){var r=e.service;Xa[r]?Xa[r](function(e,t){Br(n,e?{errMsg:"getProvider:fail "+e.message}:{errMsg:"getProvider:ok",service:r,provider:t})}):Br(n,{errMsg:"getProvider:fail service not found"})},login:function(i,o){var a=i.provider||"weixin",s=ri(o,"login");Ya(a).then(function(e){function t(){var n,r;e.login(function(e){var t=e.target.authResult;Br(o,{code:t.code,authResult:t,errMsg:"login:ok"})},s,"apple"===a?{scope:"email"}:{univerifyStyle:(n=i.univerifyStyle,r=s,n&&E(n)&&n.buttons&&"[object Array]"===Object.prototype.toString.call(n.buttons.list)&&0<n.buttons.list.length&&n.buttons.list.forEach(function(e,t){n.buttons.list[t].onclick=function(){Ka().then(function(){r({code:"30008",message:"用户点击了自定义按钮",index:t})})}}),n)})}"apple"===a||"univerify"===a?t():e.logout(t,t)}).catch(s)},getUserInfo:Ja,getUserProfile:function(e,t){return Ja(e,t)},operateWXData:function(e,t){switch(e.data.api_name){case"webapi_getuserinfo":Ja(e,t);break;default:return{errMsg:"operateWXData:fail"}}},preLogin:function(e,t){var n=ni(t,"preLogin"),r=ri(t,"preLogin");Ya(e.provider).then(function(e){return e.preLogin(n,r)}).catch(r)},closeAuthView:Ka,requestPayment:function(n,r){var i=n.provider,o=ri(r,"requestPayment");dh.payment.getChannels(function(e){var t=e.find(function(e){return e.id===i});t?dh.payment.request(t,n.orderInfo,function(e){e.errMsg="requestPayment:ok",Br(r,e)},o):Br(r,{errMsg:"requestPayment:fail service not found"})},o)},subscribePush:function(e,t){var n=dh.push.getClientInfo();return n?(Za||(Za=!0,dh.push.addEventListener("receive",function(e){Ga&&!Qa&&Nr("onPushMessage",{messageId:e.__UUID__,data:e.payload,errMsg:"onPush:ok"})})),Qa=!1,n.errMsg="subscribePush:ok",n):{errMsg:"subscribePush:fail 请确保当前运行环境已包含 push 模块"}},unsubscribePush:function(e){return Qa=!0,{errMsg:"unsubscribePush:ok"}},onPush:function(){return Za?dh.push.getClientInfo()?(Ga=!0,{errMsg:"onPush:ok"}):{errMsg:"onPush:fail 请确保当前运行环境已包含 push 模块"}:{errMsg:"onPush:fail 请先调用 uni.subscribePush"}},offPush:function(e){return Ga=!1,{errMsg:"offPush:ok"}},requireNativePlugin:es,shareAppMessageDirectly:function(e,t){var n=e.title,r=e.path,i=e.imageUrl,o=e.useDefaultSnapshot;n=n||mh.appname;var a=function(){is({provider:"weixin",type:0,title:n,imageUrl:i,href:r,scene:"WXSceneSession"},t,"shareAppMessageDirectly")},s=ri(t,"shareAppMessageDirectly");if(o){var c=wh(),u=dh.webview.getWebviewById(c[c.length-1].__wxWebviewId__+"");if(u){var l=new dh.nativeObj.Bitmap;u.draw(l,function(){var e=Bi+"/share/snapshot.jpg";l.save(e,{overwrite:!0,format:"jpg"},function(){i=e,a()},s)},s)}else a()}else a()},share:is,shareWithSystem:function(e,t,n){void 0===n&&(n="shareWithSystem");var r=e.type,i=e.imageUrl,o=e.summary,a=e.href;r=r||"text";var s=ri(t,n);["text","image"].indexOf(r)<0&&Br(t,{errMsg:n+":fail 分享参数 type 不正确"}),"string"==typeof i&&i&&(i=Xr(i)),dh.share.sendWithSystem({type:r,pictures:i&&[i],content:o,href:a},function(e){Br(t,{errMsg:n+":ok"})},s)},restoreGlobal:function(e,t,n,r,i,o){var a;dh!==t&&(lh=e,a=(dh=t).navigator.setStatusBarStyle,Lr=a,dh.navigator.setStatusBarStyle=Rr,ph=n,hh=r,vh=i,gh=o),mh.serviceReady=!0},getSubNVueById:as,getCurrentSubNVue:function(){return as(dh.webview.currentWebview().id)},onNativeEventReceive:function(e){ss.push(e)},sendNativeEvent:function(e,t,n){return lh.requireModule("plus").sendNativeEvent(e,t,n)},loadSubPackage:function(e,t){var n,r,i=e.root;if(-1!==cs.indexOf(i))return{errMsg:"loadSubPackage:ok"};cs.push(i),n=i+"/app-sub-service.js",r=function(e){Br(t,{errMsg:"loadSubPackage:ok"})},mh.onServiceReady(function(){lh.requireModule("plus").evalJSFiles([n],r)})},navigateBack:Xs,navigateTo:function(e,t){var n=e.url,r=e.events,i=e.openType,o=e.animationType,a=e.animationDuration,s=n.split("?"),c=s[0],u=yh.find(function(e){return e.path===c}).window,l=mh.window||{};o||(o=u.animationType||l.animationType||mo),a||(a=u.animationDuration||l.animationDuration||yo);var d=g(s[1]||"");zs(c,function(){oc({url:n,path:c,query:d,events:r,animationType:o,animationDuration:a},t)},"appLaunch"===i)},reLaunch:function(e,a){var s=e.url,t=s.split("?"),c=t[0],u=g(t[1]||"");zs(c,function(){var e,t,n,r,i,o;t=a,n=(e={url:s,path:c,query:u}).url,r=e.path,i=e.query,o=wh(!0).slice(0),yh.find(function(e){return e.path===r}).meta.isTabBar&&aa.switchTab(r.slice(1)),Ws(ic({url:n,path:r,query:i,openType:"reLaunch"}),"none",0,function(){o.forEach(function(e){e.$remove(),qs(e.$getAppWebview(),"none")}),Br(t,{errMsg:"reLaunch:ok"})}),Fr()})},redirectTo:function(e,t){var n=e.url,r=e.exists,i=n.split("?"),o=i[0],a=g(i[1]||"");zs(o,function(){sc({url:n,path:o,query:a,exists:r},t)})},switchTab:function(e,t){var n=e.url,r=e.from,i=e.openType,o=n.split("?"),a=o[0],s=g(o[1]||"");zs(a,function(){!function(e,t){var n=e.url,r=e.path,i=e.query;e.from,aa.switchTab(r.slice(1));var o,a,s=wh(),c=s.length,u=!1,l=!1;if(1<=c&&((o=s[c-1]).$page.meta.isTabBar?u=!0:(l=!0,s.reverse().forEach(function(e){e.$page.meta.isTabBar||e===o||(e.$remove(),qs(e.$getAppWebview(),"none"))}),o.$remove(),ph(function(){"redirect"===o.$page.openType?qs(o.$getAppWebview(),_o,yo):qs(o.$getAppWebview(),"auto")},100))),wh(!0).forEach(function(e){"/"+e.route===r?(e.$page.meta.visible||(l=!0),e.$page.meta.visible=!0,a=e):e.$page.meta.isTabBar&&(e.$page.meta.visible=!1)}),o===a&&(u=!1),o&&u&&o.$vm.__call_hook("onHide"),!a)return Ws(ic({url:n,path:r,query:i,openType:"switchTab"}),"none",0,function(){Fr(),Br(t,{errMsg:"switchTab:ok"})},70);var d=a.$getAppWebview();d.show("none"),l&&!d.__preload__&&a.$vm.__call_hook("onShow"),Fr(),Br(t,{errMsg:"switchTab:ok"})}({url:n,path:a,query:s,from:r},t)},"appLaunch"===i)},unPreloadPage:function(e){var t,n,r=e.url,i=((n=rc[t=r])&&(n.__page__&&nc(!0).find(function(e){return e===n.__page__})?n.__preload__=!1:n.close("none"),delete rc[t]),n);return i?{id:i.id,url:r,errMsg:"unPreloadPage:ok"}:{url:r,errMsg:"unPreloadPage:fail not found"}},preloadPage:function(e,t){var n=e.url,r=n.split("?");Br(t,{id:function(e){var t=e.url,n=e.path,r=e.query;if(!rc[t]){var i=JSON.parse(JSON.stringify(yh.find(function(e){return e.path===n})));rc[t]=Bs(n,i,r,{__preload__:!0,__query__:JSON.stringify(r)})}return rc[t]}({url:n,path:r[0],query:g(r[1]||"")}).id,url:n,errMsg:"preloadPage:ok"})},setStorage:function(e,t){void 0===e&&(e={});var n=e.key,r=e.data,i=(e.isSync,typeof r),o="string"===i?r:JSON.stringify({type:i,data:r});try{"string"===i&&void 0!==hc(o)?dh.storage.setItemAsync(n+fc,i):dh.storage.removeItemAsync(n+fc),dh.storage.setItemAsync(n,o,function(){Br(t,{errMsg:"setStorage:ok"})},function(e){Br(t,{errMsg:"setStorage:fail "+e.message})})}catch(e){Br(t,{errMsg:"setStorage:fail "+e})}},setStorageSync:function(e,t){var n=typeof t,r="string"===n?t:JSON.stringify({type:n,data:t});try{"string"===n&&void 0!==hc(r)?dh.storage.setItem(e+fc,n):dh.storage.removeItem(e+fc),dh.storage.setItem(e,r)}catch(e){}},getStorage:function(e,r){void 0===e&&(e={});var t=e.key;dh.storage.getItemAsync(t,function(n){dh.storage.getItemAsync(t+fc,function(e){var t=(e.data||"").toLowerCase();Br(r,{data:vc(t,n.data),errMsg:"getStorage:ok"})},function(){Br(r,{data:vc("",n.data),errMsg:"getStorage:ok"})})},function(e){Br(r,{data:"",errMsg:"getStorage:fail "+e.message})})},getStorageSync:function(e){var t=dh.storage.getItem(e),n=(dh.storage.getItem(e+fc)||"").toLowerCase();return"string"!=typeof t?"":vc(n,t)},removeStorage:function(e,t){void 0===e&&(e={});var n=e.key;dh.storage.removeItemAsync(n+fc),dh.storage.removeItemAsync(n,function(e){Br(t,{errMsg:"removeStorage:ok"})},function(e){Br(t,{errMsg:"removeStorage:fail "+e.message})})},removeStorageSync:function(e){dh.storage.removeItem(e+fc),dh.storage.removeItem(e)},clearStorage:function(e,t){dh.storage.clearAsync(function(e){Br(t,{errMsg:"clearStorage:ok"})},function(e){Br(t,{errMsg:"clearStorage:fail "+e.message})})},clearStorageSync:function(){dh.storage.clear()},getStorageInfo:gc,getStorageInfoSync:function(){var e=gc();return delete e.errMsg,e},showKeyboard:function(){return dh.key.showSoftKeybord(),{errMsg:"showKeyboard:ok"}},hideKeyboard:function(){return dh.key.hideSoftKeybord(),{errMsg:"hideKeyboard:ok"}},setNavigationBarTitle:function(e){void 0===e&&(e={});var t=e.__page__,n=e.title;void 0===n&&(n="");var r=qr(t);if(r){var i=r.getStyle();return i&&i.titleNView&&r.setStyle({titleNView:{titleText:n}}),{errMsg:"setNavigationBarTitle:ok"}}return{errMsg:"setNavigationBarTitle:fail"}},showNavigationBarLoading:function(){return dh.nativeUI.showWaiting("",{modal:!1}),{errMsg:"showNavigationBarLoading:ok"}},hideNavigationBarLoading:function(){return dh.nativeUI.closeWaiting(),{errMsg:"hideNavigationBarLoading:ok"}},setNavigationBarColor:function(e){void 0===e&&(e={});var t,n,r=e.__page__,i=e.frontColor,o=e.backgroundColor,a=qr(r);if(a){var s={};i&&(s.titleColor=i),o&&(s.backgroundColor=o);var c="#000000"===i?"dark":"light";dh.navigator.setStatusBarStyle(c),t=c,(n=wh()).length&&(n[n.length-1].$page.meta.statusBarStyle=t);var u=a.getStyle();return u&&u.titleNView&&(u.titleNView.autoBackButton&&(s.backButton=s.backButton||{},s.backButton.color=i),a.setStyle({titleNView:s})),{errMsg:"setNavigationBarColor:ok"}}return{errMsg:"setNavigationBarColor:fail"}},showLoading:function(e){return Ur(mc,Object.assign({},e,{type:"loading"}),"showToast","showLoading")},hideLoading:function(){return Ur(yc,"loading","hide","hideLoading")},showToast:mc,hideToast:function(){return Ur(yc,"toast","hide","hideToast")},hide:yc,showModal:function(e,t){void 0===e&&(e={});var n=e.title;void 0===n&&(n="");var r=e.content;void 0===r&&(r="");var i=e.showCancel;void 0===i&&(i=!0);var o=e.cancelText,a=(e.cancelColor,e.confirmText);e.confirmColor,r=r||" ",dh.nativeUI.confirm(r,function(e){Br(t,i?{errMsg:"showModal:ok",confirm:1===e.index,cancel:0===e.index||-1===e.index}:{errMsg:"showModal:ok",confirm:0===e.index,cancel:!1})},n,i?[o,a]:[a])},showActionSheet:function(e,t){var n=e.itemList;void 0===n&&(n=[]);var r=e.itemColor;void 0===r&&(r="#000000");var i=e.title;void 0===i&&(i="");var o=e.popover,a={buttons:n.map(function(e){return{title:e,color:r}})};i&&(a.title=i),a.cancel=Be("uni.showActionSheet.cancel"),dh.nativeUI.actionSheet(Object.assign(a,{popover:o}),function(e){0<e.index?Br(t,{errMsg:"showActionSheet:ok",tapIndex:e.index-1}):Br(t,{errMsg:"showActionSheet:fail cancel"})})},setTabBarBadge:function(e){var t=e.index,n=e.text,r=e.type;return void 0===r&&(r="text"),aa.setTabBarBadge(r,t,n),{errMsg:"setTabBarBadge:ok"}},setTabBarItem:function(e){var t=e.index,n=e.text,r=e.iconPath,i=e.selectedIconPath,o=e.pagePath;aa.setTabBarItem(t,n,r,i);var a=o&&yh.find(function(e){return e.path===o});if(a){var s=a.meta;s.isTabBar=!0,s.tabBarIndex=t,s.isQuit=!0;var c=mh.tabBar;c&&c.list&&c.list[t]&&(c.list[t].pagePath=o.startsWith("/")?o.substring(1):o)}return{errMsg:"setTabBarItem:ok"}},setTabBarStyle:function(e){if(void 0===e&&(e={}),!zr())return{errMsg:"setTabBarStyle:fail not TabBar page"};var t={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"},n=e.borderStyle;return n in t&&(e.borderStyle=t[n]),aa.setTabBarStyle(e),{errMsg:"setTabBarStyle:ok"}},hideTabBar:function(e){var t=e.animation;return zr()?(aa.hideTabBar(t),{errMsg:"hideTabBar:ok"}):{errMsg:"hideTabBar:fail not TabBar page"}},showTabBar:function(e){var t=e.animation;return zr()?(aa.showTabBar(t),{errMsg:"showTabBar:ok"}):{errMsg:"showTabBar:fail not TabBar page"}},requestComponentInfo:function(e,t,n){var r,i,o;e.$page.meta.isNVue?Sc(e,t,n):(r=e,i=t,o=n,fh.publishHandler("requestComponentInfo",{reqId:wc.push(o),reqs:i},r.$page.id))},createRewardedVideoAd:function(e){return new Ac(e)},createFullScreenVideoAd:function(e){return new Lc(e)},createInterstitialAd:function(e){return new Rc(e)},createInteractiveAd:function(e){return e.provider?e.adpid?new Vc(e):new Error("adpid invalid"):new Error("provider invalid")}}),qc=Object.assign(Object.create(null),Uc,jr);function Wc(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return qc[e].apply(null,t)}function Hc(e,t){return fh.on("api."+e,t)}function Gc(e){var t=wh(),n=t.length;return n||fh.emit("onError",e+":fail"),t[n-1].$vm}function Xc(){var e=wh(),t=e[e.length-1];return t&&t.$page.id}var Yc=["canplay","play","pause","stop","ended","timeUpdate","prev","next","error","waiting"],Jc={};Yc.forEach(function(e){Jc[e]=[]});var Kc,Zc=[{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"}],Qc=function(){var r=this;this._options={},Hc("onBackgroundAudioStateChange",function(e){var t=e.state,n=e.errMsg,r=e.errCode;Jc[t].forEach(function(e){"function"==typeof e&&e("error"===t?{errMsg:n,errCode:r}:{})})}),Zc.forEach(function(t){var n=t.name,e={get:function(){var e=t.cache?this._options:Wc("getBackgroundAudioState");return n in e?e[n]:t.default}};t.readonly||(e.set=function(e){this._options[n]=e,Wc("setBackgroundAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(r,n,e)})};Qc.prototype.play=function(){this._operate("play")},Qc.prototype.pause=function(){this._operate("pause")},Qc.prototype.stop=function(){this._operate("stop")},Qc.prototype.seek=function(e){this._operate("seek",{currentTime:e})},Qc.prototype._operate=function(e,t){Wc("operateBackgroundAudio",Object.assign({},t,{operationType:e}))},Yc.forEach(function(t){var e=t[0].toUpperCase()+t.substr(1);Qc.prototype["on"+e]=function(e){Jc[t].push(e)}});var eu=Object.freeze({__proto__:null,getBackgroundAudioManager:function(){return Kc||(Kc=new Qc)}}),tu=lr(function(e,t){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(e){for(var t,n,r=Array.prototype.slice.call(arguments,1);r.length;){var i=r.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var o in i)t=i,n=o,Object.prototype.hasOwnProperty.call(t,n)&&(e[o]=i[o])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},i={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(n)}),nu=(tu.assign,tu.shrinkBuf,tu.setTyped,tu.Buf8,tu.Buf16,tu.Buf32,0),ru=1;function iu(e){for(var t=e.length;0<=--t;)e[t]=0}var ou=0,au=29,su=256,cu=su+1+au,uu=30,lu=19,du=2*cu+1,fu=15,pu=16,hu=7,vu=256,gu=16,mu=17,yu=18,_u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],bu=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],wu=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ku=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Su=new Array(2*(cu+2));iu(Su);var xu=new Array(2*uu);iu(xu);var Cu=new Array(512);iu(Cu);var Tu=new Array(256);iu(Tu);var Ou=new Array(au);iu(Ou);var Eu,Iu,Au,$u=new Array(uu);function Pu(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function Mu(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ju(e){return e<256?Cu[e]:Cu[256+(e>>>7)]}function Bu(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Du(e,t,n){e.bi_valid>pu-n?(e.bi_buf|=t<<e.bi_valid&65535,Bu(e,e.bi_buf),e.bi_buf=t>>pu-e.bi_valid,e.bi_valid+=n-pu):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Nu(e,t,n){Du(e,n[2*t],n[2*t+1])}function Lu(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function Ru(e,t,n){var r,i,o=new Array(fu+1),a=0;for(r=1;r<=fu;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Lu(o[s]++,s))}}function Fu(e){var t;for(t=0;t<cu;t++)e.dyn_ltree[2*t]=0;for(t=0;t<uu;t++)e.dyn_dtree[2*t]=0;for(t=0;t<lu;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*vu]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function zu(e){8<e.bi_valid?Bu(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Vu(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function Uu(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&Vu(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Vu(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function qu(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?Nu(e,i,t):(Nu(e,(o=Tu[i])+su+1,t),0!==(a=_u[o])&&Du(e,i-=Ou[o],a),Nu(e,o=ju(--r),n),0!==(a=bu[o])&&Du(e,r-=$u[o],a)),s<e.last_lit;);Nu(e,vu,t)}function Wu(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=du,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)Uu(e,o,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Uu(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,Uu(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,v=0;for(o=0;o<=fu;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<du;n++)h<(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(o=h,v++),c[2*r+1]=o,u<r||(e.bl_count[o]++,a=0,p<=r&&(a=f[r-p]),s=c[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=h-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[h]--,v-=2}while(0<v);for(o=h;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),Ru(o,u,e.bl_count)}function Hu(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*gu]++):s<=10?e.bl_tree[2*mu]++:e.bl_tree[2*yu]++,o=i,(s=0)===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function Gu(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<c&&i===a)){if(s<u)for(;Nu(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(Nu(e,i,e.bl_tree),s--),Nu(e,gu,e.bl_tree),Du(e,s-3,2)):s<=10?(Nu(e,mu,e.bl_tree),Du(e,s-3,3)):(Nu(e,yu,e.bl_tree),Du(e,s-11,7));o=i,(s=0)===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}iu($u);var Xu=!1;function Yu(e,t,n,r){var i,o,a,s;Du(e,(ou<<1)+(r?1:0),3),o=t,a=n,s=!0,zu(i=e),s&&(Bu(i,a),Bu(i,~a)),tu.arraySet(i.pending_buf,i.window,o,a,i.pending),i.pending+=a}var Ju={_tr_init:function(e){Xu||(function(){var e,t,n,r,i,o=new Array(fu+1);for(r=n=0;r<au-1;r++)for(Ou[r]=n,e=0;e<1<<_u[r];e++)Tu[n++]=r;for(Tu[n-1]=r,r=i=0;r<16;r++)for($u[r]=i,e=0;e<1<<bu[r];e++)Cu[i++]=r;for(i>>=7;r<uu;r++)for($u[r]=i<<7,e=0;e<1<<bu[r]-7;e++)Cu[256+i++]=r;for(t=0;t<=fu;t++)o[t]=0;for(e=0;e<=143;)Su[2*e+1]=8,e++,o[8]++;for(;e<=255;)Su[2*e+1]=9,e++,o[9]++;for(;e<=279;)Su[2*e+1]=7,e++,o[7]++;for(;e<=287;)Su[2*e+1]=8,e++,o[8]++;for(Ru(Su,cu+1,o),e=0;e<uu;e++)xu[2*e+1]=5,xu[2*e]=Lu(e,5);Eu=new Pu(Su,_u,su+1,cu,fu),Iu=new Pu(xu,bu,0,uu,fu),Au=new Pu(new Array(0),wu,0,lu,hu)}(),Xu=!0),e.l_desc=new Mu(e.dyn_ltree,Eu),e.d_desc=new Mu(e.dyn_dtree,Iu),e.bl_desc=new Mu(e.bl_tree,Au),e.bi_buf=0,e.bi_valid=0,Fu(e)},_tr_stored_block:Yu,_tr_flush_block:function(e,t,n,r){var i,o,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return nu;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return ru;for(t=32;t<su;t++)if(0!==e.dyn_ltree[2*t])return ru;return nu}(e)),Wu(e,e.l_desc),Wu(e,e.d_desc),a=function(e){var t;for(Hu(e,e.dyn_ltree,e.l_desc.max_code),Hu(e,e.dyn_dtree,e.d_desc.max_code),Wu(e,e.bl_desc),t=lu-1;3<=t&&0===e.bl_tree[2*ku[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?Yu(e,t,n,r):4===e.strategy||o===i?(Du(e,2+(r?1:0),3),qu(e,Su,xu)):(Du(e,4+(r?1:0),3),function(e,t,n,r){var i;for(Du(e,t-257,5),Du(e,n-1,5),Du(e,r-4,4),i=0;i<r;i++)Du(e,e.bl_tree[2*ku[i]+1],3);Gu(e,e.dyn_ltree,t-1),Gu(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),qu(e,e.dyn_ltree,e.dyn_dtree)),Fu(e),r&&zu(e)},_tr_tally:function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Tu[n]+su+1)]++,e.dyn_dtree[2*ju(t)]++),e.last_lit===e.lit_bufsize-1},_tr_align:function(e){var t;Du(e,2,3),Nu(e,vu,Su),16===(t=e).bi_valid?(Bu(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}};var Ku=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0};var Zu=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();var Qu,el=function(e,t,n,r){var i=Zu,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},tl={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},nl=0,rl=4,il=0,ol=-2,al=-1,sl=4,cl=2,ul=8,ll=9,dl=286,fl=30,pl=19,hl=2*dl+1,vl=15,gl=3,ml=258,yl=ml+gl+1,_l=42,bl=113,wl=1,kl=2,Sl=3,xl=4;function Cl(e,t){return e.msg=tl[t],t}function Tl(e){return(e<<1)-(4<e?9:0)}function Ol(e){for(var t=e.length;0<=--t;)e[t]=0}function El(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(tu.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Il(e,t){Ju._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,El(e.strm)}function Al(e,t){e.pending_buf[e.pending++]=t}function $l(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Pl(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-yl?e.strstart-(e.w_size-yl):0,u=e.window,l=e.w_mask,d=e.prev,f=e.strstart+ml,p=u[o+a-1],h=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===h&&u[n+a-1]===p&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<f);if(r=ml-(f-o),o=f-ml,a<r){if(e.match_start=t,s<=(a=r))break;p=u[o+a-1],h=u[o+a]}}}while((t=d[t&l])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function Ml(e){var t,n,r,i,o,a,s,c,u,l,d=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-yl)){for(tu.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=n=e.hash_size;r=e.head[--t],e.head[t]=d<=r?r-d:0,--n;);for(t=n=d;r=e.prev[--t],e.prev[t]=d<=r?r-d:0,--n;);i+=d}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,c=e.strstart+e.lookahead,u=i,l=void 0,l=a.avail_in,u<l&&(l=u),n=0===l?0:(a.avail_in-=l,tu.arraySet(s,a.input,a.next_in,l,c),1===a.state.wrap?a.adler=Ku(a.adler,s,l,c):2===a.state.wrap&&(a.adler=el(a.adler,s,l,c)),a.next_in+=l,a.total_in+=l,l),e.lookahead+=n,e.lookahead+e.insert>=gl)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+gl-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<gl)););}while(e.lookahead<yl&&0!==e.strm.avail_in)}function jl(e,t){for(var n,r;;){if(e.lookahead<yl){if(Ml(e),e.lookahead<yl&&t===nl)return wl;if(0===e.lookahead)break}if(n=0,e.lookahead>=gl&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+gl-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-yl&&(e.match_length=Pl(e,n)),e.match_length>=gl)if(r=Ju._tr_tally(e,e.strstart-e.match_start,e.match_length-gl),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=gl){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+gl-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=Ju._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Il(e,!1),0===e.strm.avail_out))return wl}return e.insert=e.strstart<gl-1?e.strstart:gl-1,t===rl?(Il(e,!0),0===e.strm.avail_out?Sl:xl):e.last_lit&&(Il(e,!1),0===e.strm.avail_out)?wl:kl}function Bl(e,t){for(var n,r,i;;){if(e.lookahead<yl){if(Ml(e),e.lookahead<yl&&t===nl)return wl;if(0===e.lookahead)break}if(n=0,e.lookahead>=gl&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+gl-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=gl-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-yl&&(e.match_length=Pl(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===gl&&4096<e.strstart-e.match_start)&&(e.match_length=gl-1)),e.prev_length>=gl&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-gl,r=Ju._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-gl),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+gl-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=gl-1,e.strstart++,r&&(Il(e,!1),0===e.strm.avail_out))return wl}else if(e.match_available){if((r=Ju._tr_tally(e,0,e.window[e.strstart-1]))&&Il(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return wl}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Ju._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<gl-1?e.strstart:gl-1,t===rl?(Il(e,!0),0===e.strm.avail_out?Sl:xl):e.last_lit&&(Il(e,!1),0===e.strm.avail_out)?wl:kl}function Dl(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function Nl(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ul,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new tu.Buf16(2*hl),this.dyn_dtree=new tu.Buf16(2*(2*fl+1)),this.bl_tree=new tu.Buf16(2*(2*pl+1)),Ol(this.dyn_ltree),Ol(this.dyn_dtree),Ol(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new tu.Buf16(vl+1),this.heap=new tu.Buf16(2*dl+1),Ol(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new tu.Buf16(2*dl+1),Ol(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ll(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=cl,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?_l:bl,e.adler=2===t.wrap?0:1,t.last_flush=nl,Ju._tr_init(t),il):Cl(e,ol)}function Rl(e){var t,n=Ll(e);return n===il&&((t=e.state).window_size=2*t.w_size,Ol(t.head),t.max_lazy_match=Qu[t.level].max_lazy,t.good_match=Qu[t.level].good_length,t.nice_match=Qu[t.level].nice_length,t.max_chain_length=Qu[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=gl-1,t.match_available=0,t.ins_h=0),n}function Fl(e,t,n,r,i,o){if(!e)return ol;var a=1;if(t===al&&(t=6),r<0?(a=0,r=-r):15<r&&(a=2,r-=16),i<1||ll<i||n!==ul||r<8||15<r||t<0||9<t||o<0||sl<o)return Cl(e,ol);8===r&&(r=9);var s=new Nl;return(e.state=s).strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+gl-1)/gl),s.window=new tu.Buf8(2*s.w_size),s.head=new tu.Buf16(s.hash_size),s.prev=new tu.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new tu.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=n,Rl(e)}Qu=[new Dl(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ml(e),0===e.lookahead&&t===nl)return wl;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Il(e,!1),0===e.strm.avail_out))return wl;if(e.strstart-e.block_start>=e.w_size-yl&&(Il(e,!1),0===e.strm.avail_out))return wl}return e.insert=0,t===rl?(Il(e,!0),0===e.strm.avail_out?Sl:xl):(e.strstart>e.block_start&&(Il(e,!1),e.strm.avail_out),wl)}),new Dl(4,4,8,4,jl),new Dl(4,5,16,8,jl),new Dl(4,6,32,32,jl),new Dl(4,4,16,16,Bl),new Dl(8,16,32,32,Bl),new Dl(8,16,128,128,Bl),new Dl(8,32,128,256,Bl),new Dl(32,128,258,1024,Bl),new Dl(32,258,258,4096,Bl)];var zl={deflateInit:function(e,t){return Fl(e,t,ul,15,8,0)},deflateInit2:Fl,deflateReset:Rl,deflateResetKeep:Ll,deflateSetHeader:function(e,t){return e&&e.state?2!==e.state.wrap?ol:(e.state.gzhead=t,il):ol},deflate:function(e,t){var n,r,i,o;if(!e||!e.state||5<t||t<0)return e?Cl(e,ol):ol;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==rl)return Cl(e,0===e.avail_out?-5:ol);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===_l)if(2===r.wrap)e.adler=0,Al(r,31),Al(r,139),Al(r,8),r.gzhead?(Al(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Al(r,255&r.gzhead.time),Al(r,r.gzhead.time>>8&255),Al(r,r.gzhead.time>>16&255),Al(r,r.gzhead.time>>24&255),Al(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),Al(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Al(r,255&r.gzhead.extra.length),Al(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=el(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Al(r,0),Al(r,0),Al(r,0),Al(r,0),Al(r,0),Al(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),Al(r,3),r.status=bl);else{var a=ul+(r.w_bits-8<<4)<<8;a|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=bl,$l(r,a),0!==r.strstart&&($l(r,e.adler>>>16),$l(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=el(e.adler,r.pending_buf,r.pending-i,i)),El(e),i=r.pending,r.pending!==r.pending_buf_size));)Al(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=el(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=el(e.adler,r.pending_buf,r.pending-i,i)),El(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}Al(r,o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=el(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=el(e.adler,r.pending_buf,r.pending-i,i)),El(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}Al(r,o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=el(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&El(e),r.pending+2<=r.pending_buf_size&&(Al(r,255&e.adler),Al(r,e.adler>>8&255),e.adler=0,r.status=bl)):r.status=bl),0!==r.pending){if(El(e),0===e.avail_out)return r.last_flush=-1,il}else if(0===e.avail_in&&Tl(t)<=Tl(n)&&t!==rl)return Cl(e,-5);if(666===r.status&&0!==e.avail_in)return Cl(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==nl&&666!==r.status){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Ml(e),0===e.lookahead)){if(t===nl)return wl;break}if(e.match_length=0,n=Ju._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Il(e,!1),0===e.strm.avail_out))return wl}return e.insert=0,t===rl?(Il(e,!0),0===e.strm.avail_out?Sl:xl):e.last_lit&&(Il(e,!1),0===e.strm.avail_out)?wl:kl}(r,t):3===r.strategy?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=ml){if(Ml(e),e.lookahead<=ml&&t===nl)return wl;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=gl&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+ml;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=ml-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=gl?(n=Ju._tr_tally(e,1,e.match_length-gl),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Ju._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Il(e,!1),0===e.strm.avail_out))return wl}return e.insert=0,t===rl?(Il(e,!0),0===e.strm.avail_out?Sl:xl):e.last_lit&&(Il(e,!1),0===e.strm.avail_out)?wl:kl}(r,t):Qu[r.level].func(r,t);if(s!==Sl&&s!==xl||(r.status=666),s===wl||s===Sl)return 0===e.avail_out&&(r.last_flush=-1),il;if(s===kl&&(1===t?Ju._tr_align(r):5!==t&&(Ju._tr_stored_block(r,0,0,!1),3===t&&(Ol(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),El(e),0===e.avail_out))return r.last_flush=-1,il}return t!==rl?il:r.wrap<=0?1:(2===r.wrap?(Al(r,255&e.adler),Al(r,e.adler>>8&255),Al(r,e.adler>>16&255),Al(r,e.adler>>24&255),Al(r,255&e.total_in),Al(r,e.total_in>>8&255),Al(r,e.total_in>>16&255),Al(r,e.total_in>>24&255)):($l(r,e.adler>>>16),$l(r,65535&e.adler)),El(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?il:1)},deflateEnd:function(e){var t;return e&&e.state?(t=e.state.status)!==_l&&69!==t&&73!==t&&91!==t&&103!==t&&t!==bl&&666!==t?Cl(e,ol):(e.state=null,t===bl?Cl(e,-3):il):ol},deflateSetDictionary:function(e,t){var n,r,i,o,a,s,c,u,l=t.length;if(!e||!e.state)return ol;if(2===(o=(n=e.state).wrap)||1===o&&n.status!==_l||n.lookahead)return ol;for(1===o&&(e.adler=Ku(e.adler,t,l,0)),n.wrap=0,l>=n.w_size&&(0===o&&(Ol(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new tu.Buf8(n.w_size),tu.arraySet(u,t,l-n.w_size,n.w_size,0),t=u,l=n.w_size),a=e.avail_in,s=e.next_in,c=e.input,e.avail_in=l,e.next_in=0,e.input=t,Ml(n);n.lookahead>=gl;){for(r=n.strstart,i=n.lookahead-(gl-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+gl-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--i;);n.strstart=r,n.lookahead=gl-1,Ml(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=gl-1,n.match_available=0,e.next_in=s,e.input=c,e.avail_in=a,n.wrap=o,il},deflateInfo:"pako deflate (from Nodeca project)"},Vl=!0,Ul=!0;try{String.fromCharCode.apply(null,[0])}catch(e){Vl=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){Ul=!1}for(var ql=new tu.Buf8(256),Wl=0;Wl<256;Wl++)ql[Wl]=252<=Wl?6:248<=Wl?5:240<=Wl?4:224<=Wl?3:192<=Wl?2:1;ql[254]=ql[254]=1;function Hl(e,t){if(t<65534&&(e.subarray&&Ul||!e.subarray&&Vl))return String.fromCharCode.apply(null,tu.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}var Gl={string2buf:function(e){var t,n,r,i,o,a=e.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new tu.Buf8(s),i=o=0;o<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},buf2binstring:function(e){return Hl(e,e.length)},binstring2buf:function(e){for(var t=new tu.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},buf2string:function(e,t){var n,r,i,o,a=t||e.length,s=new Array(2*a);for(n=r=0;n<a;)if((i=e[n++])<128)s[r++]=i;else if(4<(o=ql[i]))s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<a;)i=i<<6|63&e[n++],o--;1<o?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return Hl(s,r)},utf8border:function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+ql[e[n]]>t?n:t}};var Xl=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Yl=Object.prototype.toString,Jl=0,Kl=-1,Zl=0,Ql=8;function ed(e){if(!(this instanceof ed))return new ed(e);this.options=tu.assign({level:Kl,method:Ql,chunkSize:16384,windowBits:15,memLevel:8,strategy:Zl,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Xl,this.strm.avail_out=0;var n=zl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Jl)throw new Error(tl[n]);if(t.header&&zl.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?Gl.string2buf(t.dictionary):"[object ArrayBuffer]"===Yl.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=zl.deflateSetDictionary(this.strm,r))!==Jl)throw new Error(tl[n]);this._dict_set=!0}}function td(e,t){var n=new ed(t);if(n.push(e,!0),n.err)throw n.msg||tl[n.err];return n.result}ed.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=Gl.string2buf(e):"[object ArrayBuffer]"===Yl.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new tu.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=zl.deflate(i,r))&&n!==Jl)return this.onEnd(n),!(this.ended=!0);0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(Gl.buf2binstring(tu.shrinkBuf(i.output,i.next_out))):this.onData(tu.shrinkBuf(i.output,i.next_out)))}while((0<i.avail_in||0===i.avail_out)&&1!==n);return 4===r?(n=zl.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Jl):2!==r||(this.onEnd(Jl),!(i.avail_out=0))},ed.prototype.onData=function(e){this.chunks.push(e)},ed.prototype.onEnd=function(e){e===Jl&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=tu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var nd={Deflate:ed,deflate:td,deflateRaw:function(e,t){return(t=t||{}).raw=!0,td(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,td(e,t)}},rd=function(e,t){var n,r,i,o,a,s,c,u,l,d,f,p,h,v,g,m,y,_,b,w,k,S,x,C,T;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,d=n.wnext,f=n.window,p=n.hold,h=n.bits,v=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{h<15&&(p+=C[r++]<<h,h+=8,p+=C[r++]<<h,h+=8),_=v[p&m];t:for(;;){if(p>>>=b=_>>>24,h-=b,0===(b=_>>>16&255))T[o++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=v[(65535&_)+(p&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&_,(b&=15)&&(h<b&&(p+=C[r++]<<h,h+=8),w+=p&(1<<b)-1,p>>>=b,h-=b),h<15&&(p+=C[r++]<<h,h+=8,p+=C[r++]<<h,h+=8),_=g[p&y];n:for(;;){if(p>>>=b=_>>>24,h-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=g[(65535&_)+(p&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&_,h<(b&=15)&&(p+=C[r++]<<h,(h+=8)<b&&(p+=C[r++]<<h,h+=8)),c<(k+=p&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=b,h-=b,(b=o-a)<k){if(l<(b=k-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=f,(S=0)===d){if(S+=u-b,b<w){for(w-=b;T[o++]=f[S++],--b;);S=o-k,x=T}}else if(d<b){if(S+=u+d-b,(b-=d)<w){for(w-=b;T[o++]=f[S++],--b;);if(S=0,d<w){for(w-=b=d;T[o++]=f[S++],--b;);S=o-k,x=T}}}else if(S+=d-b,b<w){for(w-=b;T[o++]=f[S++],--b;);S=o-k,x=T}for(;2<w;)T[o++]=x[S++],T[o++]=x[S++],T[o++]=x[S++],w-=3;w&&(T[o++]=x[S++],1<w&&(T[o++]=x[S++]))}else{for(S=o-k;T[o++]=T[S++],T[o++]=T[S++],T[o++]=T[S++],2<(w-=3););w&&(T[o++]=T[S++],1<w&&(T[o++]=T[S++]))}break}}break}}while(r<i&&o<s);r-=w=h>>3,p&=(1<<(h-=w<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=h},id=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],od=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],ad=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],sd=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],cd=function(e,t,n,r,i,o,a,s){var c,u,l,d,f,p,h,v,g,m=s.bits,y=0,_=0,b=0,w=0,k=0,S=0,x=0,C=0,T=0,O=0,E=null,I=0,A=new tu.Buf16(16),$=new tu.Buf16(16),P=null,M=0;for(y=0;y<=15;y++)A[y]=0;for(_=0;_<r;_++)A[t[n+_]]++;for(k=m,w=15;1<=w&&0===A[w];w--);if(w<k&&(k=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<w&&0===A[b];b++);for(k<b&&(k=b),y=C=1;y<=15;y++)if(C<<=1,(C-=A[y])<0)return-1;if(0<C&&(0===e||1!==w))return-1;for($[1]=0,y=1;y<15;y++)$[y+1]=$[y]+A[y];for(_=0;_<r;_++)0!==t[n+_]&&(a[$[t[n+_]]++]=_);if(0===e?(E=P=a,p=19):1===e?(E=id,I-=257,P=od,M-=257,p=256):(E=ad,P=sd,p=-1),y=b,f=o,x=_=O=0,l=-1,d=(T=1<<(S=k))-1,1===e&&852<T||2===e&&592<T)return 1;for(;;){for(h=y-x,a[_]<p?(v=0,g=a[_]):a[_]>p?(v=P[M+a[_]],g=E[I+a[_]]):(v=96,g=0),c=1<<y-x,b=u=1<<S;i[f+(O>>x)+(u-=c)]=h<<24|v<<16|g|0,0!==u;);for(c=1<<y-1;O&c;)c>>=1;if(0!==c?(O&=c-1,O+=c):O=0,_++,0==--A[y]){if(y===w)break;y=t[n+a[_]]}if(k<y&&(O&d)!==l){for(0===x&&(x=k),f+=b,C=1<<(S=y-x);S+x<w&&!((C-=A[S+x])<=0);)S++,C<<=1;if(T+=1<<S,1===e&&852<T||2===e&&592<T)return 1;i[l=O&d]=k<<24|S<<16|f-o|0}}return 0!==O&&(i[f+O]=y-x<<24|64<<16|0),s.bits=k,0},ud=1,ld=2,dd=0,fd=-2,pd=1,hd=852,vd=592;function gd(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function md(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new tu.Buf16(320),this.work=new tu.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function yd(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=pd,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new tu.Buf32(hd),t.distcode=t.distdyn=new tu.Buf32(vd),t.sane=1,t.back=-1,dd):fd}function _d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,yd(e)):fd}function bd(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?fd:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,_d(e))):fd}function wd(e,t){var n,r;return e?(r=new md,(e.state=r).window=null,(n=bd(e,t))!==dd&&(e.state=null),n):fd}var kd,Sd,xd=!0;function Cd(e){if(xd){var t;for(kd=new tu.Buf32(512),Sd=new tu.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(cd(ud,e.lens,0,288,kd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;cd(ld,e.lens,0,32,Sd,0,e.work,{bits:5}),xd=!1}e.lencode=kd,e.lenbits=9,e.distcode=Sd,e.distbits=5}function Td(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new tu.Buf8(o.wsize)),r>=o.wsize?(tu.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(r<(i=o.wsize-o.wnext)&&(i=r),tu.arraySet(o.window,t,n-r,i,o.wnext),(r-=i)?(tu.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var Od={inflateReset:_d,inflateReset2:bd,inflateResetKeep:yd,inflateInit:function(e){return wd(e,15)},inflateInit2:wd,inflate:function(e,t){var n,r,i,o,a,s,c,u,l,d,f,p,h,v,g,m,y,_,b,w,k,S,x,C,T=0,O=new tu.Buf8(4),E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return fd;12===(n=e.state).mode&&(n.mode=13),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,l=n.bits,d=s,f=c,S=dd;e:for(;;)switch(n.mode){case pd:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===u){O[n.check=0]=255&u,O[1]=u>>>8&255,n.check=el(n.check,O,2,0),l=u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&u?10:12,l=u=0;break;case 2:for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(n.flags=u,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(O[0]=255&u,O[1]=u>>>8&255,n.check=el(n.check,O,2,0)),l=u=0,n.mode=3;case 3:for(;l<32;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.head&&(n.head.time=u),512&n.flags&&(O[0]=255&u,O[1]=u>>>8&255,O[2]=u>>>16&255,O[3]=u>>>24&255,n.check=el(n.check,O,4,0)),l=u=0,n.mode=4;case 4:for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(O[0]=255&u,O[1]=u>>>8&255,n.check=el(n.check,O,2,0)),l=u=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(O[0]=255&u,O[1]=u>>>8&255,n.check=el(n.check,O,2,0)),l=u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(s<(p=n.length)&&(p=s),p&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),tu.arraySet(n.head.extra,r,o,p,k)),512&n.flags&&(n.check=el(n.check,r,p,o)),s-=p,o+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;for(p=0;k=r[o+p++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k)),k&&p<s;);if(512&n.flags&&(n.check=el(n.check,r,p,o)),s-=p,o+=p,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;for(p=0;k=r[o+p++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k)),k&&p<s;);if(512&n.flags&&(n.check=el(n.check,r,p,o)),s-=p,o+=p,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;l<16;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}l=u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;l<32;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}e.adler=n.check=gd(u),l=u=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=l,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){u>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}switch(n.last=1&u,l-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if(Cd(n),n.mode=20,6===t){u>>>=2,l-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&u,l=u=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(s<p&&(p=s),c<p&&(p=c),0===p)break e;tu.arraySet(i,r,o,p,a),s-=p,o+=p,c-=p,a+=p,n.length-=p;break}n.mode=12;break;case 17:for(;l<14;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(n.nlen=257+(31&u),u>>>=5,l-=5,n.ndist=1+(31&u),u>>>=5,l-=5,n.ncode=4+(15&u),u>>>=4,l-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.lens[E[n.have++]]=7&u,u>>>=3,l-=3}for(;n.have<19;)n.lens[E[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},S=cd(0,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,S){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;m=(T=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&T,!((g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(y<16)u>>>=g,l-=g,n.lens[n.have++]=y;else{if(16===y){for(C=g+2;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(u>>>=g,l-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}k=n.lens[n.have-1],p=3+(3&u),u>>>=2,l-=2}else if(17===y){for(C=g+3;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}l-=g,k=0,p=3+(7&(u>>>=g)),u>>>=3,l-=3}else{for(C=g+7;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}l-=g,k=0,p=11+(127&(u>>>=g)),u>>>=7,l-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;p--;)n.lens[n.have++]=k}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,x={bits:n.lenbits},S=cd(ud,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,S){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},S=cd(ld,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,S){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=s&&258<=c){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=l,rd(e,f),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,l=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;m=(T=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&T,!((g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(m&&0==(240&m)){for(_=g,b=m,w=y;m=(T=n.lencode[w+((u&(1<<_+b)-1)>>_)])>>>16&255,y=65535&T,!(_+(g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}u>>>=_,l-=_,n.back+=_}if(u>>>=g,l-=g,n.back+=g,n.length=y,0===m){n.mode=26;break}if(32&m){n.back=-1,n.mode=12;break}if(64&m){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&m,n.mode=22;case 22:if(n.extra){for(C=n.extra;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;m=(T=n.distcode[u&(1<<n.distbits)-1])>>>16&255,y=65535&T,!((g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(0==(240&m)){for(_=g,b=m,w=y;m=(T=n.distcode[w+((u&(1<<_+b)-1)>>_)])>>>16&255,y=65535&T,!(_+(g=T>>>24)<=l);){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}u>>>=_,l-=_,n.back+=_}if(u>>>=g,l-=g,n.back+=g,64&m){e.msg="invalid distance code",n.mode=30;break}n.offset=y,n.extra=15&m,n.mode=24;case 24:if(n.extra){for(C=n.extra;l<C;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===c)break e;if(p=f-c,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}p>n.wnext?(p-=n.wnext,h=n.wsize-p):h=n.wnext-p,p>n.length&&(p=n.length),v=n.window}else v=i,h=a-n.offset,p=n.length;for(c<p&&(p=c),c-=p,n.length-=p;i[a++]=v[h++],--p;);0===n.length&&(n.mode=21);break;case 26:if(0===c)break e;i[a++]=n.length,c--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break e;s--,u|=r[o++]<<l,l+=8}if(f-=c,e.total_out+=f,n.total+=f,f&&(e.adler=n.check=n.flags?el(n.check,i,f,a-f):Ku(n.check,i,f,a-f)),f=c,(n.flags?u:gd(u))!==n.check){e.msg="incorrect data check",n.mode=30;break}l=u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;l<32;){if(0===s)break e;s--,u+=r[o++]<<l,l+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}l=u=0}n.mode=29;case 29:S=1;break e;case 30:S=-3;break e;case 31:return-4;case 32:default:return fd}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=l,(n.wsize||f!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&Td(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&&f&&(e.adler=n.check=n.flags?el(n.check,i,f,e.next_out-f):Ku(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===d&&0===f||4===t)&&S===dd&&(S=-5),S},inflateEnd:function(e){if(!e||!e.state)return fd;var t=e.state;return t.window&&(t.window=null),e.state=null,dd},inflateGetHeader:function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?fd:((n.head=t).done=!1,dd):fd},inflateSetDictionary:function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?fd:11===n.mode&&Ku(1,t,r,0)!==n.check?-3:Td(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,dd):fd},inflateInfo:"pako inflate (from Nodeca project)"},Ed={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var Id=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Ad=Object.prototype.toString;function $d(e){if(!(this instanceof $d))return new $d(e);this.options=tu.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Xl,this.strm.avail_out=0;var n=Od.inflateInit2(this.strm,t.windowBits);if(n!==Ed.Z_OK)throw new Error(tl[n]);if(this.header=new Id,Od.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Gl.string2buf(t.dictionary):"[object ArrayBuffer]"===Ad.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Od.inflateSetDictionary(this.strm,t.dictionary))!==Ed.Z_OK))throw new Error(tl[n])}function Pd(e,t){var n=new $d(t);if(n.push(e,!0),n.err)throw n.msg||tl[n.err];return n.result}$d.prototype.push=function(e,t){var n,r,i,o,a,s=this.strm,c=this.options.chunkSize,u=this.options.dictionary,l=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?Ed.Z_FINISH:Ed.Z_NO_FLUSH,"string"==typeof e?s.input=Gl.binstring2buf(e):"[object ArrayBuffer]"===Ad.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new tu.Buf8(c),s.next_out=0,s.avail_out=c),(n=Od.inflate(s,Ed.Z_NO_FLUSH))===Ed.Z_NEED_DICT&&u&&(n=Od.inflateSetDictionary(this.strm,u)),n===Ed.Z_BUF_ERROR&&!0===l&&(n=Ed.Z_OK,l=!1),n!==Ed.Z_STREAM_END&&n!==Ed.Z_OK)return this.onEnd(n),!(this.ended=!0);s.next_out&&(0!==s.avail_out&&n!==Ed.Z_STREAM_END&&(0!==s.avail_in||r!==Ed.Z_FINISH&&r!==Ed.Z_SYNC_FLUSH)||("string"===this.options.to?(i=Gl.utf8border(s.output,s.next_out),o=s.next_out-i,a=Gl.buf2string(s.output,i),s.next_out=o,s.avail_out=c-o,o&&tu.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(tu.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(l=!0)}while((0<s.avail_in||0===s.avail_out)&&n!==Ed.Z_STREAM_END);return n===Ed.Z_STREAM_END&&(r=Ed.Z_FINISH),r===Ed.Z_FINISH?(n=Od.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ed.Z_OK):r!==Ed.Z_SYNC_FLUSH||(this.onEnd(Ed.Z_OK),!(s.avail_out=0))},$d.prototype.onData=function(e){this.chunks.push(e)},$d.prototype.onEnd=function(e){e===Ed.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=tu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Md={Inflate:$d,inflate:Pd,inflateRaw:function(e,t){return(t=t||{}).raw=!0,Pd(e,t)},ungzip:Pd},jd={};(0,tu.assign)(jd,nd,Md,Ed);var Bd=jd,Dd=bc("canvasEvent");function Nd(e,t,n,r){fh.publishHandler(t+"-canvas-"+e,{canvasId:e,type:n,data:r},t)}fh.subscribe("onCanvasMethodCallback",function(e){var t=e.callbackId,n=e.data,r=Dd.pop(t);r&&r(n)});var Ld={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function Rd(e){var t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000")))return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255];if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){var n=t[1].slice(0,1),r=t[1].slice(1,2),i=t[1].slice(2,3);return[n=parseInt(n+n,16),r=parseInt(r+r,16),i=parseInt(i+i,16),255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e){return Math.min(255,parseInt(e.trim()))}).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))});var o=e.toLowerCase();if(b(Ld,o)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Ld[o]);var a=parseInt(t[1].slice(0,2),16),s=parseInt(t[1].slice(2,4),16),c=parseInt(t[1].slice(4,6),16),u=parseInt(t[1].slice(6,8),16);return[a,s,c,u=0<=u?u:255]}return console.error("unsupported color:"+e),[0,0,0,255]}function Fd(e,t){this.image=e,this.repetition=t}var zd=function(e,t){this.type=e,this.data=t,this.colorStop=[]};zd.prototype.addColorStop=function(e,t){this.colorStop.push([e,Rd(t)])};function Vd(e){this.width=e}var Ud=function(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}},qd={lineDashOffset:{configurable:!0},globalCompositeOperation:{configurable:!0},shadowBlur:{configurable:!0},shadowColor:{configurable:!0},shadowOffsetX:{configurable:!0},shadowOffsetY:{configurable:!0},font:{configurable:!0},fillStyle:{configurable:!0},strokeStyle:{configurable:!0},globalAlpha:{configurable:!0},textAlign:{configurable:!0},lineCap:{configurable:!0},lineJoin:{configurable:!0},lineWidth:{configurable:!0},miterLimit:{configurable:!0},textBaseline:{configurable:!0}};Ud.prototype.draw=function(e,t){void 0===e&&(e=!1);var n,r=[].concat(this.actions);this.actions=[],this.path=[],"function"==typeof t&&(n=Dd.push(t)),Nd(this.id,this.pageId,"actionsChanged",{actions:r,reserve:e,callbackId:n})},Ud.prototype.createLinearGradient=function(e,t,n,r){return new zd("linear",[e,t,n,r])},Ud.prototype.createCircularGradient=function(e,t,n){return new zd("radial",[e,t,n])},Ud.prototype.createPattern=function(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new Fd(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}},Ud.prototype.measureText=function(e){var t=this.state.font,n=0,r=dh.webview.all().find(function(e){return e.getURL().endsWith("www/__uniappview.html")});return r&&(n=Number(r.evalJSSync("("+function(e,t){var n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}.toString()+")("+JSON.stringify(e)+","+JSON.stringify(t)+")"))),new Vd(n)},Ud.prototype.save=function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)},Ud.prototype.restore=function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}},Ud.prototype.beginPath=function(){this.path=[],this.subpath=[]},Ud.prototype.moveTo=function(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]},Ud.prototype.lineTo=function(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])},Ud.prototype.quadraticCurveTo=function(e,t,n,r){this.path.push({method:"quadraticCurveTo",data:[e,t,n,r]}),this.subpath.push([n,r])},Ud.prototype.bezierCurveTo=function(e,t,n,r,i,o){this.path.push({method:"bezierCurveTo",data:[e,t,n,r,i,o]}),this.subpath.push([i,o])},Ud.prototype.arc=function(e,t,n,r,i,o){void 0===o&&(o=!1),this.path.push({method:"arc",data:[e,t,n,r,i,o]}),this.subpath.push([e,t])},Ud.prototype.rect=function(e,t,n,r){this.path.push({method:"rect",data:[e,t,n,r]}),this.subpath=[[e,t]]},Ud.prototype.arcTo=function(e,t,n,r,i){this.path.push({method:"arcTo",data:[e,t,n,r,i]}),this.subpath.push([n,r])},Ud.prototype.clip=function(){this.actions.push({method:"clip",data:[].concat(this.path)})},Ud.prototype.closePath=function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])},Ud.prototype.clearActions=function(){this.actions=[],this.path=[],this.subpath=[]},Ud.prototype.getActions=function(){var e=[].concat(this.actions);return this.clearActions(),e},qd.lineDashOffset.set=function(e){this.actions.push({method:"setLineDashOffset",data:[e]})},qd.globalCompositeOperation.set=function(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})},qd.shadowBlur.set=function(e){this.actions.push({method:"setShadowBlur",data:[e]})},qd.shadowColor.set=function(e){this.actions.push({method:"setShadowColor",data:[e]})},qd.shadowOffsetX.set=function(e){this.actions.push({method:"setShadowOffsetX",data:[e]})},qd.shadowOffsetY.set=function(e){this.actions.push({method:"setShadowOffsetY",data:[e]})},qd.font.set=function(e){var n=this,t=(this.state.font=e).match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(t){var r=t[1].trim().split(/\s/),i=parseFloat(t[3]),o=t[7],a=[];r.forEach(function(e,t){-1<["italic","oblique","normal"].indexOf(e)?(a.push({method:"setFontStyle",data:[e]}),n.state.fontStyle=e):-1<["bold","normal"].indexOf(e)?(a.push({method:"setFontWeight",data:[e]}),n.state.fontWeight=e):0===t?(a.push({method:"setFontStyle",data:["normal"]}),n.state.fontStyle="normal"):1===t&&s()}),1===r.length&&s(),r=a.map(function(e){return e.data[0]}).join(" "),this.state.fontSize=i,this.state.fontFamily=o,this.actions.push({method:"setFont",data:[r+" "+i+"px "+o]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){a.push({method:"setFontWeight",data:["normal"]}),n.state.fontWeight="normal"}},qd.font.get=function(){return this.state.font},qd.fillStyle.set=function(e){this.setFillStyle(e)},qd.strokeStyle.set=function(e){this.setStrokeStyle(e)},qd.globalAlpha.set=function(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})},qd.textAlign.set=function(e){this.actions.push({method:"setTextAlign",data:[e]})},qd.lineCap.set=function(e){this.actions.push({method:"setLineCap",data:[e]})},qd.lineJoin.set=function(e){this.actions.push({method:"setLineJoin",data:[e]})},qd.lineWidth.set=function(e){this.actions.push({method:"setLineWidth",data:[e]})},qd.miterLimit.set=function(e){this.actions.push({method:"setMiterLimit",data:[e]})},qd.textBaseline.set=function(e){this.actions.push({method:"setTextBaseline",data:[e]})},Object.defineProperties(Ud.prototype,qd),["scale","rotate","translate","setTransform","transform"].concat(["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"]).forEach(function(e){Ud.prototype[e]=function(d){switch(d){case"fill":case"stroke":return function(){this.actions.push({method:d+"Path",data:[].concat(this.path)})};case"fillRect":return function(e,t,n,r){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,r]}]})};case"strokeRect":return function(e,t,n,r){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,r]}]})};case"fillText":case"strokeText":return function(e,t,n,r){var i=[e.toString(),t,n];"number"==typeof r&&i.push(r),this.actions.push({method:d,data:i})};case"drawImage":return function(e,t,n,r,i,o,a,s,c){var u;function l(e){return"number"==typeof e}void 0===c&&(o=t,a=n,s=r,c=i,i=r=n=t=void 0),u=l(t)&&l(n)&&l(r)&&l(i)?[e,o,a,s,c,t,n,r,i]:l(s)&&l(c)?[e,o,a,s,c]:[e,o,a],this.actions.push({method:d,data:u})};default:return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this.actions.push({method:d,data:e})}}}(e)}),["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"].forEach(function(e){Ud.prototype[e]=function(i){switch(i){case"setFillStyle":case"setStrokeStyle":return function(e){"object"!=typeof e?this.actions.push({method:i,data:["normal",Rd(e)]}):this.actions.push({method:i,data:[e.type,e.data,e.colorStop]})};case"setGlobalAlpha":return function(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:i,data:[e]})};case"setShadow":return function(e,t,n,r){r=Rd(r),this.actions.push({method:i,data:[e,t,n,r]}),this.state.shadowBlur=n,this.state.shadowColor=r,this.state.shadowOffsetX=e,this.state.shadowOffsetY=t};case"setLineDash":return function(e,t){e=e||[0,0],t=t||0,this.actions.push({method:i,data:[e,t]}),this.state.lineDash=e};case"setFontSize":return function(e){this.state.font=this.state.font.replace(/\d+\.?\d*px/,e+"px"),this.state.fontSize=e,this.actions.push({method:i,data:[e]})};default:return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this.actions.push({method:i,data:e})}}}(e)});var Wd=Object.freeze({__proto__:null,CanvasContext:Ud,createCanvasContext:function(e,t){if(t)return new Ud(e,t.$page.id);var n=Xc();if(n)return new Ud(e,n);fh.emit("onError","createCanvasContext:fail")},canvasGetImageData:function(e,n){var t=e.canvasId,r=e.x,i=e.y,o=e.width,a=e.height,s=Xc();s?Nd(t,s,"getImageData",{x:r,y:i,width:o,height:a,callbackId:Dd.push(function(e){var t=e.data;t&&t.length&&(e.compressed&&(t=Bd.inflateRaw(t),delete e.compressed),e.data=new Uint8ClampedArray(t)),Br(n,e)})}):Br(n,{errMsg:"canvasGetImageData:fail"})},canvasPutImageData:function(e,t){var n=e.canvasId,r=e.data,i=e.x,o=e.y,a=e.width,s=e.height,c=Xc();if(c){var u,l=Dd.push(function(e){Br(t,e)});"iOS"!==dh.os.name||"boolean"==typeof __WEEX_DEVTOOL__?(r=Bd.deflateRaw(r,{to:"string"}),u=!0):r=Array.prototype.slice.call(r),Nd(n,c,"putImageData",{data:r,x:i,y:o,width:a,height:s,compressed:u,callbackId:l})}else Br(t,{errMsg:"canvasPutImageData:fail"})},canvasToTempFilePath:function(e,t){var n=e.x;void 0===n&&(n=0);var r=e.y;void 0===r&&(r=0);var i=e.width,o=e.height,a=e.destWidth,s=e.destHeight,c=e.canvasId,u=e.fileType,l=e.quality,d=Xc();if(d){var f=Dd.push(function(e){Br(t,e)});Nd(c,d,"toTempFilePath",{x:n,y:r,width:i,height:o,destWidth:a,destHeight:s,fileType:u,quality:l,dirname:Bi+"/canvas",callbackId:f})}else Br(t,{errMsg:"canvasToTempFilePath:fail"})}});fh.subscribe("onMapMethodCallback",function(e){var t=e.callbackId,n=e.data;S.invoke(t,n)});var Hd=function(e,t){this.id=e,this.pageVm=t};Hd.prototype.$getAppMap=function(){return dh.maps.getMapById(this.pageVm.$page.id+"-map-"+this.id)},["getCenterLocation","moveToLocation","getScale","getRegion","includePoints","translateMarker","addCustomLayer","removeCustomLayer","addGroundOverlay","removeGroundOverlay","updateGroundOverlay","initMarkerCluster","addMarkers","removeMarkers","moveAlong","openMapApp"].forEach(function(i){Hd.prototype[i]=S.warp(function(e,t){var n,r;e.callbackId=t,n=this.id,r=this.pageVm,Wc("operateMapPlayer",n,r,i,e)})});var Gd=Object.freeze({__proto__:null,MapContext:Hd,createMapContext:function(e,t){return new Hd(e,t||Gc("createMapContext"))}}),Xd=[.5,.8,1,1.25,1.5,2];function Yd(e,t,n,r){Wc("operateVideoPlayer",e,t,n,r)}var Jd=function(e,t){this.id=e,this.pageVm=t};Jd.prototype.play=function(){Yd(this.id,this.pageVm,"play")},Jd.prototype.pause=function(){Yd(this.id,this.pageVm,"pause")},Jd.prototype.stop=function(){Yd(this.id,this.pageVm,"stop")},Jd.prototype.seek=function(e){Yd(this.id,this.pageVm,"seek",{position:e})},Jd.prototype.sendDanmu=function(e){Yd(this.id,this.pageVm,"sendDanmu",e)},Jd.prototype.playbackRate=function(e){~Xd.indexOf(e)||(e=1),Yd(this.id,this.pageVm,"playbackRate",{rate:e})},Jd.prototype.requestFullScreen=function(e){void 0===e&&(e={}),Yd(this.id,this.pageVm,"requestFullScreen",e)},Jd.prototype.exitFullScreen=function(){Yd(this.id,this.pageVm,"exitFullScreen")},Jd.prototype.showStatusBar=function(){Yd(this.id,this.pageVm,"showStatusBar")},Jd.prototype.hideStatusBar=function(){Yd(this.id,this.pageVm,"hideStatusBar")};var Kd=Object.freeze({__proto__:null,VideoContext:Jd,createVideoContext:function(e,t){return new Jd(e,t||Gc("createVideoContext"))}});function Zd(e,t,n,r){fh.publishHandler(t+"-editor-"+e,{componentId:e,type:n,data:r},t)}fh.subscribe("onEditorMethodCallback",function(e){var t=e.callbackId,n=e.data;S.invoke(t,n)});var Qd=function(e,t){this.id=e,this.pageId=t};Qd.prototype.format=function(e,t){Zd(this.id,this.pageId,"format",{options:{name:e,value:t}})},["insertDivider","insertImage","insertText","setContents","getContents","clear","removeFormat","undo","redo","blur","getSelectionText","scrollIntoView"].forEach(function(n){Qd.prototype[n]=S.warp(function(e,t){Zd(this.id,this.pageId,n,{options:e,callbackId:t})})});var ef=Object.freeze({__proto__:null,EditorContext:Qd}),tf=["canplay","play","pause","stop","ended","timeUpdate","error","waiting","seeking","seeked"],nf=[{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"autoplay",default:!1,cache:!0},{name:"loop",default:!1,cache:!0},{name:"obeyMuteSwitch",default:!0,readonly:!0,cache:!0},{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"buffered",readonly:!0},{name:"volume"}],rf=function(e){var t=this;this.id=e,this._callbacks={},this._options={},tf.forEach(function(e){t._callbacks[e.toLowerCase()]=[]}),nf.forEach(function(n){var r=n.name,e={get:function(){var e=n.cache?this._options:Wc("getAudioState",{audioId:this.id}),t=r in e?e[r]:n.default;return"number"==typeof t&&"volume"!==r?t/1e3:t}};n.readonly||(e.set=function(e){this._options[r]=e,Wc("setAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(t,r,e)})};function of(e,t,n,r){e._callbacks[t].forEach(function(e){"function"==typeof e&&e("error"===t?{errMsg:n,errCode:r}:{})})}rf.prototype.play=function(){this._operate("play")},rf.prototype.pause=function(){this._operate("pause")},rf.prototype.stop=function(){this._operate("stop")},rf.prototype.seek=function(e){this._operate("seek",{currentTime:1e3*e})},rf.prototype.destroy=function(){gh(this.__timing),Wc("destroyAudioInstance",{audioId:this.id}),delete af[this.id]},rf.prototype._operate=function(e,t){Wc("operateAudio",Object.assign({},t,{audioId:this.id,operationType:e}))},tf.forEach(function(r){var e=r[0].toUpperCase()+r.substr(1);r=r.toLowerCase(),rf.prototype["on"+e]=function(e){this._callbacks[r].push(e)},rf.prototype["off"+e]=function(e){var t=this._callbacks[r],n=t.indexOf(e);0<=n&&t.splice(n,1)}}),Hc("onAudioStateChange",function(e){var t=e.state,n=e.audioId,r=e.errMsg,i=e.errCode,o=af[n];if(o)if(of(o,t,r,i),"play"===t){var a=o.currentTime;o.__timing=vh(function(){o.currentTime!==a&&of(o,"timeupdate")},200)}else"pause"!==t&&"stop"!==t&&"error"!==t||gh(o.__timing)});var af=Object.create(null);var sf=Object.freeze({__proto__:null,createInnerAudioContext:function(){var e=Wc("createAudioInstance").audioId,t=new rf(e);return af[e]=t}}),cf=[];Hc("onNetworkStatusChange",function(t){cf.forEach(function(e){Br(e,t)})});var uf=Object.freeze({__proto__:null,onNetworkStatusChange:function(e){cf.push(e)},offNetworkStatusChange:function(e){if(e){var t=cf.indexOf(e);0<=t&&cf.splice(t,1)}}}),lf=[];Hc("onThemeChange",function(t){lf.forEach(function(e){Br(e,t)})}),Hc("onUIStyleChange",function(t){lf.forEach(function(e){Br(e,t)})});var df=Object.freeze({__proto__:null,onThemeChange:function(e){lf.push(e)},onUIStyleChange:function(e){lf.push(e),console.warn('The "uni.onUIStyleChange" API is deprecated, please use "uni.onThemeChange". Learn more: https://uniapp.dcloud.net.cn/api/system/theme.')}}),ff=bc("getSelectedTextRangeEvent");fh.subscribe("onGetSelectedTextRange",function(e){var t=e.callbackId,n=e.data;console.log("onGetSelectedTextRange");var r=ff.pop(t);r&&r(n)});var pf,hf=Object.freeze({__proto__:null,getSelectedTextRange:function(e,t){var n=Xc();fh.publishHandler("getSelectedTextRange",{pageId:n,callbackId:ff.push(function(e){Br(t,e)})},n)}});Hc("onKeyboardHeightChange",function(e){pf&&Br(pf,e)});var vf=Object.freeze({__proto__:null,onKeyboardHeightChange:function(e){var t;t=pf,fh.removeCallbackHandler(t),pf=e},offKeyboardHeightChange:function(){pf=null}}),gf="longPressActionsCallback",mf={};Hc(gf,function(e){var t=e.errMsg||"";new RegExp("\\:\\s*fail").test(t)?mf.fail&&mf.fail(e):mf.success&&mf.success(e),mf.complete&&mf.complete(e)});var yf,_f=Object.freeze({__proto__:null,previewImage:function(e){return void 0===e&&(e={}),((mf=e.longPressActions||{}).success||mf.fail||mf.complete)&&(mf.callbackId=gf),Wc("previewImagePlus",e)}}),bf={pause:null,resume:null,start:null,stop:null,error:null},wf=function(){Hc("onRecorderStateChange",function(e){var t=e.state;delete e.state,delete e.errMsg,"function"==typeof bf[t]&&bf[t](e)})};wf.prototype.onError=function(e){bf.error=e},wf.prototype.onFrameRecorded=function(e){},wf.prototype.onInterruptionBegin=function(e){},wf.prototype.onInterruptionEnd=function(e){},wf.prototype.onPause=function(e){bf.pause=e},wf.prototype.onResume=function(e){bf.resume=e},wf.prototype.onStart=function(e){bf.start=e},wf.prototype.onStop=function(e){bf.stop=e},wf.prototype.pause=function(){Wc("operateRecorder",{operationType:"pause"})},wf.prototype.resume=function(){Wc("operateRecorder",{operationType:"resume"})},wf.prototype.start=function(e){Wc("operateRecorder",Object.assign({},e,{operationType:"start"}))},wf.prototype.stop=function(){Wc("operateRecorder",{operationType:"stop"})};var kf=Object.freeze({__proto__:null,getRecorderManager:function(){return yf||(yf=new wf)}}),Sf=function(e,t){this.id=e,this._callbackId=t,this._callbacks=[]};Sf.prototype.abort=function(){Wc("operateDownloadTask",{downloadTaskId:this.id,operationType:"abort"})},Sf.prototype.onProgressUpdate=function(e){"function"==typeof e&&this._callbacks.push(e)},Sf.prototype.onHeadersReceived=function(){},Sf.prototype.offProgressUpdate=function(e){var t=this._callbacks.indexOf(e);0<=t&&this._callbacks.splice(t,1)},Sf.prototype.offHeadersReceived=function(){};var xf=Object.create(null);Hc("onDownloadTaskStateChange",function(e){var t=e.downloadTaskId,n=e.state,r=e.tempFilePath,i=e.statusCode,o=e.progress,a=e.totalBytesWritten,s=e.totalBytesExpectedToWrite,c=e.errMsg,u=xf[t],l=u._callbackId;switch(n){case"progressUpdate":u._callbacks.forEach(function(e){e({progress:o,totalBytesWritten:a,totalBytesExpectedToWrite:s})});break;case"success":Br(l,{tempFilePath:r,statusCode:i,errMsg:"request:ok"});case"fail":Br(l,{errMsg:"request:fail "+c});default:ph(function(){delete xf[t]},100)}});var Cf=Object.freeze({__proto__:null,downloadFile:function(e,t){var n=Wc("createDownloadTask",e).downloadTaskId,r=new Sf(n,t);return xf[n]=r}}),Tf=Object.create(null);Hc("onRequestTaskStateChange",function(e){var t=e.requestTaskId,n=e.state,r=e.data,i=e.statusCode,o=e.header,a=e.errMsg,s=e.cookies,c=Tf[t]||{},u=c.args,l=c.callbackId;if(l)switch(delete Tf[t],n){case"success":Br(l,function(r,e){if("string"==typeof r.data&&65279===r.data.charCodeAt(0)&&(r.data=r.data.substr(1)),r.statusCode=parseInt(r.statusCode,10),E(r.header)&&(r.header=Object.keys(r.header).reduce(function(e,t){var n=r.header[t];return Array.isArray(n)?e[t]=n.join(","):"string"==typeof n&&(e[t]=n),e},{})),e.dataType&&"json"===e.dataType.toLowerCase())try{r.data=JSON.parse(r.data)}catch(e){}return r}({data:r,statusCode:i,header:o,errMsg:"request:ok",cookies:s},u));break;case"fail":Br(l,{errMsg:"request:fail "+a})}});var Of=function(e){this.id=e};Of.prototype.abort=function(){Wc("operateRequestTask",{requestTaskId:this.id,operationType:"abort"})},Of.prototype.offHeadersReceived=function(){},Of.prototype.onHeadersReceived=function(){};var Ef=Object.freeze({__proto__:null,request:function(e,t){var n;for(var r in e.header)if("content-type"===r.toLowerCase()){n=e.header[r];break}"GET"!==e.method&&0===n.indexOf("application/json")&&E(e.data)&&(e.data=JSON.stringify(e.data));var i=Wc("createRequestTask",e).requestTaskId;return Tf[i]={args:e,callbackId:t},new Of(i)}}),If=function(e){this.id=e,this._callbacks={open:[],close:[],error:[],message:[]},this.CLOSED=3,this.CLOSING=2,this.CONNECTING=0,this.OPEN=1,this.readyState=this.CLOSED};If.prototype.send=function(e){this.readyState!==this.OPEN&&this._callback(e,"sendSocketMessage:fail WebSocket is not connected");var t=Wc("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:this.id})).errMsg;this._callback(e,t.replace("operateSocketTask","sendSocketMessage"))},If.prototype.close=function(e){this.readyState=this.CLOSING;var t=Wc("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:this.id})).errMsg;this._callback(e,t.replace("operateSocketTask","closeSocket"))},If.prototype.onOpen=function(e){this._callbacks.open.push(e)},If.prototype.onClose=function(e){this._callbacks.close.push(e)},If.prototype.onError=function(e){this._callbacks.error.push(e)},If.prototype.onMessage=function(e){this._callbacks.message.push(e)},If.prototype._callback=function(e,t){void 0===e&&(e={});var n=e.success,r=e.fail,i=e.complete,o={errMsg:t};/:ok$/.test(t)?"function"==typeof n&&n(o):"function"==typeof r&&r(o),"function"==typeof i&&i(o)};var Af=Object.create(null),$f=[],Pf=Object.create(null);Hc("onSocketTaskStateChange",function(e){var t=e.socketTaskId,n=e.state,r=e.data,i=(e.errMsg,Af[t]);if(i){if("open"===n&&(i.readyState=i.OPEN),i===$f[0]&&Pf[n]&&Br(Pf[n],"message"===n?{data:r}:{}),"error"===n||"close"===n){i.readyState=i.CLOSED,delete Af[t];var o=$f.indexOf(i);0<=o&&$f.splice(o,1)}i._callbacks[n].forEach(function(e){"function"==typeof e&&e("message"===n?{data:r}:{})})}});var Mf,jf=Object.freeze({__proto__:null,connectSocket:function(e,t){var n=Wc("createSocketTask",e).socketTaskId,r=new If(n);return Af[n]=r,$f.push(r),ph(function(){Br(t,{errMsg:"connectSocket:ok"})},0),r},sendSocketMessage:function(e,t){var n=$f[0];if(n&&n.readyState===n.OPEN)return Wc("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:n.id}));Br(t,{errMsg:"sendSocketMessage:fail WebSocket is not connected"})},closeSocket:function(e,t){var n=$f[0];if(n)return n.readyState=n.CLOSING,Wc("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:n.id}));Br(t,{errMsg:"closeSocket:fail WebSocket is not connected"})},onSocketOpen:function(e){Pf.open=e},onSocketError:function(e){Pf.error=e},onSocketMessage:function(e){Pf.message=e},onSocketClose:function(e){Pf.close=e}}),Bf=function(){};Bf.prototype.onCheckForUpdate=function(){},Bf.prototype.onUpdateReady=function(){},Bf.prototype.onUpdateFailed=function(){},Bf.prototype.applyUpdate=function(){};var Df=Object.freeze({__proto__:null,getUpdateManager:function(){return Mf||(Mf=new Bf)}}),Nf=function(e,t){this.id=e,this._callbackId=t,this._callbacks=[]};Nf.prototype.abort=function(){Wc("operateUploadTask",{uploadTaskId:this.id,operationType:"abort"})},Nf.prototype.onProgressUpdate=function(e){"function"==typeof e&&this._callbacks.push(e)},Nf.prototype.onHeadersReceived=function(){},Nf.prototype.offProgressUpdate=function(e){var t=this._callbacks.indexOf(e);0<=t&&this._callbacks.splice(t,1)},Nf.prototype.offHeadersReceived=function(){};var Lf=Object.create(null);Hc("onUploadTaskStateChange",function(e){var t=e.uploadTaskId,n=e.state,r=e.data,i=e.statusCode,o=e.progress,a=e.totalBytesSent,s=e.totalBytesExpectedToSend,c=e.errMsg,u=Lf[t],l=u._callbackId;switch(n){case"progressUpdate":u._callbacks.forEach(function(e){e({progress:o,totalBytesSent:a,totalBytesExpectedToSend:s})});break;case"success":Br(l,{data:r,statusCode:i,errMsg:"request:ok"});case"fail":Br(l,{errMsg:"request:fail "+c});default:ph(function(){delete Lf[t]},100)}});var Rf=Object.freeze({__proto__:null,uploadFile:function(e,t){var n=Wc("createUploadTask",e).uploadTaskId,r=new Nf(n,t);return Lf[n]=r}}),Ff={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"},zf=function(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=Object.assign({},Ff,e)};zf.prototype._getOption=function(e){var t={transition:Object.assign({},this.option,e)};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t},zf.prototype._pushAnimates=function(e,t){this.currentStepAnimates.push({type:e,args:t})},zf.prototype._converType=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})},zf.prototype._getValue=function(e){return"number"==typeof e?e+"px":e},zf.prototype.export=function(){var e=this.actions;return this.actions=[],{actions:e}},zf.prototype.step=function(e){var t=this;return this.currentStepAnimates.forEach(function(e){"style"!==e.type?t.currentTransform[e.type]=e:t.currentTransform[e.type+"."+e.args[0]]=e}),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this};var Vf=["opacity","backgroundColor"],Uf=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(Vf,Uf).forEach(function(n){zf.prototype[n]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Vf.concat(Uf).includes(n)?this._pushAnimates("style",[this._converType(n),Uf.includes(n)?this._getValue(e[0]):e[0]]):this._pushAnimates(n,e),this}});var qf=Object.freeze({__proto__:null,createAnimation:function(e){return new zf(e)}}),Wf=bc("requestComponentObserver"),Hf={thresholds:[0],initialRatio:0,observeAll:!1},Gf=function(e,t){this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=Object.assign({},Hf,t)};Gf.prototype._makeRootMargin=function(t){void 0===t&&(t={}),this.options.rootMargin=["top","right","bottom","left"].map(function(e){return(Number(t[e])||0)+"px"}).join(" ")},Gf.prototype.relativeTo=function(e,t){return this.options.relativeToSelector=e,this._makeRootMargin(t),this},Gf.prototype.relativeToViewport=function(e){return this.options.relativeToSelector=null,this._makeRootMargin(e),this},Gf.prototype.observe=function(e,t){"function"==typeof t&&(this.options.selector=e,this.reqId=Wf.push(t),fh.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},(this.component,this.pageId)))},Gf.prototype.disconnect=function(){fh.publishHandler("destroyComponentObserver",{reqId:this.reqId},(this.component,this.pageId))};var Xf=Object.freeze({__proto__:null,createIntersectionObserver:function(e,t){return e._isVue||(t=e,e=null),new Gf(e||Gc("createIntersectionObserver"),t)}}),Yf=bc("requestMediaQueryObserver"),Jf=function(e,t){this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=t};Jf.prototype.observe=function(e,t){"function"==typeof t&&(this.options=e,this.reqId=Yf.push(t),fh.publishHandler("requestMediaQueryObserver",{reqId:this.reqId,component:this.component,options:this.options},(this.component,this.pageId)))},Jf.prototype.disconnect=function(){fh.publishHandler("destroyMediaQueryObserver",{reqId:this.reqId},(this.component,this.pageId))};var Kf=Object.freeze({__proto__:null,createMediaQueryObserver:function(e,t){return e._isVue||(t=e,e=null),new Jf(e||Gc("createMediaQueryObserver"),t)}}),Zf={canvas:Ud,map:Hd,video:Jd,editor:Qd};function Qf(e){if(e&&e.context){var t=e.context,n=t.id,r=t.name,i=t.page,o=Zf[r];e.context=o&&new o(n,i)}}var ep=function(e,t,n,r){this._selectorQuery=e,this._component=t,this._selector=n,this._single=r};ep.prototype.boundingClientRect=function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery},ep.prototype.fields=function(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery},ep.prototype.scrollOffset=function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery},ep.prototype.context=function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery};var tp=function(e){this._page=e,this._queue=[],this._queueCb=[]};tp.prototype.exec=function(t){var i=this;Wc("requestComponentInfo",this._page,this._queue,function(e){var r=i._queueCb;e.forEach(function(e,t){Array.isArray(e)?e.forEach(Qf):Qf(e);var n=r[t];O(n)&&n.call(i,e)}),O(t)&&t.call(i,e)})},tp.prototype.in=function(e){return this._component=e._$id||e,this},tp.prototype.select=function(e){return new ep(this,this._component,e,!0)},tp.prototype.selectAll=function(e){return new ep(this,this._component,e,!1)},tp.prototype.selectViewport=function(){return new ep(this,0,"",!0)},tp.prototype._push=function(e,t,n,r,i){this._queue.push({component:t,selector:e,single:n,fields:r}),this._queueCb.push(i)};var np=Object.freeze({__proto__:null,createSelectorQuery:function(e){return new tp(e||Gc("createSelectorQuery"))}});fh.subscribe("onLoadFontFaceCallback",function(e){Br(e.callbackId,e.data)});var rp=Object.freeze({__proto__:null,loadFontFace:function(e,t){var n=Xc();if(!n)return{errMsg:"loadFontFace:fail not font page"};fh.publishHandler("loadFontFace",{options:e,callbackId:t},n)}});var ip=Object.freeze({__proto__:null,pageScrollTo:function(e){var t=wh();return t.length&&fh.publishHandler("pageScrollTo",e,t[t.length-1].$page.id),{}}});var op=Object.freeze({__proto__:null,setPageMeta:function(e){var t=wh();return t.length&&fh.publishHandler("setPageMeta",e,t[t.length-1].$page.id),{}}});function ap(e){return Wc("setTabBarBadge",{index:e.index,type:"none"})}var sp=ap,cp=[];Hc("onTabBarMidButtonTap",function(t){cp.forEach(function(e){Br(e,t)})});var up=Object.freeze({__proto__:null,removeTabBarBadge:ap,showTabBarRedDot:function(e){return Wc("setTabBarBadge",{index:e.index,type:"redDot"})},hideTabBarRedDot:sp,onTabBarMidButtonTap:function(e){cp.push(e)}}),lp=[];Hc("onViewDidResize",function(t){lp.forEach(function(e){Br(e,t)})});var dp,fp,pp=Object.freeze({__proto__:null,onWindowResize:function(e){lp.push(e)},offWindowResize:function(e){lp.splice(lp.indexOf(e),1)}}),hp=Object.create(null),vp=(dp={"./base/base64.js":hr,"./base/can-i-use.js":gr,"./base/interceptor.js":yr,"./base/upx2px.js":Sr,"./context/audio.js":Tr,"./context/background-audio.js":eu,"./context/canvas.js":Wd,"./context/create-map-context.js":Gd,"./context/create-video-context.js":Kd,"./context/editor.js":ef,"./context/inner-audio.js":sf,"./device/network.js":uf,"./device/theme.js":df,"./keyboard/get-selected-text-range.js":hf,"./keyboard/keyboard.js":vf,"./media/preview-image.js":_f,"./media/recorder.js":kf,"./network/download-file.js":Cf,"./network/request.js":Ef,"./network/socket.js":jf,"./network/update.js":Df,"./network/upload-file.js":Rf,"./ui/create-animation.js":qf,"./ui/create-intersection-observer.js":Xf,"./ui/create-media-query-observer.js":Kf,"./ui/create-selector-query.js":np,"./ui/load-font-face.js":rp,"./ui/page-scroll-to.js":ip,"./ui/set-page-meta.js":op,"./ui/tab-bar.js":up,"./ui/window.js":pp},(fp=function(e){return dp[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}).keys=function(){return Object.keys(dp)},fp);vp.keys().forEach(function(e){Object.assign(hp,vp(e))});var gp=Object.assign(Object.create(null),hp,qc),mp=Object.create(null);e.forEach(function(e){var i,o;gp[e]?mp[e]=(o=ur(i=e,gp[e]),X(i)?function(n){void 0===n&&(n={});for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1];return O(n.success)||O(n.fail)||O(n.complete)?N(i,L.apply(void 0,[i,o,n].concat(r))):N(i,new Promise(function(e,t){L.apply(void 0,[i,o,Object.assign({},n,{success:e,fail:t})].concat(r))}).then(function(e){return[null,e]}).catch(function(e){return[e]}))}:o):mp[e]=cr(e)});var yp=Object.create(null);function _p(e,t,n){return"onError"!==t&&console.debug("App:"+t+" have been invoked"+(n?" "+JSON.stringify(n):"")),(e=e.$vm||e).__call_hook&&e.__call_hook(t,n)}function bp(e,t,n){return"onPageScroll"!==t&&console.debug(e.$page.route+"["+e.$page.id+"]:"+t+" have been invoked"),i=t,o=n,(r=(r=e).$vm||r).__call_hook&&r.__call_hook(i,o);var r,i,o}function wp(e,t){var n=e.name,r=e.arg;"postMessage"===n?function(t,e){t=parseInt(t);var n=wh(!0).find(function(e){return e.$page.id===t});if(n&&!n.$page.meta.isNVue){var r=n.$vm._$vd.elements.find(function(e){return"web-view"===e.type&&e.events.message});if(!r)return;r.dispatchEvent("message",{type:"message",target:Object.create(null),currentTarget:Object.create(null),timeStamp:Date.now(),detail:{data:[e]}})}}(t[0],r):_h[n](r)}function kp(e,t){var r=t.getApp,i=t.getCurrentPages;function o(e,t){var n=i();n.length&&bp(n[n.length-1],e,t)}function n(t){return function(e){o(t,e)}}var a={navigateTo:function(){o("onHide")},navigateBack:function(){o("onShow")}};e("onError",function(e){_p(r(),"onError",e)}),e("onPageNotFound",function(e){_p(r(),"onPageNotFound",e)}),e("onAppRoute",function(e){var t=e.type,n=a[t];n&&n()}),e("onAppEnterBackground",function(){_p(r(),"onHide"),o("onHide")}),e("onAppEnterForeground",function(){var e=i();if(0!==e.length){var t=e[e.length-1],n={path:t.route,query:t.options};_p(r(),"onShow",n),o("onShow")}}),e("onResize",function(e,t){var n=i().find(function(e){return e.$page.id===t});n&&bp(n,"onResize",e)}),e("onPullDownRefresh",function(e,t){var n,r=i().find(function(e){return e.$page.id===t});r&&(dc="number"==typeof(n=t)?dh.webview.getWebviewById(String(n)):n,bp(r,"onPullDownRefresh"))}),e("onTabItemTap",n("onTabItemTap")),e("onNavigationBarButtonTap",n("onNavigationBarButtonTap")),e("onNavigationBarSearchInputChanged",n("onNavigationBarSearchInputChanged")),e("onNavigationBarSearchInputConfirmed",n("onNavigationBarSearchInputConfirmed")),e("onNavigationBarSearchInputClicked",n("onNavigationBarSearchInputClicked")),e("onNavigationBarSearchInputFocusChanged",n("onNavigationBarSearchInputFocusChanged")),e("onWebInvokeAppService",wp)}e.forEach(function(e){gp[e]?yp[e]=ur(e,gp[e]):yp[e]=cr(e)});var Sp=!1;function xp(e,t){var n="1"===t;if(!n||!Sp){if(n?(Sp=!0,Ps(dh.webview.getLaunchWebview())):xs||Ps(dh.webview.getWebviewById(t)),xs.id!==t)return console.error("webviewReady["+xs.id+"]["+t+"] not match");var r,i;if(xs.loaded=!0,i=Ns[r=t],Array.isArray(i)&&i.forEach(function(e){return e()}),delete Ns[r],n){var o="/"+mh.entryPagePath,a=yh.find(function(e){return e.path===o});if(!a.meta.isNVue){var s=a.meta.isTabBar?"switchTab":"navigateTo";return _h[s]({url:o+(mh.entryPageQuery||""),openType:"appLaunch"})}}}}var Cp=Object.create(null);function Tp(e,t){var n=e.data,r=(e.options,Cp[t]);Array.isArray(r)&&r.forEach(function(e){e(n)})}var Op,Ep=[];function Ip(){for(var e=Ep.slice(0),t=Ep.length=0;t<e.length;t++)e[t]()}function Ap(e){var t=e.data,n=t.method,r=t.args;_h[n]&&_h[n](r)}function $p(e,t){var n=e.cid,r=e.method,i=e.args;t=parseInt(t);var o=wh(!0).find(function(e){return e.$page.id===t});if(!o)return console.error("Page["+t+"] not found");var a=o.$vm._$vd.getVm(n);if(!a)return console.error("vm["+n+"] not found");a[r]&&a[r](i)}function Pp(t){t=parseInt(t);var e=wh(!0).find(function(e){return e.$page.id===t});return e||console.error("Page["+t+"] not found")}function Mp(e,t){var n=Pp(t);n&&(n.__uniapp_webview=!0)}function jp(e,t){var n=Pp(t);n&&delete n.__uniapp_webview}function Bp(){var e=fh.on,n=fh.emit,t=fh.subscribe,r=fh.publishHandler,i=fh.subscribeHandler;if(function(e,t){t.getApp;var i=t.getCurrentPages;function n(r){return function(e,t){t=parseInt(t);var n=i().find(function(e){return e.$page.id===t});n&&bp(n,r,e)}}var o=bc("requestComponentInfo"),a=bc("requestComponentObserver"),s=bc("requestMediaQueryObserver");e("onPageScroll",n("onPageScroll")),e("onReachBottom",n("onReachBottom")),e("onRequestComponentInfo",function(e){var t=e.reqId,n=e.res,r=o.pop(t);r&&r(n)}),e("onRequestComponentObserver",function(e){var t=e.reqId,n=e.reqEnd,r=e.res,i=a.get(t);if(i){if(n)return void a.pop(t);i(r)}}),e("onRequestMediaQueryObserver",function(e){var t=e.reqId,n=e.reqEnd,r=e.res,i=s.get(t);if(i){if(n)return void s.pop(t);i(r)}})}(t,{getApp:bh,getCurrentPages:wh}),Po("subscribeHandler",function(e){i(e.type,e.data,e.pageId)}),"native"!==mh.renderer){t(hs,xp),t(ps,Tp),t(vs,Ip);var o="/"+mh.entryPagePath;yh.find(function(e){return e.path===o}).meta.isNVue||r(hs,Object.create(null),[1])}e("api."+ms,function(e,t){n("onWebInvokeAppService",e,t)}),t("onWxsInvokeCallMethod",$p),t(gs,Ap),t(ys,Mp),t(_s,jp)}var Dp={globalData:{}};function Np(e){void 0===e&&(e={});var t=e.allowDefault;return void 0===t&&(t=!1),Op||(t?Dp:void console.error("[warn]: getApp() failed. Learn more: https://uniapp.dcloud.io/collocation/frame/window?id=getapp."))}function Lp(e){e.data&&e.data.type&&$o(e.data.type,e.data.args||{})}function Rp(){function e(e){return 0===(e=e.replace(/\/$/,"")).indexOf("_")?dh.io.convertLocalFileSystemURL(e):e}var t=e(ji),n=e(Bi),r=n.split("/");r.pop(),r=r.join("/"),dh.io.resolveLocalFileSystemURL(dh.io.convertAbsoluteFileSystem(r),function(e){e.createReader().readEntries(function(e){e&&e.length&&e.forEach(function(e){e.isDirectory&&0===e.fullPath.indexOf(t)&&0!==e.fullPath.indexOf(n)&&e.removeRecursively()})})})}function Fp(e){(Op=e).$vm=e,Object.assign(Op,Dp);var t,n,r=e.$options.globalData||{};Op.globalData=Object.assign(r,Op.globalData),kp(fh.on,{getApp:Np,getCurrentPages:nc}),ec(),function(){if(mh.tabBar&&mh.tabBar.list&&mh.tabBar.list.length){mh.tabBar.selected=0;var e=mh.tabBar.list.findIndex(function(e){return e.pagePath===mh.entryPagePath});aa.init(mh.tabBar,function(e,t){_h.switchTab({url:"/"+e.pagePath,openType:"switchTab",from:"tabBar",success:function(){fh.emit("onTabItemTap",{index:t,text:e.text,pagePath:e.pagePath})}})}),-1!==e&&0!==(mh.tabBar.selected=e)&&aa.switchTab(mh.entryPagePath)}}(),function(){var e=Dr("globalEvent"),t=fh.emit;lh.config.preload?dh.key.addEventListener("backbutton",Os):dh.globalEvent.addEventListener("splashclosed",function(){dh.key.addEventListener("backbutton",Os)}),dh.globalEvent.addEventListener("pause",function(){t("onAppEnterBackground")}),dh.globalEvent.addEventListener("resume",function(){t("onAppEnterForeground")}),dh.globalEvent.addEventListener("netchange",function(){var e=Pi[dh.networkinfo.getCurrentType()]||"unknown";Nr("onNetworkStatusChange",{isConnected:"none"!==e,networkType:e})});var n=0;dh.globalEvent.addEventListener("KeyboardHeightChange",function(e){n!==e.height&&Nr("onKeyboardHeightChange",{height:n=e.height})}),e.addEventListener("uistylechange",function(e){var t={theme:e.uistyle};_p(Op,"onThemeChange",t),Nr("onThemeChange",t),Nr("onUIStyleChange",{style:e.uistyle})}),e.addEventListener("uniMPNativeEvent",function(e){Nr("uniMPNativeEvent",e)}),dh.globalEvent.addEventListener("plusMessage",Lp),dh.globalEvent.addEventListener("WebviewPostMessage",Lp)}(),Bp(),t=e,n={path:mh.entryPagePath,query:{},scene:1001},_p(t,"onLaunch",n),_p(t,"onShow",n),ph(Rp,1e4),mh.ready=!0}var zp=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"];function Vp(e){if(0===e.indexOf("#")){var t=e.substr(1);return function(e){return!(!e.componentInstance||e.componentInstance.id!==t)||!(!e.data||!e.data.attrs||e.data.attrs.id!==t)}}if(0===e.indexOf(".")){var n=e.substr(1);return function(e){return e.data&&function(e,t,n){void 0===t&&(t="");void 0===n&&(n="");if(t)return-1!==t.split(Up).indexOf(e);if(n&&"string"==typeof n)return-1!==n.split(Up).indexOf(e)}(n,e.data.staticClass,e.data.class)}}}var Up=/\s+/;function qp(e){e.prototype.createIntersectionObserver=function(e){return _h.createIntersectionObserver(this,e)},e.prototype.createMediaQueryObserver=function(e){return _h.createMediaQueryObserver(this,e)},e.prototype.selectComponent=function(e){return function e(t,n){if(n(t.$vnode||t._vnode))return t;for(var r=t.$children,i=0;i<r.length;i++){var o=e(r[i],n);if(o)return o}}(this,Vp(e))},e.prototype.selectAllComponents=function(e){return function e(t,n,r){n(t.$vnode||t._vnode)&&r.push(t);for(var i=t.$children,o=0;o<i.length;o++)e(i[o],n,r);return r}(this,Vp(e),[])}}function Wp(e,t,n){if(!e.$parent)return"-1";var r=e.$vnode,i=r.context,o=r.data.attrs._i;return n&&b(r.data,"key")&&(o=o+";"+r.data.key),i&&i!==t&&i._$id?i._$id+";"+t._$id+","+o:t._$id+","+o}var Hp,Gp,Xp="android"===dh.os.name.toLowerCase()?300:700,Yp=0;function Jp(e){return e.preventDefault=o,e.stopPropagation=o,(t=e).mp=Object.assign({"@warning":"mp is deprecated"},t),t._processed=!0,t;var t}Hc("onKeyboardHeightChange",function(e){if(0<(Yp=e.height)){var t=Hp;Hp=null,t&&t()}});var Kp={};Kp[20]=function(e,s){e.forEach(function(e){var t=e[0],n=e[1],r=e[2];n=String(n);var i=s.elements.find(function(e){return e.cid===t&&e.nid===n});if(i){var o=r.type,a=Jp(r);"focus"===o||"blur"===o?function(e,t){if(Hp=null,Gp&&hh(Gp),"focus"===e.type){if(!(0<Yp))return Gp=ph(function(){e.detail.height=Yp,t(e)},Xp),Hp=function(){hh(Gp),e.detail.height=Yp,t(e)};e.detail.height=Yp}t(e)}(a,function(e){i.dispatchEvent(o,e)}):i.dispatchEvent(o,a)}})};var Zp=function(e,t,n,r){this.pageId=e,this.pagePath=t,this.pageQuery=n,this.pageVm=r,this.batchData=[],this.vms=Object.create(null),this.initialized=!1,this.pageCreateData=!1,this.elements=[],this._init()};function Qp(e,t,n){e[t]=n}function eh(e,t){var n,r,i;for(r in e)i=e[r],l(t[r],i)||Qp(n||(n=Object.create(null)),r,i);return n}function th(e,t,n){var r,i,o;for(r in e)if(i=e[r],o=t[r]){var a=eh(i,o);a&&Qp(n,r,a)}else Qp(n,r,i);return n}function nh(n,r){var e=r.$options.mpOptions;return e&&Array.isArray(e.externalClasses)&&e.externalClasses.forEach(function(e){var t=r[u(e)];t&&(n=n.replace(e,t))}),n}function rh(e,t,n){switch(t){case To:n=nh(this._$stringifyClass(n),this);break;case Eo:n=nh(n,this);break;case Oo:n=this._$normalizeStyleBinding(n);break;case So:case Co:case xo:n=n?1:0;break;case ko:return function(e,t){var n=this._$newData[e]||(this._$newData[e]={}),r=n[ko]||(n[ko]=[]);if(t.forItems)return t.fill&&function(e,t){var n,r;if(Array.isArray(e)||"string"==typeof e)for(n=0,r=e.length;n<r;n++)t[n]=n;else if("number"==typeof e)for(n=0;n<e;n++)t[n]=n;else if(c(e))for(n=0,r=Object.keys(e).length;n<r;n++)t[n]=n}(t.forItems,r),t.forItems;var i=t.forIndex,o=t.key;b(t,"keyIndex")?("object"!=typeof r[i]&&(r[i]={}),r[i]["k"+t.keyIndex]=o):r[i]=o;return o}.call(this,e,n)}return(this._$newData[e]||(this._$newData[e]={}))[t]=n}Zp.prototype._init=function(){var e,t,n=this;e=this.pageId,t=function(e){var r;r=n,e.forEach(function(e){var t=e[0],n=e[1];Kp[t](n,r)})},(Cp[e]||(Cp[e]=[])).push(t)},Zp.prototype.addMountedVm=function(e){e._$mounted(),this.addVdSyncCallback(function(){e.__call_hook("mounted")})},Zp.prototype.addUpdatedVm=function(e){e._$updated(),this.addVdSyncCallback(function(){e.__call_hook("updated")})},Zp.prototype.addVdSyncCallback=function(e){O(e)&&Ep.push(e)},Zp.prototype.getVm=function(e){return this.vms[e]},Zp.prototype.addVm=function(e){var n=e._$id,t=this.vms[n];if(t){var r=Wp(t,t.$parent,fs);t._$id=r,this.vms[r]=t,this.elements.forEach(function(e){var t=e.cid;e.cid=t===n?r:t})}this.vms[n]=e},Zp.prototype.removeVm=function(e){var t=e._$id;e===this.vms[t]&&(this.batchData=this.batchData.filter(function(e){return e[1][0]!==t}),delete this.vms[t])},Zp.prototype.addElement=function(e){-1===this.elements.indexOf(e)&&this.elements.push(e)},Zp.prototype.removeElement=function(e){var t=this.elements.indexOf(e);-1!==t&&this.elements.splice(t,1)},Zp.prototype.push=function(e,t,n,r){var i=[t,n];r&&i.push(r),this.batchData.push([e,i])},Zp.prototype.find=function(t,n){return this.batchData.find(function(e){return e[0]===t&&e[1][0]===n})},Zp.prototype.sendPageCreate=function(e){this.pageCreateData=e,fh.publishHandler(ps,{data:[[2,e]],options:{timestamp:Date.now()}},[this.pageId])},Zp.prototype.flush=function(){this.initialized||(this.initialized=!0,this.batchData.push([10,[this.pageId,this.pagePath,this.pageQuery]]));var e=this.batchData.filter(function(e){return!(6===e[0]&&!Object.keys(e[1][1]).length)});this.batchData.length=0,e.length&&fh.publishHandler(ps,{data:e,options:{timestamp:Date.now()}},[this.pageId])},Zp.prototype.restorePageCreate=function(){this.batchData.push([2,this.pageCreateData])},Zp.prototype.restoreMountedData=function(){var t=this,n=function(e){e._$id&&t.push(4,e._$id,e._$data,void 0),e.$children.forEach(function(e){return n(e)})};n(this.pageVm)},Zp.prototype.restorePageCreated=function(){this.batchData.push([10,[this.pageId,this.pagePath,this.pageQuery]])},Zp.prototype.restore=function(){this.initialized=!0,this.batchData.length=0,this.restorePageCreate(),this.restoreMountedData(),this.restorePageCreated(),this.flush()},Zp.prototype.destroy=function(){var e;this.batchData.length=0,this.vms=Object.create(null),this.initialized=!1,this.elements.length=0,e=this.pageId,delete Cp[e]};var ih=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onNavigationBarSearchInputFocusChanged","onPageShow","onPageHide","onPageResize","onServiceCreated","onServiceAttached"],oh=["data","properties","options","relations"];function ah(i,o){var e,t;oh.forEach(function(e){var t,n,r;t=i,(n=o)[r=e]&&Object.assign(t[r]||(t[r]={}),n[r])}),o.externalClasses&&(e=i.externalClasses||(i.externalClasses=[]),t=o.externalClasses,e.push.apply(e,t)),o.path&&(i.path=o.path)}function sh(g){!function(e){var r=e.extend;e.extend=function(t){var n=(t=t||{}).methods;return n&&Object.keys(n).forEach(function(e){-1!==ih.indexOf(e)&&(t[e]=n[e],delete n[e])}),r.call(this,t)};var t=e.config.optionMergeStrategies,n=t.created;ih.forEach(function(e){t[e]=n}),t.mpOptions=function(e,t){if(!e)return t;var n=Object.create(null);return ah(n,e),t&&ah(n,t),n}}(g),g.mixin({beforeCreate:function(){var t=this,e=this.$options;e.store&&!g.prototype.$store&&(g.prototype.$store=e.store);var n,r,i,o,a,s,c,u,l,d,f=e.wxs;if(f&&Object.keys(f).forEach(function(e){t[e]=f[e]}),"page"===this.mpType){var p=bh();p.$vm&&p.$vm.$i18n&&(this._i18n=p.$vm.$i18n),this.$scope=this.$options.pageInstance,delete(this.$scope.$vm=this).$options.pageInstance;var h=this.$scope.route,v=this.$scope.$page.id;this._$vd.sendPageCreate([v,h,(n=this,r=h,i="/"+r,o=yh.find(function(e){return e.path===i}),a=Object.assign({},mh.window,o.window),s=!0===a.disableScroll?1:0,c=b(a,"onReachBottomDistance")?parseInt(a.onReachBottomDistance):bo,u=ac(n.$options,"onPageScroll")?1:0,l=ac(n.$options,"onReachBottom")?1:0,d=sa(),{version:fs,locale:dh.os.language,disableScroll:s,onPageScroll:u,onPageReachBottom:l,onReachBottomDistance:c,statusbarHeight:d,windowTop:a.titleNView&&"float"===a.titleNView.type?d+ta:0,windowBottom:0<=aa.indexOf(r)&&aa.cover?aa.height:0})])}},created:function(){"page"===this.mpType&&(bp(this.$scope,"onLoad",function(n){void 0===n&&(n={});var r={};return Object.keys(n).forEach(function(t){try{r[t]=m(n[t])}catch(e){r[t]=n[t]}}),r}(this.$options.pageQuery)),bp(this.$scope,"onShow"))},beforeDestroy:function(){"page"===this.mpType&&bp(this.$scope,"onUnload")},mounted:function(){"page"===this.mpType&&(bp(this.$scope,"onReady"),function(e){if(mh.preloadRule){var t=mh.preloadRule[e];t&&Array.isArray(t.packages)&&t.packages.filter(function(e){return-1===cs.indexOf(e)}).length&&ds(t.packages)}}(this.$scope.route))}})}var ch={install:function(o,e){var t,n;!function(o){o.config.errorHandler=function(e,t,n){var r=f(e);o.util.warn("Error in "+n+': "'+("Error"===r?e.toString():e)+'"',t);var i="function"==typeof bh&&bh();i&&ac(i.$options,"onError")?i.__call_hook("onError",e):console.error(e)};var t=o.config.isReservedTag;o.config.isReservedTag=function(e){return-1!==zp.indexOf(e)||t(e)},o.config.ignoredElements=zp;var n=o.config.getTagNamespace,r=["switch","image","text","view"];o.config.getTagNamespace=function(e){return!~r.indexOf(e)&&n(e)}}(o),(t=o).prototype._$s=rh,t.prototype._$setData=function(e,t){this._$vd.push(e,this._$id,t,4===e&&void 0)},t.prototype._$mounted=function(){this._$vd&&(th(this._$newData,this._$data,this._$vdMountedData),this._$data=JSON.parse(JSON.stringify(this._$newData)),"page"===this.mpType&&this._$vd.flush())},t.prototype._$updated=function(){var e=this;this._$vd&&(th(this._$newData,this._$data,this._$vdUpdatedData),this._$data=JSON.parse(JSON.stringify(this._$newData)),this._$vd.initialized&&ph(function(){e.$nextTick(e._$vd.flush.bind(e._$vd))},0))},Object.defineProperty(t.prototype,"_$vd",{get:function(){return this.$root._$vdomSync}}),t.mixin({beforeCreate:function(){this.$options.mpType&&(this.mpType=this.$options.mpType),"app"!==this.mpType&&("page"===this.mpType&&(this._$vdomSync=new Zp(this.$options.pageId,this.$options.pagePath,this.$options.pageQuery,this)),this._$vd&&(this._$id=Wp(this,this.$parent,fs),this._$vd.addVm(this),this._$vdMountedData=Object.create(null),this._$setData(4,this._$vdMountedData),this._$data=Object.create(null),this._$newData=Object.create(null)))},beforeUpdate:function(){if(this._$vd){var e=this._$vd.find(4,this._$id);e?(this._$data=Object.create(null),this._$vdUpdatedData=e[1][1]=Object.create(null)):(this._$vdUpdatedData=Object.create(null),this._$setData(6,this._$vdUpdatedData)),this._$newData=Object.create(null)}},beforeDestroy:function(){this._$vd&&(this._$vd.removeVm(this),this._$vdomSync&&this._$vdomSync.destroy())}}),sh(o),qp(o),(n=o).prototype.uniIDHasRole=function(e){return-1<i().role.indexOf(e)},n.prototype.uniIDHasPermission=function(e){var t=i().permission;return this.uniIDHasRole("admin")||-1<t.indexOf(e)},n.prototype.uniIDTokenValid=function(){return i().tokenExpired>Date.now()},o.prototype.getOpenerEventChannel=function(){return this.$root.$scope.eventChannel||(this.$root.$scope.eventChannel=new Ys),this.$root.$scope.eventChannel},Object.defineProperty(o.prototype,"$page",{get:function(){return this.$root.$scope.$page}}),Object.defineProperty(o.prototype,"$mp",{get:function(){return{page:this.$root.$scope}}});var r=o.prototype.$mount;o.prototype.$mount=function(e,t){var n=this;if("app"===this.mpType){if(this.$options.render=function(){},lh.config.preload)return void lh.requireModule("globalEvent").addEventListener("launchApp",function(){dh.updateConfigInfo&&dh.updateConfigInfo(),Fp(n),r.call(n,e,t)});Fp(this)}return r.call(this,e,t)},o.prototype.$nextTick=function(t){var n=this,r=this._watcher,i="function"==typeof t,e=new Promise(function(e){r&&n._$queue.find(function(e){return r===e})?Ep.push(i?t.bind(n):e):o.nextTick(i?function(){return t.call(n)}:e),i&&e()});return i?void 0:e}}};return mp.__$wx__=yp,fh.publishHandler=function(e,t,n){t=JSON.stringify(t),Array.isArray(n)||(n=[n]);var r="typeof UniViewJSBridge !== 'undefined' && UniViewJSBridge.subscribeHandler(\""+e+'",'+t+",__PAGE_ID__)";n.forEach(function(e){var t=dh.webview.getWebviewById(String(e));t&&t.evalJS(r.replace("__PAGE_ID__",e))})},fh.invokeCallbackHandler=sr,fh.removeCallbackHandler=function(e){delete or[e]},{__vuePlugin:ch,__definePage:function(e,t){Ks[e]=t},__registerApp:Fp,__registerPage:ic,uni:mp,getApp:Np,getCurrentPages:nc}}(),_h=t.uni,bh=t.getApp,wh=t.getCurrentPages;return t}function initServiceJSBridge(e){var r=new e;UniServiceJSBridge={on:r.$on.bind(r),off:r.$off.bind(r),once:r.$once.bind(r),emit:r.$emit.bind(r),subscribe:function(e,t){return r.$on("view."+e,t)},unsubscribe:function(e,t){return r.$off("view."+e,t)},subscribeHandler:function(e,t,n){return r.$emit("view."+e,t,n)}}}function createInstanceContext$1(e){var t,n=e.weex,r=e.Vue,i=new e.WeexPlus(n);(UniServiceJSBridge||initServiceJSBridge(r),uni)||(t=createServiceContext(r,n,i,UniServiceJSBridge,e),__vuePlugin=t.__vuePlugin,__definePage=t.__definePage,__registerApp=t.__registerApp,__registerPage=t.__registerPage,uni=t.uni,getApp=t.getApp,getCurrentPages=t.getCurrentPages);return{__vuePlugin:__vuePlugin,__definePage:__definePage,__registerApp:__registerApp,__registerPage:__registerPage,plus:i,uni:uni,wx:uni.__$wx__||uni,getApp:getApp,getCurrentPages:getCurrentPages,UniServiceJSBridge:UniServiceJSBridge}}function styleMixin(e){e.prototype.__merge_style=function(r,e){if(void 0===r&&(r={}),r){var i=e||this.$options.style;Object.keys(r).forEach(function(e){var t=i[e];if(t){var n=r[e];Object.keys(n).forEach(function(e){var a=n[e],s=t[e];"object"==typeof a?("object"!=typeof s&&(s=t[e]={}),Object.keys(a).forEach(function(e){var t=!0;if(s[e])for(var n=a[e].slice(1,3),r=s[e].slice(1,3),i=0;i<r.length;i++){var o=n[i]-r[i];if(0!==o){t=0<o;break}}t&&(s[e]=a[e])})):t[e]=a})}else i[e]=Object.assign({},r[e])}),e||(this.$options.style=i)}}}function b64DecodeUnicode(e){return decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function getCurrentUserInfo(){var e,t=this.uni.getStorageSync("uni_id_token")||"",n=t.split(".");if(!t||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(b64DecodeUnicode(n[1]))}catch(e){throw new Error("获取当前用户信息出错,详细错误信息为:"+e.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}function uniIdMixin(e,n){e.prototype.uniIDHasRole=function(e){return-1<getCurrentUserInfo.bind(n)().role.indexOf(e)},e.prototype.uniIDHasPermission=function(e){var t=getCurrentUserInfo.bind(n)().permission;return this.uniIDHasRole("admin")||-1<t.indexOf(e)},e.prototype.uniIDTokenValid=function(){return getCurrentUserInfo.bind(n)().tokenExpired>Date.now()}}WeexInstance.prototype.requireModule=function(n){var r=getId(this);if(r&&this.document&&this.document.taskCenter){if(isRegisteredModule(n)){var e={},t=getModuleDescription(n),i=function(t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return handleModuleGetter(n,t,moduleGetter(r,n,t))},set:function(e){return moduleSetter(r,n,t,e)}})};for(var o in t)i(o);return e}console.warn("[JS Framework] 当前运行的基座不包含原生插件["+n+"],请在manifest中配置该插件,重新制作包括该原生插件的自定义运行基座")}else console.error('[JS Framework] Failed to requireModule("'+n+'"), instance ('+r+") doesn't exist anymore.")},WeexInstance.prototype.supports=function(e){if("string"!=typeof e)return null;var t=e.match(/^@(\w+)\/([\w-]+)(\.(\w+))?$/i);if(t){var n=t[1],r=t[2],i=t[4];switch(n){case"module":return isRegisteredModule(r,i);case"component":return isRegisteredComponent(r)}}return null},WeexInstance.prototype.importScript=function(e,r){void 0===r&&(r={});var i=getId(this),o=getTaskCenter(i);return new Promise(function(t,n){o&&"function"==typeof o.send||n(new Error('[JS Framework] Failed to import script "'+e+'", no taskCenter ('+i+") matched."));try{o.send("module",{module:"script",method:"importScript"},[e,r],{callback:[function(e){return t(e)},function(e){return n(e)}]})}catch(e){n(e)}})};var decode=decodeURIComponent;function parseQuery(e){var i={};return(e=e.trim().replace(/^(\?|#|&)/,""))&&e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),n=decode(t.shift()),r=0<t.length?decode(t.join("=")):null;void 0===i[n]?i[n]=r:Array.isArray(i[n])?i[n].push(r):i[n]=[i[n],r]}),i}var LIFECYCLE_HOOKS=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onPageShow","onPageHide","onPageResize"];function parseQueryByBundleUrl(e){var t={};if(e&&"string"==typeof e){var n=e.indexOf("?");if(-1!==n){var r=e.substr(n+1);".js"===r.substr(-3)&&(r=r.substr(0,r.length-3)),t=parseQuery(r)}}return t}var INSTANCE_ID="[[CurrentInstanceId]]";function getId$1(e){return e[INSTANCE_ID]}function initScope(t,e){var n=e.getCurrentPages(),r=n[n.length-1];if(this.$options.route===r.route)r.$vm=this,r[INSTANCE_ID]=getId$1(t);else if(t.config.oldInstanceId){var i=e.getCurrentPages(!0).find(function(e){return getId$1(e)===t.config.oldInstanceId});i&&(i.$vm=this)}this.$scope=r}function lifecycleMixin(e,r,i){var t=e.config.optionMergeStrategies,n=t.created;LIFECYCLE_HOOKS.forEach(function(e){t[e]=n});var o=parseQueryByBundleUrl(r.config.bundleUrl);e.mixin({beforeCreate:function(){var e=this;this._$weex=r;try{var t=i.getApp({allowDefault:!0});t&&!this.$store&&(t.$store||t.$vm&&t.$vm.$store)&&(this.$store=t.$store||t.$vm.$store)}catch(e){}switch(this.$options.mpType){case"app":if(this.mpType="app",this.$options.render=function(){},i.weex.config.preload)i.weex.requireModule("globalEvent").addEventListener("launchApp",function(){i.plus.updateConfigInfo&&i.plus.updateConfigInfo(),i.__registerApp(e)});else i.__registerApp(this);break;case"page":this.mpType="page";var n=i.plus.webview.currentWebview();n.__preload__?(n.addEventListener("show",function(){!e.$scope&&initScope.call(e,r,i),e.__call_hook("onShow")}),n.addEventListener("hide",function(){e.__call_hook("onHide")})):(0===i.getCurrentPages().length&&i.__registerPage({path:"/"+this.$options.route,webview:n}),initScope.call(this,r,i))}},created:function(){if("page"===this.$options.mpType){var e=i.plus.webview.currentWebview();if(e.__preload__){var t=Object.assign(Object.create(null),o);if(e.__query__)try{Object.assign(t,JSON.parse(e.__query__))}catch(e){}this.__call_hook("onLoad",t)}else{var n=Object.assign(Object.create(null),o),r=i.getCurrentPages();Object.assign(n,r[r.length-1].options),this.__call_hook("onLoad",n),this.__call_hook("onShow")}}},mounted:function(){var t=this;"page"===this.$options.mpType&&(this.__call_hook("onReady"),this.$options.onPageScroll&&this.$el.addEvent("scroll",function(e){e.scrollTop=e.detail.scrollTop,t.__call_hook("onPageScroll",e)}),this.$options.onReachBottom&&this.$el.addEvent("scrolltolower",function(e){t.__call_hook("onReachBottom",e)}))},beforeDestroy:function(){"page"===this.$options.mpType&&this.__call_hook("onUnload")}})}function broadcast(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];for(var i=this.$children,o=i.length,a=0;a<o;a++){var s=i[a],c=s.$options.name;if(~e.indexOf(c))return s.$emit.apply(s,[t].concat(n)),!1;if(!1===broadcast.apply(s,[e,t].concat([n])))return!1}}var emitter={methods:{$trigger:function(e,t){this.$emit(e,processCustomEvent.call(this,e,t,this.$el))},$dispatch:function(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];"string"==typeof e&&(e=[e]);for(var i=this.$parent||this.$root,o=i.$options.name;i&&(!o||!~e.indexOf(o));)(i=i.$parent)&&(o=i.$options.name);i&&i.$emit.apply(i,[t].concat(n))},$broadcast:function(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];"string"==typeof e&&(e=[e]),broadcast.apply(this,[e,t].concat(n))}}},listeners={props:{id:{type:String,default:""}},created:function(){var n=this;this._addListeners(this.id),this.$watch("id",function(e,t){n._removeListeners(t,!0),n._addListeners(e,!0)})},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(t,n){var r=this;if(!n||t){var i=this.$options.listeners;"Object"===typof(i)&&Object.keys(i).forEach(function(e){n?0!==e.indexOf("@")&&0!==e.indexOf("uni-")&&r._$bus.on("uni-"+e+"-"+t,r[i[e]]):0===e.indexOf("@")?r.$on("uni-"+e.substr(1),r[i[e]]):0===e.indexOf("uni-")?r._$bus.on(e,r[i[e]]):t&&r._$bus.on("uni-"+e+"-"+t,r[i[e]])})}},_removeListeners:function(t,n){var r=this;if(!n||t){var i=this.$options.listeners;"Object"===typof(i)&&Object.keys(i).forEach(function(e){n?0!==e.indexOf("@")&&0!==e.indexOf("uni-")&&r._$bus.off("uni-"+e+"-"+t,r[i[e]]):0===e.indexOf("@")?r.$off("uni-"+e.substr(1),r[i[e]]):0===e.indexOf("uni-")?r._$bus.off(e,r[i[e]]):t&&r._$bus.off("uni-"+e+"-"+t,r[i[e]])})}}}},_adDataCache={};function getAdData(e,t,n,r,i,o){var a=t+"-"+n,s=_adDataCache[a];s&&0<s.length?i(s.splice(0,1)[0]):e.ad.getAds({adpid:t,count:5,width:n,ext:{channel:r}},function(e){var t=e.ads;i(t.splice(0,1)[0]),_adDataCache[a]=s?s.concat(t):t},function(e){o({errCode:e.code,errMsg:e.message})})}function getAd(n,r){return{name:"Ad",isReserved:!0,mixins:[emitter,listeners],props:{adpid:{type:[Number,String],default:""},data:{type:Object},width:{type:String,default:""},channel:{type:String,default:""}},data:function(){return{adWidth:0,adData:{}}},mounted:function(){var t=this;if(this.data)this._fillData(this.data);else if(this.adpid){if(this.width&&0<this.width.length){var e=parseFloat(this.width);return/\d+[ur]px$/i.test(this.width)?this.adWidth=upx2px(e):this.adWidth=e,void this._loadData()}setTimeout(function(){n.requireModule("dom").getComponentRect(t.$refs.ad,function(e){t.adWidth=0===e.size.width?-1:e.size.width,t._loadData()})},50)}},watch:{adpid:function(e){e&&this._loadData(e)},data:function(e){e&&this._fillData(e)}},methods:{_ondownloadchange:function(e){this.$trigger("downloadchange",e.detail)},_ondislike:function(e){this.$trigger("close",e.detail)},_loadData:function(e){var t=this;getAdData(r.plus||new r.WeexPlus(r.weex),e||this.adpid,this.adWidth,this.channel,function(e){t._fillData(e)},function(e){t.$trigger("error",e)})},_fillData:function(e){this.adData=e,this.$trigger("load",{})}},render:function(e){var t={},n=this.$listeners;return n.downloadchange&&(t.downloadchange=this._ondownloadchange),n.close&&(t.dislike=this._ondislike),e("u-ad",this._g({ref:"ad",attrs:{data:this.adData,rendering:!0},on:t},n),[],1)}}}function init$3(e,t,n){e.component("ad",getAd(t,n))}var _adDataCache$1={};function getAdData$1(e,t,n,r,i,o){var a=t+"-"+n,s=_adDataCache$1[a];s&&0<s.length?i(s.splice(0,1)[0]):e.ad.getDrawAds({adpid:t,count:3,width:n,height:r},function(e){var t=e.ads;i(t.splice(0,1)[0]),_adDataCache$1[a]=s?s.concat(t):t},function(e){o({errCode:e.code,errMsg:e.message})})}function getAd$1(e,n){return{name:"AdDraw",isReserved:!0,mixins:[emitter,listeners],props:{adpid:{type:[Number,String],default:""},data:{type:Object},width:{type:String,default:""}},data:function(){return{adWidth:0,adHeight:0,adData:{}}},mounted:function(){var t=this;this.data?this._fillData(this.data):this.adpid&&setTimeout(function(){e.requireModule("dom").getComponentRect(t.$refs.ad,function(e){t.adWidth=0===e.size.width?-1:e.size.width,t.adHeight=0===e.size.height?-1:e.size.height,t._loadData()})},100)},watch:{adpid:function(e){e&&this._loadData(e)},data:function(e){e&&this._fillData(e)}},beforeDestroy:function(){(n.plus||new n.WeexPlus(n.weex)).ad.releaseAdData(this.adData)},methods:{_ondislike:function(e){this.$trigger("close",e.detail)},_loadData:function(e){var t=this;getAdData$1(n.plus||new n.WeexPlus(n.weex),e||this.adpid,this.adWidth,this.adHeight,function(e){t._fillData(e)},function(e){t.$trigger("error",e)})},_fillData:function(e){this.adData=e,this.$trigger("load",{})}},render:function(e){var t={},n=this.$listeners;return n.close&&(t.dislike=this._ondislike),e("u-ad-draw",this._g({ref:"ad",attrs:{data:this.adData,rendering:!0},on:t},n),[],1)}}}function init$4(e,t,n){e.component("ad-draw",getAd$1(t,n))}var OPEN_TYPES=["agreePrivacy","disagreePrivacy"];function getButton(e,r){return{name:"Button",isReserved:!0,mixins:[emitter,listeners],props:{hoverClass:{type:String,default:"button-hover"},disabled:{type:[Boolean,String],default:!1},id:{type:String,default:""},type:{type:String,default:"default"},size:{type:String,default:"default"},plain:{type:[Boolean,String],default:!1},loading:{type:[Boolean,String],default:!1},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:Number,default:20},hoverStayTime:{type:Number,default:70},openType:{type:String,default:""},formType:{type:String,default:"",validator:function(e){return~["","submit","reset"].indexOf(e)}}},data:function(){return{TYPES:{default:"d",primary:"p",warn:"w"},clickFunction:null}},methods:{_onClick:function(e,t){if(!this.disabled&&(t&&this.$el.click(),this.formType&&this.$dispatch("Form","submit"===this.formType?"uni-form-submit":"uni-form-reset",{type:this.formType},this),0<this.openType.length&&0<=OPEN_TYPES.indexOf(this.openType))){var n=r.plus||new r.WeexPlus(r.weex);this["_"+this.openType](n),this.$trigger(this.openType.toLowerCase(),{})}},_agreePrivacy:function(e){e.runtime.agreePrivacy()},_disagreePrivacy:function(e){e.runtime.disagreePrivacy()},_getClass:function(e){var t="ub-"+this.TYPES[this.type]+e;return this.disabled&&(t+="-d"),this.plain&&(t+="-plain"),"-t"===e&&"mini"===this.size&&(t+=" ub-mini"),t},_getHoverClass:function(e){if(this.disabled)return"";var t="ub-"+this.TYPES[this.type]+e+"-hover";return this.plain&&(t+="-plain"),t}},render:function(e){var t=this,n=Array.isArray(this.$slots.default)?this.$slots.default:[];return 1===n.length&&n[0].text&&(n=e("u-text",{staticClass:["ub-t"],class:t._getClass("-t")},[t._t("default")],2)),e("view",t._g({staticClass:["ub"],class:t._getClass(""),attrs:{hoverClass:t._getHoverClass(""),hoverStartTime:t.hoverStartTime,hoverStayTime:t.hoverStayTime},on:{click:t._onClick}},t.$listeners),[t.loading?e("loading-indicator",{staticClass:["ub-loading"],class:["ub-"+t.TYPES[t.type]+"-loading"],attrs:{arrow:"false",animating:"true"}}):t._e()].concat(n),1)},style:{ub:{flexDirection:"row",alignItems:"center",justifyContent:"center",position:"relative",paddingLeft:"5",paddingRight:"5",overflow:"hidden",color:"#000000",backgroundColor:"#f8f8f8",borderRadius:"5",borderStyle:"solid",borderWidth:"1",borderColor:"#dbdbdb"},"ub-t":{color:"#000000",fontSize:"18",textDecoration:"none",lineHeight:"46"},"ub-d":{backgroundColor:"#f8f8f8"},"ub-p":{backgroundColor:"#007aff",borderColor:"#0062cc"},"ub-w":{backgroundColor:"#e64340",borderColor:"#b83633"},"ub-d-t":{color:"#000000"},"ub-p-t":{color:"#ffffff"},"ub-w-t":{color:"#ffffff"},"ub-d-d":{backgroundColor:"#f7f7f7"},"ub-p-d":{backgroundColor:"#63acfc",borderColor:"#4f8aca"},"ub-w-d":{backgroundColor:"#ec8b89",borderColor:"#bd6f6e"},"ub-d-t-d":{color:"#cccccc"},"ub-p-t-d":{color:"rgba(255,255,255,0.6)"},"ub-w-t-d":{color:"rgba(255,255,255,0.6)"},"ub-d-plain":{borderColor:"#353535",backgroundColor:"rgba(0,0,0,0)"},"ub-p-plain":{borderColor:"#007aff",backgroundColor:"rgba(0,0,0,0)"},"ub-w-plain":{borderColor:"#e64340",backgroundColor:"rgba(0,0,0,0)"},"ub-d-t-plain":{color:"#353535"},"ub-p-t-plain":{color:"#007aff"},"ub-w-t-plain":{color:"#e64340"},"ub-d-d-plain":{borderColor:"#c6c6c6",backgroundColor:"rgba(0,0,0,0)"},"ub-p-d-plain":{borderColor:"#c6c6c6",backgroundColor:"rgba(0,0,0,0)"},"ub-w-d-plain":{borderColor:"#c6c6c6",backgroundColor:"rgba(0,0,0,0)"},"ub-d-t-d-plain":{color:"rgba(0,0,0,0.2)"},"ub-p-t-d-plain":{color:"rgba(0,0,0,0.2)"},"ub-w-t-d-plain":{color:"rgba(0,0,0,0.2)"},"ub-mini":{lineHeight:"30",fontSize:"13",paddingTop:0,paddingRight:"17.5",paddingBottom:0,paddingLeft:"17.5"},"ub-loading":{width:"18",height:"18",marginRight:"10"},"ub-d-loading":{color:"rgba(255,255,255,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-p-loading":{color:"rgba(255,255,255,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-w-loading":{color:"rgba(255,255,255,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-d-loading-plain":{color:"#353535"},"ub-p-loading-plain":{color:"#007aff",backgroundColor:"#0062cc"},"ub-w-loading-plain":{color:"#e64340",backgroundColor:"rgba(0,0,0,0)"},"ub-d-hover":{opacity:.8,backgroundColor:"#dedede"},"ub-p-hover":{opacity:.8,backgroundColor:"#0062cc"},"ub-w-hover":{opacity:.8,backgroundColor:"#ce3c39"},"ub-d-t-hover":{color:"rgba(0,0,0,0.6)"},"ub-p-t-hover":{color:"rgba(255,255,255,0.6)"},"ub-w-t-hover":{color:"rgba(255,255,255,0.6)"},"ub-d-hover-plain":{color:"rgba(53,53,53,0.6)",borderColor:"rgba(53,53,53,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-p-hover-plain":{color:"rgba(26,173,25,0.6)",borderColor:"rgba(0,122,255,0.6)",backgroundColor:"rgba(0,0,0,0)"},"ub-w-hover-plain":{color:"rgba(230,67,64,0.6)",borderColor:"rgba(230,67,64,0.6)",backgroundColor:"rgba(0,0,0,0)"}}}}function init$5(e,t,n){e.component("button",getButton(t,n))}function getCheckboxGroup(e){return{name:"CheckboxGroup",isReserved:!0,mixins:[emitter,listeners],props:{name:{type:String,default:""}},data:function(){return{checkboxList:[]}},listeners:{"@checkbox-change":"_changeHandler","@checkbox-group-update":"_checkboxGroupUpdateHandler"},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e){var t=[];this.checkboxList.forEach(function(e){e.checkboxChecked&&t.push(e.value)}),this.$trigger("change",{value:t})},_checkboxGroupUpdateHandler:function(e){if("add"===e.type)this.checkboxList.push(e.vm);else{var t=this.checkboxList.indexOf(e.vm);this.checkboxList.splice(t,1)}},_getFormData:function(){var e={};if(""!==this.name){var t=[];this.checkboxList.forEach(function(e){e.checkboxChecked&&t.push(e.value)}),e.value=t,e.key=this.name}return e}},render:function(e){return e("div",this._g({staticClass:["uni-checkbox-group"]},this.$listeners),[this._t("default")],2)},style:{}}}function init$6(e,t){e.component("checkbox-group",getCheckboxGroup(t))}function getCheckbox(e){return{name:"Checkbox",isReserved:!0,mixins:[emitter,listeners],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},data:function(){return{checkboxChecked:this.checked,checkboxValue:this.value}},watch:{checked:function(e){this.checkboxChecked=e},value:function(e){this.checkboxValue=e}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},computed:{checkboxColor:function(){return this.disabled?"#adadad":this.color}},created:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||(this.checkboxChecked=!this.checkboxChecked,this.$dispatch("CheckboxGroup","uni-checkbox-change",e))},_resetFormData:function(){this.checkboxChecked=!1}},render:function(e){var t=this;return e("div",t._g({attrs:{dataUncType:"uni-checkbox"},on:{click:t._onClick}},t.$listeners),[e("div",{staticClass:["uni-checkbox"]},[e("div",{staticClass:["uni-checkbox-input"],class:[t.disabled?"uni-checkbox-input-disabled":""]},[t.checkboxChecked?e("u-text",{staticClass:["uni-icon"],style:{color:t.checkboxColor}},[t._v(t._s(""))]):t._e()]),e("u-text",{staticClass:["uni-slot"]},[t._t("default")],2)])])},style:{"uni-checkbox":{flexDirection:"row",alignItems:"center"},"uni-checkbox-input":{justifyContent:"center",alignItems:"center",position:"relative",borderWidth:"1",borderColor:"#d1d1d1",borderStyle:"solid",backgroundColor:"#ffffff",borderRadius:"3",width:"22",height:"22"},"uni-icon":{fontFamily:"unincomponents",fontSize:"16",marginLeft:"2",marginTop:"2",color:"#007aff"},"uni-checkbox-input-disabled":{backgroundColor:"#e1e1e1"},"uni-checkbox-input-disabled-before":{color:"#adadad"},"uni-slot":{fontSize:"16",marginLeft:"5"},"uni-checkbox-group":{display:"block"}}}}function init$7(e,t){e.component("checkbox",getCheckbox(t))}var NATIVE_COMPONENT_TYPES=["u-input","u-textarea"];function getForm(e){var i=e.requireModule("plus");return{name:"Form",isReserved:!0,mixins:[emitter,listeners],data:function(){return{childrenList:[]}},listeners:{"@form-submit":"_onSubmit","@form-reset":"_onReset","@form-group-update":"_formGroupUpdateHandler"},methods:{_onSubmit:function(e){var t=this._getNativeFormData()||{};this.childrenList.forEach(function(e){e._getFormData&&e._getFormData().key&&(t[e._getFormData().key]=e._getFormData().value)}),this.$trigger("submit",{value:t})},_onReset:function(e){this.$trigger("reset",{}),this._getNativeFormData(!0),this.childrenList.forEach(function(e){e._resetFormData&&e._resetFormData()})},_formGroupUpdateHandler:function(e){if("add"===e.type)this.childrenList.push(e.vm);else{var t=this.childrenList.indexOf(e.vm);this.childrenList.splice(t,1)}},_getNativeFormData:function(n){var r={};return function t(e){e.forEach(function(e){0<=NATIVE_COMPONENT_TYPES.indexOf(e.tag)&&e.data.attrs&&e.data.attrs.name&&(n?e.elm.setValue(""):r[e.data.attrs.name]=i.getValue(e.elm.nodeId)),e.children&&t(e.children)})}(this.$vnode.componentOptions.children),r}},render:function(e){return e("view",this._g({},this.$listeners),[this._t("default")],2)}}}function init$8(e,t){e.component("form",getForm(t))}var iconChars={success:"",info:"",warn:"",waiting:"",safe_success:"",safe_warn:"",success_circle:"",success_no_circle:"",waiting_circle:"",circle:"",download:"",info_circle:"",cancel:"",search:"",clear:""},iconColors={success:"#09bb07",info:"#10aeff",warn:"#f76260",waiting:"#10aeff",safe_success:"#09bb07",safe_warn:"#ffbe00",success_circle:"#09bb07",success_no_circle:"#09bb07",waiting_circle:"#10aeff",circle:"#c9c9c9",download:"#09bb07",info_circle:"#09bb07",cancel:"#f43530",search:"#b2b2b2",clear:"#b2b2b2"};function getIcon(e){return{name:"Icon",isReserved:!0,props:{type:{type:String,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},data:function(){return{iconChars:iconChars}},beforeCreate:function(){},computed:{styles:function(){return{color:this.color||iconColors[this.type],fontSize:this.size}}},render:function(e){return e("u-text",this._g({staticClass:["uni-icon"],style:this.styles},this.$listeners),[this.iconChars[this.type]])},style:{"uni-icon":{fontFamily:"unincomponents"}}}}function init$9(e,t){e.component("icon",getIcon(t))}function getLabel(e){return{name:"Label",isReserved:!0,mixins:[emitter,listeners],props:{for:{type:String,default:""}},methods:{_onClick:function(e){var t=e.target.attr.dataUncType||"",n=/^uni-(checkbox|radio|switch)-/.test(t);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(t)),n||(this.for?this.$emit("uni-label-click-"+this.$page.id+"-"+this.for,e,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",e,!0))}},render:function(e){return e("div",this._g({on:{click:this._onClick}},this.$listeners),[this._t("default")],2)}}}function init$10(e,t){e.component("label",getLabel(t))}function getMovableArea(e){var t=e.requireModule("dom");return{name:"MovableArea",isReserved:!0,props:{scaleArea:{type:Boolean,default:!1}},data:function(){return{width:0,height:0,items:[]}},methods:{_resize:function(){var e=this;this._getWH().then(function(){e.items.forEach(function(e){e.componentInstance.setParent()})})},_panstart:function(e){this.touchItem&&this.touchItem.touchstart(e)},_panmove:function(e){e.stopPropagation(),this.touchItem&&this.touchItem.touchmove(e)},_panend:function(e){this.touchItem&&(this.touchItem.touchend(e),this.touchItem=null)},_getWH:function(){var o=this;return this._getComponentSize(this.$refs.el).then(function(e){var t=e.width,n=e.height,r=e.top,i=e.left;o.width=t,o.height=n,o.top=r,o.left=i})},_getComponentSize:function(e){return new Promise(function(n){t.getComponentRect(e,function(e){var t=e.size;n(t)})})}},created:function(){this.items=[],this.gapV={x:null,y:null},this.pinchStartLen=null},mounted:function(){var e=this;setTimeout(function(){e.__isMounted=!0,e._resize()},200)},render:function(e){var t=this,n=[];(Array.isArray(this.$slots.default)?deepClone(this.$slots.default,e):[]).forEach(function(e){e.componentOptions&&"movable-view"===e.componentOptions.tag&&n.push(e)}),this.items=n;var r={};return["panstart","panmove","panend"].forEach(function(e){r[e]=t["_"+e]}),e("div",this._g({ref:"el",on:r,staticClass:["uni-movable-area"]},this.$listeners),n,2)},style:{"uni-movable-area":{width:"10px",height:"10px"}}}}function init$11(e,t){e.component("movable-area",getMovableArea(t))}var touchtrack={methods:{touchtrack:function(i){var o=this,a=0,s=0,c=0,u=0,n=function(e,t,n,r){if(!1===o[i]({target:e.target,currentTarget:e.currentTarget,stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:t,x0:n,y0:r,dx:n-a,dy:r-s,ddx:n-c,ddy:r-u,timeStamp:e.timeStamp||Date.now()}}))return!1},r=null;this.addListener("touchstart",function(e){if(!r)return a=c=(r=e).touches[0].pageX,s=u=e.touches[0].pageY,n(e,"start",a,s)}),this.addListener("touchmove",function(e){if(r){var t=n(e,"move",e.touches[0].pageX,e.touches[0].pageY);return c=e.touches[0].pageX,u=e.touches[0].pageY,t}}),this.addListener("touchend",function(e){if(r)return r=null,n(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)})},touchstart:function(e){this.callback("touchstart",e)},touchmove:function(e){this.callback("touchmove",e)},touchend:function(e){this.callback("touchend",e)},addListener:function(e,t){this.__event[e]=function(e){"function"==typeof t&&(e.touches=e.changedTouches,!1===t(e)&&e.stopPropagation())}},callback:function(e,t){this.__event[e]&&this.__event[e](t)}},created:function(){this.__event={}}};function e(e,t,n){return t-n<e&&e<t+n}function t(t,n){return e(t,0,n)}function Decline(){}function Friction(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Spring(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function STD(e,t,n){this._springX=new Spring(e,t,n),this._springY=new Spring(e,t,n),this._springScale=new Spring(e,t,n),this._startTime=0}Decline.prototype.x=function(e){return Math.sqrt(e)},Friction.prototype.setV=function(e,t){var n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Friction.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Friction.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(0<this._x_a&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(0<this._y_a&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Friction.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Friction.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Friction.prototype.dt=function(){return-this._x_v/this._x_a},Friction.prototype.done=function(){var t=e(this.s().x,this._endPositionX)||e(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},Friction.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Friction.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Spring.prototype._solve=function(e,t){var n=this._c,r=this._m,i=this._k,o=n*n-4*r*i;if(0===o){var a=-n/(2*r),s=e,c=t/(a*e);return{x:function(e){return(s+c*e)*Math.pow(Math.E,a*e)},dx:function(e){var t=Math.pow(Math.E,a*e);return a*(s+c*e)*t+c*t}}}if(0<o){var u=(-n-Math.sqrt(o))/(2*r),l=(-n+Math.sqrt(o))/(2*r),d=(t-u*e)/(l-u),f=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*u*t+d*l*n}}}var p=Math.sqrt(4*r*i-n*n)/(2*r),h=-n/2*r,v=e,g=(t-h*e)/p;return{x:function(e){return Math.pow(Math.E,h*e)*(v*Math.cos(p*e)+g*Math.sin(p*e))},dx:function(e){var t=Math.pow(Math.E,h*e),n=Math.cos(p*e),r=Math.sin(p*e);return t*(g*p*n-v*p*r)+h*t*(g*r+v*n)}}},Spring.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Spring.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Spring.prototype.setEnd=function(e,n,r){if(r||(r=(new Date).getTime()),e!==this._endPosition||!t(n,.1)){n=n||0;var i=this._endPosition;this._solution&&(t(n,.1)&&(n=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),t(n,.1)&&(n=0),t(i,.1)&&(i=0),i+=this._endPosition),this._solution&&t(i-e,.1)&&t(n,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,n),this._startTime=r)}},Spring.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Spring.prototype.done=function(n){return n||(n=(new Date).getTime()),e(this.x(),this._endPosition,.1)&&t(this.dx(),.1)},Spring.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Spring.prototype.springConstant=function(){return this._k},Spring.prototype.damping=function(){return this._c},Spring.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},STD.prototype.setEnd=function(e,t,n,r){var i=(new Date).getTime();this._springX.setEnd(e,r,i),this._springY.setEnd(t,r,i),this._springScale.setEnd(n,r,i),this._startTime=i},STD.prototype.x=function(){var e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},STD.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},STD.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};var requesting=!1;function requestAnimationFrame(e){return setTimeout(e,16)}function cancelAnimationFrame(e){clearTimeout(e)}function _requestAnimationFrame(e){requesting||(requesting=!0,requestAnimationFrame(function(){e(),requesting=!1}))}function v(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function g(a,e,t){var n={id:0,cancelled:!1};return function e(t,n,r,i){if(!t||!t.cancelled){r(n);var o=a.done();o||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),o&&i&&i(n)}}(n,a,e,t),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,n),model:a}}function getMovableView(e){var t=e.requireModule("dom"),s=e.requireModule("animation");return{name:"MovableView",isReserved:!0,mixins:[touchtrack,emitter],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:this._getScaleNumber(this.scaleValue),width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var e=Number(this.damping);return isNaN(e)?20:e},frictionNumber:function(){var e=Number(this.friction);return isNaN(e)||e<=0?2:e},scaleMinNumber:function(){var e=Number(this.scaleMin);return isNaN(e)?.5:e},scaleMaxNumber:function(){var e=Number(this.scaleMax);return isNaN(e)?10:e},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(e){this.xSync=this._getPx(e)},xSync:function(e){this._setX(e)},y:function(e){this.ySync=this._getPx(e)},ySync:function(e){this._setY(e)},scaleValue:function(e){this._setScaleValue(this._getScaleNumber(e))},scaleValueSync:function(e){this._setScaleValue(e)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new STD(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new Friction(1,this.frictionNumber),this._declineX=new Decline,this._declineY=new Decline,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]},this._rect={top:0,left:0,width:0,height:0}},mounted:function(){var e=this;this.touchtrack("_onTrack"),setTimeout(function(){e._updateRect().then(function(){e.setParent()})},100),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber)},methods:{_getPx:function(e){return Number(e)||0},_getScaleNumber:function(e){return e=Number(e),isNaN(e)?1:e},_setX:function(e){if(this.xMove){if(e+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(e+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return e},_setY:function(e){if(this.yMove){if(e+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,e+this._scaleOffset.y,this._scale)}return e},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(e){return!!this.scale&&(e=this._adjustScale(e),this._updateScale(e,!0),this._updateOldScale(e),e)},__handleTouchStart:function(){this._isScaling||this.disabled||(this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(e){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,r=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=1<Math.abs(e.detail.dx/e.detail.dy)?"htouchmove":"vtouchmove"),this.xMove&&(n=e.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dx/e.detail.dy)<1)),this.yMove&&(r=e.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(r),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dy/e.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(e.detail.timeStamp),!this._checkCanMove){var i="touch";n<this.minX?this.outOfBounds?(i="touch-out-of-bounds",n=this.minX-this._declineX.x(this.minX-n)):n=this.minX:n>this.maxX&&(this.outOfBounds?(i="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),r<this.minY?this.outOfBounds?(i="touch-out-of-bounds",r=this.minY-this._declineY.x(this.minY-r)):r=this.minY:r>this.maxY&&(this.outOfBounds?(i="touch-out-of-bounds",r=this.maxY+this._declineY.x(r-this.maxY)):r=this.maxY),_requestAnimationFrame(function(){t._setTransform(n,r,t._scale,i)})}}},__handleTouchEnd:function(){var r=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var e=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),t=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(e,t),this._friction.setS(this._translateX,this._translateY);var n=this._friction.delta().x,i=this._friction.delta().y,o=n+this._translateX,a=i+this._translateY;o<this.minX?(o=this.minX,a=this._translateY+(this.minX-this._translateX)*i/n):o>this.maxX&&(o=this.maxX,a=this._translateY+(this.maxX-this._translateX)*i/n),a<this.minY?(a=this.minY,o=this._translateX+(this.minY-this._translateY)*n/i):a>this.maxY&&(a=this.maxY,o=this._translateX+(this.maxY-this._translateY)*n/i),this._friction.setEnd(o,a),this._FA=g(this._friction,function(){var e=r._friction.s(),t=e.x,n=e.y;r._setTransform(t,n,r._scale,"friction")},function(){r._FA.cancel()})}},_onTrack:function(e){switch(e.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(e);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(e,t){var n=!1;return e>this.maxX?(e=this.maxX,n=!0):e<this.minX&&(e=this.minX,n=!0),t>this.maxY?(t=this.maxY,n=!0):t<this.minY&&(t=this.minY,n=!0),{x:e,y:t,outOfBounds:n}},setParent:function(){if(this.$parent.__isMounted){this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel();var e=this.scale?this.scaleValueSync:1;this._updateOffset(),this._updateWH(e),this._updateBoundary(),this._translateX=this.xSync+this._scaleOffset.x,this._translateY=this.ySync+this._scaleOffset.y;var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,r=t.y;this._setTransform(n,r,e,"",!0),this._updateOldScale(e)}},_updateOffset:function(){this._offset.x=this._rect.left-this.$parent.left,this._offset.y=this._rect.top-this.$parent.top},_updateWH:function(e){e=e||this._scale,e=this._adjustScale(e);var t=this._rect;this.height=t.height/this._scale,this.width=t.width/this._scale;var n=this.height*e,r=this.width*e;this._scaleOffset.x=(r-this.width)/2,this._scaleOffset.y=(n-this.height)/2},_updateBoundary:function(){var e=0-this._offset.x+this._scaleOffset.x,t=this.$parent.width-this.width-this._offset.x-this._scaleOffset.x;this.minX=Math.min(e,t),this.maxX=Math.max(e,t);var n=0-this._offset.y+this._scaleOffset.y,r=this.$parent.height-this.height-this._offset.y-this._scaleOffset.y;this.minY=Math.min(n,r),this.maxY=Math.max(n,r)},_beginScale:function(){this._isScaling=!0},_endScale:function(){this._isScaling=!1,this._updateOldScale(this._scale)},_setScale:function(e){this.scale&&(e=this._adjustScale(e),e=this._oldScale*e,this._beginScale(),this._updateScale(e))},_updateScale:function(e,t){var n=this;if(this.scale){e=this._adjustScale(e),this._updateWH(e),this._updateBoundary();var r=this._getLimitXY(this._translateX,this._translateY),i=r.x,o=r.y;t?this._animationTo(i,o,e,"",!0,!0):_requestAnimationFrame(function(){n._setTransform(i,o,e,"",!0,!0)})}},_updateOldScale:function(e){this._oldScale=e},_adjustScale:function(e){return e=Math.max(.5,this.scaleMinNumber,e),e=Math.min(10,this.scaleMaxNumber,e)},_animationTo:function(e,t,n,i,o,a){var s=this;this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.xMove||(e=this._translateX),this.yMove||(t=this._translateY),this.scale||(n=this._scale);var r=this._getLimitXY(e,t);e=r.x,t=r.y,this.animation?(this._STD._springX._solution=null,this._STD._springY._solution=null,this._STD._springScale._solution=null,this._STD._springX._endPosition=this._translateX,this._STD._springY._endPosition=this._translateY,this._STD._springScale._endPosition=this._scale,this._STD.setEnd(e,t,n,1),this._SFA=g(this._STD,function(){var e=s._STD.x(),t=e.x,n=e.y,r=e.scale;s._setTransform(t,n,r,i,o,a)},function(){s._SFA.cancel()})):this._setTransform(e,t,n,i,o,a)},_revise:function(e){var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,r=t.y,i=t.outOfBounds;return i&&this._animationTo(n,r,this._scale,e),i},_setTransform:function(e,t,n,r,i,o){void 0===r&&(r=""),null!==e&&"NaN"!==e.toString()&&"number"==typeof e||(e=this._translateX||0),null!==t&&"NaN"!==t.toString()&&"number"==typeof t||(t=this._translateY||0),e=Number(e.toFixed(1)),t=Number(t.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===e&&this._translateY===t||i||this.$trigger("change",{x:v(e,this._scaleOffset.x),y:v(t,this._scaleOffset.y),source:r}),this.scale||(n=this._scale),n=+(n=this._adjustScale(n)).toFixed(3),o&&n!==this._scale&&this.$trigger("scale",{x:e,y:t,scale:n});var a="translate("+e+"px, "+t+"px) scale("+n+")";s.transition(this.$refs.el,{styles:{transform:a},duration:0,delay:0}),this._translateX=e,this._translateY=t,this._scale=n},_touchstart:function(){this.$parent.touchItem=this},_getComponentSize:function(e){return new Promise(function(n){t.getComponentRect(e,function(e){var t=e.size;n(t)})})},_updateRect:function(){var t=this;return this._getComponentSize(this.$refs.el).then(function(e){t._rect=e})}},render:function(e){var t={touchstart:this._touchstart};return e("div",this._g({ref:"el",on:t,staticClass:["uni-movable-view"],staticStyle:{transformOrigin:"center"},attrs:{preventGesture:!0}},this.$listeners),this.$slots.default,2)},style:{"uni-movable-view":{position:"absolute",top:"0px",left:"0px",width:"10px",height:"10px"}}}}function init$12(e,t){e.component("movable-view",getMovableView(t))}var OPEN_TYPES$1={navigate:"navigateTo",redirect:"redirectTo",switchTab:"switchTab",reLaunch:"reLaunch",navigateBack:"navigateBack"},plus_,BroadcastChannel_,channel;function getNavigator(e,t){return{name:"Navigator",isReserved:!0,props:{url:{type:String,default:""},openType:{type:String,default:"navigate",validator:function(e){return!!OPEN_TYPES$1[e]}},delta:{type:Number,default:1},animationType:{type:String,default:"pop-in/out"},animationTime:{type:Number,default:300},hoverClass:{type:String,default:"navigator-hover"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:Number,default:50},hoverStayTime:{type:Number,default:600}},methods:{_click:function(){if("navigateBack"===this.openType)return t.navigateBack({delta:this.delta});this.url?t[OPEN_TYPES$1[this.openType]]({url:this.url}):console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}},render:function(e){return e("view",this._g({attrs:{hoverClass:this.hoverClass,hoverStopPropagation:this.hoverStopPropagation,hoverStartTime:this.hoverStartTime,hoverStayTime:this.hoverStayTime},on:{click:this._click}},this.$listeners),[this._t("default")],2)},style:{"navigator-hover":{backgroundColor:"rgba(0,0,0,0.1)",opacity:.7}}}}function init$13(e,t,n){e.component("navigator",getNavigator(t,n.uni))}function getRuntime(){return"object"==typeof window&&"object"==typeof navigator&&"object"==typeof document?"webview":"v8"}function getPageId(){return plus_.webview.currentWebview().id}var callbacks={};function onPlusMessage(e){var t=e.data&&e.data.__message;if(t&&t.__page){var n=t.__page,r=callbacks[n];r&&r(t),t.keep||delete callbacks[n]}}function addEventListener(e,t){"v8"===getRuntime()?(channel&&channel.close(),(channel=new BroadcastChannel_(getPageId())).onmessage=onPlusMessage):window.__plusMessage=onPlusMessage,callbacks[e]=t}var Page=function(e){this.webview=e};function showPage(e){var t=e.context;void 0===t&&(t={});var n=e.url,r=e.data;void 0===r&&(r={});var i=e.style;void 0===i&&(i={});var o=e.onMessage,a=e.onClose;plus_=t.plus||plus,BroadcastChannel_=t.BroadcastChannel||BroadcastChannel;var s="page"+Date.now();!1!==(i=Object.assign({},i)).titleNView&&"none"!==i.titleNView&&(i.titleNView=Object.assign({autoBackButton:!0,titleSize:"17px"},i.titleNView));var c={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:("object"==typeof process&&process.env&&process.env.VUE_APP_TEMPLATE_PATH||"")+"/"+n+".js",defaultFontSize:plus_.screen.resolutionWidth/20,viewport:plus_.screen.resolutionWidth}};i=Object.assign(c,i);var u=plus_.webview.create("",s,i,{extras:{from:getPageId(),runtime:getRuntime(),data:r}});return u.addEventListener("close",a),addEventListener(s,function(e){"function"==typeof o&&o(e.data),e.keep||u.close("auto")}),u.show(i.animationType,i.animationDuration),new Page(u)}function getPicker(e,t){var o={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},a={YEAR:"year",MONTH:"month",DAY:"day"},r=["range","rangeKey","value","mode","fields","start","end","disabled"];function s(e){return 9<e?e:"0"+e}function c(e,t){var n=new Date;return e=String(e||""),t===o.TIME?2===(e=e.split(":")).length&&n.setHours(parseInt(e[0]),parseInt(e[1])):3===(e=e.split("-")).length&&n.setFullYear(parseInt(e[0]),parseInt(e[1]-1),parseInt(e[2])),n}return{name:"Picker",isReserved:!0,mixins:[emitter],props:{range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:o.SELECTOR,validator:function(e){return 0<=Object.values(o).indexOf(e)}},fields:{type:String,default:""},start:{type:[String,Number],default:function(){if(this.mode===o.TIME)return"00:00";if(this.mode===o.DATE){var e=(new Date).getFullYear()-100;switch(this.fields){case a.YEAR:return e;case a.MONTH:return e+"-01";default:return e+"-01-01"}}return""}},end:{type:[String,Number],default:function(){if(this.mode===o.TIME)return"23:59";if(this.mode===o.DATE){var e=(new Date).getFullYear()+100;switch(this.fields){case a.YEAR:return e;case a.MONTH:return e+"-12";default:return e+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1}},computed:{attrs:function(){var t=this,n={};return r.forEach(function(e){n[e]=t.$props[e]}),n}},methods:{_show:function(){this._showPicker(Object.assign({},this.attrs))},_showPicker:function(n){var r=this,e=t.plus||new t.WeexPlus(t.weex);if(e.key.hideSoftKeybord(),this.mode!==o.TIME&&this.mode!==o.DATE||n.fields){n.fields=Object.values(a).includes(n.fields)?n.fields:a.DAY;var i={event:"cancel"};this.page=showPage({context:Object.assign({},t,{plus:e}),url:"__uniapppicker",data:n,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:function(e){var t=e.event;if("created"!==t)return"columnchange"===t?(delete e.event,void r.$trigger(t,e)):void(i=e);r._updatePicker(n)},onClose:function(){r.page=null;var e=i.event;delete i.event,r.$trigger(e,i)}})}else e.nativeUI[this.mode===o.TIME?"pickTime":"pickDate"](function(e){var t=e.date;r.$trigger("change",{value:r.mode===o.TIME?s(t.getHours())+":"+s(t.getMinutes()):t.getFullYear()+"-"+s(t.getMonth()+1)+"-"+s(t.getDate())})},function(){r.$trigger("cancel",{})},this.mode===o.TIME?{time:c(this.value,o.TIME)}:{date:c(this.value,o.DATE),minDate:c(this.start,o.DATE),maxDate:c(this.end,o.DATE)})},_updatePicker:function(e){this.page&&this.page.sendMessage(e)}},created:function(){var t=this;this.$watch("attrs",function(e){t._updatePicker(e)},{deep:!0})},render:function(e){var t={};return this.disabled||(t.click=this._show),e("div",this._g({on:t},this.$listener),this.$slots.default,2)}}}function init$14(e,t,n){e.component("picker",getPicker(t,n))}Page.prototype.sendMessage=function(e){var t=JSON.parse(JSON.stringify({__message:{data:e}}));new BroadcastChannel_(this.webview.id).postMessage(t)},Page.prototype.close=function(){this.webview.close()};var PRIMARY_COLOR="#007AFF",BACKGROUND_COLOR="#EBEBEB",ANIMATE_INTERVAL_DEFAULT=30,FONT_SIZE=16,STROKE_WIDTH=6;function getProgress(e,n){return{name:"Progress",isReserved:!0,mixins:[emitter],props:{percent:{type:[String,Number],default:0},showInfo:{type:Boolean,default:!1},borderRadius:{type:[String,Number],default:0},fontSize:{type:[String,Number],default:FONT_SIZE},strokeWidth:{type:[String,Number],default:STROKE_WIDTH},active:{type:Boolean,default:!1},activeColor:{type:String,default:PRIMARY_COLOR},activeMode:{type:String,default:"backwards"},backgroundColor:{type:String,default:BACKGROUND_COLOR},duration:{type:[String,Number],default:ANIMATE_INTERVAL_DEFAULT}},data:function(){return{width:0,curPercent:0}},computed:{barStyle:function(){return{height:this.strokeWidth,borderRadius:this.borderRadius,backgroundColor:this.backgroundColor}},innerBarStyle:function(){return{width:this.activeWidth,height:this.strokeWidth,backgroundColor:this.activeColor}},activeWidth:function(){return this.curPercent*this.width/100},finalPercent:function(){var e=parseFloat(this.percent,10);return 100<e&&(e=100),e<0&&(e=0),e}},watch:{finalPercent:function(e,t){this._timerId&&n.clearInterval(this._timerId),this._lastPercent=t||0,this._animate()}},mounted:function(){var t=this;setTimeout(function(){e.requireModule("dom").getComponentRect(t.$refs.progress,function(e){t.width=e.size.width,t._animate()})},50)},methods:{_animate:function(){var e=this,t=this.finalPercent;if(!this.active)return this.curPercent=t;this.curPercent="forwards"===this.activeMode?this._lastPercent:0,this._timerId=n.setInterval(function(){t<=e.curPercent+1?(e.curPercent=t,n.clearInterval(e._timerId),e.$trigger("activeend",{curPercent:e.curPercent})):++e.curPercent},this.duration)}},render:function(e){return e("div",this._g({ref:"progress",staticClass:["uni-progress"]},this.$listeners),[e("div",{staticClass:["uni-progress-bar"],style:this.barStyle},[e("div",{staticClass:["uni-progress-inner-bar"],style:this.innerBarStyle})]),this.showInfo?[e("u-text",{staticClass:["uni-progress-info"],style:{fontSize:this.fontSize}},[this.curPercent+"%"])]:this._e()],2)},style:{"uni-progress":{flex:1,flexDirection:"row",alignItems:"center"},"uni-progress-bar":{flex:1},"uni-progress-inner-bar":{position:"absolute"},"uni-progress-info":{marginLeft:"15px"}}}}function init$15(e,t,n){e.component("progress",getProgress(t,n))}function getRadioGroup(e){return{name:"RadioGroup",isReserved:!0,mixins:[emitter,listeners],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e,t){var n=this.radioList.indexOf(t);this._resetRadioGroupValue(n,!0),this.$trigger("change",{value:t.radioValue})},_radioGroupUpdateHandler:function(e){if("add"===e.type)this.radioList.push(e.vm);else{var t=this.radioList.indexOf(e.vm);this.radioList.splice(t,1)}},_resetRadioGroupValue:function(t,r){var i=this;this.radioList.forEach(function(e,n){n!==t&&(r?i.radioList[n].radioChecked=!1:i.radioList.forEach(function(e,t){t<=n||i.radioList[t].radioChecked&&(i.radioList[n].radioChecked=!1)}))})},_getFormData:function(){var e={};if(""!==this.name){var t="";this.radioList.forEach(function(e){e.radioChecked&&(t=e.value)}),e.value=t,e.key=this.name}return e}},render:function(e){return e("div",this._g({},this.$listeners),[this._t("default")],2)}}}function init$16(e,t){e.component("radio-group",getRadioGroup(t))}function getRadio(e){return{name:"Radio",isReserved:!0,mixins:[emitter,listeners],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007AFF"},value:{type:String,default:""}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},computed:{checkedStyle:function(){return{backgroundColor:this.color,borderColor:this.color}},uncheckedStyle:function(){return{borderColor:"#d1d1d1"}}},watch:{checked:function(e){this.radioChecked=e},value:function(e){this.radioValue=e}},beforeCreate:function(){},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",e,this))},_resetFormData:function(){this.radioChecked=!1}},render:function(e){var t=this;return e("div",t._g({staticClass:["uni-radio"],attrs:{dataUncType:"uni-radio"},on:{click:t._onClick}},t.$listeners),[e("div",{staticClass:["uni-radio-input"],style:t.radioChecked?t.checkedStyle:t.uncheckedStyle},[t.radioChecked?e("u-text",{staticClass:["uni-radio-input-icon"]},[t._v(t._s(""))]):t._e()],1),e("u-text",{staticClass:["uni-text"]},[t._t("default")],2)],1)},style:{"uni-radio":{alignItems:"center",flexDirection:"row"},"uni-radio-input":{position:"relative",alignItems:"center",justifyContent:"center",marginRight:"5",backgroundColor:"#ffffff",borderStyle:"solid",borderWidth:"1",borderColor:"#d1d1d1",borderRadius:50,width:"22",height:"22",outline:0},"uni-radio-input-icon":{fontFamily:"unincomponents",fontSize:"14",color:"#ffffff"},"uni-radio-input-disabled":{backgroundColor:"#e1e1e1",borderColor:"#d1d1d1",color:"#adadad"}}}}function init$17(e,t){e.component("radio",getRadio(t))}function parseStyle(e,t){var n=Object.create(null);if(!e.attrs)return n;var r=(e.attrs.class||"").split(" "),i=t.$options.style||{};return r.forEach(function(e){e&&i[e]&&Object.assign(n,i[e])}),Object.assign(n,parseStyleText(e.attrs.style||"")),n}var TAGS=["span","a","image","img"];function block(e){return e.attr.value=(e.attr.value||"")+"\n",e}function heading(e,t,n){return!e.style.fontSize&&(e.style.fontSize=n.defaultFontSize*t),block(bold(e))}function createHeading(n){return function(e,t){return heading(e,n,t)}}function bold(e){return!e.style.fontWeight&&(e.style.fontWeight="bold"),e}var strategies={blockquote:block,br:block,div:block,dl:block,h1:createHeading(2),h2:createHeading(1.5),h3:createHeading(1.17),h4:createHeading(1),h5:createHeading(.83),h6:createHeading(.67),hr:block,ol:block,p:block,strong:bold,table:block,tbody:block,tfoot:block,thead:block,ul:block},HTML_RE=/&(amp|gt|lt|nbsp|quot|apos);/g,CHARS={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function normalizeText(e){return e.replace(HTML_RE,function(e,t){return CHARS[t]})}function normalizeNode(t,e,n){var r=(t.name||"").toLowerCase(),i=strategies[r];-1===TAGS.indexOf(r)&&(r="span"),"img"===r&&(r="image");var o={type:r,attr:Object.create(null)};return("text"===t.type||t.text)&&(o.attr.value=normalizeText((t.text||"").trim())),t.attrs&&Object.keys(t.attrs).forEach(function(e){"class"!==e&&"style"!==e&&(o.attr[e]=t.attrs[e])}),o.style=normalizeUnit(parseStyle(t,e)),i&&i(o,n),o.children=normalizeNodes(t.children,e,n),o}function normalizeNodes(e,t,n){return Array.isArray(e)?e.map(function(e){return normalizeNode(e,t,n)}):[]}function getRichText(e){var t=e.config.env,n=t.scale,r=t.deviceWidth/n/20;return{name:"RichText",isReserved:!0,props:{nodes:{type:[Array,String],default:function(){return[]}}},render:function(e){var t=normalizeNodes(this.nodes||[],this.$vnode.context,{defaultFontSize:r});return e("u-rich-text",this._g({attrs:{value:t}},this.$listeners))}}}function init$18(e,t){e.component("rich-text",getRichText(t))}function getSwiperItem(e){return{name:"SwiperItem",isReserved:!0,props:{itemId:{type:String,default:""}},render:function(e){return e("div",this._g({staticClass:["uni-swiper-item"],staticStyle:{position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"}},this.$listeners),this._t("default"),2)}}}function init$19(e,t){e.component("swiper-item",getSwiperItem(t))}function getSwiper(r){var t=r.requireModule("dom");return{name:"Swiper",isReserved:!0,mixins:[emitter],props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:"rgba(0,0,0,.3)"},indicatorActiveColor:{type:String,default:"#000000"},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}},data:function(){return{currentSync:this.current,currentChangeSource:"autoplay"}},watch:{current:function(){this._currentCheck()},currentItemId:function(){this._currentCheck()},currentSync:function(){this.$trigger("change",this._getDetail())}},methods:{onChange:function(e){var t=e.detail;"string"==typeof t.source&&(this.currentChangeSource=t.source),this.currentSync=t.index,this._lastOffsetRatio=0},onScroll:function(e){var t=this.vertical?e.detail.offsetYRatio:e.detail.offsetXRatio;if((e.drag||e.detail.drag)&&(this.currentChangeSource="touch"),0===t){var n=Math.abs(this._lastOffsetRatio);if(1===n)return;.5<n&&(t=1)}this._lastOffsetRatio=t,this.$trigger("transition",{dx:this.vertical?0:-this._width*t,dy:this.vertical?-this._height*t:0})},onScrollEnd:function(e){var t=this,n=function(){t.$trigger("animationfinish",t._getDetail()),t.currentChangeSource="autoplay"};"iOS"===r.config.env.platform?setTimeout(n,50):n()},_getDetail:function(){var e=this.currentSync,t=this.items[e]||{};return{current:e,currentItemId:t.componentInstance&&t.componentInstance.itemId||"",source:this.currentChangeSource}},_currentCheck:function(){var e=-1;if(this.currentItemId)for(var t=0,n=this.items;t<n.length;t++){var r=n[t].componentInstance;if(r&&r.itemId===this.currentItemId){e=t;break}}e<0&&(e=Math.round(this.current)||0),e=e<0?0:e,this.currentSync!==e&&(this.currentChangeSource="",this.currentSync=e)},_getWH:function(){var r=this;this._getComponentSize(this.$refs.el).then(function(e){var t=e.width,n=e.height;e.top,e.left;r._width=t,r._height=n})},_getComponentSize:function(e){return new Promise(function(n){t.getComponentRect(e,function(e){var t=e.size;n(t)})})}},created:function(){this.items=[],this._width=this.height=0},mounted:function(){var e=this;this._currentCheck(),setTimeout(function(){e._getWH()},100)},render:function(e){var t=[];(Array.isArray(this.$slots.default)?deepClone(this.$slots.default,e):[]).forEach(function(e){e.componentOptions&&"swiper-item"===e.componentOptions.tag&&t.push(e)}),this.items=t;var n={},r=this.$listeners;return(r.change||r.animationfinish||r.transition)&&(n.scroll=this.onScroll,n.scrollend=this.onScrollEnd),r.change&&(n.change=this.onChange),e("div",this._g({ref:"el",staticClass:["uni-swiper"]},r),[e("slider",{staticClass:["uni-swiper-slider"],attrs:{autoPlay:this.autoplay,interval:this.interval,index:this.currentSync,keepIndex:!0,showIndicators:this.indicatorDots,infinite:this.circular,vertical:this.vertical,scrollable:!this.disableTouch},on:n},t.concat([e("indicator",{staticClass:["uni-swiper-dots"],style:{itemColor:this.indicatorColor,itemSelectedColor:this.indicatorActiveColor,itemSize:8,opacity:this.indicatorDots?1:0}})]),2)])},style:{"uni-swiper":{position:"relative",height:"150px"},"uni-swiper-slider":{position:"absolute",left:0,top:0,right:0,bottom:0},"uni-swiper-dots":{position:"absolute",left:0,right:0,bottom:"10",height:"10"}}}}function init$20(e,t){e.component("swiper",getSwiper(t))}function getSwitch(e){return{name:"Switch",isReserved:!0,mixins:[emitter,listeners],props:{name:{type:String,default:""},id:{type:String,default:""},type:{type:String,default:"switch"},checked:{type:[Boolean,String],default:!1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},data:function(){return{switchChecked:this.checked}},watch:{checked:function(e){this.switchChecked=e}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onChange:function(e){this.switchChecked=e.detail.value,this.$trigger("change",{value:this.switchChecked})},_resetFormData:function(){this.switchChecked=!1},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.switchChecked,e.key=this.name),e}},render:function(e){var t=this,n={},r=this.$listeners;return r.change&&(n.change=this._onChange),e("div",t._g({style:{paddingRight:5}},r),["switch"===t.type?e("dc-switch",{attrs:{dataUncType:"uni-switch",color:t.color,checked:t.switchChecked,disabled:t.disabled},style:{width:52,height:32},on:n}):t._e(),"checkbox"===t.type?e("checkbox",{attrs:{checked:t.checked,disabled:t.disabled},style:{color:t.color},on:n}):t._e()],1)}}}function init$21(e,t){e.component("switch",getSwitch(t))}function getSlider(e){return{name:"USlider",isReserved:!0,mixins:[emitter,listeners],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{left:0,width:0,sliderValue:Number(this.value),sliderThumbValue:0}},computed:{trackStyle:function(){return{backgroundColor:this._getBgColor()}},trackActiveStyle:function(){return{backgroundColor:this._getActiveColor(),width:this.thumbValue+"px"}},thumbStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginTop:-this.blockSize/2+"px",left:this.thumbValue+"px",backgroundColor:this.blockColor}},thumbValue:function(){return(this.sliderValue-Number(this.min))/(Number(this.max)-Number(this.min))*this.width}},watch:{value:function(e){this.sliderValue=Number(e)}},mounted:function(){var t=this;this._x0=0,this._x1=0,this.$eventOld=null,setTimeout(function(){e.requireModule("dom").getComponentRect(t.$refs["slider-track"],function(e){t.left=e.size.left,t.width=e.size.width})},50)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_handleStart:function(e){if(1===e.changedTouches.length&&!this._$eventOld){var t=(this._$eventOld=e).changedTouches[0].pageX;this._x0=this._x1=t,this._onTrack("start",t)}},_handleMove:function(e){if(1===e.changedTouches.length&&this._$eventOld){var t=e.changedTouches[0].pageX;this._onTrack("move",t),this._x1=t}},_handleEnd:function(e){if(1===e.changedTouches.length&&this._$eventOld){var t=e.changedTouches[0].pageX;this._$eventOld=null,this._onTrack("end",t)}},_onTrack:function(e,t){this.disabled||("move"===e?(this._onUserChangedValue({x:t}),this.$trigger("changing",{value:this.sliderValue})):"end"===e&&(this._onUserChangedValue({x:t}),this.$trigger("change",{value:this.sliderValue})))},_onUserChangedValue:function(e){var t=e.x;t<0&&(t=0),t>this.width&&(t=this.width),this.sliderValue=this._filterValue(t)},_filterValue:function(e){var t=e/this.width*(Number(this.max)-Number(this.min)),n=Number(this.step);return 0<n&&n<t&&t%n/n!=0&&(t-=t%n),parseInt(t+Number(this.min))},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.sliderValue,e.key=this.name),e}},render:function(e){var t=this;return e("div",t._g({staticClass:["uni-slider"],style:{flexDirection:"column"}},t.$listeners),[e("div",{staticClass:["uni-slider-wrapper"]},[e("div",{staticClass:["uni-slider-tap-area"],on:{touchstart:t._handleStart,touchmove:t._handleMove,touchend:t._handleEnd},style:{flexDirection:"column"}},[e("div",{ref:"slider-track",staticClass:["uni-slider-handle-wrapper"],style:t.trackStyle},[e("div",{staticClass:["uni-slider-track"],style:t.trackActiveStyle})]),e("div",{ref:"uni-slider-handle",staticClass:["uni-slider-thumb"],style:t.thumbStyle})]),t.showValue?e("u-text",{staticClass:["uni-slider-value"]},[t._v(t._s(t.sliderValue))]):t._e()])])},style:{"uni-slider":{flex:1,marginTop:"12",marginRight:0,marginBottom:"12",marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},"uni-slider-wrapper":{flexDirection:"row",alignItems:"center",minHeight:"30"},"uni-slider-tap-area":{position:"relative",flex:1,paddingTop:"15",paddingRight:0,paddingBottom:"15",paddingLeft:0},"uni-slider-handle-wrapper":{position:"relative",marginTop:0,marginRight:"18",marginBottom:0,marginLeft:"18",height:"2",borderRadius:"5",backgroundColor:"#e9e9e9",transitionProperty:"backgroundColor",transitionDuration:300,transitionTimingFunction:"ease"},"@TRANSITION":{"uni-slider-handle-wrapper":{property:"backgroundColor",duration:300,timingFunction:"ease"},"uni-slider-track":{property:"backgroundColor",duration:300,timingFunction:"ease"},"uni-slider-thumb":{property:"borderColor",duration:300,timingFunction:"ease"}},"uni-slider-track":{height:"2",borderRadius:"6",backgroundColor:"#007aff",transitionProperty:"backgroundColor",transitionDuration:300,transitionTimingFunction:"ease"},"uni-slider-thumb":{position:"absolute",width:"28",height:"28",borderRadius:50,boxShadow:"0 0 4px #ebebeb",transitionProperty:"borderColor",transitionDuration:300,transitionTimingFunction:"ease"},"uni-slider-step":{position:"absolute",width:100,height:"2",background:"transparent",zIndex:1},"uni-slider-value":{color:"#888888",fontSize:"14",marginRight:"14"}}}}function init$22(e,t){e.component("u-slider",getSlider(t))}function getPickerView(e){return{name:"PickerView",isReserved:!0,mixins:[emitter],props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(function(e){return"number"==typeof e}).length===e.length}},height:{type:[Number,String],default:0},indicatorStyle:{type:String,default:""},maskStyle:{type:String,default:""}},data:function(){return{maskStyleSync:this.getStyle(this.maskStyle),indicatorStyleSync:this.getStyle(this.indicatorStyle),valueSync:[].concat(this.value)}},watch:{value:function(e){var n=this;this.valueSync.length=e.length,e.forEach(function(e,t){e!==n.valueSync[t]&&(n.valueSync[t]=e,n.items[t].componentInstance.setCurrent(e))})},maskStyle:function(e){this.maskStyleSync=this.getStyle(e)},indicatorStyle:function(e){this.indicatorStyleSync=this.getStyle(e)}},methods:{getStyle:function(e){return Object.assign({},"string"==typeof e?parseStyleText(e):e)},getItemIndex:function(e){return this.items.indexOf(e)},getItemValue:function(e){return this.valueSync[this.getItemIndex(e.$vnode)]||0},setItemValue:function(e,t){var n=this.getItemIndex(e.$vnode);this.valueSync[n]=t;var r=[].concat(this.valueSync);this.$emit("update:value",r),this.$trigger("change",{value:r})}},created:function(){this.items=[]},render:function(e){var t=[];return(Array.isArray(this.$slots.default)?deepClone(this.$slots.default,e):[]).forEach(function(e){e.componentOptions&&"picker-view-column"===e.componentOptions.tag&&t.push(e)}),this.items=t,e("div",this._g({staticClass:["uni-picker-view"],attrs:{preventGesture:!0}},this.$listeners),[e("div",{staticClass:["uni-picker-view-wrapper"]},t)],2)},style:{"uni-picker-view":{position:"relative"},"uni-picker-view-wrapper":{display:"flex",flexDirection:"row",position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}}}function init$23(e,t){e.component("picker-view",getPickerView(t))}function getHeight(e){void 0===e&&(e={});var t=(e.height||e.lineHeight||"").match(/(-?[\d\.]+)px/),n=0;return t&&(n=parseFloat(t[1])),n}function getPickerViewColumn(e){var r=e.requireModule("dom"),o="android"===e.config.env.platform.toLowerCase();return{name:"PickerViewColumn",isReserved:!0,props:{length:{type:[Number,String],default:0}},data:function(){return{indicatorHeight:getHeight(this.$parent.indicatorStyleSync),height:parseFloat(this.$parent.height),current:this.$parent.getItemValue(this)}},watch:{current:function(e){this._isMounted&&this.$parent.setItemValue(this,e)},length:function(){var e=this;setTimeout(function(){e.setCurrent(e.current,!0,!0)},150)}},mounted:function(){this.checkMounted()},methods:{checkMounted:function(){var n,r,i=this;setTimeout(function(){Promise.all([i._getComponentSize(i.$refs.el).then(function(e){var t=e.height;n=i.height=t}),o&&i.length?i._getComponentSize(i.$refs.item).then(function(e){var t=e.height;r=i.indicatorHeight=t/i.length}):i._getComponentSize(i.$refs.indicator).then(function(e){var t=e.height;r=i.indicatorHeight=t})]).then(function(){n&&r?setTimeout(function(){i.setCurrent(i.current,!1,!0),i._isMounted=!0},50):i.checkMounted()})},50)},onScrollend:function(e){if(!(Date.now()-this.scrollToElementTime<340)){var t=e.detail.contentOffset.y,n=Math.round(t/this.indicatorHeight);t%this.indicatorHeight?this.setCurrent(n,!0,!0):this.current=n}},setCurrent:function(e,t,n){void 0===t&&(t=!0),(this.current!==e||n)&&(r.scrollToElement(this.$refs.content,{offset:e*this.indicatorHeight,animated:t}),this.current=e,t&&(this.scrollToElementTime=Date.now()))},_getComponentSize:function(e){return new Promise(function(n){r.getComponentRect(e,function(e){var t=e.size;n(t)})})}},render:function(e){var t=this.$slots.default,n=(this.height-this.indicatorHeight)/2,r=this.height-n+"px";n+="px";var i={showScrollbar:!1,scrollToBegin:!1,decelerationRate:.3,scrollY:!0};return o||(i.scrollTop=this.current*this.indicatorHeight),e("div",this._g({ref:"el",staticClass:["uni-picker-view-column"]},this.$listeners),[e("scroll-view",{staticClass:["uni-picker-view-group"],attrs:i,on:{scrollend:this.onScrollend},style:{flexDirection:"column"}},[e("div",{ref:"content",staticClass:["uni-picker-view-content"],style:{flexDirection:"column",paddingTop:n,paddingBottom:n}},o?[e("div",{ref:"item",style:{flexDirection:"column"}},t)]:t)]),e("u-scalable",{staticClass:["uni-picker-view-mask"],style:this.$parent.maskStyleSync},[e("u-scalable",{staticClass:["uni-picker-view-mask","uni-picker-view-mask-top"],style:{bottom:r}}),e("u-scalable",{staticClass:["uni-picker-view-mask","uni-picker-view-mask-bottom"],style:{top:r}})]),e("u-scalable",{ref:"indicator",staticClass:["uni-picker-view-indicator"],style:Object.assign({},this.$parent.indicatorStyleSync,{top:n})})],2)},style:{"uni-picker-view-column":{flex:1,position:"relative",alignItems:"stretch",overflow:"hidden"},"uni-picker-view-mask":{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"},"uni-picker-view-mask-top":{bottom:0,backgroundImage:"linear-gradient(to bottom,rgba(255, 255, 255, 0.95),rgba(255, 255, 255, 0.6))"},"uni-picker-view-mask-bottom":{top:0,backgroundImage:"linear-gradient(to top,rgba(255, 255, 255, 0.95),rgba(255, 255, 255, 0.6))"},"uni-picker-view-group":{position:"absolute",top:0,left:0,right:0,bottom:0},"uni-picker-view-content":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},"uni-picker-view-indicator":{position:"absolute",left:0,right:0,top:0,height:"34px",pointerEvents:"none",borderColor:"#e5e5e5",borderTopWidth:"1px",borderBottomWidth:"1px"}}}}function init$24(e,t){e.component("picker-view-column",getPickerViewColumn(t))}var initComponents=[init$3,init$4,init$5,init$6,init$7,init$8,init$9,init$10,init$11,init$12,init$13,init$14,init$15,init$16,init$17,init$18,init$19,init$20,init$21,init$22,init$23,init$24],uniApp={install:function(t,n){t.prototype._$bus=new t,Object.defineProperty(t.prototype,"$page",{get:function(){return!this.$scope&&this.$root&&this.$root.$scope&&(this.$scope=this.$root.$scope),this.$scope.$page}}),styleMixin(t),uniIdMixin(t,n),lifecycleMixin(t,n.weex,n),"weex"!==n.__uniConfig.nvueCompiler&&initComponents.forEach(function(e){e(t,n.weex,n)})}};function vueFactory(e,t){var m=Object.freeze({});function E(e){return null==e}function I(e){return null!=e}function A(e){return!0===e}function c(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function y(e){return null!==e&&"object"==typeof e}var r=Object.prototype.toString;function u(e){return"[object Object]"===r.call(e)}function i(e){var t=parseFloat(String(e));return 0<=t&&Math.floor(t)===t&&isFinite(e)}function _(e){return I(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function n(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===r?JSON.stringify(e,null,2):String(e)}function o(e){var t=parseFloat(e);return isNaN(t)?e:t}function s(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}s("slot,component",!0);var l=s("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(-1<n)return e.splice(n,1)}}var a=Object.prototype.hasOwnProperty;function d(e,t){return a.call(e,t)}function f(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var p=/-(\w)/g,h=f(function(e){return e.replace(p,function(e,t){return t?t.toUpperCase():""})}),v=f(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),g=/\B([A-Z])/g,w=f(function(e){return e.replace(g,"-$1").toLowerCase()});var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,r){function e(e){var t=arguments.length;return t?1<t?n.apply(r,arguments):n.call(r,e):n.call(r)}return e._length=n.length,e};function S(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function x(e,t){for(var n in t)e[n]=t[n];return e}function C(e){for(var t={},n=0;n<e.length;n++)e[n]&&x(t,e[n]);return t}function T(e,t,n){}var O=function(e,t,n){return!1},$=function(e){return e};function P(t,n){if(t===n)return!0;var e=y(t),r=y(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return P(e,n[t])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return P(t[e],n[e])})}catch(e){return!1}}function M(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function j(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B="data-server-rendered",D=["component","directive","filter"],N=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],L={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:O,isReservedAttr:O,isUnknownElement:O,getTagNamespace:T,parsePlatformTagName:$,mustUseProp:O,async:!0,_lifecycleHooks:N};function R(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var F=new RegExp("[^"+/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/.source+".$_\\d]");var z,V="__proto__"in{},U="undefined"!=typeof window,q="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,W=q&&WXEnvironment.platform.toLowerCase(),H=U&&window.navigator.userAgent.toLowerCase(),G=H&&/msie|trident/.test(H),X=(H&&H.indexOf("msie 9.0"),H&&0<H.indexOf("edge/")),Y=(H&&H.indexOf("android"),H&&/iphone|ipad|ipod|ios/.test(H),H&&/chrome\/\d+/.test(H),H&&/phantomjs/.test(H),H&&H.match(/firefox\/(\d+)/),{}.watch);if(U)try{var J={};Object.defineProperty(J,"passive",{get:function(){}}),window.addEventListener("test-passive",null,J)}catch(e){}var K=function(){return void 0===z&&(z=!U&&!q&&void 0!==global&&(global.process&&"server"===global.process.env.VUE_ENV)),z},Z=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Q(e){return"function"==typeof e&&/native code/.test(e.toString())}var ee,te="undefined"!=typeof Symbol&&Q(Symbol)&&"undefined"!=typeof Reflect&&Q(Reflect.ownKeys);ee="undefined"!=typeof Set&&Q(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 ne=T,re=0,ie=function(){this.id=void 0!==t?t.uid++:re++,this.subs=[]};function oe(e){ie.SharedObject.targetStack.push(e),ie.SharedObject.target=e}function ae(){ie.SharedObject.targetStack.pop(),ie.SharedObject.target=ie.SharedObject.targetStack[ie.SharedObject.targetStack.length-1]}ie.prototype.addSub=function(e){this.subs.push(e)},ie.prototype.removeSub=function(e){b(this.subs,e)},ie.prototype.depend=function(){ie.SharedObject.target&&ie.SharedObject.target.addDep(this)},ie.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},ie.SharedObject=void 0!==t?t:{},ie.SharedObject.target=null,ie.SharedObject.targetStack=[];var se=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,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},ce={child:{configurable:!0}};ce.child.get=function(){return this.componentInstance},Object.defineProperties(se.prototype,ce);var ue=function(e){void 0===e&&(e="");var t=new se;return t.text=e,t.isComment=!0,t};function le(e){return new se(void 0,void 0,void 0,String(e))}function de(e){var t=new se(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 fe=Array.prototype,pe=Object.create(fe);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(a){var s=fe[a];R(pe,a,function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r,i=s.apply(this,t),o=this.__ob__;switch(a){case"push":case"unshift":r=t;break;case"splice":r=t.slice(2)}return r&&o.observeArray(r),o.dep.notify(),i})});var he=Object.getOwnPropertyNames(pe),ve=!0;function ge(e){ve=e}var me=function(e){var t;this.value=e,this.dep=new ie,this.vmCount=0,R(e,"__ob__",this),Array.isArray(e)?(V?(t=pe,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];R(e,o,t[o])}}(e,pe,he),this.observeArray(e)):this.walk(e)};function ye(e,t){var n;if(y(e)&&!(e instanceof se))return d(e,"__ob__")&&e.__ob__ instanceof me?n=e.__ob__:ve&&!K()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new me(e)),t&&n&&n.vmCount++,n}function _e(n,e,r,t,i){var o=new ie,a=Object.getOwnPropertyDescriptor(n,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(r=n[e]);var u=!i&&ye(r);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):r;return ie.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):r;e===t||e!=e&&t!=t||s&&!c||(c?c.call(n,e):r=e,u=!i&&ye(e),o.notify())}})}}function be(e,t,n){if(Array.isArray(e)&&i(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;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(_e(r.value,t,n),r.dep.notify(),n):e[t]=n}function we(e,t){if(Array.isArray(e)&&i(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||d(e,t)&&(delete e[t],n&&n.dep.notify())}}me.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)_e(e,t[n])},me.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)ye(e[t])};var ke=L.optionMergeStrategies;function Se(e,t){if(!t)return e;for(var n,r,i,o=te?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],d(e,n)?r!==i&&u(r)&&u(i)&&Se(r,i):be(e,n,i));return e}function xe(n,r,i){return i?function(){var e="function"==typeof r?r.call(i,i):r,t="function"==typeof n?n.call(i,i):n;return e?Se(e,t):t}:r?n?function(){return Se("function"==typeof r?r.call(this,this):r,"function"==typeof n?n.call(this,this):n)}:r:n}function Ce(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 Te(e,t,n,r){var i=Object.create(e||null);return t?x(i,t):i}ke.data=function(e,t,n){return n?xe(e,t,n):t&&"function"!=typeof t?e:xe(e,t)},N.forEach(function(e){ke[e]=Ce}),D.forEach(function(e){ke[e+"s"]=Te}),ke.watch=function(e,t,n,r){if(e===Y&&(e=void 0),t===Y&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in x(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},ke.props=ke.methods=ke.inject=ke.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return x(i,e),t&&x(i,t),i},ke.provide=xe;var Oe=function(e,t){return void 0===t?e:t};function Ee(n,r,i){if("function"==typeof r&&(r=r.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[h(i)]={type:null});else if(u(n))for(var a in n)i=n[a],o[h(a)]=u(i)?i:{type:i};e.props=o}}(r),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?x({from:o},a):{from:a}}}}(r),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})}}(r),!r._base&&(r.extends&&(n=Ee(n,r.extends,i)),r.mixins))for(var e=0,t=r.mixins.length;e<t;e++)n=Ee(n,r.mixins[e],i);var o,a={};for(o in n)s(o);for(o in r)d(n,o)||s(o);function s(e){var t=ke[e]||Oe;a[e]=t(n[e],r[e],i,e)}return a}function Ie(e,t,n,r){if("string"==typeof n){var i=e[t];if(d(i,n))return i[n];var o=h(n);if(d(i,o))return i[o];var a=v(o);return d(i,a)?i[a]:i[n]||i[o]||i[a]}}function Ae(e,t,n,r){var i=t[e],o=!d(n,e),a=n[e],s=Me(Boolean,i.type);if(-1<s)if(o&&!d(i,"default"))a=!1;else if(""===a||a===w(e)){var c=Me(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!d(t,"default"))return;var r=t.default;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"!==$e(t.type)?r.call(e):r}(r,i,e);var u=ve;ge(!0),ye(a),ge(u)}return a}function $e(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Pe(e,t){return $e(e)===$e(t)}function Me(e,t){if(!Array.isArray(t))return Pe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Pe(t[n],e))return n;return-1}function je(e,t,n){oe();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){De(e,r,"errorCaptured hook")}}De(e,t,n)}finally{ae()}}function Be(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&_(o)&&!o._handled&&(o.catch(function(e){return je(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(e){je(e,r,i)}return o}function De(t,e,n){if(L.errorHandler)try{return L.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Ne(e,null,"config.errorHandler")}Ne(t,e,n)}function Ne(e,t,n){if(!U&&!q||"undefined"==typeof console)throw e;console.error(e)}var Le=[],Re=!1;function Fe(){Re=!1;for(var e=Le.slice(0),t=Le.length=0;t<e.length;t++)e[t]()}var ze=function(){setTimeout(Fe,0)};function Ve(e,t){var n;if(Le.push(function(){if(e)try{e.call(t)}catch(e){je(e,t,"nextTick")}else n&&n(t)}),Re||(Re=!0,ze()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Ue=new ee;function qe(e){!function e(t,n){var r,i;var o=Array.isArray(t);if(!o&&!y(t)||Object.isFrozen(t)||t instanceof se)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,Ue),Ue.clear()}var We=f(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 He(e,i){function o(){var e=arguments,t=o.fns;if(!Array.isArray(t))return Be(t,null,arguments,i,"v-on handler");for(var n=t.slice(),r=0;r<n.length;r++)Be(n[r],null,e,i,"v-on handler")}return o.fns=e,o}function Ge(e,t,n,r,i,o){var a,s,c,u;for(a in e)s=e[a],c=t[a],u=We(a),E(s)||(E(c)?(E(s.fns)&&(s=e[a]=He(s,o)),A(u.once)&&(s=e[a]=i(u.name,s,u.capture)),n(u.name,s,u.capture,u.passive,u.params)):s!==c&&(c.fns=s,e[a]=c));for(a in t)E(e[a])&&r((u=We(a)).name,t[a],u.capture)}function Xe(e,t,n){var r;e instanceof se&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function o(){n.apply(this,arguments),b(r.fns,o)}E(i)?r=He([o]):I(i.fns)&&A(i.merged)?(r=i).fns.push(o):r=He([i,o]),r.merged=!0,e[t]=r}function Ye(e,t,n,r){var i=t.options.mpOptions&&t.options.mpOptions.properties;if(E(i))return n;var o=t.options.mpOptions.externalClasses||[],a=e.attrs,s=e.props;if(I(a)||I(s))for(var c in i){var u=w(c);(Je(n,s,c,u,!0)||Je(n,a,c,u,!1))&&n[c]&&-1!==o.indexOf(u)&&r[h(n[c])]&&(n[c]=r[h(n[c])])}return n}function Je(e,t,n,r,i){if(I(t)){if(d(t,n))return e[n]=t[n],i||delete t[n],!0;if(d(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Ke(e){return c(e)?[le(e)]:Array.isArray(e)?function e(t,n){var r=[];var i,o,a,s;for(i=0;i<t.length;i++)E(o=t[i])||"boolean"==typeof o||(a=r.length-1,s=r[a],Array.isArray(o)?0<o.length&&(Ze((o=e(o,(n||"")+"_"+i))[0])&&Ze(s)&&(r[a]=le(s.text+o[0].text),o.shift()),r.push.apply(r,o)):c(o)?Ze(s)?r[a]=le(s.text+o):""!==o&&r.push(le(o)):Ze(o)&&Ze(s)?r[a]=le(s.text+o.text):(A(t._isVList)&&I(o.tag)&&E(o.key)&&I(n)&&(o.key="__vlist"+n+"_"+i+"__"),r.push(o)));return r}(e):void 0}function Ze(e){return I(e)&&I(e.text)&&!1===e.isComment}function Qe(e,t){if(e){for(var n=Object.create(null),r=te?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&d(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function et(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(tt)&&delete n[u];return n}function tt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function nt(e,t,n){var r,i=0<Object.keys(t).length,o=e?!!e.$stable:!i,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==m&&a===n.$key&&!i&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=rt(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=it(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),R(r,"$stable",o),R(r,"$key",a),R(r,"$hasNormal",i),r}function rt(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]:Ke(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 it(e,t){return function(){return e[t]}}function ot(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;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(y(e))if(te&&e[Symbol.iterator]){n=[];var s=e[Symbol.iterator](),c=s.next();for(r=0;!c.done;)n.push(t(c.value,n.length,r,r++)),c=s.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r,r);return I(n)||(n=[]),n._isVList=!0,n}function at(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=x(x({},r),n)),i=o(n,this,n._i)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function st(e){return Ie(this.$options,"filters",e)||$}function ct(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function ut(e,t,n,r,i){var o=L.keyCodes[t]||n;return i&&r&&!L.keyCodes[t]?ct(i,r):o?ct(o,e):r?w(r)!==t:void 0}function lt(i,o,a,s,c){if(a)if(y(a)){var u;Array.isArray(a)&&(a=C(a));var e=function(t){if("class"===t||"style"===t||l(t))u=i;else{var e=i.attrs&&i.attrs.type;u=s||L.mustUseProp(o,e,t)?i.domProps||(i.domProps={}):i.attrs||(i.attrs={})}var n=h(t),r=w(t);n in u||r in u||(u[t]=a[t],c&&((i.on||(i.on={}))["update:"+t]=function(e){a[t]=e}))};for(var t in a)e(t)}else;return i}function dt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||pt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function ft(e,t,n){return pt(e,"__once__"+t+(n?"_"+n:""),!0),e}function pt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&ht(e[r],t+"_"+r,n);else ht(e,t,n)}function ht(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function vt(e,t){if(t)if(u(t)){var n=e.on=e.on?x({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function gt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?gt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function mt(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])}return e}function yt(e,t){return"string"==typeof e?t+e:e}function _t(e){e._o=ft,e._n=o,e._s=n,e._l=ot,e._t=at,e._q=P,e._i=M,e._m=dt,e._f=st,e._k=ut,e._b=lt,e._v=le,e._e=ue,e._u=gt,e._g=vt,e._d=mt,e._p=yt}function bt(e,t,n,o,r){var a,i=this,s=r.options;d(o,"_uid")?(a=Object.create(o))._original=o:o=(a=o)._original;var c=A(s._compiled),u=!c;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||m,this.injections=Qe(s.inject,o),this.slots=function(){return i.$slots||nt(e.scopedSlots,i.$slots=et(n,o)),i.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return nt(e.scopedSlots,this.slots())}}),c&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=nt(e.scopedSlots,this.$slots)),s._scopeId?this._c=function(e,t,n,r){var i=It(a,e,t,n,r,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return It(a,e,t,n,r,u)}}function wt(e,t,n,r,i){var o=de(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function kt(e,t){for(var n in t)e[h(n)]=t[n]}_t(bt.prototype);var St={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;St.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;I(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Nt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var o=r.data.scopedSlots,a=e.$scopedSlots,s=!!(o&&!o.$stable||a!==m&&!a.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(i||e.$options._renderChildren||s);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=i,e.$attrs=r.data.attrs||m,e.$listeners=n||m,t&&e.$options.props){ge(!1);for(var u=e._props,l=e.$options._propKeys||[],d=0;d<l.length;d++){var f=l[d],p=e.$options.props;u[f]=Ae(f,p,t,e)}ge(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),n=n||m;var h=e.$options._parentListeners;e.$options._parentListeners=n,Dt(e,n,h),c&&(e.$slots=et(i,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,r._$vd?(Ft(r,"onServiceCreated"),Ft(r,"onServiceAttached"),r._$vd.addMountedVm(r)):Ft(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,Vt.push(t)):Rt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Lt(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Ft(t,"deactivated")}}(t,!0):t.$destroy())}},xt=Object.keys(St);function Ct(e,t,n,r,i){if(!E(e)){var o=n.$options._base;if(y(e)&&(e=o.extend(e)),"function"==typeof e){var a,s,c,u,l,d,f;if(E(e.cid)&&void 0===(e=function(t,n){if(A(t.error)&&I(t.errorComp))return t.errorComp;if(I(t.resolved))return t.resolved;var e=$t;e&&I(t.owners)&&-1===t.owners.indexOf(e)&&t.owners.push(e);if(A(t.loading)&&I(t.loadingComp))return t.loadingComp;if(e&&!I(t.owners)){var r=t.owners=[e],i=!0,o=null,a=null;e.$on("hook:destroyed",function(){return b(r,e)});var s=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==o&&(clearTimeout(o),o=null),null!==a&&(clearTimeout(a),a=null))},c=j(function(e){t.resolved=Pt(e,n),i?r.length=0:s(!0)}),u=j(function(e){I(t.errorComp)&&(t.error=!0,s(!0))}),l=t(c,u);return y(l)&&(_(l)?E(t.resolved)&&l.then(c,u):_(l.component)&&(l.component.then(c,u),I(l.error)&&(t.errorComp=Pt(l.error,n)),I(l.loading)&&(t.loadingComp=Pt(l.loading,n),0===l.delay?t.loading=!0:o=setTimeout(function(){o=null,E(t.resolved)&&E(t.error)&&(t.loading=!0,s(!1))},l.delay||200)),I(l.timeout)&&(a=setTimeout(function(){a=null,E(t.resolved)&&u(null)},l.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(a=e,o)))return s=a,c=t,u=n,l=r,d=i,(f=ue()).asyncFactory=s,f.asyncMeta={data:c,context:u,children:l,tag:d},f;t=t||{},vn(e),I(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 i=t.on||(t.on={}),o=i[r],a=t.model.callback;I(o)?(Array.isArray(o)?-1===o.indexOf(a):o!==a)&&(i[r]=[a].concat(o)):i[r]=a}(e.options,t);var p=function(e,t,n,r){var i=t.options.props;if(E(i))return Ye(e,t,{},r);var o={},a=e.attrs,s=e.props;if(I(a)||I(s))for(var c in i){var u=w(c);Je(o,s,c,u,!0)||Je(o,a,c,u,!1)}return Ye(e,t,o,r)}(t,e,0,n);if(A(e.options.functional))return function(e,t,n,r,i){var o=e.options,a={},s=o.props;if(I(s))for(var c in s)a[c]=Ae(c,s,t||m);else I(n.attrs)&&kt(a,n.attrs),I(n.props)&&kt(a,n.props);var u=new bt(n,a,i,r,e),l=o.render.call(null,u._c,u);if(l instanceof se)return wt(l,n,u.parent,o);if(Array.isArray(l)){for(var d=Ke(l)||[],f=new Array(d.length),p=0;p<d.length;p++)f[p]=wt(d[p],n,u.parent,o);return f}}(e,p,t,n,r);var h=t.on;if(t.on=t.nativeOn,A(e.options.abstract)){var v=t.slot;t={},v&&(t.slot=v)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<xt.length;n++){var r=xt[n],i=t[r],o=St[r];i===o||i&&i._merged||(t[r]=i?Tt(o,i):o)}}(t);var g=e.options.name||i;return new se("vue-component-"+e.cid+(g?"-"+g:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:p,listeners:h,tag:i,children:r},a)}}}function Tt(n,r){var e=function(e,t){n(e,t),r(e,t)};return e._merged=!0,e}var Ot=1,Et=2;function It(e,t,n,r,i,o){return(Array.isArray(n)||c(n))&&(i=r,r=n,n=void 0),A(o)&&(i=Et),function(e,t,n,r,i){if(I(n)&&I(n.__ob__))return ue();I(n)&&I(n.is)&&(t=n.is);if(!t)return ue();Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===Et?r=Ke(r):i===Ot&&(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 o,a;if("string"==typeof t){var s;a=e.$vnode&&e.$vnode.ns||L.getTagNamespace(t),o=L.isReservedTag(t)?new se(L.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!I(s=Ie(e.$options,"components",t))?new se(t,n,r,void 0,void 0,e):Ct(s,n,e,r,t)}else o=Ct(t,n,e,r);return Array.isArray(o)?o:I(o)?(I(a)&&function e(t,n,r){t.ns=n;"foreignObject"===t.tag&&(r=!(n=void 0));if(I(t.children))for(var i=0,o=t.children.length;i<o;i++){var a=t.children[i];I(a.tag)&&(E(a.ns)||A(r)&&"svg"!==a.tag)&&e(a,n,r)}}(o,a),I(n)&&function(e){y(e.style)&&qe(e.style);y(e.class)&&qe(e.class)}(n),o):ue()}(e,t,n,r,i)}var At,$t=null;function Pt(e,t){return(e.__esModule||te&&"Module"===e[Symbol.toStringTag])&&(e=e.default),y(e)?t.extend(e):e}function Mt(e,t){At.$on(e,t)}function jt(e,t){At.$off(e,t)}function Bt(t,n){var r=At;return function e(){null!==n.apply(null,arguments)&&r.$off(t,e)}}function Dt(e,t,n){Ge(t,n||{},Mt,jt,Bt,At=e),At=void 0}var Nt=null;function Lt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Rt(e,t){if(t){if(e._directInactive=!1,Lt(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++)Rt(e.$children[n]);Ft(e,"activated")}}function Ft(e,t){oe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Be(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ae()}var zt=[],Vt=[],Ut={},qt=!1,Wt=!1,Ht=0;var Gt=Date.now;if(U&&!G){var Xt=window.performance;Xt&&"function"==typeof Xt.now&&Gt()>document.createEvent("Event").timeStamp&&(Gt=function(){return Xt.now()})}function Yt(){var e,t;for(Gt(),Wt=!0,zt.sort(function(e,t){return e.id-t.id}),Ht=0;Ht<zt.length;Ht++)(e=zt[Ht]).before&&e.before(),t=e.id,Ut[t]=null,e.run();var n=Vt.slice(),r=zt.slice();Ht=zt.length=Vt.length=0,qt=Wt=!(Ut={}),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Rt(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&&(r._$vd?r._$vd.addUpdatedVm(r):Ft(r,"updated"))}}(r),Z&&L.devtools&&Z.emit("flush")}var Jt=0,Kt=function(e,t,n,r,i){this.vm=e,i&&(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=++Jt,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ee,this.newDepIds=new ee,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!F.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=T)),this.value=this.lazy?void 0:this.get()};Kt.prototype.get=function(){var e;oe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;je(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&qe(e),ae(),this.cleanupDeps()}return e},Kt.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))},Kt.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},Kt.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Ut[t]){if(Ut[t]=!0,Wt){for(var n=zt.length-1;Ht<n&&zt[n].id>e.id;)n--;zt.splice(n+1,0,e)}else zt.push(e);qt||(qt=!0,Ve(Yt))}}(this)},Kt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||y(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){je(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Kt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Kt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Kt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Zt={enumerable:!0,configurable:!0,get:T,set:T};function Qt(e,t,n){Zt.get=function(){return this[t][n]},Zt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Zt)}function en(e){e._watchers=[];var t=e.$options;t.props&&function(n,r){var i=n.$options.propsData||{},o=n._props={},a=n.$options._propKeys=[];n.$parent&&ge(!1);var e=function(e){a.push(e);var t=Ae(e,r,i,n);_e(o,e,t),e in n||Qt(n,"_props",e)};for(var t in r)e(t);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?T:k(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){oe();try{return e.call(t,t)}catch(e){return je(e,t,"data()"),{}}finally{ae()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&d(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Qt(e,"_data",o))}var a;ye(t,!0)}(e):ye(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=K();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new Kt(e,a||T,T,tn)),i in e||nn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)an(e,n,r[i]);else an(e,n,r)}}(e,t.watch)}var tn={lazy:!0};function nn(e,t,n){var r=!K();"function"==typeof n?(Zt.get=r?rn(t):on(n),Zt.set=T):(Zt.get=n.get?r&&!1!==n.cache?rn(t):on(n.get):T,Zt.set=n.set||T),Object.defineProperty(e,t,Zt)}function rn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ie.SharedObject.target&&e.depend(),e.value}}function on(e){return function(){return e.call(this,this)}}function an(e,t,n,r){return u(n)&&(n=(r=n).handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var sn,cn,un,ln,dn,fn,pn,hn=0;function vn(e){var t=e.options;if(e.super){var n=vn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&x(e.extendOptions,r),(t=e.options=Ee(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function gn(e){this._init(e)}function mn(e){e.cid=0;var a=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var i=e.name||t.options.name,o=function(e){this._init(e)};return((o.prototype=Object.create(t.prototype)).constructor=o).cid=a++,o.options=Ee(t.options,e),o.super=t,o.options.props&&function(e){var t=e.options.props;for(var n in t)Qt(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)nn(e.prototype,n,t[n])}(o),o.extend=t.extend,o.mixin=t.mixin,o.use=t.use,D.forEach(function(e){o[e]=t[e]}),i&&(o.options.components[i]=o),o.superOptions=t.options,o.extendOptions=e,o.sealedOptions=x({},o.options),r[n]=o}}function yn(e){return e&&(e.Ctor.options.name||e.tag)}function _n(e,t){return Array.isArray(e)?-1<e.indexOf(t):"string"==typeof e?-1<e.split(",").indexOf(t):(n=e,"[object RegExp]"===r.call(n)&&e.test(t));var n}function bn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=yn(a.componentOptions);s&&!t(s)&&wn(n,o,r,i)}}}function wn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}gn.prototype._init=function(e){var t,n,r,i,o=this;o._uid=hn++,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;var i=(n._parentVnode=r).componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(o,e):o.$options=Ee(vn(o.constructor),e||{},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._renderProxy=o)._self=o),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Dt(e,t)}(o),function(i){i._vnode=null,i._staticTrees=null;var e=i.$options,t=i.$vnode=e._parentVnode,n=t&&t.context;i.$slots=et(e._renderChildren,n),i.$scopedSlots=m,i._c=function(e,t,n,r){return It(i,e,t,n,r,!1)},i.$createElement=function(e,t,n,r){return It(i,e,t,n,r,!0)};var r=t&&t.data;_e(i,"$attrs",r&&r.attrs||m,null,!0),_e(i,"$listeners",e._parentListeners||m,null,!0)}(o),Ft(o,"beforeCreate"),(n=Qe((t=o).$options.inject,t))&&(ge(!1),Object.keys(n).forEach(function(e){_e(t,e,n[e])}),ge(!0)),en(o),(i=(r=o).$options.provide)&&(r._provided="function"==typeof i?i.call(r):i),Ft(o,"created"),o.$options.el&&o.$mount(o.$options.el)},sn=gn,cn={get:function(){return this._data}},un={get:function(){return this._props}},Object.defineProperty(sn.prototype,"$data",cn),Object.defineProperty(sn.prototype,"$props",un),sn.prototype.$set=be,sn.prototype.$delete=we,sn.prototype.$watch=function(e,t,n){var r=this;if(u(t))return an(r,e,t,n);(n=n||{}).user=!0;var i=new Kt(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(e){je(e,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}},dn=/^hook:/,(ln=gn).prototype.$on=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)this.$on(e[n],t);else(this._events[e]||(this._events[e]=[])).push(t),dn.test(e)&&(this._hasHookEvent=!0);return this},ln.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},ln.prototype.$off=function(e,t){if(!arguments.length)return this._events=Object.create(null),this;if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)this.$off(e[n],t);return this}var i,o=this._events[e];if(!o)return this;if(!t)return this._events[e]=null,this;for(var a=o.length;a--;)if((i=o[a])===t||i.fn===t){o.splice(a,1);break}return this},ln.prototype.$emit=function(e){var t=this._events[e];if(t){t=1<t.length?S(t):t;for(var n=S(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)Be(t[i],this,n,this,r)}return this},(fn=gn).prototype._update=function(e,t){var n,r=this,i=r.$el,o=r._vnode,a=(n=Nt,Nt=r,function(){Nt=n});r._vnode=e,r.$el=o?r.__patch__(o,e):r.__patch__(r.$el,e,t,!1),a(),i&&(i.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},fn.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},fn.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Ft(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(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),Ft(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}},_t((pn=gn).prototype),pn.prototype.$nextTick=function(e){return Ve(e,this)},pn.prototype._render=function(){var t,n=this,e=n.$options,r=e.render,i=e._parentVnode;i&&(n.$scopedSlots=nt(i.data.scopedSlots,n.$slots,n.$scopedSlots)),n.$vnode=i;try{$t=n,t=r.call(n._renderProxy,n.$createElement)}catch(e){je(e,n,"render"),t=n._vnode}finally{$t=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof se||(t=ue()),t.parent=i,t};var kn,Sn,xn,Cn=[String,RegExp,Array],Tn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Cn,exclude:Cn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)wn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){bn(e,function(e){return _n(t,e)})}),this.$watch("exclude",function(t){bn(e,function(e){return!_n(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(I(n)&&(I(n.componentOptions)||(r=n).isComment&&r.asyncFactory))return n}var r}(e),n=t&&t.componentOptions;if(n){var r=yn(n),i=this.include,o=this.exclude;if(i&&(!r||!_n(i,r))||o&&r&&_n(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,b(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&wn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};kn=gn,xn={get:function(){return L}},Object.defineProperty(kn,"config",xn),kn.util={warn:ne,extend:x,mergeOptions:Ee,defineReactive:_e},kn.set=be,kn.delete=we,kn.nextTick=Ve,kn.observable=function(e){return ye(e),e},kn.options=Object.create(null),D.forEach(function(e){kn.options[e+"s"]=Object.create(null)}),x((kn.options._base=kn).options.components,Tn),kn.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(-1<t.indexOf(e))return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this},kn.mixin=function(e){return this.options=Ee(this.options,e),this},mn(kn),Sn=kn,D.forEach(function(n){Sn[n]=function(e,t){return t?("component"===n&&u(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t):this.options[n+"s"][e]}}),Object.defineProperty(gn.prototype,"$isServer",{get:K}),Object.defineProperty(gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:bt}),gn.version="2.6.11";var On=1;function En(){return(On++).toString()}var In=function(){this.nodeId=En(),this.ref=this.nodeId,this.children=[],this.pureChildren=[],this.parentNode=null,this.nextSibling=null,this.previousSibling=null};In.prototype.destroy=function(){this._$vd&&this._$vd.removeElement(this),this.children.forEach(function(e){e.destroy()})};var An=function(t){function e(e){t.call(this),this.nodeType=8,this.nodeId=En(),this.ref=this.nodeId,this.type="comment",this.value=e,this.children=[],this.pureChildren=[]}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.toString=function(){return"\x3c!-- "+this.value+" --\x3e"},e}(In);function $n(e,t,n){var r=e.documentElement;if(!(0<r.pureChildren.length||t.parentNode)){var i=r.children,o=i.indexOf(n);o<0?i.push(t):i.splice(o,0,t),1===t.nodeType?("body"===t.role?(t.docId=e.id,t.ownerDocument=e,t.parentNode=r):(t.children.forEach(function(e){e.parentNode=t}),Pn(e,t),t.docId=e.id,t.ownerDocument=e),Mn(t,r),r.pureChildren.push(t)):t.parentNode=r}}function Pn(e,t){t.role="body",t.depth=1,t.ref="_root",e.body=t}function Mn(t,e){(t.parentNode=e).docId&&(t.docId=e.docId,t.ownerDocument=e.ownerDocument,t.depth=e.depth+1),t.children.forEach(function(e){Mn(e,t)})}function jn(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function Bn(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function Dn(e,t,n,r){n<0&&(n=0);var i=t[n-1],o=t[n];return t.splice(n,0,e),r&&(i&&(i.nextSibling=e),e.previousSibling=i,(e.nextSibling=o)&&(o.previousSibling=e)),n}function Nn(e,t,n,r){var i=t.indexOf(e);if(i<0)return-1;if(r){var o=t[i-1],a=t[i+1];o&&(o.nextSibling=a),a&&(a.previousSibling=o)}t.splice(i,1);var s=n;i<=n&&(s=n-1);var c=t[s-1],u=t[s];return t.splice(s,0,e),r&&(c&&(c.nextSibling=e),e.previousSibling=c,(e.nextSibling=u)&&(u.previousSibling=e)),i===s?-1:n}function Ln(e,t,n){var r=t.indexOf(e);if(!(r<0)){if(n){var i=t[r-1],o=t[r+1];i&&(i.nextSibling=o),o&&(o.previousSibling=i)}t.splice(r,1)}}var Rn=function(t){function e(e){void 0===e&&(e="view"),t.call(this),this.nodeType=1,this.nodeId=En(),this.ref=this.nodeId,this.type=e,this.attr={},this.events={},this.children=[],this.pureChildren=[]}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.setAttribute=function(e,t){"cid"===e?this.cid=t:"nid"===e&&(this.nid=t)},e.prototype.dispatchEvent=function(e,t){var n=this.events[e];n&&n.forEach(function(e){e(t)})},e.prototype.addEventListener=function(e,t){if(""===this.cid||""===this.nid)return console.error("cid="+this.cid+",nid="+this.nid+" addEventListener("+e+") not found");(this.events[e]||(this.events[e]=[])).push(t),this._$vd.addElement(this)},e.prototype.removeEventListener=function(e,t){var n=this;if(""===this.cid||""===this.nid)return console.error("cid="+this.cid+",nid="+this.nid+" removeEventListener("+e+") not found");var r=!1;if(this.events[e]){var i=this.events[e].indexOf(t);-1!==i&&(this.events[e].splice(i,1),r=!0)}r||console.error("cid="+this.cid+",nid="+this.nid+" removeEventListener("+e+") handler not found"),Object.keys(this.events).every(function(e){return 0===n.events[e].length})&&this._$vd.removeElement(this)},e.prototype.appendChild=function(e){e.parentNode&&e.parentNode!==this||(e.parentNode?(Nn(e,this.children,this.children.length,!0),1===e.nodeType&&Nn(e,this.pureChildren,this.pureChildren.length)):(Mn(e,this),Dn(e,this.children,this.children.length,!0),1===e.nodeType&&Dn(e,this.pureChildren,this.pureChildren.length)))},e.prototype.insertBefore=function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.nextSibling&&e.nextSibling===t))if(e.parentNode){if(Nn(e,this.children,this.children.indexOf(t),!0),1===e.nodeType){var n=jn(t);Nn(e,this.pureChildren,n?this.pureChildren.indexOf(n):this.pureChildren.length)}}else if(Mn(e,this),Dn(e,this.children,this.children.indexOf(t),!0),1===e.nodeType){var r=jn(t);Dn(e,this.pureChildren,r?this.pureChildren.indexOf(r):this.pureChildren.length)}},e.prototype.insertAfter=function(e,t){e.parentNode&&e.parentNode!==this||e===t||e.previousSibling&&e.previousSibling===t||(e.parentNode?(Nn(e,this.children,this.children.indexOf(t)+1,!0),1===e.nodeType&&Nn(e,this.pureChildren,this.pureChildren.indexOf(Bn(t))+1)):(Mn(e,this),Dn(e,this.children,this.children.indexOf(t)+1,!0),1===e.nodeType&&Dn(e,this.pureChildren,this.pureChildren.indexOf(Bn(t))+1)))},e.prototype.removeChild=function(e,t){e.parentNode&&(Ln(e,this.children,!0),1===e.nodeType&&Ln(e,this.pureChildren)),t||e.destroy()},e.prototype.clear=function(){this.children.forEach(function(e){e.destroy()}),this.children.length=0,this.pureChildren.length=0},e.prototype.toString=function(){return"<"+this.type+" attr="+JSON.stringify(this.attr)+" style="+JSON.stringify(this.toStyle())+">"+this.pureChildren.map(function(e){return e.toString()}).join("")+"</"+this.type+">"},e}(In),Fn=function(e,t){this.id=e?e.toString():"",this.URL=t,this.createDocumentElement()};Fn.prototype.createDocumentElement=function(){var n=this;if(!this.documentElement){var e=new Rn("document");e.docId=this.id,e.ownerDocument=this,e.role="documentElement",e.depth=0,e.ref="_documentElement",this.documentElement=e,Object.defineProperty(e,"appendChild",{configurable:!0,enumerable:!0,writable:!0,value:function(e){$n(n,e)}}),Object.defineProperty(e,"insertBefore",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){$n(n,e,t)}})}return this.documentElement},Fn.prototype.createBody=function(e){this.body||Pn(this,new Rn(e));return this.body},Fn.prototype.createElement=function(e){return new Rn(e)},Fn.prototype.createComment=function(e){return new An(e)},Fn.prototype.destroy=function(){};var zn=s("style,class"),Vn=(s("input,textarea,option,select,progress"),s("contenteditable,draggable,spellcheck"),s("events,caret,typing,plaintext-only"),s("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),s("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"));var Un=Object.freeze({createElement:function(e){return new Rn(e)},createElementNS:function(e,t){return new Rn(e+":"+t)},createTextNode:function(){return new Rn("text")},createComment:function(e){return new An(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.type},setTextContent:function(){},setStyleScope:function(){}}),qn={create:function(e,t){Wn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Wn(e,!0),Wn(t))},destroy:function(e){Wn(e,!0)}};function Wn(e,t){var n=e.data.ref;if(I(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?b(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}s("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"),s("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 Hn=s("text,number,password,search,email,tel,url"),Gn=new se("",{},[]),Xn=["create","activate","update","remove","destroy"];function Yn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&I(e.data)===I(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=I(n=e.data)&&I(n=n.attrs)&&n.type,i=I(n=t.data)&&I(n=n.attrs)&&n.type;return r===i||Hn(r)&&Hn(i)}(e,t)||A(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&E(t.asyncFactory.error))}function Jn(e,t,n){var r,i,o={};for(r=t;r<=n;++r)I(i=e[r].key)&&(o[i]=r);return o}var Kn={create:Zn,update:Zn,destroy:function(e){Zn(e,Gn)}};function Zn(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,r,i,o=t===Gn,a=n===Gn,s=er(t.data.directives,t.context),c=er(n.data.directives,n.context),u=[],l=[];for(e in c)r=s[e],i=c[e],r?(i.oldValue=r.value,i.oldArg=r.arg,tr(i,"update",n,t),i.def&&i.def.componentUpdated&&l.push(i)):(tr(i,"bind",n,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var d=function(){for(var e=0;e<u.length;e++)tr(u[e],"inserted",n,t)};o?Xe(n,"insert",d):d()}l.length&&Xe(n,"postpatch",function(){for(var e=0;e<l.length;e++)tr(l[e],"componentUpdated",n,t)});if(!o)for(e in s)c[e]||tr(s[e],"unbind",t,t,a)}(e,t)}var Qn=Object.create(null);function er(e,t){var n,r,i,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=Qn),(o[(i=r,i.rawName||i.name+"."+Object.keys(i.modifiers||{}).join("."))]=r).def=Ie(t.$options,"directives",r.name);return o}function tr(t,n,r,e,i){var o=t.def&&t.def[n];if(o)try{o(r.elm,t,r,e,i)}catch(e){je(e,r.context,"directive "+t.name+" "+n+" hook")}}function nr(e,n){if(!E(e.data.wxsProps)||!E(n.data.wxsProps)){var r=e.$wxsWatches,t=Object.keys(n.data.wxsProps);if(r||t.length){r||(r={});var i=n.data.wxsProps;n.$wxsWatches={},Object.keys(i).forEach(function(e){var t=i[e];n.$wxsWatches[e]=r[e]||n.context.$watch(t,function(){this.$forceUpdate()},{deep:!0})}),Object.keys(r).forEach(function(e){n.$wxsWatches[e]||(r[e](),delete r[e])})}}}function rr(e,t){var n=t.data.attrs;if(!E(n)&&!E(n._i)){var r,i,o=t.elm;o.dataset=Object.assign(o.dataset||{},(r=n,i=Object.create(null),Object.keys(r).forEach(function(t){if(0===t.indexOf("data-")){var n=h(t.replace("data-",""));try{i[n]=JSON.parse(r[t])}catch(e){i[n]=r[t]}}}),i))}}var ir,or="__r",ar="__c";function sr(t,n,r){var i=ir;return function e(){null!==n.apply(null,arguments)&&ur(t,e,r,i)}}function cr(e,t){ir.addEventListener(e,t)}function ur(e,t,n,r){t&&(r||ir).removeEventListener(e,t._wrapper||t)}function lr(e,t){if(!E(e.data.on)||!E(t.data.on)){var n=t.data.on||{},r=e.data.on||{};(ir=t.elm)._$vd=t.context._$vd;for(var i=t.context,o=(t.data.attrs||{})._i,a=t.parent;a&&a.componentInstance;){var s=a.data.attrs&&a.data.attrs._i;I(s)&&(o="r-"+s),a=a.parent}ir.setAttribute("nid",String(o)),ir.setAttribute("cid",i._$id),function(e){I(e[or])&&(e.input=[].concat(e[or],e.input||[]),delete e[or]);I(e[ar])&&(e.change=[].concat(e[ar],e.change||[]),delete e[ar])}(n),Ge(n,r,cr,ur,sr,t.context),ir=void 0}}var dr=function(e){var r,t,g={},n=e.modules,m=e.nodeOps;for(r=0;r<Xn.length;++r)for(g[Xn[r]]=[],t=0;t<n.length;++t)I(n[t][Xn[r]])&&g[Xn[r]].push(n[t][Xn[r]]);function o(e){var t=m.parentNode(e);I(t)&&m.removeChild(t,e)}function y(e,t,n,r,i,o,a){if(I(e.elm)&&I(o)&&(e=o[a]=de(e)),e.isRootInsert=!i,!function(e,t,n,r){var i=e.data;if(I(i)){var o=I(e.componentInstance)&&i.keepAlive;if(I(i=i.hook)&&I(i=i.init)&&i(e,!1),I(e.componentInstance))return p(e,t),l(n,e.elm,r),A(o)&&function(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,I(i=o.data)&&I(i=i.transition)){for(i=0;i<g.activate.length;++i)g.activate[i](Gn,o);t.push(o);break}l(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var s=e.data,c=e.children,u=e.tag;I(u)?(e.elm=e.ns?m.createElementNS(e.ns,u):m.createElement(u,e),d(e),h(e,c,t),I(s)&&v(e,t)):A(e.isComment)?e.elm=m.createComment(e.text):e.elm=m.createTextNode(e.text),l(n,e.elm,r)}}function p(e,t){I(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(v(e,t),d(e)):(Wn(e),t.push(e))}function l(e,t,n){I(e)&&(I(n)?m.parentNode(n)===e&&m.insertBefore(e,t,n):m.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)y(t[r],n,e.elm,null,!0,t,r);else c(e.text)&&m.appendChild(e.elm,m.createTextNode(String(e.text)))}function _(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return I(e.tag)}function v(e,t){for(var n=0;n<g.create.length;++n)g.create[n](Gn,e);I(r=e.data.hook)&&(I(r.create)&&r.create(Gn,e),I(r.insert)&&t.push(e))}function d(e){var t;if(I(t=e.fnScopeId))m.setStyleScope(e.elm,t);else for(var n=e;n;)I(t=n.context)&&I(t=t.$options._scopeId)&&m.setStyleScope(e.elm,t),n=n.parent;I(t=Nt)&&t!==e.context&&t!==e.fnContext&&I(t=t.$options._scopeId)&&m.setStyleScope(e.elm,t)}function b(e,t,n,r,i,o){for(;r<=i;++r)y(n[r],o,e,t,!1,n,r)}function w(e){var t,n,r=e.data;if(I(r))for(I(t=r.hook)&&I(t=t.destroy)&&t(e),t=0;t<g.destroy.length;++t)g.destroy[t](e);if(I(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function k(e,t,n){for(;t<=n;++t){var r=e[t];I(r)&&(I(r.tag)?(a(r),w(r)):o(r.elm))}}function a(e,t){if(I(t)||I(e.data)){var n,r,i=g.remove.length+1;if(I(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,i),I(n=e.componentInstance)&&I(n=n._vnode)&&I(n.data))a(n,t);else if(I(r=e.children))for(n=0;n<r.length;n++)r[n].tag&&a(r[n]);for(n=0;n<g.remove.length;++n)g.remove[n](e,t);I(n=e.data.hook)&&I(n=n.remove)?n(e,t):t()}else o(e.elm)}function S(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(I(o)&&Yn(e,o))return i}}function x(e,t,n,r,i,o){if(e!==t){I(t.elm)&&I(r)&&(t=r[i]=de(t));var a=t.elm=e.elm;if(A(e.isAsyncPlaceholder))I(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(A(t.isStatic)&&A(e.isStatic)&&t.key===e.key&&(A(t.isCloned)||A(t.isOnce)))t.componentInstance=e.componentInstance;else{var s,c=t.data;I(c)&&I(s=c.hook)&&I(s=s.prepatch)&&s(e,t);var u=e.children,l=t.children;if(I(c)&&_(t)){for(s=0;s<g.update.length;++s)g.update[s](e,t);I(s=c.hook)&&I(s=s.update)&&s(e,t)}E(t.text)?I(u)&&I(l)?u!==l&&function(e,t,n,r,i){for(var o,a,s,c=0,u=0,l=t.length-1,d=t[0],f=t[l],p=n.length-1,h=n[0],v=n[p],g=!i;c<=l&&u<=p;)E(d)?d=t[++c]:E(f)?f=t[--l]:Yn(d,h)?(x(d,h,r,n,u),d=t[++c],h=n[++u]):Yn(f,v)?(x(f,v,r,n,p),f=t[--l],v=n[--p]):Yn(d,v)?(x(d,v,r,n,p),g&&m.insertBefore(e,d.elm,m.nextSibling(f.elm)),d=t[++c],v=n[--p]):(Yn(f,h)?(x(f,h,r,n,u),g&&m.insertBefore(e,f.elm,d.elm),f=t[--l]):(E(o)&&(o=Jn(t,c,l)),E(a=I(h.key)?o[h.key]:S(h,t,c,l))?y(h,r,e,d.elm,!1,n,u):Yn(s=t[a],h)?(x(s,h,r,n,u),t[a]=void 0,g&&m.insertBefore(e,s.elm,d.elm)):y(h,r,e,d.elm,!1,n,u)),h=n[++u]);l<c?b(e,E(n[p+1])?null:n[p+1].elm,n,u,p,r):p<u&&k(t,c,l)}(a,u,l,n,o):I(l)?(I(e.text)&&m.setTextContent(a,""),b(a,null,l,0,l.length-1,n)):I(u)?k(u,0,u.length-1):I(e.text)&&m.setTextContent(a,""):e.text!==t.text&&m.setTextContent(a,t.text),I(c)&&I(s=c.hook)&&I(s=s.postpatch)&&s(e,t)}}}function C(e,t,n){if(A(n)&&I(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var T=s("attrs,class,staticClass,staticStyle,key");function O(e,t,n,r){var i,o=t.tag,a=t.data,s=t.children;if(r=r||a&&a.pre,t.elm=e,A(t.isComment)&&I(t.asyncFactory))return t.isAsyncPlaceholder=!0;if(I(a)&&(I(i=a.hook)&&I(i=i.init)&&i(t,!0),I(i=t.componentInstance)))return p(t,n),!0;if(I(o)){if(I(s))if(e.hasChildNodes())if(I(i=a)&&I(i=i.domProps)&&I(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,u=e.firstChild,l=0;l<s.length;l++){if(!u||!O(u,s[l],n,r)){c=!1;break}u=u.nextSibling}if(!c||u)return!1}else h(t,s,n);if(I(a)){var d=!1;for(var f in a)if(!T(f)){d=!0,v(t,n);break}!d&&a.class&&qe(a.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r){if(!E(t)){var i,o=!1,a=[];if(E(e))o=!0,y(t,a);else{var s=I(e.nodeType);if(!s&&Yn(e,t))x(e,t,a,null,null,r);else{if(s){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),n=!0),A(n)&&O(e,t,a))return C(t,a,!0),e;i=e,e=new se(m.tagName(i).toLowerCase(),{},[],void 0,i)}var c=e.elm,u=m.parentNode(c);if(y(t,a,c._leaveCb?null:u,m.nextSibling(c)),I(t.parent))for(var l=t.parent,d=_(t);l;){for(var f=0;f<g.destroy.length;++f)g.destroy[f](l);if(l.elm=t.elm,d){for(var p=0;p<g.create.length;++p)g.create[p](Gn,l);var h=l.data.hook.insert;if(h.merged)for(var v=1;v<h.fns.length;v++)h.fns[v]()}else Wn(l);l=l.parent}I(u)?k([e],0,0):I(e.tag)&&w(e)}}return C(t,a,o),t.elm}I(e)&&w(e)}}({nodeOps:Un,modules:[{create:nr,update:nr},{create:rr,update:rr},{create:lr,update:lr}].concat([qn,Kn])}),fr={model:{},show:{}};function pr(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)I(t=pr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):y(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var hr=f(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n});function vr(e){return Array.isArray(e)?C(e):"string"==typeof e?hr(e):e}function gr(e,t){oe();var n,r=this.$options[e],i=e+" hook";if(r)for(var o=0,a=r.length;o<a;o++)n=Be(r[o],this,t?[t]:null,this,i);return this._hasHookEvent&&this.$emit("hook:"+e,t),ae(),n}var mr={install:function(e){e.prototype._$queue=zt,e.prototype.__call_hook=gr,e.prototype._$stringifyClass=pr,e.prototype._$normalizeStyleBinding=vr}};gn.config.mustUseProp=function(){return!1},gn.config.isReservedTag=Vn,gn.config.isReservedAttr=zn,gn.config.getTagNamespace=function(){},gn.config.isUnknownElement=function(){return!1},x(gn.options.directives,fr),x(gn.options.components,{}),gn.prototype.__patch__=dr,gn.prototype.$mount=function(e,t){if("page"===this.$options.mpType){var n=new Fn(this.$options.pageId,this.$options.pagePath);(e=n.createComment("root")).hasAttribute=e.removeAttribute=function(){},n.documentElement.appendChild(e)}return i=e,o=t,(r=this).$el=i,r.$options.render||(r.$options.render=ue),Ft(r,"beforeMount"),new Kt(r,function(){r._update(r._render(),o)},T,{before:function(){r._isMounted&&!r._isDestroyed&&Ft(r,"beforeUpdate")}},!0),o=!1,null==r.$vnode&&(r._isMounted=!0,r._$vd?(Ft(r,"onServiceCreated"),Ft(r,"onServiceAttached"),r._$vd.addMountedVm(r)):Ft(r,"mounted")),r;var r,i,o},gn.use(mr),e.Vue=gn}var isFirst=!0,frameworks,runtimeConfig;function init$2(e){if(e.__uniConfig){var t=e.weex;isFirst&&(global.WXEnvironment.deviceWidth=t.config.env.deviceWidth);var n="weex"===e.__uniConfig.nvueCompiler;t.document.__$automator__=!!e.__uniConfig.automator,t.document.__$compiler__=n?"weex":"uni-app",t.document.__$styleCompiler__="weex"===e.__uniConfig.nvueStyleCompiler?"weex":"uni-app";var r="native"!==e.__uniConfig.renderer&&-1!==t.config.bundleUrl.indexOf("app-service.js");if(r){var i={};vueFactory(i,e.SharedObject),e.Vue=i.Vue}if(Object.assign(e,createInstanceContext$1(e)),r&&e.Vue.use(e.__vuePlugin),delete e.__vuePlugin,!n){var o=e.plus,a=global.WXEnvironment,s=a.scale,c=a.deviceWidth,u=a.platform,l=Math.ceil(c/s),d=t.requireModule("meta");if("1"===t.config.plus_web_id){var f=t.requireModule("plus");f.setDefaultFontSize&&f.setDefaultFontSize(Math.round(o.screen.resolutionWidth/20))}"ios"===u.toLowerCase()&&d.setViewport({width:l,roundOffDeviation:!1})}r||e.Vue.use(uniApp,e)}}function getJSFMVersion(){return"0.29.6"}function createServices(i,o,a){var s=Object.create(null);return s.service=Object.create(null),services.forEach(function(e){var t=e.name,n=e.options.create;if(n)try{var r=n(i,o,a);Object.assign(s.service,r),Object.assign(s,r.instance)}catch(e){console.error("[JS Runtime] Failed to create service "+t+".")}}),delete s.service.instance,Object.freeze(s.service),s}var instanceTypeMap={};function getFrameworkType(e){return instanceTypeMap[e]}var SharedObject={uid:0};function createInstanceContext(e,t,n){void 0===t&&(t={});var r=new WeexInstance(e,t,n);instanceTypeMap[e]="Vue";var i=runtimeConfig.frameworks.Vue;if(!i)return new Error('[JS Framework] Invalid bundle type "Vue".');var o=createServices(e,{weex:r,config:t,created:Date.now(),framework:"Vue",bundleType:"Vue"},runtimeConfig);Object.freeze(o);var a=Object.create(null);Object.assign(a,o,{SharedObject:SharedObject,weex:r,getJSFMVersion:getJSFMVersion,requireModule:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return r.requireModule.apply(r,e)},__WEEX_CALL_JAVASCRIPT__:receiveTasks,services:o}),Object.freeze(a);var s=Object.assign({},a);return"function"==typeof i.createInstanceContext&&Object.assign(s,i.createInstanceContext(e,a,n)),init$2(s),Object.freeze(s),s}function createInstance(e,t,n,r){if(instanceTypeMap[e])return new Error('The instance id "'+e+'" has already been used!');var i="Vue";instanceTypeMap[e]=i,(n=JSON.parse(JSON.stringify(n||{}))).env=JSON.parse(JSON.stringify(global.WXEnvironment||{})),n.bundleType=i;var o=runtimeConfig.frameworks.Vue;if(!o)return new Error('[JS Framework] Invalid bundle type "Vue".');var a=createInstanceContext(e,n,r);if("function"==typeof o.createInstance)return o.createInstance(e,t,n,r,a);runInContext(t,a)}function runInContext(e,t){var n=[],r=[];for(var i in t)n.push(i),r.push(t[i]);var o="\n (function (global) {\n "+e+"\n })(Object.create(this))\n ";return(new(Function.prototype.bind.apply(Function,[null].concat(n,[o])))).apply(void 0,r)}function getRoot(e){var t=getDoc(e);try{if(t&&t.body)return t.body.toJSON()}catch(e){return void console.error("[JS Framework] Failed to get the virtual dom tree.")}}var methods={createInstance:createInstance,createInstanceContext:createInstanceContext,getRoot:getRoot,getJSFMVersion:getJSFMVersion,getDocument:getDoc,registerService:register,unregisterService:unregister,callJS:function(e,t){var n=frameworks[getFrameworkType(e)];return n&&"function"==typeof n.receiveTasks?n.receiveTasks(e,t):receiveTasks(e,t)}};function genInstance(s){methods[s]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=e[0],i=getFrameworkType(r);if(i&&frameworks[i]){var o=(n=frameworks[i])[s].apply(n,e),a={framework:i};return"refreshInstance"===s?services.forEach(function(e){var t=e.options.refresh;t&&t(r,{info:a,runtime:runtimeConfig})}):"destroyInstance"===s&&(services.forEach(function(e){var t=e.options.destroy;t&&t(r,{info:a,runtime:runtimeConfig})}),delete instanceTypeMap[r]),o}}}function adaptMethod(i,o){methods[i]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n in"function"==typeof o&&o.apply(void 0,e),runtimeConfig.frameworks){var r=runtimeConfig.frameworks[n];r&&r[i]&&r[i].apply(r,e)}}}function init$$1(e){for(var t in frameworks=(runtimeConfig=e||{}).frameworks||{},init$1(),frameworks){var n=frameworks[t];if("function"==typeof n.init)try{n.init(e)}catch(e){}}return adaptMethod("registerComponents",registerComponents),adaptMethod("registerModules",registerModules),adaptMethod("registerMethods"),["destroyInstance","refreshInstance"].forEach(genInstance),methods}var config={Document:Document,Element:Element,Comment:Comment,Listener:Listener,TaskCenter:TaskCenter,sendTasks:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return"function"==typeof callNative?callNative.apply(void 0,e):(global.callNative||function(){}).apply(void 0,e)}};function freezePrototype(){Object.freeze(config.Comment),Object.freeze(config.Listener),Object.freeze(config.Document.prototype),Object.freeze(config.Comment.prototype),Object.freeze(config.Listener.prototype)}Document.handler=config.sendTasks;var runtime={service:{register:register,unregister:unregister,has:has},freezePrototype:freezePrototype,init:init$$1,config:config};function MessageEvent(e,t){void 0===t&&(t={}),this.type=e||"message",this.data=t.data||null,this.origin=t.origin||"",this.source=t.source||null,this.ports=t.ports||[],this.target=null,this.timeStamp=Date.now()}var channels={},instances={};function BroadcastChannel$1(){}BroadcastChannel$1.prototype.postMessage=function(e){if(this._closed)throw new Error('BroadcastChannel "'+this.name+'" is closed.');var t=channels[this.name];if(t&&t.length)for(var n=0;n<t.length;++n){var r=t[n];r._closed||r===this||"function"==typeof r.onmessage&&r.onmessage(new MessageEvent("message",{data:e}))}},BroadcastChannel$1.prototype.close=function(){var t=this;if(!this._closed&&(this._closed=!0,channels[this.name])){var e=channels[this.name].filter(function(e){return e!==t});e.length?channels[this.name]=e:delete channels[this.name]}};var BroadcastChannel$2={create:function(t,e,n){if(instances[t]=[],"function"==typeof global.BroadcastChannel)return{};var r={BroadcastChannel:function(e){Object.defineProperty(this,"name",{configurable:!1,enumerable:!0,writable:!1,value:String(e)}),this._closed=!1,this.onmessage=null,channels[this.name]||(channels[this.name]=[]),channels[this.name].push(this),instances[t].push(this)}};return r.BroadcastChannel.prototype=BroadcastChannel$1.prototype,{instance:r}},destroy:function(e,t){instances[e].forEach(function(e){return e.close()}),delete instances[e]}},services$1={BroadcastChannel:BroadcastChannel$2},XJb,YJb,$Jb,_Jb;function setup(e){var t=runtime.init,n=runtime.config;n.frameworks=e;var r=subversion.native,i=subversion.transformer;for(var o in services$1)runtime.service.register(o,services$1[o]);runtime.freezePrototype(),global.frameworkVersion=r,global.transformerVersion=i;var a=t(n),s=function(r){global[r]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=a[r].apply(a,e);return n instanceof Error&&console.error(n.toString()),n}};for(var c in a)s(c)}function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}Array.from||(Array.from=(XJb=Object.prototype.toString,YJb=function(e){return"function"==typeof e||"[object Function]"===XJb.call(e)},$Jb=Math.pow(2,53)-1,_Jb=function(e){var t,n=(t=Number(e),isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t);return Math.min(Math.max(n,0),$Jb)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=1<arguments.length?arguments[1]:void 0;if(void 0!==r){if(!YJb(r))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(n=arguments[2])}for(var i,o=_Jb(t.length),a=YJb(this)?Object(new this(o)):new Array(o),s=0;s<o;)i=t[s],a[s]=r?void 0===n?r(i,s):r.call(n,i,s):i,s+=1;return a.length=o,a}));var _global=createCommonjsModule(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),_core=createCommonjsModule(function(e){var t=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=t)}),_core_1=_core.version,_isObject=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_anObject=function(e){if(!_isObject(e))throw TypeError(e+" is not an object!");return e},_fails=function(e){try{return!!e()}catch(e){return!0}},_descriptors=!_fails(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),document$1=_global.document,is=_isObject(document$1)&&_isObject(document$1.createElement),_domCreate=function(e){return is?document$1.createElement(e):{}},_ie8DomDefine=!_descriptors&&!_fails(function(){return 7!=Object.defineProperty(_domCreate("div"),"a",{get:function(){return 7}}).a}),_toPrimitive=function(e,t){if(!_isObject(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!_isObject(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!_isObject(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!_isObject(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},dP=Object.defineProperty,f=_descriptors?Object.defineProperty:function(e,t,n){if(_anObject(e),t=_toPrimitive(t,!0),_anObject(n),_ie8DomDefine)try{return dP(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e},_objectDp={f:f},_propertyDesc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_hide=_descriptors?function(e,t,n){return _objectDp.f(e,t,_propertyDesc(1,n))}:function(e,t,n){return e[t]=n,e},hasOwnProperty={}.hasOwnProperty,_has=function(e,t){return hasOwnProperty.call(e,t)},id=0,px=Math.random(),_uid=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++id+px).toString(36))},_redefine=createCommonjsModule(function(e){var o=_uid("src"),t="toString",n=Function[t],a=(""+n).split(t);_core.inspectSource=function(e){return n.call(e)},(e.exports=function(e,t,n,r){var i="function"==typeof n;i&&(_has(n,"name")||_hide(n,"name",t)),e[t]!==n&&(i&&(_has(n,o)||_hide(n,o,e[t]?""+e[t]:a.join(String(t)))),e===_global?e[t]=n:r?e[t]?e[t]=n:_hide(e,t,n):(delete e[t],_hide(e,t,n)))})(Function.prototype,t,function(){return"function"==typeof this&&this[o]||n.call(this)})}),_aFunction=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_ctx=function(r,i,e){if(_aFunction(r),void 0===i)return r;switch(e){case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}},PROTOTYPE="prototype",$export=function(e,t,n){var r,i,o,a,s=e&$export.F,c=e&$export.G,u=e&$export.S,l=e&$export.P,d=e&$export.B,f=c?_global:u?_global[t]||(_global[t]={}):(_global[t]||{})[PROTOTYPE],p=c?_core:_core[t]||(_core[t]={}),h=p[PROTOTYPE]||(p[PROTOTYPE]={});for(r in c&&(n=t),n)o=((i=!s&&f&&void 0!==f[r])?f:n)[r],a=d&&i?_ctx(o,_global):l&&"function"==typeof o?_ctx(Function.call,o):o,f&&_redefine(f,r,o,e&$export.U),p[r]!=o&&_hide(p,r,a),l&&h[r]!=o&&(h[r]=o)};_global.core=_core,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var _export=$export,toString={}.toString,_cof=function(e){return toString.call(e).slice(8,-1)},_iobject=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==_cof(e)?e.split(""):Object(e)},_defined=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},_toIobject=function(e){return _iobject(_defined(e))},ceil=Math.ceil,floor=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(0<e?floor:ceil)(e)},min=Math.min,_toLength=function(e){return 0<e?min(_toInteger(e),9007199254740991):0},max=Math.max,min$1=Math.min,_toAbsoluteIndex=function(e,t){return(e=_toInteger(e))<0?max(e+t,0):min$1(e,t)},_arrayIncludes=function(s){return function(e,t,n){var r,i=_toIobject(e),o=_toLength(i.length),a=_toAbsoluteIndex(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},_library=!1,_shared=createCommonjsModule(function(e){var t="__core-js_shared__",n=_global[t]||(_global[t]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:_core.version,mode:_library?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),shared$2=_shared("keys"),_sharedKey=function(e){return shared$2[e]||(shared$2[e]=_uid(e))},arrayIndexOf=_arrayIncludes(!1),IE_PROTO=_sharedKey("IE_PROTO"),_objectKeysInternal=function(e,t){var n,r=_toIobject(e),i=0,o=[];for(n in r)n!=IE_PROTO&&_has(r,n)&&o.push(n);for(;t.length>i;)_has(r,n=t[i++])&&(~arrayIndexOf(o,n)||o.push(n));return o},_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),_objectKeys=Object.keys||function(e){return _objectKeysInternal(e,_enumBugKeys)},f$1=Object.getOwnPropertySymbols,_objectGops={f:f$1},f$2={}.propertyIsEnumerable,_objectPie={f:f$2},_toObject=function(e){return Object(_defined(e))},$assign=Object.assign,_objectAssign=!$assign||_fails(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n]||Object.keys($assign({},t)).join("")!=r})?function(e,t){for(var n=arguments,r=_toObject(e),i=arguments.length,o=1,a=_objectGops.f,s=_objectPie.f;o<i;)for(var c,u=_iobject(n[o++]),l=a?_objectKeys(u).concat(a(u)):_objectKeys(u),d=l.length,f=0;f<d;)s.call(u,c=l[f++])&&(r[c]=u[c]);return r}:$assign;_export(_export.S+_export.F,"Object",{assign:_objectAssign});var assign=_core.Object.assign;Object.setPrototypeOf||(Object.setPrototypeOf=function(t,n){var r;function i(e,t){return r.call(e,t),e}try{(r=t.getOwnPropertyDescriptor(t.prototype,n).set).call({},null)}catch(e){if(t.prototype!=={}[n])return;r=function(e){this[n]=e},i.polyfill=i(i({},null),t.prototype)instanceof t}return i}(Object,"__proto__"));var WXEnvironment$1=global.WXEnvironment;void 0===WXEnvironment$1||"iOS"!==WXEnvironment$1.platform||WXEnvironment$1.__enable_native_promise__||(global.Promise=void 0);var _wks=createCommonjsModule(function(e){var t=_shared("wks"),n=_global.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:_uid)("Symbol."+e))}).store=t}),TAG=_wks("toStringTag"),ARG="Arguments"==_cof(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},_classof=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=tryGet(t=Object(e),TAG))?n:ARG?_cof(t):"Object"==(r=_cof(t))&&"function"==typeof t.callee?"Arguments":r},test={};test[_wks("toStringTag")]="z",test+""!="[object z]"&&_redefine(Object.prototype,"toString",function(){return"[object "+_classof(this)+"]"},!0);var _stringAt=function(s){return function(e,t){var n,r,i=String(_defined(e)),o=_toInteger(t),a=i.length;return o<0||a<=o?s?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?s?i.charAt(o):n:s?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}},_iterators={},_objectDps=_descriptors?Object.defineProperties:function(e,t){_anObject(e);for(var n,r=_objectKeys(t),i=r.length,o=0;o<i;)_objectDp.f(e,n=r[o++],t[n]);return e},document$2=_global.document,_html=document$2&&document$2.documentElement,IE_PROTO$1=_sharedKey("IE_PROTO"),Empty=function(){},PROTOTYPE$1="prototype",createDict=function(){var e,t=_domCreate("iframe"),n=_enumBugKeys.length;for(t.style.display="none",_html.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),createDict=e.F;n--;)delete createDict[PROTOTYPE$1][_enumBugKeys[n]];return createDict()},_objectCreate=Object.create||function(e,t){var n;return null!==e?(Empty[PROTOTYPE$1]=_anObject(e),n=new Empty,Empty[PROTOTYPE$1]=null,n[IE_PROTO$1]=e):n=createDict(),void 0===t?n:_objectDps(n,t)},def=_objectDp.f,TAG$1=_wks("toStringTag"),_setToStringTag=function(e,t,n){e&&!_has(e=n?e:e.prototype,TAG$1)&&def(e,TAG$1,{configurable:!0,value:t})},IteratorPrototype={};_hide(IteratorPrototype,_wks("iterator"),function(){return this});var _iterCreate=function(e,t,n){e.prototype=_objectCreate(IteratorPrototype,{next:_propertyDesc(1,n)}),_setToStringTag(e,t+" Iterator")},IE_PROTO$2=_sharedKey("IE_PROTO"),ObjectProto=Object.prototype,_objectGpo=Object.getPrototypeOf||function(e){return e=_toObject(e),_has(e,IE_PROTO$2)?e[IE_PROTO$2]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ObjectProto:null},ITERATOR=_wks("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this},_iterDefine=function(e,t,n,r,i,o,a){_iterCreate(n,t,r);var s,c,u,l=function(e){if(!BUGGY&&e in h)return h[e];switch(e){case KEYS:case VALUES:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",f=i==VALUES,p=!1,h=e.prototype,v=h[ITERATOR]||h[FF_ITERATOR]||i&&h[i],g=v||l(i),m=i?f?l("entries"):g:void 0,y="Array"==t&&h.entries||v;if(y&&(u=_objectGpo(y.call(new e)))!==Object.prototype&&u.next&&(_setToStringTag(u,d,!0),_library||"function"==typeof u[ITERATOR]||_hide(u,ITERATOR,returnThis)),f&&v&&v.name!==VALUES&&(p=!0,g=function(){return v.call(this)}),_library&&!a||!BUGGY&&!p&&h[ITERATOR]||_hide(h,ITERATOR,g),_iterators[t]=g,_iterators[d]=returnThis,i)if(s={values:f?g:l(VALUES),keys:o?g:l(KEYS),entries:m},a)for(c in s)c in h||_redefine(h,c,s[c]);else _export(_export.P+_export.F*(BUGGY||p),t,s);return s},$at=_stringAt(!0);_iterDefine(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=$at(t,n),this._i+=e.length,{value:e,done:!1})});var UNSCOPABLES=_wks("unscopables"),ArrayProto=Array.prototype;null==ArrayProto[UNSCOPABLES]&&_hide(ArrayProto,UNSCOPABLES,{});var _addToUnscopables=function(e){ArrayProto[UNSCOPABLES][e]=!0},_iterStep=function(e,t){return{value:t,done:!!e}},es6_array_iterator=_iterDefine(Array,"Array",function(e,t){this._t=_toIobject(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,_iterStep(1)):_iterStep(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");_iterators.Arguments=_iterators.Array,_addToUnscopables("keys"),_addToUnscopables("values"),_addToUnscopables("entries");for(var ITERATOR$1=_wks("iterator"),TO_STRING_TAG=_wks("toStringTag"),ArrayValues=_iterators.Array,DOMIterables={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},collections=_objectKeys(DOMIterables),i=0;i<collections.length;i++){var NAME=collections[i],explicit=DOMIterables[NAME],Collection=_global[NAME],proto=Collection&&Collection.prototype,key;if(proto&&(proto[ITERATOR$1]||_hide(proto,ITERATOR$1,ArrayValues),proto[TO_STRING_TAG]||_hide(proto,TO_STRING_TAG,NAME),_iterators[NAME]=ArrayValues,explicit))for(key in es6_array_iterator)proto[key]||_redefine(proto,key,es6_array_iterator[key],!0)}var _anInstance=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e},_iterCall=function(t,e,n,r){try{return r?e(_anObject(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&_anObject(i.call(t)),e}},ITERATOR$2=_wks("iterator"),ArrayProto$1=Array.prototype,_isArrayIter=function(e){return void 0!==e&&(_iterators.Array===e||ArrayProto$1[ITERATOR$2]===e)},ITERATOR$3=_wks("iterator"),core_getIteratorMethod=_core.getIteratorMethod=function(e){if(null!=e)return e[ITERATOR$3]||e["@@iterator"]||_iterators[_classof(e)]},_forOf=createCommonjsModule(function(e){var f={},p={},t=e.exports=function(e,t,n,r,i){var o,a,s,c,u=i?function(){return e}:core_getIteratorMethod(e),l=_ctx(n,r,t?2:1),d=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(_isArrayIter(u)){for(o=_toLength(e.length);d<o;d++)if((c=t?l(_anObject(a=e[d])[0],a[1]):l(e[d]))===f||c===p)return c}else for(s=u.call(e);!(a=s.next()).done;)if((c=_iterCall(s,l,a.value,t))===f||c===p)return c};t.BREAK=f,t.RETURN=p}),SPECIES=_wks("species"),_speciesConstructor=function(e,t){var n,r=_anObject(e).constructor;return void 0===r||null==(n=_anObject(r)[SPECIES])?t:_aFunction(n)},_invoke=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)},process$2=_global.process,setTask=_global.setImmediate,clearTask=_global.clearImmediate,MessageChannel=_global.MessageChannel,Dispatch=_global.Dispatch,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",defer,channel$1,port,run=function(){var e=+this;if(queue.hasOwnProperty(e)){var t=queue[e];delete queue[e],t()}},listener=function(e){run.call(e.data)};setTask&&clearTask||(setTask=function(e){for(var t=arguments,n=[],r=1;arguments.length>r;)n.push(t[r++]);return queue[++counter]=function(){_invoke("function"==typeof e?e:Function(e),n)},defer(counter),counter},clearTask=function(e){delete queue[e]},"process"==_cof(process$2)?defer=function(e){process$2.nextTick(_ctx(run,e,1))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(_ctx(run,e,1))}:MessageChannel?(channel$1=new MessageChannel,port=channel$1.port2,channel$1.port1.onmessage=listener,defer=_ctx(port.postMessage,port,1)):_global.addEventListener&&"function"==typeof postMessage&&!_global.importScripts?(defer=function(e){_global.postMessage(e+"","*")},_global.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in _domCreate("script")?function(e){_html.appendChild(_domCreate("script"))[ONREADYSTATECHANGE]=function(){_html.removeChild(this),run.call(e)}}:function(e){setTimeout(_ctx(run,e,1),0)});var _task={set:setTask,clear:clearTask},macrotask=_task.set,Observer=_global.MutationObserver||_global.WebKitMutationObserver,process$3=_global.process,Promise$1=_global.Promise,isNode$1="process"==_cof(process$3),_microtask=function(){var n,r,i,e=function(){var e,t;for(isNode$1&&(e=process$3.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?i():r=void 0,e}}r=void 0,e&&e.enter()};if(isNode$1)i=function(){process$3.nextTick(e)};else if(!Observer||_global.navigator&&_global.navigator.standalone)if(Promise$1&&Promise$1.resolve){var t=Promise$1.resolve(void 0);i=function(){t.then(e)}}else i=function(){macrotask.call(_global,e)};else{var o=!0,a=document.createTextNode("");new Observer(e).observe(a,{characterData:!0}),i=function(){a.data=o=!o}}return function(e){var t={fn:e,next:void 0};r&&(r.next=t),n||(n=t,i()),r=t}};function PromiseCapability(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=_aFunction(n),this.reject=_aFunction(r)}var f$3=function(e){return new PromiseCapability(e)},_newPromiseCapability={f:f$3},_perform=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},navigator$1=_global.navigator,_userAgent=navigator$1&&navigator$1.userAgent||"",_promiseResolve=function(e,t){if(_anObject(e),_isObject(t)&&t.constructor===e)return t;var n=_newPromiseCapability.f(e);return(0,n.resolve)(t),n.promise},_redefineAll=function(e,t,n){for(var r in t)_redefine(e,r,t[r],n);return e},SPECIES$1=_wks("species"),_setSpecies=function(e){var t=_global[e];_descriptors&&t&&!t[SPECIES$1]&&_objectDp.f(t,SPECIES$1,{configurable:!0,get:function(){return this}})},ITERATOR$4=_wks("iterator"),SAFE_CLOSING=!1;try{var riter=[7][ITERATOR$4]();riter.return=function(){SAFE_CLOSING=!0}}catch(e){}var _iterDetect=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var r=[7],i=r[ITERATOR$4]();i.next=function(){return{done:n=!0}},r[ITERATOR$4]=function(){return i},e(r)}catch(e){}return n},task=_task.set,microtask=_microtask(),PROMISE="Promise",TypeError$1=_global.TypeError,process$1=_global.process,versions=process$1&&process$1.versions,v8=versions&&versions.v8||"",$Promise=_global[PROMISE],isNode="process"==_classof(process$1),empty=function(){},Internal,newGenericPromiseCapability,OwnPromiseCapability,Wrapper,newPromiseCapability=newGenericPromiseCapability=_newPromiseCapability.f,USE_NATIVE=!!function(){try{var e=$Promise.resolve(1),t=(e.constructor={})[_wks("species")]=function(e){e(empty,empty)};return(isNode||"function"==typeof PromiseRejectionEvent)&&e.then(empty)instanceof t&&0!==v8.indexOf("6.6")&&-1===_userAgent.indexOf("Chrome/66")}catch(e){}}(),isThenable=function(e){var t;return!(!_isObject(e)||"function"!=typeof(t=e.then))&&t},notify=function(l,n){if(!l._n){l._n=!0;var r=l._c;microtask(function(){for(var c=l._v,u=1==l._s,e=0,t=function(e){var t,n,r,i=u?e.ok:e.fail,o=e.resolve,a=e.reject,s=e.domain;try{i?(u||(2==l._h&&onHandleUnhandled(l),l._h=1),!0===i?t=c:(s&&s.enter(),t=i(c),s&&(s.exit(),r=!0)),t===e.promise?a(TypeError$1("Promise-chain cycle")):(n=isThenable(t))?n.call(t,o,a):o(t)):a(c)}catch(e){s&&!r&&s.exit(),a(e)}};r.length>e;)t(r[e++]);l._c=[],l._n=!1,n&&!l._h&&onUnhandled(l)})}},onUnhandled=function(o){task.call(_global,function(){var e,t,n,r=o._v,i=isUnhandled(o);if(i&&(e=_perform(function(){isNode?process$1.emit("unhandledRejection",r,o):(t=_global.onunhandledrejection)?t({promise:o,reason:r}):(n=_global.console)&&n.error&&n.error("Unhandled promise rejection",r)}),o._h=isNode||isUnhandled(o)?2:1),o._a=void 0,i&&e.e)throw e.v})},isUnhandled=function(e){return 1!==e._h&&0===(e._a||e._c).length},onHandleUnhandled=function(t){task.call(_global,function(){var e;isNode?process$1.emit("rejectionHandled",t):(e=_global.onrejectionhandled)&&e({promise:t,reason:t._v})})},$reject=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),notify(t,!0))},$resolve=function(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw TypeError$1("Promise can't be resolved itself");(n=isThenable(e))?microtask(function(){var t={_w:r,_d:!1};try{n.call(e,_ctx($resolve,t,1),_ctx($reject,t,1))}catch(e){$reject.call(t,e)}}):(r._v=e,r._s=1,notify(r,!1))}catch(e){$reject.call({_w:r,_d:!1},e)}}};USE_NATIVE||($Promise=function(e){_anInstance(this,$Promise,PROMISE,"_h"),_aFunction(e),Internal.call(this);try{e(_ctx($resolve,this,1),_ctx($reject,this,1))}catch(e){$reject.call(this,e)}},Internal=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Internal.prototype=_redefineAll($Promise.prototype,{then:function(e,t){var n=newPromiseCapability(_speciesConstructor(this,$Promise));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=isNode?process$1.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&¬ify(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),OwnPromiseCapability=function(){var e=new Internal;this.promise=e,this.resolve=_ctx($resolve,e,1),this.reject=_ctx($reject,e,1)},_newPromiseCapability.f=newPromiseCapability=function(e){return e===$Promise||e===Wrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),_export(_export.G+_export.W+_export.F*!USE_NATIVE,{Promise:$Promise}),_setToStringTag($Promise,PROMISE),_setSpecies(PROMISE),Wrapper=_core[PROMISE],_export(_export.S+_export.F*!USE_NATIVE,PROMISE,{reject:function(e){var t=newPromiseCapability(this);return(0,t.reject)(e),t.promise}}),_export(_export.S+_export.F*(_library||!USE_NATIVE),PROMISE,{resolve:function(e){return _promiseResolve(_library&&this===Wrapper?$Promise:this,e)}}),_export(_export.S+_export.F*!(USE_NATIVE&&_iterDetect(function(e){$Promise.all(e).catch(empty)})),PROMISE,{all:function(e){var a=this,t=newPromiseCapability(a),s=t.resolve,c=t.reject,n=_perform(function(){var r=[],i=0,o=1;_forOf(e,!1,function(e){var t=i++,n=!1;r.push(void 0),o++,a.resolve(e).then(function(e){n||(n=!0,r[t]=e,--o||s(r))},c)}),--o||s(r)});return n.e&&c(n.v),t.promise},race:function(e){var t=this,n=newPromiseCapability(t),r=n.reject,i=_perform(function(){_forOf(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}});var $includes=_arrayIncludes(!0);_export(_export.P,"Array",{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),_addToUnscopables("includes");var isEnum=_objectPie.f,_objectToArray=function(s){return function(e){for(var t,n=_toIobject(e),r=_objectKeys(n),i=r.length,o=0,a=[];o<i;)isEnum.call(n,t=r[o++])&&a.push(s?[t,n[t]]:n[t]);return a}},$values=_objectToArray(!1);_export(_export.S,"Object",{values:function(e){return $values(e)}});var originalConsole=global.console;function setNativeConsole(){if(generateLevelMap(),global.WXEnvironment&&"Web"!==global.WXEnvironment.platform)global.console={debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("debug")&&global.nativeLog.apply(global,format(e).concat(["__DEBUG"]))},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("log")&&global.nativeLog.apply(global,format(e).concat(["__LOG"]))},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("info")&&global.nativeLog.apply(global,format(e).concat(["__INFO"]))},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("warn")&&global.nativeLog.apply(global,format(e).concat(["__WARN"]))},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("error")&&global.nativeLog.apply(global,format(e).concat(["__ERROR"]))}};else{var e=console.debug,t=console.log,n=console.info,r=console.warn,i=console.error;console.__ori__={debug:e,log:t,info:n,warn:r,error:i},console.debug=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("debug")&&console.__ori__.debug.apply(console,e)},console.log=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("log")&&console.__ori__.log.apply(console,e)},console.info=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("info")&&console.__ori__.info.apply(console,e)},console.warn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("warn")&&console.__ori__.warn.apply(console,e)},console.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];checkLevel("error")&&console.__ori__.error.apply(console,e)}}}function format(e){return e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):String(e)})}var originalSetTimeout=global.setTimeout,setTimeoutNative=global.setTimeoutNative;function setNativeTimer(){if(void 0===setTimeout&&"function"==typeof setTimeoutNative){var n={},r=0;global.setTimeout=function(e,t){n[++r]=e,setTimeoutNative(r.toString(),t)},global.setTimeoutCallback=function(e){"function"==typeof n[e]&&(n[e](),delete n[e])}}}setNativeTimer(),"undefined"==typeof WXEnvironment||WXEnvironment.__enable_native_promise__;var factory=createCommonjsModule(function(e){e.exports=function(e,a,t){var _=Object.freeze({});function E(e){return null==e}function I(e){return null!=e}function A(e){return!0===e}function $(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function b(e){return null!==e&&"object"==typeof e}var r=Object.prototype.toString;function d(e){return"[object Object]"===r.call(e)}function i(e){var t=parseFloat(String(e));return 0<=t&&Math.floor(t)===t&&isFinite(e)}function w(e){return I(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function n(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===r?JSON.stringify(e,null,2):String(e)}function o(e){var t=parseFloat(e);return isNaN(t)?e:t}function s(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}s("slot,component",!0);var l=s("key,ref,slot,slot-scope,is");function k(e,t){if(e.length){var n=e.indexOf(t);if(-1<n)return e.splice(n,1)}}var c=Object.prototype.hasOwnProperty;function f(e,t){return c.call(e,t)}function u(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var p=/-(\w)/g,h=u(function(e){return e.replace(p,function(e,t){return t?t.toUpperCase():""})}),v=u(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),g=/\B([A-Z])/g,S=u(function(e){return e.replace(g,"-$1").toLowerCase()});var m=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,r){function e(e){var t=arguments.length;return t?1<t?n.apply(r,arguments):n.call(r,e):n.call(r)}return e._length=n.length,e};function y(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function D(e,t){for(var n in t)e[n]=t[n];return e}function x(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function N(e,t,n){}var C=function(e,t,n){return!1},T=function(e){return e};function O(t,n){if(t===n)return!0;var e=b(t),r=b(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return O(e,n[t])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return O(t[e],n[e])})}catch(e){return!1}}function P(e,t){for(var n=0;n<e.length;n++)if(O(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var M="data-server-rendered",j=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],R={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:C,isReservedAttr:C,isUnknownElement:C,getTagNamespace:N,parsePlatformTagName:T,mustUseProp:C,async:!0,_lifecycleHooks:B};function F(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var z=new RegExp("[^"+/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/.source+".$_\\d]");var V,U="__proto__"in{},q="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,H=W&&WXEnvironment.platform.toLowerCase(),G=q&&window.navigator.userAgent.toLowerCase(),X=G&&/msie|trident/.test(G),Y=G&&0<G.indexOf("msie 9.0"),J=G&&0<G.indexOf("edge/"),K=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G),G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/),{}.watch);if(q)try{var Z={};Object.defineProperty(Z,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Z)}catch(e){}var Q=function(){return void 0===V&&(V=!q&&!W&&void 0!==global&&(global.process&&"server"===global.process.env.VUE_ENV)),V},ee=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"==typeof e&&/native code/.test(e.toString())}var ne,re="undefined"!=typeof Symbol&&te(Symbol)&&"undefined"!=typeof Reflect&&te(Reflect.ownKeys);ne="undefined"!=typeof Set&&te(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ie=N,oe=0,ae=function(){this.id=void 0!==t?t.uid++:oe++,this.subs=[]};function se(e){ae.SharedObject.targetStack.push(e),ae.SharedObject.target=e}function ce(){ae.SharedObject.targetStack.pop(),ae.SharedObject.target=ae.SharedObject.targetStack[ae.SharedObject.targetStack.length-1]}ae.prototype.addSub=function(e){this.subs.push(e)},ae.prototype.removeSub=function(e){k(this.subs,e)},ae.prototype.depend=function(){ae.SharedObject.target&&ae.SharedObject.target.addDep(this)},ae.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},ae.SharedObject=void 0!==t?t:{},ae.SharedObject.target=null,ae.SharedObject.targetStack=[];var ue=function(e,t,n,r,i,o,a,s){t&&Array.isArray(t.class)&&(t.class=t.class.slice(0)),this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,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},le={child:{configurable:!0}};le.child.get=function(){return this.componentInstance},Object.defineProperties(ue.prototype,le);var de=function(e){void 0===e&&(e="");var t=new ue;return t.text=e,t.isComment=!0,t};function fe(e){return new ue(void 0,void 0,void 0,String(e))}function pe(e){var t=new ue(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 he=Array.prototype,ve=Object.create(he);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(a){var s=he[a];F(ve,a,function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r,i=s.apply(this,t),o=this.__ob__;switch(a){case"push":case"unshift":r=t;break;case"splice":r=t.slice(2)}return r&&o.observeArray(r),o.dep.notify(),i})});var ge=Object.getOwnPropertyNames(ve),me=!0;function ye(e){me=e}var _e=function(e){var t;this.value=e,this.dep=new ae,this.vmCount=0,F(e,"__ob__",this),Array.isArray(e)?(U?(t=ve,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];F(e,o,t[o])}}(e,ve,ge),this.observeArray(e)):this.walk(e)};function be(e,t){var n;if(b(e)&&!(e instanceof ue))return f(e,"__ob__")&&e.__ob__ instanceof _e?n=e.__ob__:me&&!Q()&&(Array.isArray(e)||d(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new _e(e)),t&&n&&n.vmCount++,n}function we(n,e,r,t,i){var o=new ae,a=Object.getOwnPropertyDescriptor(n,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(r=n[e]);var u=!i&&be(r);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):r;return ae.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):r;e===t||e!=e&&t!=t||s&&!c||(c?c.call(n,e):r=e,u=!i&&be(e),o.notify())}})}}function ke(e,t,n){if(Array.isArray(e)&&i(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;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(we(r.value,t,n),r.dep.notify(),n):e[t]=n}function Se(e,t){if(Array.isArray(e)&&i(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||f(e,t)&&(delete e[t],n&&n.dep.notify())}}_e.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)we(e,t[n])},_e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)be(e[t])};var xe=R.optionMergeStrategies;function Ce(e,t){if(!t)return e;for(var n,r,i,o=re?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],f(e,n)?r!==i&&d(r)&&d(i)&&Ce(r,i):ke(e,n,i));return e}function Te(n,r,i){return i?function(){var e="function"==typeof r?r.call(i,i):r,t="function"==typeof n?n.call(i,i):n;return e?Ce(e,t):t}:r?n?function(){return Ce("function"==typeof r?r.call(this,this):r,"function"==typeof n?n.call(this,this):n)}:r:n}function Oe(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 Ee(e,t,n,r){var i=Object.create(e||null);return t?D(i,t):i}xe.data=function(e,t,n){return n?Te(e,t,n):t&&"function"!=typeof t?e:Te(e,t)},B.forEach(function(e){xe[e]=Oe}),j.forEach(function(e){xe[e+"s"]=Ee}),xe.watch=function(e,t,n,r){if(e===K&&(e=void 0),t===K&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in D(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},xe.props=xe.methods=xe.inject=xe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return D(i,e),t&&D(i,t),i},xe.provide=Te;var Ie=function(e,t){return void 0===t?e:t};function Ae(n,r,i){if("function"==typeof r&&(r=r.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[h(i)]={type:null});else if(d(n))for(var a in n)i=n[a],o[h(a)]=d(i)?i:{type:i};e.props=o}}(r),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(d(n))for(var o in n){var a=n[o];r[o]=d(a)?D({from:o},a):{from:a}}}}(r),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})}}(r),!r._base&&(r.extends&&(n=Ae(n,r.extends,i)),r.mixins))for(var e=0,t=r.mixins.length;e<t;e++)n=Ae(n,r.mixins[e],i);var o,a={};for(o in n)s(o);for(o in r)f(n,o)||s(o);function s(e){var t=xe[e]||Ie;a[e]=t(n[e],r[e],i,e)}return a}function $e(e,t,n,r){if("string"==typeof n){var i=e[t];if(f(i,n))return i[n];var o=h(n);if(f(i,o))return i[o];var a=v(o);return f(i,a)?i[a]:i[n]||i[o]||i[a]}}function Pe(e,t,n,r){var i=t[e],o=!f(n,e),a=n[e],s=Be(Boolean,i.type);if(-1<s)if(o&&!f(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Be(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!f(t,"default"))return;var r=t.default;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"!==Me(t.type)?r.call(e):r}(r,i,e);var u=me;ye(!0),be(a),ye(u)}return a}function Me(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function je(e,t){return Me(e)===Me(t)}function Be(e,t){if(!Array.isArray(t))return je(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(je(t[n],e))return n;return-1}function De(e,t,n){se();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Le(e,r,"errorCaptured hook")}}Le(e,t,n)}finally{ce()}}function Ne(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&w(o)&&!o._handled&&(o.catch(function(e){return De(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(e){De(e,r,i)}return o}function Le(t,e,n){if(R.errorHandler)try{return R.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Re(e,null,"config.errorHandler")}Re(t,e,n)}function Re(e,t,n){if(!q&&!W||"undefined"==typeof console)throw e;console.error(e)}var Fe=[],ze=!1;function Ve(){ze=!1;for(var e=Fe.slice(0),t=Fe.length=0;t<e.length;t++)e[t]()}var Ue=function(){setTimeout(Ve,0)};function qe(e,t){var n;if(Fe.push(function(){if(e)try{e.call(t)}catch(e){De(e,t,"nextTick")}else n&&n(t)}),ze||(ze=!0,Ue()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var We=new ne;function He(e){!function e(t,n){var r,i;var o=Array.isArray(t);if(!o&&!b(t)||Object.isFrozen(t)||t instanceof ue)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,We),We.clear()}var Ge=u(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 Xe(e,i){function o(){var e=arguments,t=o.fns;if(!Array.isArray(t))return Ne(t,null,arguments,i,"v-on handler");for(var n=t.slice(),r=0;r<n.length;r++)Ne(n[r],null,e,i,"v-on handler")}return o.fns=e,o}function Ye(e,t,n,r,i,o){var a,s,c,u,l;for(a in e)s=c=e[a],u=t[a],l=Ge(a),d(s)&&(c=s.handler,l.params=s.params),E(c)||(E(u)?(E(c.fns)&&(c=e[a]=Xe(c,o)),A(l.once)&&(c=e[a]=i(l.name,c,l.capture)),n(l.name,c,l.capture,l.passive,l.params)):c!==u&&(u.fns=c,e[a]=u));for(a in t)E(e[a])&&r((l=Ge(a)).name,t[a],l.capture)}function Je(e,t,n){var r;e instanceof ue&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function o(){n.apply(this,arguments),k(r.fns,o)}E(i)?r=Xe([o]):I(i.fns)&&A(i.merged)?(r=i).fns.push(o):r=Xe([i,o]),r.merged=!0,e[t]=r}function Ke(e,t,n,r,i){if(I(t)){if(f(t,n))return e[n]=t[n],i||delete t[n],!0;if(f(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Ze(e){return $(e)?[fe(e)]:Array.isArray(e)?function e(t,n){var r=[];var i,o,a,s;for(i=0;i<t.length;i++)E(o=t[i])||"boolean"==typeof o||(a=r.length-1,s=r[a],Array.isArray(o)?0<o.length&&(Qe((o=e(o,(n||"")+"_"+i))[0])&&Qe(s)&&(r[a]=fe(s.text+o[0].text),o.shift()),r.push.apply(r,o)):$(o)?Qe(s)?r[a]=fe(s.text+o):""!==o&&r.push(fe(o)):Qe(o)&&Qe(s)?r[a]=fe(s.text+o.text):(A(t._isVList)&&I(o.tag)&&E(o.key)&&I(n)&&(o.key="__vlist"+n+"_"+i+"__"),r.push(o)));return r}(e):void 0}function Qe(e){return I(e)&&I(e.text)&&!1===e.isComment}function et(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function tt(t){var n=nt(t.$options.inject,t);n&&(ye(!1),Object.keys(n).forEach(function(e){we(t,e,n[e])}),ye(!0))}function nt(e,t){if(e){for(var n=Object.create(null),r=re?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&f(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function rt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(n.page||(n.page=[])).push(o):(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(it)&&delete n[u];return n}function it(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ot(e,t,n){var r,i=0<Object.keys(t).length,o=e?!!e.$stable:!i,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==_&&a===n.$key&&!i&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=at(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=st(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),F(r,"$stable",o),F(r,"$key",a),F(r,"$hasNormal",i),r}function at(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]:Ze(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 st(e,t){return function(){return e[t]}}function ct(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(b(e))if(re&&e[Symbol.iterator]){n=[];for(var s=e[Symbol.iterator](),c=s.next();!c.done;)n.push(t(c.value,n.length)),c=s.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return I(n)||(n=[]),n._isVList=!0,n}function ut(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function lt(e){return $e(this.$options,"filters",e)||T}function dt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function ft(e,t,n,r,i){var o=R.keyCodes[t]||n;return i&&r&&!R.keyCodes[t]?dt(i,r):o?dt(o,e):r?S(r)!==t:void 0}function pt(i,o,a,s,c){if(a)if(b(a)){var u;Array.isArray(a)&&(a=x(a));var e=function(t){if("class"===t||"style"===t||l(t))u=i;else{var e=i.attrs&&i.attrs.type;u=s||R.mustUseProp(o,e,t)?i.domProps||(i.domProps={}):i.attrs||(i.attrs={})}var n=h(t),r=S(t);n in u||r in u||(u[t]=a[t],c&&((i.on||(i.on={}))["update:"+t]=function(e){a[t]=e}))};for(var t in a)e(t)}else;return i}function ht(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||gt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function vt(e,t,n){return gt(e,"__once__"+t+(n?"_"+n:""),!0),e}function gt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&mt(e[r],t+"_"+r,n);else mt(e,t,n)}function mt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function yt(e,t){if(t)if(d(t)){var n=e.on=e.on?D({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function _t(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?_t(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function bt(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])}return e}function wt(e,t){return"string"==typeof e?t+e:e}function kt(e){e._o=vt,e._n=o,e._s=n,e._l=ct,e._t=ut,e._q=O,e._i=P,e._m=ht,e._f=lt,e._k=ft,e._b=pt,e._v=fe,e._e=de,e._u=_t,e._g=yt,e._d=bt,e._p=wt}function St(e,t,n,o,r){var a,i=this,s=r.options;f(o,"_uid")?(a=Object.create(o))._original=o:o=(a=o)._original;var c=A(s._compiled),u=!c;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||_,this.injections=nt(s.inject,o),this.slots=function(){return i.$slots||ot(e.scopedSlots,i.$slots=rt(n,o)),i.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ot(e.scopedSlots,this.slots())}}),c&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ot(e.scopedSlots,this.$slots)),s._scopeId?this._c=function(e,t,n,r){var i=Ut(a,e,t,n,r,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Ut(a,e,t,n,r,u)}}function xt(e,t,n,r,i){var o=pe(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Ct(e,t){for(var n in t)e[h(n)]=t[n]}kt(St.prototype);var Tt="@inRecycleList";function Ot(e,t,n,r){if(a&&a.taskCenter)return"function"==typeof a.taskCenter.registerHook?a.taskCenter.registerHook(e,t,n,r):void 0}function Et(e,n,t){if(b(n))if(t)e.$refs={};else{var r=e.$refs||{};Object.keys(n).forEach(function(e){var t=n[e];r[e]=1===t.length?t[0]:t}),e.$refs=r}}function It(e,n,r,t){if(b(r)){var i=e.$refs||{};t?Object.keys(r).forEach(function(e){var t=r[e];i[e]&&(1===t.length&&Array.isArray(i[e])?delete i[e][n]:delete i[e])}):(Object.keys(r).forEach(function(e){var t=r[e];1===t.length?(Array.isArray(i[e])||(i[e]=[]),i[e][n]=t[0]):i[e]=t}),e.$refs=i)}}var At=0;function $t(e){var t=e.$options.data,n=e.$options.computed||{},r=e._data?Object.assign({},e._data):"function"==typeof t?wn(t,e):t||{},i={};for(var o in n)i[o]=e[o];return Object.assign({},r,i)}function Pt(e){void 0===e&&(e={});var r=this,t=e.componentId;F(r,"_vmTemplate",e.vmTemplate),r._uid=t||"virtual-component-"+At++,r._isVue=!0,e&&e._isComponent?Bn(r,e):r.$options=Ae(Dn(r.constructor),e||{},r),nn((r._renderProxy=r)._self=r),Jt(r),qt(r),an(r,"beforeCreate"),tt(r),bn(r),et(r),an(r,"created"),Ot(t,"lifecycle","attach",function(e){Et(r,e&&e.refs),an(r,"beforeMount"),new mn(r,function(){return $t(r)},function(){return r._update(r._vnode,!1)}),r._isMounted=!0,an(r,"mounted")}),Ot(t,"lifecycle","update",function(e){Et(r,e&&e.refs),r._update(r._vnode,!1)}),Ot(t,"lifecycle","syncState",function(e,t){if(d(t))for(var n in t)r[n]=t[n];return $t(r)}),Ot(t,"lifecycle","detach",function(e){Et(r,e&&e.refs,!0),r.$destroy(),r._vmTemplate&&(r._vmTemplate.removeVirtualComponent(r._uid),delete r._vmTemplate)})}function Mt(e){var t=this,n=t.$options.componentId;(t._isMounted&&an(t,"beforeUpdate"),t._vnode=e,t._isMounted&&n)&&function(e,t,n){if(a&&a.taskCenter)"function"==typeof a.taskCenter.updateData&&a.taskCenter.updateData(e,t,n)}(n,$t(t),function(){an(t,"updated")})}function jt(e){void 0===e&&(e={});var t=this;t._uid="virtual-component-template-"+At++,t._isVue=!0,e&&e._isComponent?Bn(t,e):t.$options=Ae(Dn(t.constructor),e||{},t),Jt(t._self=t),qt(t),bn(t),this.registerVirtualComponent()}function Bt(e){var t,n,i,o;delete e.data.attrs[Tt],n=(t=e).componentOptions.Ctor,i=n.extend({}),o=i.prototype.$emit,i.prototype._init=Pt,i.prototype._update=Mt,i.prototype.$emit=function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r=this._uid,i=this._vmTemplate;return r&&i&&(t.push(r),o.apply(i,t)),o.apply(this,t)},t.componentOptions.Ctor=n.extend({methods:{registerVirtualComponent:function(){var r=this;F(r,"_virtualComponents",{}),Ot(String(r._uid),"lifecycle","create",function(e,t){var n=new i({vmTemplate:r,componentId:e,propsData:t});return n._uid=e,r._virtualComponents&&(r._virtualComponents[e]=n),$t(n)})},removeVirtualComponent:function(e){delete this._virtualComponents[e]}},destroyed:function(){delete this._virtualComponents}}),t.componentOptions.Ctor.prototype._init=jt,t.componentOptions.Ctor.prototype._update=N;var r=Rt(e),a=r.$options["@render"];if(a)try{return a.call(r)}catch(e){De(e,r,"@render")}}var Dt={init:function(e,t,n,r){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;Dt.prepatch(i,i)}else{(e.componentInstance=Rt(e,tn,n,r)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var o=r.data.scopedSlots,a=e.$scopedSlots,s=!!(o&&!o.$stable||a!==_&&!a.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(i||e.$options._renderChildren||s);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=i,e.$attrs=r.data.attrs||_,e.$listeners=n||_,t&&e.$options.props){ye(!1);for(var u=e._props,l=e.$options._propKeys||[],d=0;d<l.length;d++){var f=l[d],p=e.$options.props;u[f]=Pe(f,p,t,e)}ye(!0),e.$options.propsData=t}n=n||_;var h=e.$options._parentListeners;e.$options._parentListeners=n,en(e,n,h),c&&(e.$slots=rt(i,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,an(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,cn.push(t)):on(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,rn(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);an(t,"deactivated")}}(t,!0):t.$destroy())}},Nt=Object.keys(Dt);function Lt(e,t,n,r,i){if(!E(e)){var o=n.$options._base;if(b(e)&&(e=o.extend(e)),"function"==typeof e){var a,s,c,u,l,d,f;if(E(e.cid)&&void 0===(e=function(t,n){if(A(t.error)&&I(t.errorComp))return t.errorComp;if(I(t.resolved))return t.resolved;var e=Ht;e&&I(t.owners)&&-1===t.owners.indexOf(e)&&t.owners.push(e);if(A(t.loading)&&I(t.loadingComp))return t.loadingComp;if(e&&!I(t.owners)){var r=t.owners=[e],i=!0,o=null,a=null;e.$on("hook:destroyed",function(){return k(r,e)});var s=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==o&&(clearTimeout(o),o=null),null!==a&&(clearTimeout(a),a=null))},c=L(function(e){t.resolved=Gt(e,n),i?r.length=0:s(!0)}),u=L(function(e){I(t.errorComp)&&(t.error=!0,s(!0))}),l=t(c,u);return b(l)&&(w(l)?E(t.resolved)&&l.then(c,u):w(l.component)&&(l.component.then(c,u),I(l.error)&&(t.errorComp=Gt(l.error,n)),I(l.loading)&&(t.loadingComp=Gt(l.loading,n),0===l.delay?t.loading=!0:o=setTimeout(function(){o=null,E(t.resolved)&&E(t.error)&&(t.loading=!0,s(!1))},l.delay||200)),I(l.timeout)&&(a=setTimeout(function(){a=null,E(t.resolved)&&u(null)},l.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(a=e,o)))return s=a,c=t,u=n,l=r,d=i,(f=de()).asyncFactory=s,f.asyncMeta={data:c,context:u,children:l,tag:d},f;t=t||{},Dn(e),I(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 i=t.on||(t.on={}),o=i[r],a=t.model.callback;I(o)?(Array.isArray(o)?-1===o.indexOf(a):o!==a)&&(i[r]=[a].concat(o)):i[r]=a}(e.options,t);var p=function(e,t,n){var r=t.options.props;if(!E(r)){var i={},o=e.attrs,a=e.props;if(I(o)||I(a))for(var s in r){var c=S(s);Ke(i,a,s,c,!0)||Ke(i,o,s,c,!1)}return i}}(t,e);if(A(e.options.functional))return function(e,t,n,r,i){var o=e.options,a={},s=o.props;if(I(s))for(var c in s)a[c]=Pe(c,s,t||_);else I(n.attrs)&&Ct(a,n.attrs),I(n.props)&&Ct(a,n.props);var u=new St(n,a,i,r,e),l=o.render.call(null,u._c,u);if(l instanceof ue)return xt(l,n,u.parent,o);if(Array.isArray(l)){for(var d=Ze(l)||[],f=new Array(d.length),p=0;p<d.length;p++)f[p]=xt(d[p],n,u.parent,o);return f}}(e,p,t,n,r);var h=t.on;if(t.on=t.nativeOn,A(e.options.abstract)){var v=t.slot;t={},v&&(t.slot=v)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Nt.length;n++){var r=Nt[n],i=t[r],o=Dt[r];i===o||i&&i._merged||(t[r]=i?Ft(o,i):o)}}(t);var g,m=e.options.name||i,y=new ue("vue-component-"+e.cid+(m?"-"+m:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:p,listeners:h,tag:i,children:r},a);return(g=y).data.attrs&&Tt in g.data.attrs?Bt(y):y}}}function Rt(e,t,n,r){var i={_isComponent:!0,_parentVnode:e,parent:t,_parentElm:n||null,_refElm:r||null},o=e.data.inlineTemplate;return I(o)&&(i.render=o.render,i.staticRenderFns=o.staticRenderFns),new e.componentOptions.Ctor(i)}function Ft(n,r){var e=function(e,t){n(e,t),r(e,t)};return e._merged=!0,e}var zt=1,Vt=2;function Ut(e,t,n,r,i,o){return(Array.isArray(n)||$(n))&&(i=r,r=n,n=void 0),A(o)&&(i=Vt),function(e,t,n,r,i){if(I(n)&&I(n.__ob__))return de();I(n)&&I(n.is)&&(t=n.is);if(!t)return de();Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===Vt?r=Ze(r):i===zt&&(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 o,a;if("string"==typeof t){var s;a=e.$vnode&&e.$vnode.ns||R.getTagNamespace(t),o=R.isReservedTag(t)?new ue(R.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!I(s=$e(e.$options,"components",t))?new ue(t,n,r,void 0,void 0,e):Lt(s,n,e,r,t)}else o=Lt(t,n,e,r);return Array.isArray(o)?o:I(o)?(I(a)&&function e(t,n,r){t.ns=n;"foreignObject"===t.tag&&(r=!(n=void 0));if(I(t.children))for(var i=0,o=t.children.length;i<o;i++){var a=t.children[i];I(a.tag)&&(E(a.ns)||A(r)&&"svg"!==a.tag)&&e(a,n,r)}}(o,a),I(n)&&function(e){b(e.style)&&He(e.style);b(e.class)&&He(e.class)}(n),o):de()}(e,t,n,r,i)}function qt(i){i._vnode=null,i._staticTrees=null;var e=i.$options,t=i.$vnode=e._parentVnode,n=t&&t.context;i.$slots=rt(e._renderChildren,n),i.$scopedSlots=_,i._c=function(e,t,n,r){return Ut(i,e,t,n,r,!1)},i.$createElement=function(e,t,n,r){return Ut(i,e,t,n,r,!0)};var r=t&&t.data;we(i,"$attrs",r&&r.attrs||_,null,!0),we(i,"$listeners",e._parentListeners||_,null,!0)}var Wt,Ht=null;function Gt(e,t){return(e.__esModule||re&&"Module"===e[Symbol.toStringTag])&&(e=e.default),b(e)?t.extend(e):e}function Xt(e){return e.isComment&&e.asyncFactory}function Yt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(I(n)&&(I(n.componentOptions)||Xt(n)))return n}}function Jt(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&en(e,t)}function Kt(e,t){Wt.$on(e,t)}function Zt(e,t){Wt.$off(e,t)}function Qt(t,n){var r=Wt;return function e(){null!==n.apply(null,arguments)&&r.$off(t,e)}}function en(e,t,n){Ye(t,n||{},Kt,Zt,Qt,Wt=e),Wt=void 0}var tn=null;function nn(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}function rn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function on(e,t){if(t){if(e._directInactive=!1,rn(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++)on(e.$children[n]);an(e,"activated")}}function an(e,t){se();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ne(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ce()}var sn=[],cn=[],un={},ln=!1,dn=!1,fn=0;var pn=Date.now;if(q&&!X){var hn=window.performance;hn&&"function"==typeof hn.now&&pn()>a.createEvent("Event").timeStamp&&(pn=function(){return hn.now()})}function vn(){var e,t;for(pn(),dn=!0,sn.sort(function(e,t){return e.id-t.id}),fn=0;fn<sn.length;fn++)(e=sn[fn]).before&&e.before(),t=e.id,un[t]=null,e.run();var n=cn.slice(),r=sn.slice();fn=sn.length=cn.length=0,ln=dn=!(un={}),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,on(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&&an(r,"updated")}}(r),ee&&R.devtools&&ee.emit("flush")}var gn=0,mn=function(e,t,n,r,i){this.vm=e,i&&(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=++gn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ne,this.newDepIds=new ne,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!z.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=N)),this.value=this.lazy?void 0:this.get()};mn.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;De(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&He(e),ce(),this.cleanupDeps()}return e},mn.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))},mn.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},mn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==un[t]){if(un[t]=!0,dn){for(var n=sn.length-1;fn<n&&sn[n].id>e.id;)n--;sn.splice(n+1,0,e)}else sn.push(e);ln||(ln=!0,qe(vn))}}(this)},mn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||b(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){De(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},mn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},mn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},mn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||k(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var yn={enumerable:!0,configurable:!0,get:N,set:N};function _n(e,t,n){yn.get=function(){return this[t][n]},yn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,yn)}function bn(e){e._watchers=[];var t=e.$options;t.props&&function(n,r){var i=n.$options.propsData||{},o=n._props={},a=n.$options._propKeys=[];n.$parent&&ye(!1);var e=function(e){a.push(e);var t=Pe(e,r,i,n);we(o,e,t),e in n||_n(n,"_props",e)};for(var t in r)e(t);ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?N:m(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;d(t=e._data="function"==typeof t?wn(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&f(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&_n(e,"_data",o))}var a;be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Q();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new mn(e,a||N,N,kn)),i in e||Sn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==K&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Tn(e,n,r[i]);else Tn(e,n,r)}}(e,t.watch)}function wn(e,t){se();try{return e.call(t,t)}catch(e){return De(e,t,"data()"),{}}finally{ce()}}var kn={lazy:!0};function Sn(e,t,n){var r=!Q();"function"==typeof n?(yn.get=r?xn(t):Cn(n),yn.set=N):(yn.get=n.get?r&&!1!==n.cache?xn(t):Cn(n.get):N,yn.set=n.set||N),Object.defineProperty(e,t,yn)}function xn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ae.SharedObject.target&&e.depend(),e.value}}function Cn(e){return function(){return e.call(this,this)}}function Tn(e,t,n,r){return d(n)&&(n=(r=n).handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var On,En,In,An,$n,Pn,Mn,jn=0;function Bn(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Dn(e){var t=e.options;if(e.super){var n=Dn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&D(e.extendOptions,r),(t=e.options=Ae(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Nn(e){this._init(e)}function Ln(e){e.cid=0;var a=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var i=e.name||t.options.name,o=function(e){this._init(e)};return((o.prototype=Object.create(t.prototype)).constructor=o).cid=a++,o.options=Ae(t.options,e),o.super=t,o.options.props&&function(e){var t=e.options.props;for(var n in t)_n(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Sn(e.prototype,n,t[n])}(o),o.extend=t.extend,o.mixin=t.mixin,o.use=t.use,j.forEach(function(e){o[e]=t[e]}),i&&(o.options.components[i]=o),o.superOptions=t.options,o.extendOptions=e,o.sealedOptions=D({},o.options),r[n]=o}}function Rn(e){return e&&(e.Ctor.options.name||e.tag)}function Fn(e,t){return Array.isArray(e)?-1<e.indexOf(t):"string"==typeof e?-1<e.split(",").indexOf(t):(n=e,"[object RegExp]"===r.call(n)&&e.test(t));var n}function zn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Rn(a.componentOptions);s&&!t(s)&&Vn(n,o,r,i)}}}function Vn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,k(n,t)}Nn.prototype._init=function(e){var t=this;t._uid=jn++,t._isVue=!0,e&&e._isComponent?Bn(t,e):t.$options=Ae(Dn(t.constructor),e||{},t),nn((t._renderProxy=t)._self=t),Jt(t),qt(t),an(t,"beforeCreate"),"mp-toutiao"!==t.mpHost&&tt(t),bn(t),"mp-toutiao"!==t.mpHost&&et(t),"mp-toutiao"!==t.mpHost&&an(t,"created"),t.$options.el&&t.$mount(t.$options.el)},On=Nn,En={get:function(){return this._data}},In={get:function(){return this._props}},Object.defineProperty(On.prototype,"$data",En),Object.defineProperty(On.prototype,"$props",In),On.prototype.$set=ke,On.prototype.$delete=Se,On.prototype.$watch=function(e,t,n){var r=this;if(d(t))return Tn(r,e,t,n);(n=n||{}).user=!0;var i=new mn(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(e){De(e,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}},$n=/^hook:/,(An=Nn).prototype.$on=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)this.$on(e[n],t);else(this._events[e]||(this._events[e]=[])).push(t),$n.test(e)&&(this._hasHookEvent=!0);return this},An.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},An.prototype.$off=function(e,t){if(!arguments.length)return this._events=Object.create(null),this;if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)this.$off(e[n],t);return this}var i,o=this._events[e];if(!o)return this;if(!t)return this._events[e]=null,this;for(var a=o.length;a--;)if((i=o[a])===t||i.fn===t){o.splice(a,1);break}return this},An.prototype.$emit=function(e){var t=this._events[e];if(t){t=1<t.length?y(t):t;for(var n=y(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)Ne(t[i],this,n,this,r)}return this},(Pn=Nn).prototype._update=function(e,t){var n,r=this,i=r.$el,o=r._vnode,a=(n=tn,tn=r,function(){tn=n});r._vnode=e,o?r.$el=r.__patch__(o,e):(r.$el=r.__patch__(r.$el,e,t,!1,r.$options._parentElm,r.$options._refElm),r.$options._parentElm=r.$options._refElm=null),a(),i&&(i.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},Pn.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},Pn.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){an(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||k(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),an(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}},kt((Mn=Nn).prototype),Mn.prototype.$nextTick=function(e){return qe(e,this)},Mn.prototype._render=function(){var t,n=this,e=n.$options,r=e.render,i=e._parentVnode;i&&(n.$scopedSlots=ot(i.data.scopedSlots,n.$slots,n.$scopedSlots)),n.$vnode=i;try{Ht=n,t=r.call(n._renderProxy,n.$createElement)}catch(e){De(e,n,"render"),t=n._vnode}finally{Ht=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof ue||(t=de()),t.parent=i,t};var Un,qn,Wn,Hn=[String,RegExp,Array],Gn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Hn,exclude:Hn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Vn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){zn(e,function(e){return Fn(t,e)})}),this.$watch("exclude",function(t){zn(e,function(e){return!Fn(t,e)})})},render:function(){var e=this.$slots.default,t=Yt(e),n=t&&t.componentOptions;if(n){var r=Rn(n),i=this.include,o=this.exclude;if(i&&(!r||!Fn(i,r))||o&&r&&Fn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,k(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&Vn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};Un=Nn,Wn={get:function(){return R}},Object.defineProperty(Un,"config",Wn),Un.util={warn:ie,extend:D,mergeOptions:Ae,defineReactive:we},Un.set=ke,Un.delete=Se,Un.nextTick=qe,Un.observable=function(e){return be(e),e},Un.options=Object.create(null),j.forEach(function(e){Un.options[e+"s"]=Object.create(null)}),D((Un.options._base=Un).options.components,Gn),Un.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(-1<t.indexOf(e))return this;var n=y(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},Un.mixin=function(e){return this.options=Ae(this.options,e),this},Ln(Un),qn=Un,j.forEach(function(n){qn[n]=function(e,t){return t?("component"===n&&d(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t):this.options[n+"s"][e]}}),Object.defineProperty(Nn.prototype,"$isServer",{get:Q}),Object.defineProperty(Nn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Nn,"FunctionalRenderContext",{value:St}),Nn.version="2.6.10";var Xn=1;function Yn(e){this.instanceId="",this.nodeId=Xn++,this.parentNode=null,this.nodeType=3,this.text=e}function Jn(e){return a.createElement(e)}var Kn=Object.freeze({namespaceMap:{},createElement:Jn,createElementNS:function(e,t){return a.createElement(e+":"+t)},createTextNode:function(e){return new Yn(e)},createComment:function(e){return a.createComment(e)},insertBefore:function(e,t,n){if(3!==t.nodeType)e.insertBefore(t,n);else{var r="weex"===a.__$compiler__?"text":"u-text";if(e.type===r)e.setAttr("value",t.text),t.parentNode=e;else{var i=Jn(r);i.setAttr("value",t.text),e.insertBefore(i,n)}}},removeChild:function(e,t){3!==t.nodeType?e.removeChild(t):e.setAttr("value","")},appendChild:function(e,t){if(3!==t.nodeType)e.appendChild(t);else{var n="weex"===a.__$compiler__?"text":"u-text";if(e.type===n)e.setAttr("value",t.text),t.parentNode=e;else{var r=Jn(n);r.setAttr("value",t.text),e.appendChild(r)}}},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.type},setTextContent:function(e,t){e.parentNode&&e.parentNode.setAttr("value",t)},setAttribute:function(e,t,n){e.setAttr(t,n)},setStyleScope:function(e,t){e.setAttr("@styleScope",t)}}),Zn={create:function(e,t){Qn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Qn(e,!0),Qn(t))},destroy:function(e){Qn(e,!0)}};function Qn(e,t){var n=e.data.ref;if(I(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?k(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}s("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"),s("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 er=s("text,number,password,search,email,tel,url"),tr=new ue("",{},[]),nr=["create","activate","update","remove","destroy"];function rr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&I(e.data)===I(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=I(n=e.data)&&I(n=n.attrs)&&n.type,i=I(n=t.data)&&I(n=n.attrs)&&n.type;return r===i||er(r)&&er(i)}(e,t)||A(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&E(t.asyncFactory.error))}function ir(e,t,n){var r,i,o={};for(r=t;r<=n;++r)I(i=e[r].key)&&(o[i]=r);return o}var or={create:ar,update:ar,destroy:function(e){ar(e,tr)}};function ar(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,r,i,o=t===tr,a=n===tr,s=cr(t.data.directives,t.context),c=cr(n.data.directives,n.context),u=[],l=[];for(e in c)r=s[e],i=c[e],r?(i.oldValue=r.value,i.oldArg=r.arg,ur(i,"update",n,t),i.def&&i.def.componentUpdated&&l.push(i)):(ur(i,"bind",n,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var d=function(){for(var e=0;e<u.length;e++)ur(u[e],"inserted",n,t)};o?Je(n,"insert",d):d()}l.length&&Je(n,"postpatch",function(){for(var e=0;e<l.length;e++)ur(l[e],"componentUpdated",n,t)});if(!o)for(e in s)c[e]||ur(s[e],"unbind",t,t,a)}(e,t)}var sr=Object.create(null);function cr(e,t){var n,r,i,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=sr),(o[(i=r,i.rawName||i.name+"."+Object.keys(i.modifiers||{}).join("."))]=r).def=$e(t.$options,"directives",r.name);return o}function ur(t,n,r,e,i){var o=t.def&&t.def[n];if(o)try{o(r.elm,t,r,e,i)}catch(e){De(e,r.context,"directive "+t.name+" "+n+" hook")}}var lr=[Zn,or],dr=u(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n});function fr(e){var t=pr(e.style);return e.staticStyle?D(e.staticStyle,t):t}function pr(e){return Array.isArray(e)?x(e):"string"==typeof e?dr(e):e}var hr={view:{class:["hoverClass"],style:[]},button:{class:["hoverClass"],style:[]},navigator:{class:["hoverClass"],style:[]},"u-input":{class:["placeholderClass"],style:["placeholderStyle"]},"u-textarea":{class:["placeholderClass"],style:["placeholderStyle"]},"picker-view":{class:["indicatorClass","maskClass"],style:["indicatorStyle","maskStyle"]}};function vr(e,t,n,r){if(!t)return t;var i=hr[n.type];if(i){if(-1!==i.class.indexOf(e))return r.$options.style&&r.$options.style[t]||{};if(-1!==i.style.indexOf(e))return pr(t)}return t}function gr(e,t){if(e.data.attrs||t.data.attrs){var n,r,i=t.elm,o=e.data.attrs||{},a=t.data.attrs||{};a.__ob__&&(a=t.data.attrs=D({},a));var s="function"==typeof i.setAttrs,c={};for(n in a)r=a[n],o[n]!==r&&(s?c[n]=r:i.setAttr(n,vr(n,r,i,t.context)));for(n in o)null==a[n]&&(s?c[n]=void 0:i.setAttr(n));s&&i.setAttrs(function(n,e,t){var r=hr[e.type];if(!r)return n;var i=t.$options.style||{};return Object.keys(n).forEach(function(e){var t=n[e];-1!==r.class.indexOf(e)?n[e]=i[t]||{}:-1!==r.style.indexOf(e)&&(n[e]=pr(t))}),n}(c,i,t.context))}}var mr={create:gr,update:gr};function yr(e){for(var t=_r(e),n=e,r=e;I(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=D(_r(r),t));for(;I(n=n.parent);)n&&n.data&&(t=D(t,_r(n)));return t}function _r(e){var t,n,r,i,o=e.data;return E(o.staticClass)&&E(o.class)?{}:(t=function(e){var t=[],n=e.staticClass,r=e.class;n&&t.push.apply(t,n);Array.isArray(r)?t.push.apply(t,r):b(r)?t.push.apply(t,Object.keys(r).filter(function(e){return r[e]})):"string"==typeof r&&t.push.apply(t,r.trim().split(/\s+/));return t}(o),n=e.context,r=n.$options.style||{},i={},t.forEach(function(e){var t=r[e];D(i,t)}),i)}function br(e,t,n,r){var i,o,a={};for(o in n)E(t[o])&&(a[r(o)]="");for(o in t)(i=t[o])!==n[o]&&(a[r(o)]=i);e.setStyles(a)}function wr(e,t,n){var r=t&&t.context.$options.style;r&&!e.includes(r)&&(n?e.unshift(r):e.push(r))}function kr(e){for(var t=e.data,n=e,r=e;I(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Sr(r.data,t));for(;I(n=n.parent);)n&&n.data&&(t=Sr(t,n.data));return function(e,t){if(I(e)||I(t))return xr(Cr(e),Cr(t));return""}(t.staticClass,t.class)}function Sr(e,t){return{staticClass:xr(Cr(e.staticClass),Cr(t.staticClass)),class:I(e.class)?[e.class,t.class]:t.class}}function xr(e,t){return e?t?e+" "+t:e:t||""}function Cr(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)I(t=Cr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):b(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}function Tr(e,t){var n=t.data,r=e.data;if(!(E(n.staticClass)&&E(n.class)&&(E(r)||E(r.staticClass)&&E(r.class)))){var i="weex"===a.__$styleCompiler__;if(a.__$automator__||!i){i||t.elm.setStylesheet&&t.elm.setStylesheet(function(e){var t=[],n=e,r=e;for(wr(t,e);I(r.componentInstance);)wr(t,r=r.componentInstance._vnode);for(;I(n=n.parent);)wr(t,n,!0);return t}(t));var o=kr(t);t.elm.setClassList&&t.elm.setClassList(o.split(" "))}i&&br(t.elm,yr(t),yr(e),Or)}}function Or(e){return e}var Er,Ir,Ar={create:Tr,update:Tr};function $r(e,t,n,r,i){if(n)console.log("Weex do not support event in bubble phase.");else{if(Ir&&Ir._virtualComponents){Er._context=Ir;var o=t;t=function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r=(t[0]||{}).componentId,i=this._context;r&&this._context&&(i=(this._context._virtualComponents||{})[r]||i);try{!function(e,t,n){void 0===n&&(n=null);var r=e.fns;if(!Array.isArray(r))return"function"==typeof r?r.apply(n,t):e.apply(n,t);for(var i=r.slice(),o=0;o<i.length;o++)i[o].apply(n,t)}(o,t,i)}catch(e){De(e,i,"Failed to invoke virtual component handler ("+r+")")}}}Er.addEvent(e,t,i)}}function Pr(e,t,n,r){(r||Er).removeEvent(e)}function Mr(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};Er=t.elm,Ir=t.context,Ye(n,r,$r,Pr,t.context),Ir=Er=void 0}}var jr={create:Mr,update:Mr},Br=u(h);function Dr(e,t){var n=t.data,r=e.data;if(!(E(n.staticStyle)&&E(n.style)&&E(r.staticStyle)&&E(r.style))){var i=t.elm,o=r.staticStyle,a=r.normalizedStyle||r.style||{},s=o||a,c=pr(t.data.style)||{};t.data.normalizedStyle=I(c.__ob__)?D({},c):c,br(i,function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=fr(i.data))&&D(r,n);(n=fr(e.data))&&D(r,n);for(var o=e;o=o.parent;)o.data&&(n=fr(o.data))&&D(r,n);return r}(t,!0),s,Br)}}var Nr={create:Dr,update:Dr};function Lr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&D(t,Rr(e.name||"v")),D(t,e),t}return"string"==typeof e?Rr(e):void 0}}var Rr=u(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&&!Y&&(void 0===window.ontransitionend&&window.onwebkittransitionend,void 0===window.onanimationend&&window.onwebkitanimationend);q&&window.requestAnimationFrame&&window.requestAnimationFrame.bind(window);function Fr(e,n){var r=n.elm;r._leaveCb&&(r._leaveCb.cancelled=!0,r._leaveCb());var t=Lr(n.data.transition);if(t&&!r._enterCb){for(var i=t.enterClass,o=t.enterToClass,a=t.enterActiveClass,s=t.appearClass,c=t.appearToClass,u=t.appearActiveClass,l=t.beforeEnter,d=t.enter,f=t.afterEnter,p=t.enterCancelled,h=t.beforeAppear,v=t.appear,g=t.afterAppear,m=t.appearCancelled,y=tn,_=tn.$vnode;_&&_.parent;)y=(_=_.parent).context;var b=!y._isMounted||!n.isRootInsert;if(!b||v||""===v){var w=b?s:i,k=b?c:o,S=b?u:a,x=b&&h||l,C=b&&"function"==typeof v?v:d,T=b&&g||f,O=b&&m||p,E=C&&1<(C._length||C.length),I=n.context.$options.style||{},A=I[w],$=I["@TRANSITION"]&&I["@TRANSITION"][S]||{},P=function(e,t,n,r,i){var o={},a=t[n],s=t[r],c=t[i];if(a)for(var u in a)o[u]=e.style[u];if(c)for(var l in c)0!==l.indexOf("transition")&&(o[l]=c[l]);s&&D(o,s);return o}(r,I,w,k,S),M=0<Object.keys(P).length,j=r._enterCb=L(function(){j.cancelled?O&&O(r):T&&T(r),r._enterCb=null});if(setTimeout(function(){var e=r.parentNode,t=e&&e._pending&&e._pending[n.key];(t&&t.context===n.context&&t.tag===n.tag&&t.elm._leaveCb&&t.elm._leaveCb(),C&&C(r,j),M)?n.context.$requireWeexModule("animation").transition(r.ref,{styles:P,duration:$.duration||0,delay:$.delay||0,timingFunction:$.timingFunction||"linear"},E?N:j):E||j()},16),x&&x(r),A)if("function"==typeof r.setStyles)r.setStyles(A);else for(var B in A)r.setStyle(B,A[B]);M||E||j()}}}var zr=function(e){var r,t,y={},n=e.modules,_=e.nodeOps;for(r=0;r<nr.length;++r)for(y[nr[r]]=[],t=0;t<n.length;++t)I(n[t][nr[r]])&&y[nr[r]].push(n[t][nr[r]]);function o(e){var t=_.parentNode(e);I(t)&&_.removeChild(t,e)}function b(e,t,n,r,i,o,a){if(I(e.elm)&&I(o)&&(e=o[a]=pe(e)),e.isRootInsert=!i,!function(e,t,n,r){var i=e.data;if(I(i)){var o=I(e.componentInstance)&&i.keepAlive;if(I(i=i.hook)&&I(i=i.init)&&i(e,!1,n,r),I(e.componentInstance))return p(e,t),d(n,e.elm,r),A(o)&&function(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,I(i=o.data)&&I(i=i.transition)){for(i=0;i<y.activate.length;++i)y.activate[i](tr,o);t.push(o);break}d(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var s=e.data,c=e.children,u=e.tag;if(I(u)){e.elm=e.ns?_.createElementNS(e.ns,u):_.createElement(u,e),f(e);var l=I(s)&&A(s.appendAsTree);l||(I(s)&&v(e,t),d(n,e.elm,r)),h(e,c,t),l&&(I(s)&&v(e,t),d(n,e.elm,r))}else A(e.isComment)?e.elm=_.createComment(e.text):e.elm=_.createTextNode(e.text),d(n,e.elm,r)}}function p(e,t){I(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,w(e)?(v(e,t),f(e)):(Qn(e),t.push(e))}function d(e,t,n){I(e)&&(I(n)?_.parentNode(n)===e&&_.insertBefore(e,t,n):_.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)b(t[r],n,e.elm,null,!0,t,r);else $(e.text)&&_.appendChild(e.elm,_.createTextNode(String(e.text)))}function w(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return I(e.tag)}function v(e,t){for(var n=0;n<y.create.length;++n)y.create[n](tr,e);I(r=e.data.hook)&&(I(r.create)&&r.create(tr,e),I(r.insert)&&t.push(e))}function f(e){var t;if(I(t=e.fnScopeId))_.setStyleScope(e.elm,t);else for(var n=e;n;)I(t=n.context)&&I(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t),n=n.parent;I(t=tn)&&t!==e.context&&t!==e.fnContext&&I(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t)}function m(e,t,n,r,i,o){for(;r<=i;++r)b(n[r],o,e,t,!1,n,r)}function k(e){var t,n,r=e.data;if(I(r))for(I(t=r.hook)&&I(t=t.destroy)&&t(e),t=0;t<y.destroy.length;++t)y.destroy[t](e);if(I(t=e.children))for(n=0;n<e.children.length;++n)k(e.children[n])}function S(e,t,n,r){for(;n<=r;++n){var i=t[n];I(i)&&(I(i.tag)?(a(i),k(i)):o(i.elm))}}function a(e,t){if(I(t)||I(e.data)){var n,r=y.remove.length+1;for(I(t)?t.listeners+=r:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,r),I(n=e.componentInstance)&&I(n=n._vnode)&&I(n.data)&&a(n,t),n=0;n<y.remove.length;++n)y.remove[n](e,t);I(n=e.data.hook)&&I(n=n.remove)?n(e,t):t()}else o(e.elm)}function x(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(I(o)&&rr(e,o))return i}}function C(e,t,n,r,i,o){if(e!==t){I(t.elm)&&I(r)&&(t=r[i]=pe(t));var a=t.elm=e.elm;if(A(e.isAsyncPlaceholder))I(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(A(t.isStatic)&&A(e.isStatic)&&t.key===e.key&&(A(t.isCloned)||A(t.isOnce)))t.componentInstance=e.componentInstance;else{var s,c=t.data;I(c)&&I(s=c.hook)&&I(s=s.prepatch)&&s(e,t);var u=e.children,l=t.children;if(I(c)&&w(t)){for(s=0;s<y.update.length;++s)y.update[s](e,t);I(s=c.hook)&&I(s=s.update)&&s(e,t)}E(t.text)?I(u)&&I(l)?u!==l&&function(e,t,n,r,i){for(var o,a,s,c=0,u=0,l=t.length-1,d=t[0],f=t[l],p=n.length-1,h=n[0],v=n[p],g=!i;c<=l&&u<=p;)E(d)?d=t[++c]:E(f)?f=t[--l]:rr(d,h)?(C(d,h,r,n,u),d=t[++c],h=n[++u]):rr(f,v)?(C(f,v,r,n,p),f=t[--l],v=n[--p]):rr(d,v)?(C(d,v,r,n,p),g&&_.insertBefore(e,d.elm,_.nextSibling(f.elm)),d=t[++c],v=n[--p]):(rr(f,h)?(C(f,h,r,n,u),g&&_.insertBefore(e,f.elm,d.elm),f=t[--l]):(E(o)&&(o=ir(t,c,l)),E(a=I(h.key)?o[h.key]:x(h,t,c,l))?b(h,r,e,d.elm,!1,n,u):rr(s=t[a],h)?(C(s,h,r,n,u),t[a]=void 0,g&&_.insertBefore(e,s.elm,d.elm)):b(h,r,e,d.elm,!1,n,u)),h=n[++u]);l<c?m(e,E(n[p+1])?null:n[p+1].elm,n,u,p,r):p<u&&S(0,t,c,l)}(a,u,l,n,o):I(l)?(I(e.text)&&_.setTextContent(a,""),m(a,null,l,0,l.length-1,n)):I(u)?S(0,u,0,u.length-1):I(e.text)&&_.setTextContent(a,""):e.text!==t.text&&_.setTextContent(a,t.text),I(c)&&I(s=c.hook)&&I(s=s.postpatch)&&s(e,t)}}}function T(e,t,n){if(A(n)&&I(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var g=s("attrs,class,staticClass,staticStyle,key");function O(e,t,n,r){var i,o=t.tag,a=t.data,s=t.children;if(r=r||a&&a.pre,t.elm=e,A(t.isComment)&&I(t.asyncFactory))return t.isAsyncPlaceholder=!0;if(I(a)&&(I(i=a.hook)&&I(i=i.init)&&i(t,!0),I(i=t.componentInstance)))return p(t,n),!0;if(I(o)){if(I(s))if(e.hasChildNodes())if(I(i=a)&&I(i=i.domProps)&&I(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,u=e.firstChild,l=0;l<s.length;l++){if(!u||!O(u,s[l],n,r)){c=!1;break}u=u.nextSibling}if(!c||u)return!1}else h(t,s,n);if(I(a)){var d=!1;for(var f in a)if(!g(f)){d=!0,v(t,n);break}!d&&a.class&&He(a.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r,i,o){if(!E(t)){var a,s=!1,c=[];if(E(e))s=!0,b(t,c,i,o);else{var u=I(e.nodeType);if(!u&&rr(e,t))C(e,t,c,null,null,r);else{if(u){if(1===e.nodeType&&e.hasAttribute(M)&&(e.removeAttribute(M),n=!0),A(n)&&O(e,t,c))return T(t,c,!0),e;a=e,e=new ue(_.tagName(a).toLowerCase(),{},[],void 0,a)}var l=e.elm,d=_.parentNode(l);if(b(t,c,l._leaveCb?null:d,_.nextSibling(l)),I(t.parent))for(var f=t.parent,p=w(t);f;){for(var h=0;h<y.destroy.length;++h)y.destroy[h](f);if(f.elm=t.elm,p){for(var v=0;v<y.create.length;++v)y.create[v](tr,f);var g=f.data.hook.insert;if(g.merged)for(var m=1;m<g.fns.length;m++)g.fns[m]()}else Qn(f);f=f.parent}I(d)?S(0,[e],0,0):I(e.tag)&&k(e)}}return T(t,c,s),t.elm}I(e)&&k(e)}}({nodeOps:Kn,modules:[mr,Ar,jr,Nr,{create:Fr,activate:Fr,remove:function(n,e){var r=n.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var t=Lr(n.data.transition);if(!t)return e();if(r._leaveCb)return;var i=t.leaveClass,o=t.leaveToClass,a=t.leaveActiveClass,s=t.beforeLeave,c=t.leave,u=t.afterLeave,l=t.leaveCancelled,d=t.delayLeave,f=c&&1<(c._length||c.length),p=n.context.$options.style||{},h=p[i],v=p[o]||p[a],g=p["@TRANSITION"]&&p["@TRANSITION"][a]||{},m=r._leaveCb=L(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[n.key]=null),m.cancelled?l&&l(r):(e(),u&&u(r)),r._leaveCb=null});d?d(y):y();function y(){var e=n.context.$requireWeexModule("animation");function t(){e.transition(r.ref,{styles:v,duration:g.duration||0,delay:g.delay||0,timingFunction:g.timingFunction||"linear"},f?N:m)}m.cancelled||(n.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[n.key]=n),s&&s(r),h?e.transition(r.ref,{styles:h},t):t(),c&&c(r,m),v||f||m())}}}].concat(lr),LONG_LIST_THRESHOLD:10}),Vr=Object.getOwnPropertyNames(ve);function Ur(e,r){var i=e.$el;return i&&"function"==typeof i[r]?function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];return i[r].apply(i,t)}:(ie("Can't find component method \""+r+'" on '+i.type),N)}function qr(e,n){Array.isArray(n)&&(!function(f,n){for(var e=function(e,t){var d=Vr[e];F(n,d,function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r=this.length,i=ve[d];"function"==typeof i&&i.apply(this,t);var o=Ur(f,"removeData"),a=Ur(f,"insertRange"),s=Ur(f,"setListData");switch(d){case"push":a(r,t);break;case"pop":o(r-1,1);break;case"shift":o(0,1);break;case"unshift":a(0,t);break;case"splice":var c=t[0],u=t[1],l=t.slice(2);0<u&&o(c,u),0<l.length&&a(c,l);break;case"sort":case"reverse":s(this.slice())}})},t=0,r=Vr.length;t<r;t++)e(t)}(e,n),n.forEach(function(t){d(t)&&!f(t,"[[Watched]]")&&(F(t,"[[Watched]]",!0),e.$watch(function(){for(var e in t)t[e]},function(){Ur(e,"updateData")(n.indexOf(t),t)},{deep:!0}))}))}var Wr={name:"recycle-list",methods:{closest:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).closest.apply(e,n)},queryElement:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).queryElement.apply(e,n)},queryElementAll:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).queryElementAll.apply(e,n)},scrollToElement:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).scrollToElement.apply(e,n)},resetLoadmore:function(){for(var e,t=arguments,n=[],r=arguments.length;r--;)n[r]=t[r];return(e=this.$el).resetLoadmore.apply(e,n)}},render:function(e){var t=this;if(this._vnode&&this.$options["[[UseCache]]"])return F(this.$options,"[[UseCache]]",!1),this._vnode;var n=this.$options.parent,r=this.$attrs.bindingExpression;return n&&r&&(n.$watch(r,function(){return F(t.$options,"[[UseCache]]",!0)},{deep:!0,immediate:!0}),qr(this,this.$attrs.listData),n.$watch(r,function(e){qr(t,e)})),this._events._attach_slot=function(e){It(t.$parent||t,e.position,e.refs)},this._events._detach_slot=function(e){It(t.$parent||t,e.position,e.refs,!0)},e("weex:recycle-list",{on:this._events},this.$slots.default)},renderError:function(e,t){return e("text",{style:{fontSize:"36px",color:"#FF0000"},value:t.toString()})}},Hr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Gr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Gr(Yt(t.children)):e}function Xr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[h(o)]=i[o];return t}function Yr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Jr=function(e){return e.tag||Xt(e)},Kr=function(e){return"show"===e.name},Zr={name:"transition",props:Hr,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Jr)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Gr(i);if(!o)return i;if(this._leaving)return Yr(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:$(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s,c,u=(o.data||(o.data={})).transition=Xr(this),l=this._vnode,d=Gr(l);if(o.data.directives&&o.data.directives.some(Kr)&&(o.data.show=!0),d&&d.data&&(s=o,(c=d).key!==s.key||c.tag!==s.tag)&&!Xt(d)&&(!d.componentInstance||!d.componentInstance._vnode.isComment)){var f=d.data.transition=D({},u);if("out-in"===r)return this._leaving=!0,Je(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Yr(e,i);if("in-out"===r){if(Xt(o))return l;var p,h=function(){p()};Je(u,"afterEnter",h),Je(u,"enterCancelled",h),Je(f,"delayLeave",function(e){p=e})}}return i}}},Qr=D({tag:String,moveClass:String},Hr);delete Qr.mode;var ei={RecycleList:Wr,Transition:Zr,TransitionGroup:{props:Qr,created:function(){var e=this.$requireWeexModule("dom");this.getPosition=function(r){return new Promise(function(t,n){e.getComponentRect(r.ref,function(e){e.result?t(e.size):n(new Error("failed to get rect for element: "+r.tag))})})};var r=this.$requireWeexModule("animation");this.animate=function(t,n){return new Promise(function(e){r.transition(t.ref,n,e)})}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Xr(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),((n[c.key]=c).data||(c.data={})).transition=a)}if(r){var u=[],l=[];r.forEach(function(e){e.data.transition=a,n[e.key]?u.push(e):l.push(e)}),this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.getMoveData(e[0].context,t)},methods:{getMoveData:function(e,t){var n=e.$options.style||{};return n["@TRANSITION"]&&n["@TRANSITION"][t]}}}},ti=s("template,script,style,element,content,slot,link,meta,svg,view,a,div,img,image,text,u-text,span,input,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),ni=(s("web,spinner,switch,video,textarea,canvas,indicator,marquee,countdown",!0),s("richtext,transition,transition-group,recycle-list",!0));s("embed,img,image,input,link,meta",!0);Nn.config.mustUseProp=function(){return!1},Nn.config.isReservedTag=ti,Nn.config.isRuntimeComponent=ni,Nn.config.isUnknownElement=function(){return!1},Nn.options.directives={},Nn.options.components=ei,Nn.prototype.__patch__=zr,Nn.prototype.$mount=function(e,t){return n=this,r=e&&(o=this.$document,(a=o.createComment("root")).hasAttribute=a.removeAttribute=N,o.documentElement.appendChild(a),a),i=t,n.$el=r,n.$options.render||(n.$options.render=de),an(n,"beforeMount"),new mn(n,function(){n._update(n._render(),i)},N,{before:function(){n._isMounted&&!n._isDestroyed&&an(n,"beforeUpdate")}},!0),i=!1,null==n.$vnode&&(n._isMounted=!0,an(n,"mounted")),n;var n,r,i,o,a},Nn.prototype.__call_hook=function(e,t){se();var n,r=this.$options[e],i=e+" hook";if(r)for(var o=0,a=r.length;o<a;o++)n=Ne(r[o],this,t?[t]:null,this,i);return this._hasHookEvent&&this.$emit("hook:"+e,t),ce(),n},e.Vue=Nn}});unwrapExports(factory);var weexVueFramework=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var d={};t.createInstanceContext=function(e,t,n){void 0===n&&(n={});var r,i,o,a,s=t.weex,c=(d[e]={instanceId:e,config:s.config,document:s.document,data:n}).Vue=function(e,t,n){var r={};factory(r,t.document,n);var i=r.Vue,o=d[e],a=/^weex:/i,s=i.config.isReservedTag||function(){return!1},c=i.config.isRuntimeComponent||function(){return!1};return i.config.isReservedTag=function(e){return!c(e)&&t.supports("@component/"+e)||s(e)||a.test(e)},i.config.parsePlatformTagName=function(e){return e.replace(a,"")},i.prototype.$instanceId=e,i.prototype.$document=o.document,i.prototype.$requireWeexModule=t.requireModule,i.mixin({beforeCreate:function(){var e=this.$options;if(e.el){var t=e.data,n=("function"==typeof t?t():t)||{};e.data=Object.assign(n,o.data),o.app=this}},mounted:function(){if(this.$options.el&&t.document&&o.app===this)try{t.document.taskCenter.send("dom",{action:"createFinish"},[])}catch(e){}}}),i.prototype.$getConfig=function(){if(o.app instanceof i)return o.config},i}(e,s,t.SharedObject),u=(r=e,i=s.requireModule,o=d[r],a=i("timer"),{setTimeout:function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];if(a.setTimeout){var r=o.document.taskCenter.callbackManager.lastCallbackId;return a.setTimeout(function(){t[0].apply(t,t.slice(2))},t[1]),(r+1).toString()}},setInterval:function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];if(a.setInterval){var r=o.document.taskCenter.callbackManager.lastCallbackId;return a.setInterval(function(){t[0].apply(t,t.slice(2))},t[1]),(r+1).toString()}},clearTimeout:function(e){a.clearTimeout&&a.clearTimeout(e)},clearInterval:function(e){a.clearInterval&&a.clearInterval(e)}}),l=Object.assign({Vue:c},u);return Object.freeze(l),l},t.destroyInstance=function(e){var t=d[e];if(t&&t.app instanceof t.Vue){try{t.app.$destroy(),t.document.destroy()}catch(e){}delete t.document,delete t.app}delete d[e]},t.refreshInstance=function(e,t){var n=d[e];if(!(n&&n.app instanceof n.Vue))return new Error("refreshInstance: instance "+e+" not found!");if(n.Vue&&n.Vue.set)for(var r in t)n.Vue.set(n.app,r,t[r]);n.document.taskCenter.send("dom",{action:"refreshFinish"},[])}}),index=unwrapExports(weexVueFramework),weexVueFramework_1=weexVueFramework.createInstanceContext,weexVueFramework_2=weexVueFramework.destroyInstance,weexVueFramework_3=weexVueFramework.refreshInstance,Vue=Object.freeze({default:index,__moduleExports:weexVueFramework,createInstanceContext:weexVueFramework_1,destroyInstance:weexVueFramework_2,refreshInstance:weexVueFramework_3});setNativeConsole(),setup({Vue:Vue})});
|