chunk-3360695a.2abe3ade.js 141 KB

1234567
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3360695a"],{"053b":function(t,e,i){var n=i("1e2c"),s=i("d910").f,o=Function.prototype,r=o.toString,a=/^\s*function ([^ (]*)/,l="name";n&&!(l in o)&&s(o,l,{configurable:!0,get:function(){try{return r.call(this).match(a)[1]}catch(t){return""}}})},"064b":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"08ba":function(t,e,i){var n=i("d890"),s=i("064b"),o=i("3c10"),r=i("0fc1");for(var a in s){var l=n[a],c=l&&l.prototype;if(c&&c.forEach!==o)try{r(c,"forEach",o)}catch(u){c.forEach=o}}},"08d5":function(t,e,i){"use strict";var n=i("1c8b"),s=i("0c3c"),o=i("3553"),r=i("efe2"),a=i("d7e1"),l=[],c=l.sort,u=r((function(){l.sort(void 0)})),h=r((function(){l.sort(null)})),d=a("sort"),f=u||!h||!d;n({target:"Array",proto:!0,forced:f},{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),s(t))}})},"0a51":function(t,e,i){"use strict";var n=i("1c8b"),s=i("1e2c"),o=i("d890"),r=i("faa8"),a=i("a719"),l=i("d910").f,c=i("c69d"),u=o.Symbol;if(s&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new u(t):void 0===t?u():u(t);return""===t&&(h[e]=!0),e};c(d,u);var f=d.prototype=u.prototype;f.constructor=d;var p=f.toString,g="Symbol(test)"==String(u("test")),v=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=p.call(t);if(r(h,t))return"";var i=g?e.slice(7,-1):e.replace(v,"$1");return""===i?void 0:i}}),n({global:!0,forced:!0},{Symbol:d})}},"0d7a":function(t,e,i){"use strict";var n=i("b2a2"),s=i("8a1c"),o=i("857c"),r=i("2732"),a=i("ef4c"),l=i("38eb"),c=i("d88d"),u=i("59da"),h=i("5139"),d=i("efe2"),f=[].push,p=Math.min,g=4294967295,v=!d((function(){return!RegExp(g,"y")}));n("split",2,(function(t,e,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var n=String(r(this)),o=void 0===i?g:i>>>0;if(0===o)return[];if(void 0===t)return[n];if(!s(t))return e.call(n,t,o);var a,l,c,u=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,v=new RegExp(t.source,d+"g");while(a=h.call(v,n)){if(l=v.lastIndex,l>p&&(u.push(n.slice(p,a.index)),a.length>1&&a.index<n.length&&f.apply(u,a.slice(1)),c=a[0].length,p=l,u.length>=o))break;v.lastIndex===a.index&&v.lastIndex++}return p===n.length?!c&&v.test("")||u.push(""):u.push(n.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,i){var s=r(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,s,i):n.call(String(s),e,i)},function(t,s){var r=i(n,t,this,s,n!==e);if(r.done)return r.value;var h=o(t),d=String(this),f=a(h,RegExp),m=h.unicode,b=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(v?"y":"g"),w=new f(v?h:"^(?:"+h.source+")",b),y=void 0===s?g:s>>>0;if(0===y)return[];if(0===d.length)return null===u(w,d)?[d]:[];var L=0,T=0,E=[];while(T<d.length){w.lastIndex=v?T:0;var x,S=u(w,v?d:d.slice(T));if(null===S||(x=p(c(w.lastIndex+(v?0:T)),d.length))===L)T=l(d,T,m);else{if(E.push(d.slice(L,T)),E.length===y)return E;for(var _=1;_<=S.length-1;_++)if(E.push(S[_]),E.length===y)return E;T=L=x}}return E.push(d.slice(L)),E}]}),!v)},"1bbd":function(t,e,i){"use strict";var n=i("9f67"),s=i("d910"),o=i("38b9");t.exports=function(t,e,i){var r=n(e);r in t?s.f(t,r,o(0,i)):t[r]=i}},"2bbe":function(t,e,i){var n=i("1c8b"),s=i("c7e6");n({target:"String",proto:!0},{repeat:s})},3587:function(t,e,i){"use strict";var n=i("0c3c"),s=i("a719"),o=[].slice,r={},a=function(t,e,i){if(!(e in r)){for(var n=[],s=0;s<e;s++)n[s]="a["+s+"]";r[e]=Function("C,a","return new C("+n.join(",")+")")}return r[e](t,i)};t.exports=Function.bind||function(t){var e=n(this),i=o.call(arguments,1),r=function(){var n=i.concat(o.call(arguments));return this instanceof r?a(e,n.length,n):e.apply(t,n)};return s(e.prototype)&&(r.prototype=e.prototype),r}},"35bd":function(t,e,i){},"36a1":function(t,e,i){var n=i("1c8b"),s=i("efe2"),o=i("3553"),r=i("908e"),a=i("eec6"),l=s((function(){r(1)}));n({target:"Object",stat:!0,forced:l,sham:!a},{getPrototypeOf:function(t){return r(o(t))}})},"3c10":function(t,e,i){"use strict";var n=i("5dfd").forEach,s=i("d7e1"),o=i("ff9c"),r=s("forEach"),a=o("forEach");t.exports=r&&a?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},4350:function(t,e,i){var n=i("90fb");e.f=n},"48f3":function(t,e,i){var n=i("1c8b"),s=i("3587");n({target:"Function",proto:!0},{bind:s})},"6d51":function(t,e,i){var n=i("1b99"),s=i("faa8"),o=i("4350"),r=i("d910").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});s(e,t)||r(e,t,{value:o.f(t)})}},"6db4":function(t,e,i){"use strict";var n=i("1c8b"),s=i("c10f").trim,o=i("f221");n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return s(this)}})},7063:function(t,e,i){var n=i("a719"),s=i("50fb");t.exports=function(t,e,i){var o,r;return s&&"function"==typeof(o=e.constructor)&&o!==i&&n(r=o.prototype)&&r!==i.prototype&&s(t,r),t}},"77ad":function(t,e,i){"use strict";var n=i("1c8b"),s=i("a719"),o=i("74e7"),r=i("e1d6"),a=i("d88d"),l=i("da10"),c=i("1bbd"),u=i("90fb"),h=i("1ea7"),d=i("ff9c"),f=h("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),v=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!f||!p},{slice:function(t,e){var i,n,u,h=l(this),d=a(h.length),f=r(t,d),p=r(void 0===e?d:e,d);if(o(h)&&(i=h.constructor,"function"!=typeof i||i!==Array&&!o(i.prototype)?s(i)&&(i=i[g],null===i&&(i=void 0)):i=void 0,i===Array||void 0===i))return v.call(h,f,p);for(n=new(void 0===i?Array:i)(m(p-f,0)),u=0;f<p;f++,u++)f in h&&c(n,u,h[f]);return n.length=u,n}})},"84b3":function(t,e,i){var n=i("d890"),s=i("c10f").trim,o=i("fc8c"),r=n.parseFloat,a=1/r(o+"-0")!==-1/0;t.exports=a?function(t){var e=s(String(t)),i=r(e);return 0===i&&"-"==e.charAt(0)?-0:i}:r},"84bc":function(t,e,i){"use strict";var n=i("1c8b"),s=i("5dfd").every,o=i("d7e1"),r=i("ff9c"),a=o("every"),l=r("every");n({target:"Array",proto:!0,forced:!a||!l},{every:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},"84c2":function(t,e,i){var n=i("1e2c"),s=i("d890"),o=i("e8d6"),r=i("7063"),a=i("d910").f,l=i("b338").f,c=i("8a1c"),u=i("99ad"),h=i("22ef"),d=i("1944"),f=i("efe2"),p=i("b702").set,g=i("403f"),v=i("90fb"),m=v("match"),b=s.RegExp,w=b.prototype,y=/a/g,L=/a/g,T=new b(y)!==y,E=h.UNSUPPORTED_Y,x=n&&o("RegExp",!T||E||f((function(){return L[m]=!1,b(y)!=y||b(L)==L||"/a/i"!=b(y,"i")})));if(x){var S=function(t,e){var i,n=this instanceof S,s=c(t),o=void 0===e;if(!n&&s&&t.constructor===S&&o)return t;T?s&&!o&&(t=t.source):t instanceof S&&(o&&(e=u.call(t)),t=t.source),E&&(i=!!e&&e.indexOf("y")>-1,i&&(e=e.replace(/y/g,"")));var a=r(T?new b(t,e):b(t,e),n?this:w,S);return E&&i&&p(a,{sticky:i}),a},_=function(t){t in S||a(S,t,{configurable:!0,get:function(){return b[t]},set:function(e){b[t]=e}})},C=l(b),k=0;while(C.length>k)_(C[k++]);w.constructor=S,S.prototype=w,d(s,"RegExp",S)}g("RegExp")},"8a1c":function(t,e,i){var n=i("a719"),s=i("2118"),o=i("90fb"),r=o("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==s(t))}},"8fc1":function(t,e,i){"use strict";i("35bd")},9302:function(t,e,i){"use strict";var n=i("1c8b"),s=i("692f"),o=i("da10"),r=i("d7e1"),a=[].join,l=s!=Object,c=r("join",",");n({target:"Array",proto:!0,forced:l||!c},{join:function(t){return a.call(o(this),void 0===t?",":t)}})},"96db":function(t,e,i){"use strict";var n=i("f62c").charAt,s=i("b702"),o=i("99ee"),r="String Iterator",a=s.set,l=s.getterFor(r);o(String,"String",(function(t){a(this,{type:r,string:String(t),index:0})}),(function(){var t,e=l(this),i=e.string,s=e.index;return s>=i.length?{value:void 0,done:!0}:(t=n(i,s),e.index+=t.length,{value:t,done:!1})}))},"983d":function(t,e,i){var n=i("1c8b");n({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},"98ea":function(t,e,i){var n=i("1c8b"),s=i("1e2c"),o=i("d910");n({target:"Object",stat:!0,forced:!s,sham:!s},{defineProperty:o.f})},"9b11":function(t,e,i){var n=i("6d51");n("iterator")},af86:function(t,e,i){var n=i("d890"),s=i("064b"),o=i("a133"),r=i("0fc1"),a=i("90fb"),l=a("iterator"),c=a("toStringTag"),u=o.values;for(var h in s){var d=n[h],f=d&&d.prototype;if(f){if(f[l]!==u)try{r(f,l,u)}catch(g){f[l]=u}if(f[c]||r(f,c,h),s[h])for(var p in o)if(f[p]!==o[p])try{r(f,p,o[p])}catch(g){f[p]=o[p]}}}},b4fb:function(t,e,i){"use strict";var n=i("1c8b"),s=i("efe2"),o=i("74e7"),r=i("a719"),a=i("3553"),l=i("d88d"),c=i("1bbd"),u=i("1ca1"),h=i("1ea7"),d=i("90fb"),f=i("f594"),p=d("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=f>=51||!s((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),b=h("concat"),w=function(t){if(!r(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},y=!m||!b;n({target:"Array",proto:!0,forced:y},{concat:function(t){var e,i,n,s,o,r=a(this),h=u(r,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?r:arguments[e],w(o)){if(s=l(o.length),d+s>g)throw TypeError(v);for(i=0;i<s;i++,d++)i in o&&c(h,d,o[i])}else{if(d>=g)throw TypeError(v);c(h,d++,o)}return h.length=d,h}})},b92a:function(t,e,i){var n=i("1c8b"),s=i("84b3");n({global:!0,forced:parseFloat!=s},{parseFloat:s})},be1d:function(t,e,i){var n=i("1c8b"),s=i("50fb");n({target:"Object",stat:!0},{setPrototypeOf:s})},c051:function(t,e,i){var n=i("da10"),s=i("b338").f,o={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return s(t)}catch(e){return r.slice()}};t.exports.f=function(t){return r&&"[object Window]"==o.call(t)?a(t):s(n(t))}},c80e:function(t,e,i){function n(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}i("f3dd"),i("0a51"),i("9b11"),i("e18c"),i("96db"),i("af86"),t.exports=n},cc3c:function(t,e,i){var n,s;i("b4fb"),i("84bc"),i("dbb3"),i("fe59"),i("ecb4"),i("f657"),i("9302"),i("2eeb"),i("77ad"),i("08d5"),i("ea69"),i("983d"),i("e50e"),i("48f3"),i("053b"),i("98ea"),i("36a1"),i("be1d"),i("e18c"),i("b92a"),i("33a2"),i("84c2"),i("e35a"),i("1c2e"),i("f4e3"),i("2bbe"),i("5e9f"),i("0d7a"),i("6db4"),i("08ba"),i("1fb3");var o=i("c80e"),r=function(i,r){var a=/complete|loaded|interactive/,l=/^#([\w-]+)$/,c=/^\.([\w-]+)$/,u=/^[\w-]+$/,h=/translate(?:3d)?\((.+?)\)/,d=/matrix(3d)?\((.+?)\)/,f=function t(e,n){if(n=n||i,!e)return p();if("object"===o(e))return t.isArrayLike(e)?p(t.slice.call(e),null):p([e],null);if("function"===typeof e)return t.ready(e);if("string"===typeof e)try{if(e=e.trim(),l.test(e)){var s=i.getElementById(RegExp.$1);return p(s?[s]:[])}return p(t.qsa(e,n),e)}catch(r){}return p()},p=function(t,e){return t=t||[],Object.setPrototypeOf(t,f.fn),t.selector=e||"",t};f.uuid=0,f.data={},f.extend=function(){var t,e,i,n,s,a,l=arguments[0]||{},c=1,u=arguments.length,h=!1;for("boolean"===typeof l&&(h=l,l=arguments[c]||{},c++),"object"===o(l)||f.isFunction(l)||(l={}),c===u&&(l=this,c--);c<u;c++)if(null!=(t=arguments[c]))for(e in t)i=l[e],n=t[e],l!==n&&(h&&n&&(f.isPlainObject(n)||(s=f.isArray(n)))?(s?(s=!1,a=i&&f.isArray(i)?i:[]):a=i&&f.isPlainObject(i)?i:{},l[e]=f.extend(h,a,n)):n!==r&&(l[e]=n));return l},f.noop=function(){},f.slice=[].slice,f.filter=[].filter,f.type=function(t){return null==t?String(t):g[{}.toString.call(t)]||"object"},f.isArray=Array.isArray||function(t){return t instanceof Array},f.isArrayLike=function(t){var e=!!t&&"length"in t&&t.length,i=f.type(t);return"function"!==i&&!f.isWindow(t)&&("array"===i||0===e||"number"===typeof e&&e>0&&e-1 in t)},f.isWindow=function(t){return null!=t&&t===t.window},f.isObject=function(t){return"object"===f.type(t)},f.isPlainObject=function(t){return f.isObject(t)&&!f.isWindow(t)&&Object.getPrototypeOf(t)===Object.prototype},f.isEmptyObject=function(t){for(var e in t)if(e!==r)return!1;return!0},f.isFunction=function(t){return"function"===f.type(t)},f.qsa=function(t,e){return e=e||i,f.slice.call(c.test(t)?e.getElementsByClassName(RegExp.$1):u.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t))},f.ready=function(t){return a.test(i.readyState)?t(f):i.addEventListener("DOMContentLoaded",(function(){t(f)}),!1),this},f.buffer=function(t,e,i){var n,s=0,o=0;e=e||150;function r(){n&&(n.cancel(),n=0),s=f.now(),t.apply(i||this,arguments),o=f.now()}return f.extend((function(){!s||o>=s&&f.now()-o>e||o<s&&f.now()-s>8*e?r.apply(this,arguments):(n&&n.cancel(),n=f.later(r,e,null,f.slice.call(arguments)))}),{stop:function(){n&&(n.cancel(),n=0)}})},f.each=function(t,e,i){if(!t)return this;if("number"===typeof t.length)[].every.call(t,(function(t,i){return!1!==e.call(t,i,t)}));else for(var n in t)if(i){if(t.hasOwnProperty(n)&&!1===e.call(t[n],n,t[n]))return t}else if(!1===e.call(t[n],n,t[n]))return t;return this},f.focus=function(t){f.os.ios?setTimeout((function(){t.focus()}),10):t.focus()},f.trigger=function(t,e,i){return t.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0})),this},f.getStyles=function(t,e){var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i.getPropertyValue(e)||i[e]:i},f.parseTranslate=function(t,e){var i=t.match(h||"");return i&&i[1]||(i=["","0,0,0"]),i=i[1].split(","),i={x:parseFloat(i[0]),y:parseFloat(i[1]),z:parseFloat(i[2])},e&&i.hasOwnProperty(e)?i[e]:i},f.parseTranslateMatrix=function(t,e){var i=t.match(d),n=i&&i[1];i?(i=i[2].split(","),"3d"===n?i=i.slice(12,15):(i.push(0),i=i.slice(4,7))):i=[0,0,0];var s={x:parseFloat(i[0]),y:parseFloat(i[1]),z:parseFloat(i[2])};return e&&s.hasOwnProperty(e)?s[e]:s},f.hooks={},f.addAction=function(t,e){var i=f.hooks[t];return i||(i=[]),e.index=e.index||1e3,i.push(e),i.sort((function(t,e){return t.index-e.index})),f.hooks[t]=i,f.hooks[t]},f.doAction=function(t,e){f.isFunction(e)?f.each(f.hooks[t],e):f.each(f.hooks[t],(function(t,e){return!e.handle()}))},f.later=function(t,e,i,n){e=e||0;var s,o,r=t,a=n;return"string"===typeof t&&(r=i[t]),s=function(){r.apply(i,f.isArray(a)?a:[a])},o=setTimeout(s,e),{id:o,cancel:function(){clearTimeout(o)}}},f.now=Date.now||function(){return+new Date};var g={};return f.each(["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"],(function(t,e){g["[object "+e+"]"]=e.toLowerCase()})),window.JSON&&(f.parseJSON=JSON.parse),f.fn={each:function(t){return[].every.call(this,(function(e,i){return!1!==t.call(e,i,e)})),this}},n=[],s=function(){return f}.apply(e,n),s===r||(t.exports=s),f}(document);
  2. /*!
  3. * =====================================================
  4. * Mui v3.7.3 (http://dev.dcloud.net.cn/mui)
  5. * =====================================================
  6. */(function(t,e){function i(i){this.os={};var n=[function(){var t=i.match(/(MicroMessenger)\/([\d\.]+)/i);return t&&(this.os.wechat={version:t[2].replace(/_/g,".")}),!1},function(){var t=i.match(/(Android);?[\s\/]+([\d.]+)?/);return t&&(this.os.android=!0,this.os.version=t[2],this.os.isBadAndroid=!/Chrome\/\d/.test(e.navigator.appVersion)),!0===this.os.android},function(){var t=i.match(/(iPhone\sOS)\s([\d_]+)/);if(t)this.os.ios=this.os.iphone=!0,this.os.version=t[2].replace(/_/g,".");else{var e=i.match(/(iPad).*OS\s([\d_]+)/);e&&(this.os.ios=this.os.ipad=!0,this.os.version=e[2].replace(/_/g,"."))}return!0===this.os.ios}];[].every.call(n,(function(e){return!e.call(t)}))}i.call(t,navigator.userAgent)})(r,window),function(t,e){function i(i){this.os=this.os||{};var n=i.match(/Html5Plus/i);n&&(this.os.plus=!0,t((function(){e.body.classList.add("mui-plus")})),i.match(/StreamApp/i)&&(this.os.stream=!0,t((function(){e.body.classList.add("mui-plus-stream")}))))}i.call(t,navigator.userAgent)}(r,document),function(t){"ontouchstart"in window?(t.isTouchable=!0,t.EVENT_START="touchstart",t.EVENT_MOVE="touchmove",t.EVENT_END="touchend"):(t.isTouchable=!1,t.EVENT_START="mousedown",t.EVENT_MOVE="mousemove",t.EVENT_END="mouseup"),t.EVENT_CANCEL="touchcancel",t.EVENT_CLICK="click";var e=1,i={},n={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"},s=function(){return!0},o=function(){return!1},r=function(e,i){return e.detail?e.detail.currentTarget=i:e.detail={currentTarget:i},t.each(n,(function(t,i){var n=e[t];e[t]=function(){return this[i]=s,n&&n.apply(e,arguments)},e[i]=o}),!0),e},a=function(t){return t&&(t._mid||(t._mid=e++))},l={},c=function(e,n,s,o){return function(s){for(var o=i[e._mid][n],a=[],l=s.target,c={};l&&l!==document;l=l.parentNode){if(l===e)break;if(~["click","tap","doubletap","longtap","hold"].indexOf(n)&&(l.disabled||l.classList.contains("mui-disabled")))break;var u={};t.each(o,(function(i,n){c[i]||(c[i]=t.qsa(i,e)),c[i]&&~c[i].indexOf(l)&&(u[i]||(u[i]=n))}),!0),t.isEmptyObject(u)||a.push({element:l,handlers:u})}c=null,s=r(s),t.each(a,(function(e,i){l=i.element;var o=l.tagName;if("tap"===n&&"INPUT"!==o&&"TEXTAREA"!==o&&"SELECT"!==o&&(s.preventDefault(),s.detail&&s.detail.gesture&&s.detail.gesture.preventDefault()),t.each(i.handlers,(function(e,i){t.each(i,(function(t,e){!1===e.call(l,s)&&(s.preventDefault(),s.stopPropagation())}),!0)}),!0),s.isPropagationStopped())return!1}),!0)}},u=function(t,e){var i=l[a(t)],n=[];if(i){if(n=[],e){var s=function(t){return t.type===e};return i.filter(s)}n=i}return n},h=/^(INPUT|TEXTAREA|BUTTON|SELECT)$/;t.fn.on=function(e,n,s){return this.each((function(){var o=this;a(o),a(s);var r=!1,u=i[o._mid]||(i[o._mid]={}),d=u[e]||(u[e]={});t.isEmptyObject(d)&&(r=!0);var f=d[n]||(d[n]=[]);if(f.push(s),r){var p=l[a(o)];p||(p=[]);var g=c(o,e,n,s);p.push(g),g.i=p.length-1,g.type=e,l[a(o)]=p,o.addEventListener(e,g),"tap"===e&&o.addEventListener("click",(function(t){if(t.target){var e=t.target.tagName;if(!h.test(e))if("A"===e){var i=t.target.href;i&&~i.indexOf("tel:")||t.preventDefault()}else t.preventDefault()}}))}}))},t.fn.off=function(e,n,s){return this.each((function(){var o=a(this);if(e)if(n)if(s){var r=i[o]&&i[o][e]&&i[o][e][n];t.each(r,(function(t,e){if(a(e)===a(s))return r.splice(t,1),!1}),!0)}else i[o]&&i[o][e]&&delete i[o][e][n];else i[o]&&delete i[o][e];else i[o]&&delete i[o];i[o]?i[o][e]&&!t.isEmptyObject(i[o][e])||u(this,e).forEach(function(t){this.removeEventListener(t.type,t),delete l[o][t.i]}.bind(this)):u(this).forEach(function(t){this.removeEventListener(t.type,t),delete l[o][t.i]}.bind(this))}))}}(r),function(t,e,i){t.targets={},t.targetHandles=[],t.registerTarget=function(e){return e.index=e.index||1e3,t.targetHandles.push(e),t.targetHandles.sort((function(t,e){return t.index-e.index})),t.targetHandles},e.addEventListener(t.EVENT_START,(function(e){for(var n=e.target,s={};n&&n!==i;n=n.parentNode){var o=!1;if(t.each(t.targetHandles,(function(i,r){var a=r.name;o||s[a]||!r.hasOwnProperty("handle")?s[a]||!1!==r.isReset&&(t.targets[a]=!1):(t.targets[a]=r.handle(e,n),t.targets[a]&&(s[a]=!0,!0!==r.isContinue&&(o=!0)))})),o)break}})),e.addEventListener("click",(function(e){for(var n=e.target,s=!1;n&&n!==i;n=n.parentNode)if("A"===n.tagName&&(t.each(t.targetHandles,(function(t,i){i.name;if(i.hasOwnProperty("handle")&&i.handle(e,n))return s=!0,e.preventDefault(),!1})),s))break}))}(r,window,document),function(t){String.prototype.trim===t&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Object.setPrototypeOf=Object.setPrototypeOf||function(t,e){return t["__proto__"]=e,t}}(),function(){if("undefined"===typeof window.CustomEvent){var t=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("Events"),n=!0;for(var s in e)"bubbles"===s?n=!!e[s]:i[s]=e[s];return i.initEvent(t,n,!0),i};t.prototype=window.Event.prototype,window.CustomEvent=t}}(),Function.prototype.bind=Function.prototype.bind||function(t){var e=Array.prototype.splice.call(arguments,1),i=this,n=function n(){var s=e.concat(Array.prototype.splice.call(arguments,0));if(!(this instanceof n))return i.apply(t,s);i.apply(this,s)};return n.prototype=i.prototype,n},function(t){!("classList"in t.documentElement)&&Object.defineProperty&&"undefined"!==typeof HTMLElement&&Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){var t=this;function e(e){return function(i){var n=t.className.split(/\s+/),s=n.indexOf(i);e(n,s,i),t.className=n.join(" ")}}var i={add:e((function(t,e,i){~e||t.push(i)})),remove:e((function(t,e){~e&&t.splice(e,1)})),toggle:e((function(t,e,i){~e?t.splice(e,1):t.push(i)})),contains:function(e){return!!~t.className.split(/\s+/).indexOf(e)},item:function(e){return t.className.split(/\s+/)[e]||null}};return Object.defineProperty(i,"length",{get:function(){return t.className.split(/\s+/).length}}),i}})}(document),function(t){if(!t.requestAnimationFrame){var e=0;t.requestAnimationFrame=t.webkitRequestAnimationFrame||function(i,n){var s=(new Date).getTime(),o=Math.max(0,16.7-(s-e)),r=t.setTimeout((function(){i(s+o)}),o);return e=s+o,r},t.cancelAnimationFrame=t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame||function(t){clearTimeout(t)}}}(window),function(t,e,i){if((t.os.android||t.os.ios)&&!e.FastClick){var n=function(t,e){return"LABEL"===e.tagName&&e.parentNode&&(e=e.parentNode.querySelector("input")),!(!e||"radio"!==e.type&&"checkbox"!==e.type||e.disabled)&&e};t.registerTarget({name:i,index:40,handle:n,target:!1});var s=function(i){var n,s,o=t.targets.click;o&&(document.activeElement&&document.activeElement!==o&&document.activeElement.blur(),s=i.detail.gesture.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent("click",!0,!0,e,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,o.dispatchEvent(n),i.detail&&i.detail.gesture.preventDefault())};e.addEventListener("tap",s),e.addEventListener("doubletap",s),e.addEventListener("click",(function(e){if(t.targets.click&&!e.forwardedTouchEvent)return e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1}),!0)}}(r,window,"click"),function(t,e){t((function(){if(t.os.ios){var i="mui-focusin",n="mui-bar-tab",s="mui-bar-footer",o="mui-bar-footer-secondary",r="mui-bar-footer-secondary-tab";e.addEventListener("focusin",(function(a){if(!(t.os.plus&&window.plus&&plus.webview.currentWebview().children().length>0)){var l=a.target;if(l.tagName&&("TEXTAREA"===l.tagName||"INPUT"===l.tagName&&("text"===l.type||"search"===l.type||"number"===l.type))){if(l.disabled||l.readOnly)return;e.body.classList.add(i);for(var c=!1;l&&l!==e;l=l.parentNode){var u=l.classList;if(u&&u.contains(n)||u.contains(s)||u.contains(o)||u.contains(r)){c=!0;break}}if(c){var h=e.body.scrollHeight,d=e.body.scrollLeft;setTimeout((function(){window.scrollTo(d,h)}),20)}}}})),e.addEventListener("focusout",(function(t){var n=e.body.classList;n.contains(i)&&(n.remove(i),setTimeout((function(){window.scrollTo(e.body.scrollLeft,e.body.scrollTop)}),20))}))}}))}(r,document),function(t){t.namespace="mui",t.classNamePrefix=t.namespace+"-",t.classSelectorPrefix="."+t.classNamePrefix,t.className=function(e){return t.classNamePrefix+e},t.classSelector=function(e){return e.replace(/\./g,t.classSelectorPrefix)},t.eventName=function(e,i){return e+(t.namespace?"."+t.namespace:"")+(i?"."+i:"")}}(r),function(t,e){t.gestures={session:{}},t.preventDefault=function(t){t.preventDefault()},t.stopPropagation=function(t){t.stopPropagation()},t.addGesture=function(e){return t.addAction("gestures",e)};var i=Math.round,n=Math.abs,s=Math.sqrt,o=(Math.atan,Math.atan2),r=function(t,e,i){i||(i=["x","y"]);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return s(n*n+o*o)},a=function(t,e){if(t.length>=2&&e.length>=2){var i=["pageX","pageY"];return r(e[1],e[0],i)/r(t[1],t[0],i)}return 1},l=function(t,e,i){i||(i=["x","y"]);var n=e[i[0]]-t[i[0]],s=e[i[1]]-t[i[1]];return 180*o(s,n)/Math.PI},c=function(t,e){return t===e?"":n(t)>=n(e)?t>0?"left":"right":e>0?"up":"down"},u=function(t,e){var i=["pageX","pageY"];return l(e[1],e[0],i)-l(t[1],t[0],i)},h=function(t,e,i){return{x:e/t||0,y:i/t||0}},d=function(e,i){t.gestures.stoped||t.doAction("gestures",(function(n,s){t.gestures.stoped||!1!==t.options.gestureConfig[s.name]&&s.handle(e,i)}))},f=function(t,e){while(t){if(t==e)return!0;t=t.parentNode}return!1},p=function(t,e,i){var n=[],s=[],o=0;while(o<t.length){var r=e?t[o][e]:t[o];s.indexOf(r)<0&&n.push(t[o]),s[o]=r,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n},g=function(t){var e=t.length;if(1===e)return{x:i(t[0].pageX),y:i(t[0].pageY)};var n=0,s=0,o=0;while(o<e)n+=t[o].pageX,s+=t[o].pageY,o++;return{x:i(n/e),y:i(s/e)}},v=function(){return t.options.gestureConfig.pinch},m=function(e){var n=[],s=0;while(s<e.touches.length)n[s]={pageX:i(e.touches[s].pageX),pageY:i(e.touches[s].pageY)},s++;return{timestamp:t.now(),gesture:e.gesture,touches:n,center:g(e.touches),deltaX:e.deltaX,deltaY:e.deltaY}},b=function(e){var i=t.gestures.session,n=e.center,s=i.offsetDelta||{},o=i.prevDelta||{},r=i.prevTouch||{};e.gesture.type!==t.EVENT_START&&e.gesture.type!==t.EVENT_END||(o=i.prevDelta={x:r.deltaX||0,y:r.deltaY||0},s=i.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-s.x),e.deltaY=o.y+(n.y-s.y)},w=function(e){var i=t.gestures.session,n=e.touches,s=n.length;i.firstTouch||(i.firstTouch=m(e)),v()&&s>1&&!i.firstMultiTouch?i.firstMultiTouch=m(e):1===s&&(i.firstMultiTouch=!1);var o=i.firstTouch,h=i.firstMultiTouch,d=h?h.center:o.center,f=e.center=g(n);e.timestamp=t.now(),e.deltaTime=e.timestamp-o.timestamp,e.angle=l(d,f),e.distance=r(d,f),b(e),e.offsetDirection=c(e.deltaX,e.deltaY),e.scale=h?a(h.touches,n):1,e.rotation=h?u(h.touches,n):0,L(e)},y=25,L=function(e){var i,s,o,r,a=t.gestures.session,l=a.lastInterval||e,u=e.timestamp-l.timestamp;if(e.gesture.type!=t.EVENT_CANCEL&&(u>y||void 0===l.velocity)){var d=l.deltaX-e.deltaX,f=l.deltaY-e.deltaY,p=h(u,d,f);s=p.x,o=p.y,i=n(p.x)>n(p.y)?p.x:p.y,r=c(d,f)||l.direction,a.lastInterval=e}else i=l.velocity,s=l.velocityX,o=l.velocityY,r=l.direction;e.velocity=i,e.velocityX=s,e.velocityY=o,e.direction=r},T={},E=function(t){for(var e=0;e<t.length;e++)!t["identifier"]&&(t["identifier"]=0);return t},x=function(e,i){var n=E(t.slice.call(e.touches||[e])),s=e.type,o=[],r=[];if(s!==t.EVENT_START&&s!==t.EVENT_MOVE||1!==n.length){var a=0,l=(o=[],r=[],E(t.slice.call(e.changedTouches||[e])));i.target=e.target;var c=t.gestures.session.target||e.target;if(o=n.filter((function(t){return f(t.target,c)})),s===t.EVENT_START){a=0;while(a<o.length)T[o[a].identifier]=!0,a++}a=0;while(a<l.length)T[l[a].identifier]&&r.push(l[a]),s!==t.EVENT_END&&s!==t.EVENT_CANCEL||delete T[l[a].identifier],a++;if(!r.length)return!1}else T[n[0].identifier]=!0,o=n,r=n,i.target=e.target;o=p(o.concat(r),"identifier",!0);var u=o.length,h=r.length;return s===t.EVENT_START&&u-h===0&&(i.isFirst=!0,t.gestures.touch=t.gestures.session={target:e.target}),i.isFinal=(s===t.EVENT_END||s===t.EVENT_CANCEL)&&u-h===0,i.touches=o,i.changedTouches=r,!0},S=function(e){var i={gesture:e},n=x(e,i);n&&(w(i),d(e,i),t.gestures.session.prevTouch=i,e.type!==t.EVENT_END||t.isTouchable||(t.gestures.touch=t.gestures.session={}))},_=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(n){}return t}();e.addEventListener(t.EVENT_START,S),e.addEventListener(t.EVENT_MOVE,S,!!_&&{passive:!1,capture:!1}),e.addEventListener(t.EVENT_END,S),e.addEventListener(t.EVENT_CANCEL,S),e.addEventListener(t.EVENT_CLICK,(function(e){(t.os.android||t.os.ios)&&(t.targets.popover&&e.target===t.targets.popover||t.targets.tab||t.targets.offcanvas||t.targets.modal)&&e.preventDefault()}),!0),t.isScrolling=!1;var C=null;e.addEventListener("scroll",(function(){t.isScrolling=!0,C&&clearTimeout(C),C=setTimeout((function(){t.isScrolling=!1}),250)}))}(r,window),function(t,e){var i=0,n=function(n,s){var o=t.gestures.session,r=this.options,a=t.now();switch(n.type){case t.EVENT_MOVE:a-i>300&&(i=a,o.flickStart=s.center);break;case t.EVENT_END:case t.EVENT_CANCEL:s.flick=!1,o.flickStart&&r.flickMaxTime>a-i&&s.distance>r.flickMinDistince&&(s.flick=!0,s.flickTime=a-i,s.flickDistanceX=s.center.x-o.flickStart.x,s.flickDistanceY=s.center.y-o.flickStart.y,t.trigger(o.target,e,s),t.trigger(o.target,e+s.direction,s));break}};t.addGesture({name:e,index:5,handle:n,options:{flickMaxTime:200,flickMinDistince:10}})}(r,"flick"),function(t,e){var i=function(i,n){var s=t.gestures.session;if(i.type===t.EVENT_END||i.type===t.EVENT_CANCEL){var o=this.options;n.swipe=!1,n.direction&&o.swipeMaxTime>n.deltaTime&&n.distance>o.swipeMinDistince&&(n.swipe=!0,t.trigger(s.target,e,n),t.trigger(s.target,e+n.direction,n))}};t.addGesture({name:e,index:10,handle:i,options:{swipeMaxTime:300,swipeMinDistince:18}})}(r,"swipe"),function(t,e){var i=function(i,n){var s=t.gestures.session;switch(i.type){case t.EVENT_START:break;case t.EVENT_MOVE:if(!n.direction||!s.target)return;s.lockDirection&&s.startDirection&&s.startDirection&&s.startDirection!==n.direction&&("up"===s.startDirection||"down"===s.startDirection?n.direction=n.deltaY<0?"up":"down":n.direction=n.deltaX<0?"left":"right"),s.drag||(s.drag=!0,t.trigger(s.target,e+"start",n)),t.trigger(s.target,e,n),t.trigger(s.target,e+n.direction,n);break;case t.EVENT_END:case t.EVENT_CANCEL:s.drag&&n.isFinal&&t.trigger(s.target,e+"end",n);break}};t.addGesture({name:e,index:20,handle:i,options:{fingers:1}})}(r,"drag"),function(t,e){var i,n,s=function(s,o){var r=t.gestures.session,a=this.options;switch(s.type){case t.EVENT_END:if(!o.isFinal)return;var l=r.target;if(!l||l.disabled||l.classList&&l.classList.contains("mui-disabled"))return;if(o.distance<a.tapMaxDistance&&o.deltaTime<a.tapMaxTime){if(t.options.gestureConfig.doubletap&&i&&i===l&&n&&o.timestamp-n<a.tapMaxInterval)return t.trigger(l,"doubletap",o),n=t.now(),void(i=l);t.trigger(l,e,o),n=t.now(),i=l}break}};t.addGesture({name:e,index:30,handle:s,options:{fingers:1,tapMaxInterval:300,tapMaxDistance:5,tapMaxTime:250}})}(r,"tap"),function(t,e){var i,n=function(n,s){var o=t.gestures.session,r=this.options;switch(n.type){case t.EVENT_START:clearTimeout(i),i=setTimeout((function(){t.trigger(o.target,e,s)}),r.holdTimeout);break;case t.EVENT_MOVE:s.distance>r.holdThreshold&&clearTimeout(i);break;case t.EVENT_END:case t.EVENT_CANCEL:clearTimeout(i);break}};t.addGesture({name:e,index:10,handle:n,options:{fingers:1,holdTimeout:500,holdThreshold:2}})}(r,"longtap"),function(t,e){var i,n=function(n,s){var o=t.gestures.session,r=this.options;switch(n.type){case t.EVENT_START:t.options.gestureConfig.hold&&(i&&clearTimeout(i),i=setTimeout((function(){s.hold=!0,t.trigger(o.target,e,s)}),r.holdTimeout));break;case t.EVENT_MOVE:break;case t.EVENT_END:case t.EVENT_CANCEL:i&&(clearTimeout(i)&&(i=null),t.trigger(o.target,"release",s));break}};t.addGesture({name:e,index:10,handle:n,options:{fingers:1,holdTimeout:0}})}(r,"hold"),function(t,e){var i=function(i,n){var s=this.options,o=t.gestures.session;switch(i.type){case t.EVENT_START:break;case t.EVENT_MOVE:if(t.options.gestureConfig.pinch){if(n.touches.length<2)return;o.pinch||(o.pinch=!0,t.trigger(o.target,e+"start",n)),t.trigger(o.target,e,n);var r=n.scale,a=n.rotation,l="undefined"===typeof n.lastScale?1:n.lastScale,c=1e-12;r>l?(l=r-c,t.trigger(o.target,e+"out",n)):r<l&&(l=r+c,t.trigger(o.target,e+"in",n)),Math.abs(a)>s.minRotationAngle&&t.trigger(o.target,"rotate",n)}break;case t.EVENT_END:case t.EVENT_CANCEL:t.options.gestureConfig.pinch&&o.pinch&&2===n.touches.length&&(o.pinch=!1,t.trigger(o.target,e+"end",n));break}};t.addGesture({name:e,index:10,handle:i,options:{minRotationAngle:0}})}(r,"pinch"),function(t){t.global=t.options={gestureConfig:{tap:!0,doubletap:!1,longtap:!1,hold:!1,flick:!0,swipe:!0,drag:!0,pinch:!1}},t.initGlobal=function(e){return t.options=t.extend(!0,t.global,e),this};var e={};t.init=function(i){return t.options=t.extend(!0,t.global,i||{}),t.ready((function(){t.doAction("inits",(function(i,n){var s=!(e[n.name]&&!n.repeat);s&&(n.handle.call(t),e[n.name]=!0)}))})),this},t.addInit=function(e){return t.addAction("inits",e)},t.addInit({name:"iframe",index:100,handle:function(){var e=t.options,n=e.subpages||[];!t.os.plus&&n.length&&i(n[0])}});var i=function(e){var i=document.createElement("div");i.className="mui-iframe-wrapper";var s=e.styles||{};"string"!==typeof s.top&&(s.top="0px"),"string"!==typeof s.bottom&&(s.bottom="0px"),i.style.top=s.top,i.style.bottom=s.bottom;var o=document.createElement("iframe");o.src=e.url,o.id=e.id||e.url,o.name=o.id,i.appendChild(o),document.body.appendChild(i),t.os.wechat&&n(i,o)};function n(t,e){var i="MUI_SCROLL_POSITION_"+document.location.href+"_"+e.src,n=parseFloat(localStorage.getItem(i))||0;n&&function(t){e.onload=function(){window.scrollTo(0,t)}}(n),setInterval((function(){var t=window.scrollY;n!==t&&(localStorage.setItem(i,t+""),n=t)}),100)}t((function(){var e=document.body.classList,i=[];t.os.ios?(i.push({os:"ios",version:t.os.version}),e.add("mui-ios")):t.os.android&&(i.push({os:"android",version:t.os.version}),e.add("mui-android")),t.os.wechat&&(i.push({os:"wechat",version:t.os.wechat.version}),e.add("mui-wechat")),i.length&&t.each(i,(function(i,n){var s="";n.version&&t.each(n.version.split("."),(function(i,o){s=s+(s?"-":"")+o,e.add(t.className(n.os+"-"+s))}))}))}))}(r),function(t){var e={swipeBack:!1,preloadPages:[],preloadLimit:10,keyEventBind:{backbutton:!0,menubutton:!0},titleConfig:{height:"44px",backgroundColor:"#f7f7f7",bottomBorderColor:"#cccccc",title:{text:"",position:{top:0,left:0,width:"100%",height:"100%"},styles:{color:"#000000",align:"center",family:"'Helvetica Neue',Helvetica,sans-serif",size:"17px",style:"normal",weight:"normal",fontSrc:""}},back:{image:{base64Data:"",imgSrc:"",sprite:{top:"0px",left:"0px",width:"100%",height:"100%"},position:{top:"10px",left:"10px",width:"24px",height:"24px"}}}}},i={event:"titleUpdate",autoShow:!0,duration:300,aniShow:"slide-in-right",extras:{}};t.options.show&&(i=t.extend(!0,i,t.options.show)),t.currentWebview=null,t.extend(!0,t.global,e),t.extend(!0,t.options,e),t.waitingOptions=function(e){return t.extend(!0,{},{autoShow:!0,title:"",modal:!1},e)},t.showOptions=function(e){return t.extend(!0,{},i,e)},t.windowOptions=function(e){return t.extend({scalable:!1,bounce:""},e)},t.plusReady=function(t){return window.plus?setTimeout((function(){t()}),0):document.addEventListener("plusready",(function(){t()}),!1),this},t.fire=function(e,i,n){if(e){if("undefined"===typeof n)n="";else{if("boolean"===typeof n||"number"===typeof n)return void e.evalJS("typeof mui!=='undefined'&&mui.receive('"+i+"',"+n+")");(t.isPlainObject(n)||t.isArray(n))&&(n=JSON.stringify(n||{}).replace(/\'/g,"\\u0027").replace(/\\/g,"\\u005c"))}e.evalJS("typeof mui!=='undefined'&&mui.receive('"+i+"','"+n+"')")}},t.receive=function(e,i){if(e){try{i&&"string"===typeof i&&(i=JSON.parse(i))}catch(n){}t.trigger(document,e,i)}};var n=function(e){if(!e.preloaded){t.fire(e,"preload");for(var i=e.children(),n=0;n<i.length;n++)t.fire(i[n],"preload");e.preloaded=!0}},s=function(e,i,n){if(n){if(!e[i+"ed"]){t.fire(e,i);for(var s=e.children(),o=0;o<s.length;o++)t.fire(s[o],i);e[i+"ed"]=!0}}else{t.fire(e,i);for(s=e.children(),o=0;o<s.length;o++)t.fire(s[o],i)}};t.openWindow=function(e,r,a){if("object"===o(e)?(a=e,e=a.url,r=a.id||e):"object"===o(r)?(a=r,r=a.id||e):r=r||e,t.os.plus){if(window.plus){a=a||{};var l,c,u=a.params||{},h=null,d=null;if(t.webviews[r]?(d=t.webviews[r],plus.webview.getWebviewById(r)&&(h=d.webview)):!0!==a.createNew&&(h=plus.webview.getWebviewById(r)),h)return l=d?d.show:i,l=a.show?t.extend(l,a.show):l,l.autoShow&&h.show(l.aniShow,l.duration,(function(){n(h),s(h,"pagebeforeshow",!1)})),d&&d.afterShowMethodName&&h.evalJS(d.afterShowMethodName+"('"+JSON.stringify(u)+"')"),h;if(!e)throw new Error("webview["+r+"] does not exist");var f=t.waitingOptions(a.waiting);if(f.autoShow&&(c=plus.nativeUI.showWaiting(f.title,f.options)),a=t.extend(a,{id:r,url:e}),h=t.createWindow(a),l=t.showOptions(a.show),l.autoShow){var p=function(){c&&c.close(),h.show(l.aniShow,l.duration,(function(){}),l.extras),a.afterShowMethodName&&h.evalJS(a.afterShowMethodName+"('"+JSON.stringify(u)+"')")};h.addEventListener(l.event,p,!1),h.addEventListener("loaded",(function(){n(h),s(h,"pagebeforeshow",!1)}),!1)}return h}}else t.os.ios||t.os.android?window.top.location.href=e:window.parent.location.href=e},t.openWindowWithTitle=function(e,o){e=e||{};var r=e.url,a=e.id||r;if(t.os.plus){if(window.plus){var l,c,u=e.params||{},h=null,d=null;if(t.webviews[a]?(d=t.webviews[a],plus.webview.getWebviewById(a)&&(h=d.webview)):!0!==e.createNew&&(h=plus.webview.getWebviewById(a)),h)return l=d?d.show:i,l=e.show?t.extend(l,e.show):l,l.autoShow&&h.show(l.aniShow,l.duration,(function(){n(h),s(h,"pagebeforeshow",!1)})),d&&d.afterShowMethodName&&h.evalJS(d.afterShowMethodName+"('"+JSON.stringify(u)+"')"),h;if(!r)throw new Error("webview["+a+"] does not exist");var f=t.waitingOptions(e.waiting);if(f.autoShow&&(c=plus.nativeUI.showWaiting(f.title,f.options)),e=t.extend(e,{id:a,url:r}),h=t.createWindow(e),o){t.extend(!0,t.options.titleConfig,o);var p=t.options.titleConfig.id?t.options.titleConfig.id:a+"_title",g=new plus.nativeObj.View(p,{top:0,height:t.options.titleConfig.height,width:"100%",dock:"top",position:"dock"});g.drawRect(t.options.titleConfig.backgroundColor);var v=parseInt(t.options.titleConfig.height)-1;if(g.drawRect(t.options.titleConfig.bottomBorderColor,{top:v+"px",left:"0px"}),t.options.titleConfig.title.text){var m=t.options.titleConfig.title;g.drawText(m.text,m.position,m.styles)}var b=t.options.titleConfig.back,w=null,y=b.image;if(y.base64Data||y.imgSrc){w={left:parseInt(y.position.left),right:parseInt(y.position.left)+parseInt(y.position.width)};var L=new plus.nativeObj.Bitmap(a+"_back");y.base64Data?L.loadBase64Data(y.base64Data):L.load(y.imgSrc),g.drawBitmap(L,y.sprite,y.position)}g.setTouchEventRect({top:"0px",left:"0px",width:"100%",height:"100%"}),g.interceptTouchEvent(!0),g.addEventListener("click",(function(e){var i=e.clientX;w&&i>w.left&&i<w.right&&(b.click&&t.isFunction(b.click)?b.click():h.evalJS("window.mui&&mui.back();"))}),!1),h.append(g)}return l=t.showOptions(e.show),l.autoShow&&h.addEventListener(l.event,(function(){c&&c.close(),h.show(l.aniShow,l.duration,(function(){}),l.extras)}),!1),h}}else t.os.ios||t.os.android?window.top.location.href=r:window.parent.location.href=r},t.createWindow=function(e,i){if(window.plus){var n,s=e.id||e.url;if(e.preload){t.webviews[s]&&t.webviews[s].webview.getURL()?n=t.webviews[s].webview:(!0!==e.createNew&&(n=plus.webview.getWebviewById(s)),n||(n=plus.webview.create(e.url,s,t.windowOptions(e.styles),t.extend({preload:!0},e.extras)),e.subpages&&t.each(e.subpages,(function(e,i){var s=i.id||i.url;if(s){var o=plus.webview.getWebviewById(s);o||(o=plus.webview.create(i.url,s,t.windowOptions(i.styles),t.extend({preload:!0},i.extras))),n.append(o)}})))),t.webviews[s]={webview:n,preload:!0,show:t.showOptions(e.show),afterShowMethodName:e.afterShowMethodName};var o=t.data.preloads,r=o.indexOf(s);if(~r&&o.splice(r,1),o.push(s),o.length>t.options.preloadLimit){var a=t.data.preloads.shift(),l=t.webviews[a];l&&l.webview&&t.closeAll(l.webview),delete t.webviews[a]}}else!1!==i&&(n=plus.webview.create(e.url,s,t.windowOptions(e.styles),e.extras),e.subpages&&t.each(e.subpages,(function(e,i){var s=i.id||i.url,o=plus.webview.getWebviewById(s);o||(o=plus.webview.create(i.url,s,t.windowOptions(i.styles),i.extras)),n.append(o)})));return n}},t.preload=function(e){return e.preload||(e.preload=!0),t.createWindow(e)},t.closeOpened=function(e){var i=e.opened();if(i)for(var n=0,s=i.length;n<s;n++){var o=i[n],r=o.opened();r&&r.length>0?(t.closeOpened(o),o.close("none")):o.parent()!==e&&o.close("none")}},t.closeAll=function(e,i){t.closeOpened(e),i?e.close(i):e.close()},t.createWindows=function(e){t.each(e,(function(e,i){t.createWindow(i,!1)}))},t.appendWebview=function(e){if(window.plus){var i,n=e.id||e.url;return t.webviews[n]||(plus.webview.getWebviewById(n)||(i=plus.webview.create(e.url,n,e.styles,e.extras)),plus.webview.currentWebview().append(i),t.webviews[n]=e),i}},t.webviews={},t.data.preloads=[],t.plusReady((function(){t.currentWebview=plus.webview.currentWebview()})),t.addInit({name:"5+",index:100,handle:function(){var e=t.options,i=e.subpages||[];t.os.plus&&t.plusReady((function(){t.each(i,(function(e,i){t.appendWebview(i)})),plus.webview.currentWebview()===plus.webview.getWebviewById(plus.runtime.appid)&&setTimeout((function(){n(plus.webview.currentWebview())}),300),t.os.ios&&t.options.statusBarBackground&&plus.navigator.setStatusBarBackground(t.options.statusBarBackground),t.os.android&&parseFloat(t.os.version)<4.4&&null==plus.webview.currentWebview().parent()&&document.addEventListener("resume",(function(){var t=document.body;t.style.display="none",setTimeout((function(){t.style.display=""}),10)}))}))}}),window.addEventListener("preload",(function(){var e=t.options.preloadPages||[];t.plusReady((function(){t.each(e,(function(e,i){t.createWindow(t.extend(i,{preload:!0}))}))}))})),t.supportStatusbarOffset=function(){return t.os.plus&&t.os.ios&&parseFloat(t.os.version)>=7},t.ready((function(){t.supportStatusbarOffset()&&document.body.classList.add("mui-statusbar")}))}(r),function(t,e){t.addBack=function(e){return t.addAction("backs",e)},t.addBack({name:"browser",index:100,handle:function(){return e.history.length>1&&(e.history.back(),!0)}}),t.back=function(){"function"===typeof t.options.beforeback&&!1===t.options.beforeback()||t.doAction("backs")},e.addEventListener("tap",(function(e){var i=t.targets.action;i&&i.classList.contains("mui-action-back")&&(t.back(),t.targets.action=!1)})),e.addEventListener("swiperight",(function(e){var i=e.detail;!0===t.options.swipeBack&&Math.abs(i.angle)<3&&t.back()}))}(r,window),function(t,e){t.os.plus&&t.os.android&&t.addBack({name:"mui",index:5,handle:function(){if(t.targets._popover&&t.targets._popover.classList.contains("mui-active"))return t(t.targets._popover).popover("hide"),!0;var e=document.querySelector(".mui-off-canvas-wrap.mui-active");if(e)return t(e).offCanvas("close"),!0;var i=t.isFunction(t.getPreviewImage)&&t.getPreviewImage();return i&&i.isShown()?(i.close(),!0):t.closePopup()}}),t.__back__first=null,t.addBack({name:"5+",index:10,handle:function(){if(!e.plus)return!1;var i=plus.webview.currentWebview(),n=i.parent();return n?n.evalJS("mui&&mui.back();"):i.canBack((function(n){n.canBack?e.history.back():i.id===plus.runtime.appid?t.__back__first?(new Date).getTime()-t.__back__first<2e3&&plus.runtime.quit():(t.__back__first=(new Date).getTime(),r.toast("再按一次退出应用"),setTimeout((function(){t.__back__first=null}),2e3)):i.preload?i.hide("auto"):t.closeAll(i)})),!0}}),t.menu=function(){var i=document.querySelector(".mui-action-menu");if(i)t.trigger(i,t.EVENT_START),t.trigger(i,"tap");else if(e.plus){var n=t.currentWebview,s=n.parent();s&&s.evalJS("mui&&mui.menu();")}};var i=function(){t.back()},n=function(){t.menu()};t.plusReady((function(){t.options.keyEventBind.backbutton&&plus.key.addEventListener("backbutton",i,!1),t.options.keyEventBind.menubutton&&plus.key.addEventListener("menubutton",n,!1)})),t.addInit({name:"keyEventBind",index:1e3,handle:function(){t.plusReady((function(){t.options.keyEventBind.backbutton||plus.key.removeEventListener("backbutton",i),t.options.keyEventBind.menubutton||plus.key.removeEventListener("menubutton",n)}))}})}(r,window),function(t){t.addInit({name:"pullrefresh",index:1e3,handle:function(){var e=t.options,i=e.pullRefresh||{},n=i.down&&i.down.hasOwnProperty("callback"),s=i.up&&i.up.hasOwnProperty("callback");if(n||s){var o=i.container;if(o){var r=t(o);1===r.length&&(t.os.plus?n&&"circle"==i.down.style?t.plusReady((function(){t.fn.pullRefresh=t.fn.pullRefresh_native,r.pullRefresh(i)})):t.os.android?t.plusReady((function(){t.fn.pullRefresh=t.fn.pullRefresh_native;var e=plus.webview.currentWebview();if(!1===window.__NWin_Enable__)r.pullRefresh(i);else{if(s){var o={};o.up=i.up,o.webviewId=e.id||e.getURL(),r.pullRefresh(o)}if(n){var a=e.parent(),l=e.id||e.getURL();if(a){s||r.pullRefresh({webviewId:l});var c={webviewId:l};c.down=t.extend({},i.down),c.down.callback="_CALLBACK",a.evalJS("mui.fn.pullRefresh=mui.fn.pullRefresh_native"),a.evalJS("mui&&mui(document.querySelector('.mui-content')).pullRefresh('"+JSON.stringify(c)+"')")}}}})):r.pullRefresh(i):r.pullRefresh(i))}}}})}(r),function(t,e,i){var n="application/json",s="text/html",r=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,l=/^(?:text|application)\/xml/i,c=/^\s*$/;t.ajaxSettings={type:"GET",beforeSend:t.noop,success:t.noop,error:t.noop,complete:t.noop,context:null,xhr:function(t){return new e.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:n,xml:"application/xml, text/xml",html:s,text:"text/plain"},timeout:0,processData:!0,cache:!0};var u=function(t,e){var i=e.context;if(!1===e.beforeSend.call(i,t,e))return!1},h=function(t,e,i){i.success.call(i.context,t,"success",e),f("success",e,i)},d=function(t,e,i,n){n.error.call(n.context,i,e,t),f(e,i,n)},f=function(t,e,i){i.complete.call(i.context,e,t)},p=function e(i,n,s,o){var r,a=t.isArray(n),l=t.isPlainObject(n);t.each(n,(function(n,c){r=t.type(c),o&&(n=s?o:o+"["+(l||"object"===r||"array"===r?n:"")+"]"),!o&&a?i.add(c.name,c.value):"array"===r||!s&&"object"===r?e(i,c,s,n):i.add(n,c)}))},g=function(e){if(e.processData&&e.data&&"string"!==typeof e.data){var s=e.contentType;!s&&e.headers&&(s=e.headers["Content-Type"]),s&&~s.indexOf(n)?e.data=JSON.stringify(e.data):e.data=t.param(e.data,e.traditional)}!e.data||e.type&&"GET"!==e.type.toUpperCase()||(e.url=v(e.url,e.data),e.data=i)},v=function(t,e){return""===e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")},m=function(t){return t&&(t=t.split(";",2)[0]),t&&(t===s?"html":t===n?"json":a.test(t)?"script":l.test(t)&&"xml")||"text"},b=function(e,n,s,o){return t.isFunction(n)&&(o=s,s=n,n=i),t.isFunction(s)||(o=s,s=i),{url:e,data:n,success:s,dataType:o}};t.ajax=function(n,s){"object"===o(n)&&(s=n,n=i);var r=s||{};for(var a in r.url=n||r.url,t.ajaxSettings)r[a]===i&&(r[a]=t.ajaxSettings[a]);g(r);var l=r.dataType;!1!==r.cache&&(s&&!0===s.cache||"script"!==l)||(r.url=v(r.url,"_="+t.now()));var f=r.accepts[l&&l.toLowerCase()],p={},b=function(t,e){p[t.toLowerCase()]=[t,e]},w=/^([\w-]+:)\/\//.test(r.url)?RegExp.$1:e.location.protocol,y=r.xhr(r);"file:"===location.protocol&&t.os.ios&&e.webkit&&e.webkit.messageHandlers&&!(y instanceof plus.net.XMLHttpRequest)&&console.error("当前运行环境为WKWebview,需在plusReady事件触发后再调用mui.ajax,否则可能会执行失败或报Script error的错误");var L,T=y.setRequestHeader;if(b("X-Requested-With","XMLHttpRequest"),b("Accept",f||"*/*"),(f=r.mimeType||f)&&(f.indexOf(",")>-1&&(f=f.split(",",2)[0]),y.overrideMimeType&&y.overrideMimeType(f)),(r.contentType||!1!==r.contentType&&r.data&&"GET"!==r.type.toUpperCase())&&b("Content-Type",r.contentType||"application/x-www-form-urlencoded"),r.headers)for(var E in r.headers)b(E,r.headers[E]);if(y.setRequestHeader=b,y.onreadystatechange=function(){if(4===y.readyState){y.onreadystatechange=t.noop,clearTimeout(L);var e,i=!1,n="file:"===w;if(y.status>=200&&y.status<300||304===y.status||0===y.status&&n&&y.responseText){l=l||m(r.mimeType||y.getResponseHeader("content-type")),e=y.responseText;try{"script"===l?(0,eval)(e):"xml"===l?e=y.responseXML:"json"===l&&(e=c.test(e)?null:t.parseJSON(e))}catch(a){i=a}i?d(i,"parsererror",y,r):h(e,y,r)}else{var s=y.status?"error":"abort",o=y.statusText||null;n&&(s="error",o="404"),d(o,s,y,r)}}},!1===u(y,r))return y.abort(),d(null,"abort",y,r),y;if(r.xhrFields)for(var E in r.xhrFields)y[E]=r.xhrFields[E];var x=!("async"in r)||r.async;for(var E in y.open(r.type.toUpperCase(),r.url,x,r.username,r.password),p)p.hasOwnProperty(E)&&T.apply(y,p[E]);return r.timeout>0&&(L=setTimeout((function(){y.onreadystatechange=t.noop,y.abort(),d(null,"timeout",y,r)}),r.timeout)),y.send(r.data?r.data:null),y},t.param=function(t,e){var i=[];return i.add=function(t,e){this.push(encodeURIComponent(t)+"="+encodeURIComponent(e))},p(i,t,e),i.join("&").replace(/%20/g,"+")},t.get=function(){return t.ajax(b.apply(null,arguments))},t.post=function(){var e=b.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=b.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,i,n){if(!this.length)return this;var s,o=this,a=e.split(/\s/),l=b(e,i,n),c=l.success;return a.length>1&&(l.url=a[0],s=a[1]),l.success=function(t){if(s){var e=document.createElement("div");e.innerHTML=t.replace(r,"");var i=document.createElement("div"),n=e.querySelectorAll(s);if(n&&n.length>0)for(var a=0,l=n.length;a<l;a++)i.appendChild(n[a]);o[0].innerHTML=i.innerHTML}else o[0].innerHTML=t;c&&c.apply(o,arguments)},t.ajax(l),this}}(r,window),function(t){var e=document.createElement("a");e.href=window.location.href,t.plusReady((function(){t.ajaxSettings=t.extend(t.ajaxSettings,{xhr:function(i){if(i.crossDomain)return new plus.net.XMLHttpRequest;if("file:"!==e.protocol){var n=document.createElement("a");if(n.href=i.url,n.href=n.href,i.crossDomain=e.protocol+"//"+e.host!==n.protocol+"//"+n.host,i.crossDomain)return new plus.net.XMLHttpRequest}return t.os.ios&&window.webkit&&window.webkit.messageHandlers?new plus.net.XMLHttpRequest:new window.XMLHttpRequest}})}))}(r),function(t,e,i){t.offset=function(t){var n={top:0,left:0};return o(t.getBoundingClientRect)!==i&&(n=t.getBoundingClientRect()),{top:n.top+e.pageYOffset-t.clientTop,left:n.left+e.pageXOffset-t.clientLeft}}}(r,window),function(t,e){t.scrollTo=function(t,i,n){i=i||1e3;var s=function i(s){if(s<=0)return e.scrollTo(0,t),void(n&&n());var o=t-e.scrollY;setTimeout((function(){e.scrollTo(0,e.scrollY+o/s*10),i(s-10)}),16.7)};s(i)},t.animationFrame=function(t){var e,i,n;return function(){e=arguments,n=this,i||(i=!0,requestAnimationFrame((function(){t.apply(n,e),i=!1})))}}}(r,window),function(t){var e=!1,i=/xyz/.test((function(){xyz}))?/\b_super\b/:/.*/,n=function(){};n.extend=function(t){var n=this.prototype;e=!0;var s=new this;for(var o in e=!1,t)s[o]="function"==typeof t[o]&&"function"==typeof n[o]&&i.test(t[o])?function(t,e){return function(){var i=this._super;this._super=n[t];var s=e.apply(this,arguments);return this._super=i,s}}(o,t[o]):t[o];function r(){!e&&this.init&&this.init.apply(this,arguments)}return r.prototype=s,r.prototype.constructor=r,r.extend=arguments.callee,r},t.Class=n}(r),function(t,e,i){var n="mui-pull-top-pocket",s="mui-pull-bottom-pocket",o="mui-pull",r="mui-pull-loading",a="mui-pull-caption",l="mui-pull-caption-down",c="mui-pull-caption-refresh",u="mui-pull-caption-nomore",h="mui-icon",d="mui-spinner",f="mui-icon-pulldown",p="mui-block",g="mui-hidden",v="mui-visibility",m=r+" "+h+" "+f,b=r+" "+h+" "+f,w=r+" "+h+" "+d,y=['<div class="'+o+'">','<div class="{icon}"></div>','<div class="'+a+'">{contentrefresh}</div>',"</div>"].join(""),L={init:function(e,i){this._super(e,t.extend(!0,{scrollY:!0,scrollX:!1,indicators:!0,deceleration:.003,down:{height:50,contentinit:"下拉可以刷新",contentdown:"下拉可以刷新",contentover:"释放立即刷新",contentrefresh:"正在刷新..."},up:{height:50,auto:!1,contentinit:"上拉显示更多",contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了",duration:300}},i))},_init:function(){this._super(),this._initPocket()},_initPulldownRefresh:function(){this.pulldown=!0,this.topPocket&&(this.pullPocket=this.topPocket,this.pullPocket.classList.add(p),this.pullPocket.classList.add(v),this.pullCaption=this.topCaption,this.pullLoading=this.topLoading)},_initPullupRefresh:function(){this.pulldown=!1,this.bottomPocket&&(this.pullPocket=this.bottomPocket,this.pullPocket.classList.add(p),this.pullPocket.classList.add(v),this.pullCaption=this.bottomCaption,this.pullLoading=this.bottomLoading)},_initPocket:function(){var t=this.options;t.down&&t.down.hasOwnProperty("callback")&&(this.topPocket=this.scroller.querySelector("."+n),this.topPocket||(this.topPocket=this._createPocket(n,t.down,b),this.wrapper.insertBefore(this.topPocket,this.wrapper.firstChild)),this.topLoading=this.topPocket.querySelector("."+r),this.topCaption=this.topPocket.querySelector("."+a)),t.up&&t.up.hasOwnProperty("callback")&&(this.bottomPocket=this.scroller.querySelector("."+s),this.bottomPocket||(this.bottomPocket=this._createPocket(s,t.up,w),this.scroller.appendChild(this.bottomPocket)),this.bottomLoading=this.bottomPocket.querySelector("."+r),this.bottomCaption=this.bottomPocket.querySelector("."+a),this.wrapper.addEventListener("scrollbottom",this))},_createPocket:function(t,i,n){var s=e.createElement("div");return s.className=t,s.innerHTML=y.replace("{contentrefresh}",i.contentinit).replace("{icon}",n),s},_resetPullDownLoading:function(){var t=this.pullLoading;t&&(this.pullCaption.innerHTML=this.options.down.contentdown,t.style.webkitTransition="",t.style.webkitTransform="",t.style.webkitAnimation="",t.className=b)},_setCaptionClass:function(t,e,i){if(!t)switch(i){case this.options.up.contentdown:e.className=a+" "+l;break;case this.options.up.contentrefresh:e.className=a+" "+c;break;case this.options.up.contentnomore:e.className=a+" "+u;break}},_setCaption:function(t,e){if(!this.loading){var i=this.options,n=this.pullPocket,s=this.pullCaption,o=this.pullLoading,r=this.pulldown,a=this;n&&(e?setTimeout((function(){s.innerHTML=a.lastTitle=t,r?o.className=b:(a._setCaptionClass(!1,s,t),o.className=w),o.style.webkitAnimation="",o.style.webkitTransition="",o.style.webkitTransform=""}),100):t!==this.lastTitle&&(s.innerHTML=t,r?t===i.down.contentrefresh?(o.className=w,o.style.webkitAnimation="spinner-spin 1s step-end infinite"):t===i.down.contentover?(o.className=m,o.style.webkitTransition="-webkit-transform 0.3s ease-in",o.style.webkitTransform="rotate(180deg)"):t===i.down.contentdown&&(o.className=b,o.style.webkitTransition="-webkit-transform 0.3s ease-in",o.style.webkitTransform="rotate(0deg)"):(t===i.up.contentrefresh?o.className=w+" "+v:o.className=w+" "+g,a._setCaptionClass(!1,s,t)),this.lastTitle=t))}}};t.PullRefresh=L}(r,document),function(t,e,i,n){var s="mui-scroll",o="mui-scrollbar",a="mui-scrollbar-indicator",l=o+"-vertical",c=o+"-horizontal",u="mui-active",h={quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return Math.sqrt(1- --t*t)}},outCirc:{style:"cubic-bezier(0.075, 0.82, 0.165, 1)"},outCubic:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)"}},d=t.Class.extend({init:function(e,i){this.wrapper=this.element=e,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller&&this.scroller.style,this.stopped=!1,this.options=t.extend(!0,{scrollY:!0,scrollX:!1,startX:0,startY:0,indicators:!0,stopPropagation:!1,hardwareAccelerated:!0,fixedBadAndorid:!1,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|VIDEO)$/},momentum:!0,snapX:.5,snap:!1,bounce:!0,bounceTime:500,bounceEasing:h.outCirc,scrollTime:500,scrollEasing:h.outCubic,directionLockThreshold:5,parallaxElement:!1,parallaxRatio:.5},i),this.x=0,this.y=0,this.translateZ=this.options.hardwareAccelerated?" translateZ(0)":"",this._init(),this.scroller&&(this.refresh(),this.scrollTo(this.options.startX,this.options.startY))},_init:function(){this._initParallax(),this._initIndicators(),this._initEvent()},_initParallax:function(){this.options.parallaxElement&&(this.parallaxElement=i.querySelector(this.options.parallaxElement),this.parallaxStyle=this.parallaxElement.style,this.parallaxHeight=this.parallaxElement.offsetHeight,this.parallaxImgStyle=this.parallaxElement.querySelector("img").style)},_initIndicators:function(){var t=this;if(t.indicators=[],this.options.indicators){var e,i=[];t.options.scrollY&&(e={el:this._createScrollBar(l),listenX:!1},this.wrapper.appendChild(e.el),i.push(e)),this.options.scrollX&&(e={el:this._createScrollBar(c),listenY:!1},this.wrapper.appendChild(e.el),i.push(e));for(var n=i.length;n--;)this.indicators.push(new f(this,i[n]))}},_initSnap:function(){this.currentPage={},this.pages=[];for(var t=this.snaps,e=t.length,i=0,n=-1,s=0,o=0,r=0,a=0,l=0;l<e;l++){var c=t[l],h=c.offsetLeft,d=c.offsetWidth;(0===l||h<=t[l-1].offsetLeft)&&(i=0,n++),this.pages[i]||(this.pages[i]=[]),s=this._getSnapX(h),a=Math.round(d*this.options.snapX),o=s-a,r=s-d+a,this.pages[i][n]={x:s,leftX:o,rightX:r,pageX:i,element:c},c.classList.contains(u)&&(this.currentPage=this.pages[i][0]),s>=this.maxScrollX&&i++}this.options.startX=this.currentPage.x||0},_getSnapX:function(t){return Math.max(Math.min(0,-t+this.wrapperWidth/2),this.maxScrollX)},_gotoPage:function(t){this.currentPage=this.pages[Math.min(t,this.pages.length-1)][0];for(var e=0,i=this.snaps.length;e<i;e++)e===t?this.snaps[e].classList.add(u):this.snaps[e].classList.remove(u);this.scrollTo(this.currentPage.x,0,this.options.scrollTime)},_nearestSnap:function(t){if(!this.pages.length)return{x:0,pageX:0};var e=0,i=this.pages.length;for(t>0?t=0:t<this.maxScrollX&&(t=this.maxScrollX);e<i;e++){var n="left"===this.direction?this.pages[e][0].leftX:this.pages[e][0].rightX;if(t>=n)return this.pages[e][0]}return{x:0,pageX:0}},_initEvent:function(i){var n=i?"removeEventListener":"addEventListener";e[n]("orientationchange",this),e[n]("resize",this),this.scroller[n]("webkitTransitionEnd",this),this.wrapper[n](t.EVENT_START,this),this.wrapper[n](t.EVENT_CANCEL,this),this.wrapper[n](t.EVENT_END,this),this.wrapper[n]("drag",this),this.wrapper[n]("dragend",this),this.wrapper[n]("flick",this),this.wrapper[n]("scrollend",this),this.options.scrollX&&this.wrapper[n]("swiperight",this);var s=this.wrapper.querySelector(".mui-segmented-control");s&&r(s)[i?"off":"on"]("click","a",t.preventDefault),this.wrapper[n]("scrollstart",this),this.wrapper[n]("refresh",this)},_handleIndicatorScrollend:function(){this.indicators.map((function(t){t.fade()}))},_handleIndicatorScrollstart:function(){this.indicators.map((function(t){t.fade(1)}))},_handleIndicatorRefresh:function(){this.indicators.map((function(t){t.refresh()}))},handleEvent:function(e){if(this.stopped)this.resetPosition();else switch(e.type){case t.EVENT_START:this._start(e);break;case"drag":this.options.stopPropagation&&e.stopPropagation(),this._drag(e);break;case"dragend":case"flick":this.options.stopPropagation&&e.stopPropagation(),this._flick(e);break;case t.EVENT_CANCEL:case t.EVENT_END:this._end(e);break;case"webkitTransitionEnd":this.transitionTimer&&this.transitionTimer.cancel(),this._transitionEnd(e);break;case"scrollstart":this._handleIndicatorScrollstart(e);break;case"scrollend":this._handleIndicatorScrollend(e),this._scrollend(e),e.stopPropagation();break;case"orientationchange":case"resize":this._resize();break;case"swiperight":e.stopPropagation();break;case"refresh":this._handleIndicatorRefresh(e);break}},_start:function(e){if(this.moved=this.needReset=!1,this._transitionTime(),this.isInTransition){this.needReset=!0,this.isInTransition=!1;var i=t.parseTranslateMatrix(t.getStyles(this.scroller,"webkitTransform"));this.setTranslate(Math.round(i.x),Math.round(i.y)),t.trigger(this.scroller,"scrollend",this),e.preventDefault()}this.reLayout(),t.trigger(this.scroller,"beforescrollstart",this)},_getDirectionByAngle:function(t){return t<-80&&t>-100?"up":t>=80&&t<100?"down":t>=170||t<=-170?"left":t>=-35&&t<=10?"right":null},_drag:function(i){var n=i.detail;if((this.options.scrollY||"up"===n.direction||"down"===n.direction)&&t.os.ios&&parseFloat(t.os.version)>=8){var s=n.gesture.touches[0].clientY;if(s+10>e.innerHeight||s<10)return void this.resetPosition(this.options.bounceTime)}var o=isReturn=!1;this._getDirectionByAngle(n.angle);if("left"===n.direction||"right"===n.direction?this.options.scrollX?(o=!0,this.moved||(t.gestures.session.lockDirection=!0,t.gestures.session.startDirection=n.direction)):this.options.scrollY&&!this.moved&&(isReturn=!0):"up"===n.direction||"down"===n.direction?this.options.scrollY?(o=!0,this.moved||(t.gestures.session.lockDirection=!0,t.gestures.session.startDirection=n.direction)):this.options.scrollX&&!this.moved&&(isReturn=!0):isReturn=!0,(this.moved||o)&&(i.stopPropagation(),n.gesture&&n.gesture.preventDefault()),!isReturn){this.moved?i.stopPropagation():t.trigger(this.scroller,"scrollstart",this);var r=0,a=0;this.moved?(r=n.deltaX-t.gestures.session.prevTouch.deltaX,a=n.deltaY-t.gestures.session.prevTouch.deltaY):(r=n.deltaX,a=n.deltaY);var l=Math.abs(n.deltaX),c=Math.abs(n.deltaY);l>c+this.options.directionLockThreshold?a=0:c>=l+this.options.directionLockThreshold&&(r=0),r=this.hasHorizontalScroll?r:0,a=this.hasVerticalScroll?a:0;var u=this.x+r,h=this.y+a;(u>0||u<this.maxScrollX)&&(u=this.options.bounce?this.x+r/3:u>0?0:this.maxScrollX),(h>0||h<this.maxScrollY)&&(h=this.options.bounce?this.y+a/3:h>0?0:this.maxScrollY),this.requestAnimationFrame||this._updateTranslate(),this.direction=n.deltaX>0?"right":"left",this.moved=!0,this.x=u,this.y=h,t.trigger(this.scroller,"scroll",this)}},_flick:function(e){if(this.moved){e.stopPropagation();var i=e.detail;if(this._clearRequestAnimationFrame(),"dragend"!==e.type||!i.flick){var n=Math.round(this.x),s=Math.round(this.y);if(this.isInTransition=!1,!this.resetPosition(this.options.bounceTime))if(this.scrollTo(n,s),"dragend"!==e.type){var o=0,r="";if(this.options.momentum&&i.flickTime<300&&(momentumX=this.hasHorizontalScroll?this._momentum(this.x,i.flickDistanceX,i.flickTime,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:n,duration:0},momentumY=this.hasVerticalScroll?this._momentum(this.y,i.flickDistanceY,i.flickTime,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:s,duration:0},n=momentumX.destination,s=momentumY.destination,o=Math.max(momentumX.duration,momentumY.duration),this.isInTransition=!0),n!=this.x||s!=this.y)return(n>0||n<this.maxScrollX||s>0||s<this.maxScrollY)&&(r=h.quadratic),void this.scrollTo(n,s,o,r);t.trigger(this.scroller,"scrollend",this)}else t.trigger(this.scroller,"scrollend",this)}}},_end:function(e){this.needReset=!1,(!this.moved&&this.needReset||e.type===t.EVENT_CANCEL)&&this.resetPosition()},_transitionEnd:function(e){e.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,t.trigger(this.scroller,"scrollend",this)))},_scrollend:function(e){(0===this.y&&0===this.maxScrollY||Math.abs(this.y)>0&&this.y<=this.maxScrollY)&&t.trigger(this.scroller,"scrollbottom",this)},_resize:function(){var t=this;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout((function(){t.refresh()}),t.options.resizePolling)},_transitionTime:function(e){if(e=e||0,this.scrollerStyle["webkitTransitionDuration"]=e+"ms",this.parallaxElement&&this.options.scrollY&&(this.parallaxStyle["webkitTransitionDuration"]=e+"ms"),this.options.fixedBadAndorid&&!e&&t.os.isBadAndroid&&(this.scrollerStyle["webkitTransitionDuration"]="0.001s",this.parallaxElement&&this.options.scrollY&&(this.parallaxStyle["webkitTransitionDuration"]="0.001s")),this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].transitionTime(e);e&&(this.transitionTimer&&this.transitionTimer.cancel(),this.transitionTimer=t.later((function(){t.trigger(this.scroller,"webkitTransitionEnd")}),e+100,this))},_transitionTimingFunction:function(t){if(this.scrollerStyle["webkitTransitionTimingFunction"]=t,this.parallaxElement&&this.options.scrollY&&(this.parallaxStyle["webkitTransitionDuration"]=t),this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].transitionTimingFunction(t)},_translate:function(t,e){this.x=t,this.y=e},_clearRequestAnimationFrame:function(){this.requestAnimationFrame&&(cancelAnimationFrame(this.requestAnimationFrame),this.requestAnimationFrame=null)},_updateTranslate:function(){var t=this;t.x===t.lastX&&t.y===t.lastY||t.setTranslate(t.x,t.y),t.requestAnimationFrame=requestAnimationFrame((function(){t._updateTranslate()}))},_createScrollBar:function(t){var e=i.createElement("div"),n=i.createElement("div");return e.className=o+" "+t,n.className=a,e.appendChild(n),t===l?(this.scrollbarY=e,this.scrollbarIndicatorY=n):t===c&&(this.scrollbarX=e,this.scrollbarIndicatorX=n),this.wrapper.appendChild(e),e},_preventDefaultException:function(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1},_reLayout:function(){if(this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.indicators.map((function(t){t.refresh()})),this.options.snap&&"string"===typeof this.options.snap){var t=this.scroller.querySelectorAll(this.options.snap);this.itemLength=0,this.snaps=[];for(var e=0,i=t.length;e<i;e++){var n=t[e];n.parentNode===this.scroller&&(this.itemLength++,this.snaps.push(n))}this._initSnap()}},_momentum:function(t,e,i,s,o,r){var a,l,c=parseFloat(Math.abs(e)/i);return r=r===n?6e-4:r,a=t+c*c/(2*r)*(e<0?-1:1),l=c/r,a<s?(a=o?s-o/2.5*(c/8):s,e=Math.abs(a-t),l=e/c):a>0&&(a=o?o/2.5*(c/8):0,e=Math.abs(t)+a,l=e/c),{destination:Math.round(a),duration:l}},_getTranslateStr:function(t,e){return this.options.hardwareAccelerated?"translate3d("+t+"px,"+e+"px,0px) "+this.translateZ:"translate("+t+"px,"+e+"px) "},setStopped:function(t){t?(this.disablePullupToRefresh(),this.disablePulldownToRefresh()):(this.enablePullupToRefresh(),this.enablePulldownToRefresh())},setTranslate:function(e,i){if(this.x=e,this.y=i,this.scrollerStyle["webkitTransform"]=this._getTranslateStr(e,i),this.parallaxElement&&this.options.scrollY){var n=i*this.options.parallaxRatio,s=1+n/((this.parallaxHeight-n)/2);s>1?(this.parallaxImgStyle["opacity"]=1-n/100*this.options.parallaxRatio,this.parallaxStyle["webkitTransform"]=this._getTranslateStr(0,-n)+" scale("+s+","+s+")"):(this.parallaxImgStyle["opacity"]=1,this.parallaxStyle["webkitTransform"]=this._getTranslateStr(0,-1)+" scale(1,1)")}if(this.indicators)for(var o=this.indicators.length;o--;)this.indicators[o].updatePosition();this.lastX=this.x,this.lastY=this.y,t.trigger(this.scroller,"scroll",this)},reLayout:function(){this.wrapper.offsetHeight;var e=parseFloat(t.getStyles(this.wrapper,"padding-left"))||0,i=parseFloat(t.getStyles(this.wrapper,"padding-right"))||0,n=parseFloat(t.getStyles(this.wrapper,"padding-top"))||0,s=parseFloat(t.getStyles(this.wrapper,"padding-bottom"))||0,o=this.wrapper.clientWidth,r=this.wrapper.clientHeight;this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.wrapperWidth=o-e-i,this.wrapperHeight=r-n-s,this.maxScrollX=Math.min(this.wrapperWidth-this.scrollerWidth,0),this.maxScrollY=Math.min(this.wrapperHeight-this.scrollerHeight,0),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this._reLayout()},resetPosition:function(t){var e=this.x,i=this.y;return t=t||0,!this.hasHorizontalScroll||this.x>0?e=0:this.x<this.maxScrollX&&(e=this.maxScrollX),!this.hasVerticalScroll||this.y>0?i=0:this.y<this.maxScrollY&&(i=this.maxScrollY),(e!=this.x||i!=this.y)&&(this.scrollTo(e,i,t,this.options.scrollEasing),!0)},_reInit:function(){for(var t=this.wrapper.querySelectorAll("."+s),e=0,i=t.length;e<i;e++)if(t[e].parentNode===this.wrapper){this.scroller=t[e];break}this.scrollerStyle=this.scroller&&this.scroller.style},refresh:function(){this._reInit(),this.reLayout(),t.trigger(this.scroller,"refresh",this),this.resetPosition()},scrollTo:function(t,e,i,n){n=n||h.circular;this.isInTransition=i>0,this.isInTransition?(this._clearRequestAnimationFrame(),this._transitionTimingFunction(n.style),this._transitionTime(i),this.setTranslate(t,e)):this.setTranslate(t,e)},scrollToBottom:function(t,e){t=t||this.options.scrollTime,this.scrollTo(0,this.maxScrollY,t,e)},gotoPage:function(t){this._gotoPage(t)},destroy:function(){this._initEvent(!0),delete t.data[this.wrapper.getAttribute("data-scroll")],this.wrapper.setAttribute("data-scroll","")}}),f=function(e,n){this.wrapper="string"==typeof n.el?i.querySelector(n.el):n.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=e,this.options=t.extend({listenX:!0,listenY:!0,fade:!1,speedRatioX:0,speedRatioY:0},n),this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.fade&&(this.wrapperStyle["webkitTransform"]=this.scroller.translateZ,this.wrapperStyle["webkitTransitionDuration"]=this.options.fixedBadAndorid&&t.os.isBadAndroid?"0.001s":"0ms",this.wrapperStyle.opacity="0")};f.prototype={handleEvent:function(t){},transitionTime:function(e){e=e||0,this.indicatorStyle["webkitTransitionDuration"]=e+"ms",this.scroller.options.fixedBadAndorid&&!e&&t.os.isBadAndroid&&(this.indicatorStyle["webkitTransitionDuration"]="0.001s")},transitionTimingFunction:function(t){this.indicatorStyle["webkitTransitionTimingFunction"]=t},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.wrapper.offsetHeight,this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.indicatorWidth=Math.max(Math.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=this.wrapperWidth-this.indicatorWidth,this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX,this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.indicatorHeight=Math.max(Math.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var t=this.options.listenX&&Math.round(this.sizeRatioX*this.scroller.x)||0,e=this.options.listenY&&Math.round(this.sizeRatioY*this.scroller.y)||0;t<this.minBoundaryX?(this.width=Math.max(this.indicatorWidth+t,8),this.indicatorStyle.width=this.width+"px",t=this.minBoundaryX):t>this.maxBoundaryX?(this.width=Math.max(this.indicatorWidth-(t-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",t=this.maxPosX+this.indicatorWidth-this.width):this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),e<this.minBoundaryY?(this.height=Math.max(this.indicatorHeight+3*e,8),this.indicatorStyle.height=this.height+"px",e=this.minBoundaryY):e>this.maxBoundaryY?(this.height=Math.max(this.indicatorHeight-3*(e-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",e=this.maxPosY+this.indicatorHeight-this.height):this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px"),this.x=t,this.y=e,this.indicatorStyle["webkitTransform"]=this.scroller._getTranslateStr(t,e)},fade:function(t,e){if(!e||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var i=t?250:500,n=t?0:300;t=t?"1":"0",this.wrapperStyle["webkitTransitionDuration"]=i+"ms",this.fadeTimeout=setTimeout(function(t){this.wrapperStyle.opacity=t,this.visible=+t}.bind(this,t),n)}}},t.Scroll=d,t.fn.scroll=function(e){var i=[];return this.each((function(){var n=null,s=this,o=s.getAttribute("data-scroll");if(o)n=t.data[o];else{o=++t.uuid;var r=t.extend({},e);s.classList.contains("mui-segmented-control")&&(r=t.extend(r,{scrollY:!1,scrollX:!0,indicators:!1,snap:".mui-control-item"})),t.data[o]=n=new d(s,r),s.setAttribute("data-scroll",o)}i.push(n)})),1===i.length?i[0]:i}}(r,window,document),function(t,e,i,n){var s="mui-visibility",o="mui-hidden",r=t.Scroll.extend(t.extend({handleEvent:function(t){this._super(t),"scrollbottom"===t.type&&t.target===this.scroller&&this._scrollbottom()},_scrollbottom:function(){this.pulldown||this.loading||(this.pulldown=!1,this._initPullupRefresh(),this.pullupLoading())},_start:function(t){t.touches&&t.touches.length&&t.touches[0].clientX>30&&t.target&&!this._preventDefaultException(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.loading||(this.pulldown=this.pullPocket=this.pullCaption=this.pullLoading=!1),this._super(t)},_drag:function(t){this.y>=0&&this.disablePulldown&&"down"===t.detail.direction||(this._super(t),!this.pulldown&&!this.loading&&this.topPocket&&"down"===t.detail.direction&&this.y>=0&&this._initPulldownRefresh(),this.pulldown&&this._setCaption(this.y>this.options.down.height?this.options.down.contentover:this.options.down.contentdown))},_reLayout:function(){this.hasVerticalScroll=!0,this._super()},resetPosition:function(t){if(this.pulldown&&!this.disablePulldown){if(this.y>=this.options.down.height)return this.pulldownLoading(n,t||0),!0;!this.loading&&this.topPocket.classList.remove(s)}return this._super(t)},pulldownLoading:function(t,e){if("undefined"===typeof t&&(t=this.options.down.height),this.scrollTo(0,t,e,this.options.bounceEasing),!this.loading){this._initPulldownRefresh(),this._setCaption(this.options.down.contentrefresh),this.loading=!0,this.indicators.map((function(t){t.fade(0)}));var i=this.options.down.callback;i&&i.call(this)}},endPulldownToRefresh:function(){var t=this;t.topPocket&&t.loading&&this.pulldown&&(t.scrollTo(0,0,t.options.bounceTime,t.options.bounceEasing),t.loading=!1,t._setCaption(t.options.down.contentdown,!0),setTimeout((function(){t.loading||t.topPocket.classList.remove(s)}),350))},pullupLoading:function(t,e,i){e=e||0,this.scrollTo(e,this.maxScrollY,i,this.options.bounceEasing),this.loading||(this._initPullupRefresh(),this._setCaption(this.options.up.contentrefresh),this.indicators.map((function(t){t.fade(0)})),this.loading=!0,t=t||this.options.up.callback,t&&t.call(this))},endPullupToRefresh:function(t){var e=this;e.bottomPocket&&(e.loading=!1,t?(this.finished=!0,e._setCaption(e.options.up.contentnomore),e.wrapper.removeEventListener("scrollbottom",e)):(e._setCaption(e.options.up.contentdown),e.loading||e.bottomPocket.classList.remove(s)))},disablePullupToRefresh:function(){this._initPullupRefresh(),this.bottomPocket.className="mui-pull-bottom-pocket "+o,this.wrapper.removeEventListener("scrollbottom",this)},disablePulldownToRefresh:function(){this._initPulldownRefresh(),this.topPocket.className="mui-pull-top-pocket "+o,this.disablePulldown=!0},enablePulldownToRefresh:function(){this._initPulldownRefresh(),this.topPocket.classList.remove(o),this._setCaption(this.options.down.contentdown),this.disablePulldown=!1},enablePullupToRefresh:function(){this._initPullupRefresh(),this.bottomPocket.classList.remove(o),this._setCaption(this.options.up.contentdown),this.wrapper.addEventListener("scrollbottom",this)},refresh:function(t){t&&this.finished&&(this.enablePullupToRefresh(),this.finished=!1),this._super()}},t.PullRefresh));t.fn.pullRefresh=function(e){if(1===this.length){var i=this[0],n=null,s=i.getAttribute("data-pullrefresh");return!(!s&&"undefined"===typeof e)&&(e=e||{},s?n=t.data[s]:(s=++t.uuid,t.data[s]=n=new r(i,e),i.setAttribute("data-pullrefresh",s)),e.down&&e.down.auto?n.pulldownLoading(e.down.autoY):e.up&&e.up.auto&&n.pullupLoading(),n)}}}(r,window,document),function(t,e){var i="mui-slider",n="mui-slider-group",s="mui-slider-loop",o="mui-action-previous",r="mui-action-next",a="mui-slider-item",l="mui-active",c="."+a,u=".mui-slider-progress-bar",h=t.Slider=t.Scroll.extend({init:function(e,i){this._super(e,t.extend(!0,{fingers:1,interval:0,scrollY:!1,scrollX:!0,indicators:!1,scrollTime:1e3,startX:!1,slideTime:0,snap:c},i)),this.options.startX},_init:function(){this._reInit(),this.scroller&&(this.scrollerStyle=this.scroller.style,this.progressBar=this.wrapper.querySelector(u),this.progressBar&&(this.progressBarWidth=this.progressBar.offsetWidth,this.progressBarStyle=this.progressBar.style),this._super(),this._initTimer())},_triggerSlide:function(){var e=this;e.isInTransition=!1;e.currentPage;e.slideNumber=e._fixedSlideNumber(),e.loop&&(0===e.slideNumber?e.setTranslate(e.pages[1][0].x,0):e.slideNumber===e.itemLength-3&&e.setTranslate(e.pages[e.itemLength-2][0].x,0)),e.lastSlideNumber!=e.slideNumber&&(e.lastSlideNumber=e.slideNumber,e.lastPage=e.currentPage,t.trigger(e.wrapper,"slide",{slideNumber:e.slideNumber})),e._initTimer()},_handleSlide:function(e){var i=this;if(e.target===i.wrapper){var n=e.detail;n.slideNumber=n.slideNumber||0;for(var s=i.scroller.querySelectorAll(c),o=[],r=0,a=s.length;r<a;r++){var u=s[r];u.parentNode===i.scroller&&o.push(u)}var h=n.slideNumber;if(i.loop&&(h+=1),!i.wrapper.classList.contains("mui-segmented-control"))for(r=0,a=o.length;r<a;r++){u=o[r];u.parentNode===i.scroller&&(r===h?u.classList.add(l):u.classList.remove(l))}var d=i.wrapper.querySelector(".mui-slider-indicator");if(d){d.getAttribute("data-scroll")&&t(d).scroll().gotoPage(n.slideNumber);var f=d.querySelectorAll(".mui-indicator");if(f.length>0)for(r=0,a=f.length;r<a;r++)f[r].classList[r===n.slideNumber?"add":"remove"](l);else{var p=d.querySelector(".mui-number span");if(p)p.innerText=n.slideNumber+1;else{var g=d.querySelectorAll(".mui-control-item");for(r=0,a=g.length;r<a;r++)g[r].classList[r===n.slideNumber?"add":"remove"](l)}}}e.stopPropagation()}},_handleTabShow:function(t){var e=this;e.gotoItem(t.detail.tabNumber||0,e.options.slideTime)},_handleIndicatorTap:function(t){var e=this,i=t.target;(i.classList.contains(o)||i.classList.contains(r))&&(e[i.classList.contains(o)?"prevItem":"nextItem"](),t.stopPropagation())},_initEvent:function(e){var i=this;i._super(e);var n=e?"removeEventListener":"addEventListener";i.wrapper[n]("slide",this),i.wrapper[n](t.eventName("shown","tab"),this)},handleEvent:function(e){switch(this._super(e),e.type){case"slide":this._handleSlide(e);break;case t.eventName("shown","tab"):~this.snaps.indexOf(e.target)&&this._handleTabShow(e);break}},_scrollend:function(t){this._super(t),this._triggerSlide(t)},_drag:function(t){this._super(t);var i=t.detail.direction;if("left"===i||"right"===i){var n=this.wrapper.getAttribute("data-slidershowTimer");n&&e.clearTimeout(n),t.stopPropagation()}},_initTimer:function(){var t=this,i=t.wrapper,n=t.options.interval,s=i.getAttribute("data-slidershowTimer");s&&e.clearTimeout(s),n&&(s=e.setTimeout((function(){i&&((i.offsetWidth||i.offsetHeight)&&t.nextItem(!0),t._initTimer())}),n),i.setAttribute("data-slidershowTimer",s))},_fixedSlideNumber:function(t){t=t||this.currentPage;var e=t.pageX;return this.loop&&(e=0===t.pageX?this.itemLength-3:t.pageX===this.itemLength-1?0:t.pageX-1),e},_reLayout:function(){this.hasHorizontalScroll=!0,this.loop=this.scroller.classList.contains(s),this._super()},_getScroll:function(){var e=t.parseTranslateMatrix(t.getStyles(this.scroller,"webkitTransform"));return e?e.x:0},_transitionEnd:function(e){e.target===this.scroller&&this.isInTransition&&(this._transitionTime(),this.isInTransition=!1,t.trigger(this.wrapper,"scrollend",this))},_flick:function(t){if(this.moved){var e=t.detail,i=e.direction;this._clearRequestAnimationFrame(),this.isInTransition=!0,"flick"===t.type?(e.deltaTime<200&&(this.x=this._getPage(this.slideNumber+("right"===i?-1:1),!0).x),this.resetPosition(this.options.bounceTime)):"dragend"!==t.type||e.flick||this.resetPosition(this.options.bounceTime),t.stopPropagation()}},_initSnap:function(){if(this.scrollerWidth=this.itemLength*this.scrollerWidth,this.maxScrollX=Math.min(this.wrapperWidth-this.scrollerWidth,0),this._super(),this.currentPage.x)this.slideNumber=this._fixedSlideNumber(),this.lastSlideNumber="undefined"===typeof this.lastSlideNumber?this.slideNumber:this.lastSlideNumber;else{var t=this.pages[this.loop?1:0];if(t=t||this.pages[0],!t)return;this.currentPage=t[0],this.slideNumber=0,this.lastSlideNumber="undefined"===typeof this.lastSlideNumber?0:this.lastSlideNumber}this.options.startX=this.currentPage.x||0},_getSnapX:function(t){return Math.max(-t,this.maxScrollX)},_getPage:function(t,e){return this.loop?t>this.itemLength-(e?2:3)?(t=1,time=0):t<(e?-1:0)?(t=this.itemLength-2,time=0):t+=1:(e||(t>this.itemLength-1?(t=0,time=0):t<0&&(t=this.itemLength-1,time=0)),t=Math.min(Math.max(0,t),this.itemLength-1)),this.pages[t][0]},_gotoItem:function(e,i){this.currentPage=this._getPage(e,!0),this.scrollTo(this.currentPage.x,0,i,this.options.scrollEasing),0===i&&t.trigger(this.wrapper,"scrollend",this)},setTranslate:function(t,e){this._super(t,e);var i=this.progressBar;i&&(this.progressBarStyle.webkitTransform=this._getTranslateStr(-t*(this.progressBarWidth/this.wrapperWidth),0))},resetPosition:function(t){return t=t||0,this.x>0?this.x=0:this.x<this.maxScrollX&&(this.x=this.maxScrollX),this.currentPage=this._nearestSnap(this.x),this.scrollTo(this.currentPage.x,0,t,this.options.scrollEasing),!0},gotoItem:function(t,e){this._gotoItem(t,"undefined"===typeof e?this.options.scrollTime:e)},nextItem:function(){this._gotoItem(this.slideNumber+1,this.options.scrollTime)},prevItem:function(){this._gotoItem(this.slideNumber-1,this.options.scrollTime)},getSlideNumber:function(){return this.slideNumber||0},_reInit:function(){for(var t=this.wrapper.querySelectorAll("."+n),e=0,i=t.length;e<i;e++)if(t[e].parentNode===this.wrapper){this.scroller=t[e];break}this.scrollerStyle=this.scroller&&this.scroller.style,this.progressBar&&(this.progressBarWidth=this.progressBar.offsetWidth,this.progressBarStyle=this.progressBar.style)},refresh:function(e){e?(t.extend(this.options,e),this._super(),this._initTimer()):this._super()},destroy:function(){this._initEvent(!0),delete t.data[this.wrapper.getAttribute("data-slider")],this.wrapper.setAttribute("data-slider","")}});t.fn.slider=function(e){var n=null;return this.each((function(){var s=this;if(this.classList.contains(i)||(s=this.querySelector("."+i)),s&&s.querySelector(c)){var o=s.getAttribute("data-slider");o?(n=t.data[o],n&&e&&n.refresh(e)):(o=++t.uuid,t.data[o]=n=new h(s,e),s.setAttribute("data-slider",o))}})),n},t.ready((function(){t(".mui-slider").slider(),t(".mui-scroll-wrapper.mui-slider-indicator.mui-segmented-control").scroll({scrollY:!1,scrollX:!0,indicators:!1,snap:".mui-control-item"})}))}(r,window),function(t,e){t.os.plus&&t.plusReady((function(){if(!1!==window.__NWin_Enable__){var i="mui-plus-pullrefresh",n="mui-visibility",s="mui-hidden",o="mui-block",r="mui-pull-caption",a="mui-pull-caption-down",l="mui-pull-caption-refresh",c="mui-pull-caption-nomore",u=t.Class.extend({init:function(t,e){this.element=t,this.options=e,this.wrapper=this.scroller=t,this._init(),this._initPulldownRefreshEvent()},_init:function(){var t=this;window.addEventListener("dragup",t),e.addEventListener("plusscrollbottom",t),t.scrollInterval=window.setInterval((function(){t.isScroll&&!t.loading&&window.pageYOffset+window.innerHeight+10>=e.documentElement.scrollHeight&&(t.isScroll=!1,t.bottomPocket&&t.pullupLoading())}),100)},_initPulldownRefreshEvent:function(){var e=this;t.plusReady((function(){if("circle"==e.options.down.style)e.options.webview=plus.webview.currentWebview(),e.options.webview.setPullToRefresh({support:!0,color:e.options.down.color||"#2BD009",height:e.options.down.height||"50px",range:e.options.down.range||"100px",style:"circle",offset:e.options.down.offset||"0px"},(function(){e.options.down.callback()}));else if(e.topPocket&&e.options.webviewId){var t=plus.webview.getWebviewById(e.options.webviewId);if(!t)return;e.options.webview=t;var i=e.options.down,n=i.height;t.addEventListener("close",(function(){var t=e.options.webviewId&&e.options.webviewId.replace(/\//g,"_");e.element.removeAttribute("data-pullrefresh-plus-"+t)})),t.addEventListener("dragBounce",(function(n){switch(e.pulldown?e.pullPocket.classList.add(o):e._initPulldownRefresh(),n.status){case"beforeChangeOffset":e._setCaption(i.contentdown);break;case"afterChangeOffset":e._setCaption(i.contentover);break;case"dragEndAfterChangeOffset":t.evalJS("window.mui&&mui.options.pullRefresh.down.callback()"),e._setCaption(i.contentrefresh);break;default:break}}),!1),t.setBounce({position:{top:2*n+"px"},changeoffset:{top:n+"px"}})}}))},handleEvent:function(t){var e=this;e.stopped||(e.isScroll=!1,"dragup"!==t.type&&"plusscrollbottom"!==t.type||(e.isScroll=!0,setTimeout((function(){e.isScroll=!1}),1e3)))}}).extend(t.extend({setStopped:function(t){this.stopped=!!t,this.stopped?(this.disablePullupToRefresh(),this.disablePulldownToRefresh()):(this.enablePullupToRefresh(),this.enablePulldownToRefresh())},beginPulldown:function(){var e=this;t.plusReady(function(){setTimeout((function(){if("circle"==e.options.down.style)plus.webview.currentWebview().beginPullToRefresh();else{var t=e.options.webview;t&&t.setBounce({offset:{top:e.options.down.height+"px"}})}}),15)}.bind(this))},pulldownLoading:function(){this.beginPulldown()},_pulldownLoading:function(){var e=this;t.plusReady((function(){var t=plus.webview.getWebviewById(e.options.webviewId);t&&t.setBounce({offset:{top:e.options.down.height+"px"}})}))},endPulldown:function(){var t=plus.webview.currentWebview();t.parent()&&"circle"!==this.options.down.style?t.parent().evalJS("mui&&mui(document.querySelector('.mui-content')).pullRefresh('"+JSON.stringify({webviewId:t.id})+"')._endPulldownToRefresh()"):t.endPullToRefresh()},endPulldownToRefresh:function(){this.endPulldown()},_endPulldownToRefresh:function(){var t=this;t.topPocket&&t.options.webview&&(t.options.webview.endPullToRefresh(),t.loading=!1,t._setCaption(t.options.down.contentdown,!0),setTimeout((function(){t.loading||t.topPocket.classList.remove(o)}),350))},beginPullup:function(t){var e=this;e.isLoading||(e.isLoading=!0,!1!==e.pulldown?e._initPullupRefresh():this.pullPocket.classList.add(o),setTimeout((function(){e.pullLoading.classList.add(n),e.pullLoading.classList.remove(s),e.pullCaption.innerHTML="",e.pullCaption.className=r+" "+l,e.pullCaption.innerHTML=e.options.up.contentrefresh,t=t||e.options.up.callback,t&&t.call(e)}),300))},pullupLoading:function(t){this.beginPullup(t)},endPullup:function(t){var i=this;i.pullLoading&&(i.pullLoading.classList.remove(n),i.pullLoading.classList.add(s),i.isLoading=!1,t?(i.finished=!0,i.pullCaption.className=r+" "+c,i.pullCaption.innerHTML=i.options.up.contentnomore,e.removeEventListener("plusscrollbottom",i),window.removeEventListener("dragup",i)):(i.pullCaption.className=r+" "+a,i.pullCaption.innerHTML=i.options.up.contentdown))},endPullupToRefresh:function(t){this.endPullup(t)},disablePulldownToRefresh:function(){var t=plus.webview.currentWebview();this.options.down.style&&"circle"==this.options.down.style?this.options.webview.setPullToRefresh({support:!1,style:"circle"}):(t.setStyle({bounce:"none"}),t.setBounce({position:{top:"none"}}))},enablePulldownToRefresh:function(){var t=this,e=plus.webview.currentWebview(),i=this.options.down.height;this.options.down.style&&"circle"==this.options.down.style?e.setPullToRefresh({support:!0,height:i||"50px",range:t.options.down.range||"100px",style:"circle",offset:t.options.down.offset||"0px"}):(e.setStyle({bounce:"vertical"}),e.setBounce({position:{top:2*i+"px"},changeoffset:{top:i+"px"}}))},disablePullupToRefresh:function(){this._initPullupRefresh(),this.bottomPocket.className="mui-pull-bottom-pocket "+s,window.removeEventListener("dragup",this)},enablePullupToRefresh:function(){this._initPullupRefresh(),this.bottomPocket.classList.remove(s),this.pullCaption.className=r+" "+a,this.pullCaption.innerHTML=this.options.up.contentdown,e.addEventListener("plusscrollbottom",this),window.addEventListener("dragup",this)},scrollTo:function(e,i,n){t.scrollTo(i,n)},scrollToBottom:function(i){t.scrollTo(e.documentElement.scrollHeight,i)},refresh:function(t){t&&this.finished&&(this.enablePullupToRefresh(),this.finished=!1)}},t.PullRefresh));t.fn.pullRefresh_native=function(n){var s;0===this.length?(s=e.createElement("div"),s.className="mui-content",e.body.appendChild(s)):s=this[0];var o=n;n=n||{},"string"===typeof n&&(n=t.parseJSON(n)),!n.webviewId&&(n.webviewId=plus.webview.currentWebview().id||plus.webview.currentWebview().getURL());var r=null,a=n.webviewId&&n.webviewId.replace(/\//g,"_"),l=s.getAttribute("data-pullrefresh-plus-"+a);return!(!l&&"undefined"===typeof o)&&(l?r=t.data[l]:(l=++t.uuid,s.setAttribute("data-pullrefresh-plus-"+a,l),e.body.classList.add(i),t.data[l]=r=new u(s,n)),n.down&&n.down.auto?r.beginPulldown():n.up&&n.up.auto&&r.beginPullup(),r)}}}))}(r,document),function(t,e,i,n){var s="mui-off-canvas-left",o="mui-off-canvas-right",r="mui-off-canvas-backdrop",a="mui-off-canvas-wrap",l="mui-slide-in",c="mui-active",u="mui-transitioning",h=".mui-inner-wrap",d=t.Class.extend({init:function(e,n){this.wrapper=this.element=e,this.scroller=this.wrapper.querySelector(h),this.classList=this.wrapper.classList,this.scroller&&(this.options=t.extend(!0,{dragThresholdX:10,scale:.8,opacity:.1,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|VIDEO)$/}},n),i.body.classList.add("mui-fullscreen"),this.refresh(),this.initEvent())},_preventDefaultException:function(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1},refresh:function(t){this.slideIn=this.classList.contains(l),this.scalable=this.classList.contains("mui-scalable")&&!this.slideIn,this.scroller=this.wrapper.querySelector(h),this.offCanvasLefts=this.wrapper.querySelectorAll("."+s),this.offCanvasRights=this.wrapper.querySelectorAll("."+o),t?t.classList.contains(s)?this.offCanvasLeft=t:t.classList.contains(o)&&(this.offCanvasRight=t):(this.offCanvasRight=this.wrapper.querySelector("."+o),this.offCanvasLeft=this.wrapper.querySelector("."+s)),this.offCanvasRightWidth=this.offCanvasLeftWidth=0,this.offCanvasLeftSlideIn=this.offCanvasRightSlideIn=!1,this.offCanvasRight&&(this.offCanvasRightWidth=this.offCanvasRight.offsetWidth,this.offCanvasRightSlideIn=this.slideIn&&this.offCanvasRight.parentNode===this.wrapper),this.offCanvasLeft&&(this.offCanvasLeftWidth=this.offCanvasLeft.offsetWidth,this.offCanvasLeftSlideIn=this.slideIn&&this.offCanvasLeft.parentNode===this.wrapper),this.backdrop=this.scroller.querySelector("."+r),this.options.dragThresholdX=this.options.dragThresholdX||10,this.visible=!1,this.startX=null,this.lastX=null,this.offsetX=null,this.lastTranslateX=null},handleEvent:function(e){switch(e.type){case t.EVENT_START:e.target&&!this._preventDefaultException(e.target,this.options.preventDefaultException)&&e.preventDefault();break;case"webkitTransitionEnd":e.target===this.scroller&&this._dispatchEvent();break;case"drag":var i=e.detail;this.startX?this.lastX=i.center.x:(this.startX=i.center.x,this.lastX=this.startX),!this.isDragging&&Math.abs(this.lastX-this.startX)>this.options.dragThresholdX&&("left"===i.direction||"right"===i.direction)&&(this.slideIn?(this.scroller=this.wrapper.querySelector(h),this.classList.contains(c)?this.offCanvasRight&&this.offCanvasRight.classList.contains(c)?(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth):(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth):"left"===i.direction&&this.offCanvasRight?(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth):"right"===i.direction&&this.offCanvasLeft?(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth):this.scroller=null):this.classList.contains(c)?"left"===i.direction?(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth):(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth):"right"===i.direction?(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth):(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth),this.offCanvas&&this.scroller&&(this.startX=this.lastX,this.isDragging=!0,t.gestures.session.lockDirection=!0,t.gestures.session.startDirection=i.direction,this.offCanvas.classList.remove(u),this.scroller.classList.remove(u),this.offsetX=this.getTranslateX(),this._initOffCanvasVisible())),this.isDragging&&(this.updateTranslate(this.offsetX+(this.lastX-this.startX)),i.gesture.preventDefault(),e.stopPropagation());break;case"dragend":if(this.isDragging){i=e.detail;var n=i.direction;this.isDragging=!1,this.offCanvas.classList.add(u),this.scroller.classList.add(u);var s=0,o=this.getTranslateX();if(this.slideIn){if(s=o>=0?this.offCanvasRightWidth&&o/this.offCanvasRightWidth||0:this.offCanvasLeftWidth&&o/this.offCanvasLeftWidth||0,"right"===n&&s<=0&&(s>=-.5||i.swipe)?this.openPercentage(100):"right"===n&&s>0&&(s>=.5||i.swipe)||"right"===n&&s<=-.5?this.openPercentage(0):"right"===n&&s>0&&s<=.5||"left"===n&&s>=0&&(s<=.5||i.swipe)?this.openPercentage(-100):"left"===n&&s<0&&(s<=-.5||i.swipe)||"left"===n&&s>=.5?this.openPercentage(0):"left"===n&&s>=-.5&&s<0?this.openPercentage(100):this.openPercentage(0),1===s||-1===s||0===s)return void this._dispatchEvent()}else{if(s=o>=0?this.offCanvasLeftWidth&&o/this.offCanvasLeftWidth||0:this.offCanvasRightWidth&&o/this.offCanvasRightWidth||0,0===s)return this.openPercentage(0),void this._dispatchEvent();"right"===n&&s>=0&&(s>=.5||i.swipe)?this.openPercentage(100):"right"===n&&s<0&&(s>-.5||i.swipe)||"right"===n&&s>0&&s<.5?this.openPercentage(0):"right"===n&&s<.5||"left"===n&&s<=0&&(s<=-.5||i.swipe)?this.openPercentage(-100):"left"===n&&s>0&&(s<=.5||i.swipe)||"left"===n&&s<0&&s>=-.5?this.openPercentage(0):"left"===n&&s>.5?this.openPercentage(100):this.openPercentage(0),1!==s&&-1!==s||this._dispatchEvent()}}break}},_dispatchEvent:function(){this.classList.contains(c)?t.trigger(this.wrapper,"shown",this):t.trigger(this.wrapper,"hidden",this)},_initOffCanvasVisible:function(){this.visible||(this.visible=!0,this.offCanvasLeft&&(this.offCanvasLeft.style.visibility="visible"),this.offCanvasRight&&(this.offCanvasRight.style.visibility="visible"))},initEvent:function(){var e=this;e.backdrop&&e.backdrop.addEventListener("tap",(function(t){e.close(),t.detail.gesture.preventDefault()})),this.classList.contains("mui-draggable")&&(this.wrapper.addEventListener(t.EVENT_START,this),this.wrapper.addEventListener("drag",this),this.wrapper.addEventListener("dragend",this)),this.wrapper.addEventListener("webkitTransitionEnd",this)},openPercentage:function(t){var e=t/100;this.slideIn?(this.offCanvasLeft&&t>=0?(e=0===e?-1:0,this.updateTranslate(this.offCanvasLeftWidth*e),this.offCanvasLeft.classList[0!==t?"add":"remove"](c)):this.offCanvasRight&&t<=0&&(e=0===e?1:0,this.updateTranslate(this.offCanvasRightWidth*e),this.offCanvasRight.classList[0!==t?"add":"remove"](c)),this.classList[0!==t?"add":"remove"](c)):(this.offCanvasLeft&&t>=0?(this.updateTranslate(this.offCanvasLeftWidth*e),this.offCanvasLeft.classList[0!==e?"add":"remove"](c)):this.offCanvasRight&&t<=0&&(this.updateTranslate(this.offCanvasRightWidth*e),this.offCanvasRight.classList[0!==e?"add":"remove"](c)),this.classList[0!==e?"add":"remove"](c))},updateTranslate:function(e){if(e!==this.lastTranslateX){if(this.slideIn){if(this.offCanvas.classList.contains(o)){if(e<0)return void this.setTranslateX(0);if(e>this.offCanvasRightWidth)return void this.setTranslateX(this.offCanvasRightWidth)}else{if(e>0)return void this.setTranslateX(0);if(e<-this.offCanvasLeftWidth)return void this.setTranslateX(-this.offCanvasLeftWidth)}this.setTranslateX(e)}else{if(!this.offCanvasLeft&&e>0||!this.offCanvasRight&&e<0)return void this.setTranslateX(0);if(this.leftShowing&&e>this.offCanvasLeftWidth)return void this.setTranslateX(this.offCanvasLeftWidth);if(this.rightShowing&&e<-this.offCanvasRightWidth)return void this.setTranslateX(-this.offCanvasRightWidth);this.setTranslateX(e),e>=0?(this.leftShowing=!0,this.rightShowing=!1,e>0&&(this.offCanvasLeft&&t.each(this.offCanvasLefts,function(t,e){e===this.offCanvasLeft?this.offCanvasLeft.style.zIndex=0:e.style.zIndex=-1}.bind(this)),this.offCanvasRight&&(this.offCanvasRight.style.zIndex=-1))):(this.rightShowing=!0,this.leftShowing=!1,this.offCanvasRight&&t.each(this.offCanvasRights,function(t,e){e===this.offCanvasRight?e.style.zIndex=0:e.style.zIndex=-1}.bind(this)),this.offCanvasLeft&&(this.offCanvasLeft.style.zIndex=-1))}this.lastTranslateX=e}},setTranslateX:t.animationFrame((function(t){if(this.scroller)if(this.scalable&&this.offCanvas.parentNode===this.wrapper){var e=Math.abs(t)/this.offCanvasWidth,i=1-(1-this.options.scale)*e,n=this.options.scale+(1-this.options.scale)*e,o=(this.options.opacity,this.options.opacity+(1-this.options.opacity)*e);this.offCanvas.classList.contains(s)?(this.offCanvas.style.webkitTransformOrigin="-100%",this.scroller.style.webkitTransformOrigin="left"):(this.offCanvas.style.webkitTransformOrigin="200%",this.scroller.style.webkitTransformOrigin="right"),this.offCanvas.style.opacity=o,this.offCanvas.style.webkitTransform="translate3d(0,0,0) scale("+n+")",this.scroller.style.webkitTransform="translate3d("+t+"px,0,0) scale("+i+")"}else this.slideIn?this.offCanvas.style.webkitTransform="translate3d("+t+"px,0,0)":this.scroller.style.webkitTransform="translate3d("+t+"px,0,0)"})),getTranslateX:function(){if(this.offCanvas){var e=this.slideIn?this.offCanvas:this.scroller,i=t.parseTranslateMatrix(t.getStyles(e,"webkitTransform"));return i&&i.x||0}return 0},isShown:function(t){var e=!1;if(this.slideIn)e="left"===t?this.classList.contains(c)&&this.wrapper.querySelector("."+s+"."+c):"right"===t?this.classList.contains(c)&&this.wrapper.querySelector("."+o+"."+c):this.classList.contains(c)&&(this.wrapper.querySelector("."+s+"."+c)||this.wrapper.querySelector("."+o+"."+c));else{var i=this.getTranslateX();e="right"===t?this.classList.contains(c)&&i<0:"left"===t?this.classList.contains(c)&&i>0:this.classList.contains(c)&&0!==i}return e},close:function(){this._initOffCanvasVisible(),this.offCanvas=this.wrapper.querySelector("."+o+"."+c)||this.wrapper.querySelector("."+s+"."+c),this.offCanvasWidth=this.offCanvas.offsetWidth,this.scroller&&(this.offCanvas.offsetHeight,this.offCanvas.classList.add(u),this.scroller.classList.add(u),this.openPercentage(0))},show:function(t){return this._initOffCanvasVisible(),!this.isShown(t)&&(t||(t=this.wrapper.querySelector("."+o)?"right":"left"),"right"===t?(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth):(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth),this.scroller&&(this.offCanvas.offsetHeight,this.offCanvas.classList.add(u),this.scroller.classList.add(u),this.openPercentage("left"===t?100:-100)),!0)},toggle:function(t){var e=t;t&&t.classList&&(e=t.classList.contains(s)?"left":"right",this.refresh(t)),this.show(e)||this.close()}}),f=function(t){if(parentNode=t.parentNode,parentNode){if(parentNode.classList.contains(a))return parentNode;if(parentNode=parentNode.parentNode,parentNode.classList.contains(a))return parentNode}},p=function(e,n){if("A"===n.tagName&&n.hash){var s=i.getElementById(n.hash.replace("#",""));if(s){var o=f(s);if(o)return t.targets._container=o,s}}return!1};t.registerTarget({name:n,index:60,handle:p,target:!1,isReset:!1,isContinue:!0}),e.addEventListener("tap",(function(e){if(t.targets.offcanvas)for(var n=e.target;n&&n!==i;n=n.parentNode)if("A"===n.tagName&&n.hash&&n.hash==="#"+t.targets.offcanvas.id){e.detail&&e.detail.gesture&&e.detail.gesture.preventDefault(),t(t.targets._container).offCanvas().toggle(t.targets.offcanvas),t.targets.offcanvas=t.targets._container=null;break}})),t.fn.offCanvas=function(e){var i=[];return this.each((function(){var n=null,s=this;s.classList.contains(a)||(s=f(s));var o=s.getAttribute("data-offCanvas");o?n=t.data[o]:(o=++t.uuid,t.data[o]=n=new d(s,e),s.setAttribute("data-offCanvas",o)),"show"!==e&&"close"!==e&&"toggle"!==e||n.toggle(),i.push(n)})),1===i.length?i[0]:i},t.ready((function(){t(".mui-off-canvas-wrap").offCanvas()}))}(r,window,document,"offcanvas"),function(t,e){var i="mui-action",n=function(t,e){var n=e.className||"";return"string"!==typeof n&&(n=""),!(!n||!~n.indexOf(i))&&(e.classList.contains("mui-action-back")&&t.preventDefault(),e)};t.registerTarget({name:e,index:50,handle:n,target:!1,isContinue:!0})}(r,"action"),function(t,e,i,n){var s="mui-modal",o=function(t,e){if("A"===e.tagName&&e.hash){var n=i.getElementById(e.hash.replace("#",""));if(n&&n.classList.contains(s))return n}return!1};t.registerTarget({name:n,index:50,handle:o,target:!1,isReset:!1,isContinue:!0}),e.addEventListener("tap",(function(e){t.targets.modal&&(e.detail.gesture.preventDefault(),t.targets.modal.classList.toggle("mui-active"))}))}(r,window,document,"modal"),function(t,e,i,n){var s="mui-popover",o="mui-popover-arrow",r="mui-popover-action",a="mui-backdrop",l="mui-bar-popover",c="mui-bar-backdrop",u="mui-backdrop-action",h="mui-active",d="mui-bottom",f=function(e,n){if("A"===n.tagName&&n.hash){if(t.targets._popover=i.getElementById(n.hash.replace("#","")),t.targets._popover&&t.targets._popover.classList.contains(s))return n;t.targets._popover=null}return!1};t.registerTarget({name:n,index:60,handle:f,target:!1,isReset:!1,isContinue:!0});var p,g=function e(i){this.removeEventListener("webkitTransitionEnd",e),this.addEventListener(t.EVENT_MOVE,t.preventDefault),t.trigger(this,"shown",this)},v=function e(i){y(this,"none"),this.removeEventListener("webkitTransitionEnd",e),this.removeEventListener(t.EVENT_MOVE,t.preventDefault),t.trigger(this,"hidden",this)},m=function(){var e=i.createElement("div");return e.classList.add(a),e.addEventListener(t.EVENT_MOVE,t.preventDefault),e.addEventListener("tap",(function(e){var i=t.targets._popover;i&&(i.addEventListener("webkitTransitionEnd",v),i.classList.remove(h),b(i))})),e}(),b=function(e){m.setAttribute("style","opacity:0"),t.targets.popover=t.targets._popover=null,p=t.later((function(){!e.classList.contains(h)&&m.parentNode&&m.parentNode===i.body&&i.body.removeChild(m)}),350)};e.addEventListener("tap",(function(e){if(t.targets.popover){for(var n=!1,s=e.target;s&&s!==i;s=s.parentNode)s===t.targets.popover&&(n=!0);n&&(e.detail.gesture.preventDefault(),w(t.targets._popover,t.targets.popover))}}));var w=function(t,e,n){if(!("show"===n&&t.classList.contains(h)||"hide"===n&&!t.classList.contains(h))){p&&p.cancel(),t.removeEventListener("webkitTransitionEnd",g),t.removeEventListener("webkitTransitionEnd",v),m.classList.remove(c),m.classList.remove(u);var s=i.querySelector(".mui-popover.mui-active");if(s&&(s.addEventListener("webkitTransitionEnd",v),s.classList.remove(h),t===s))b(s);else{var o=!1;(t.classList.contains(l)||t.classList.contains(r))&&(t.classList.contains(r)?(o=!0,m.classList.add(u)):m.classList.add(c)),y(t,"block"),t.offsetHeight,t.classList.add(h),m.setAttribute("style",""),i.body.appendChild(m),L(t,e,o),m.classList.add(h),t.addEventListener("webkitTransitionEnd",g)}}},y=function(t,e,i,n){var s=t.style;"undefined"!==typeof e&&(s.display=e),"undefined"!==typeof i&&(s.top=i+"px"),"undefined"!==typeof n&&(s.left=n+"px")},L=function(n,s,a){if(n&&s)if(a)y(n,"block");else{var l=e.innerWidth,c=e.innerHeight,u=n.offsetWidth,h=n.offsetHeight,f=s.offsetWidth,p=s.offsetHeight,g=t.offset(s),v=n.querySelector("."+o);v||(v=i.createElement("div"),v.className=o,n.appendChild(v));var m=v&&v.offsetWidth/2||0,b=0,w=0,L=0,T=0,E=n.classList.contains(r)?0:5,x="top";h+m<g.top-e.pageYOffset?b=g.top-h-m:h+m<c-(g.top-e.pageYOffset)-p?(x="bottom",b=g.top+p+m):(x="middle",b=Math.max((c-h)/2+e.pageYOffset,0),w=Math.max((l-u)/2+e.pageXOffset,0)),"top"===x||"bottom"===x?(w=f/2+g.left-u/2,L=w,w<E&&(w=E),w+u>l&&(w=l-u-E),v&&("top"===x?v.classList.add(d):v.classList.remove(d),L-=w,T=u/2-m/2+L,T=Math.max(Math.min(T,u-2*m-6),6),v.setAttribute("style","left:"+T+"px"))):"middle"===x&&v.setAttribute("style","display:none"),y(n,"block",b,w)}};t.createMask=function(e){var n=i.createElement("div");n.classList.add(a),n.addEventListener(t.EVENT_MOVE,t.preventDefault),n.addEventListener("tap",(function(){s.close()}));var s=[n];return s._show=!1,s.show=function(){return s._show=!0,n.setAttribute("style","opacity:1"),i.body.appendChild(n),s},s._remove=function(){return s._show&&(s._show=!1,n.setAttribute("style","opacity:0"),t.later((function(){var t=i.body;n.parentNode===t&&t.removeChild(n)}),350)),s},s.close=function(){e?!1!==e()&&s._remove():s._remove()},s},t.fn.popover=function(){var e=arguments;this.each((function(){t.targets._popover=this,"show"!==e[0]&&"hide"!==e[0]&&"toggle"!==e[0]||w(this,e[1],e[0])}))}}(r,window,document,"popover"),function(t,e,i,n,s){var o="mui-control-item",r="mui-segmented-control",a="mui-segmented-control-vertical",l="mui-control-content",c="mui-bar-tab",u="mui-tab-item",h=function(t,e){return!(!e.classList||!e.classList.contains(o)&&!e.classList.contains(u))&&(e.parentNode&&e.parentNode.classList&&e.parentNode.classList.contains(a)||t.preventDefault(),e)};t.registerTarget({name:n,index:80,handle:h,target:!1}),e.addEventListener("tap",(function(e){var s=t.targets.tab;if(s){for(var a,h,d,f="mui-active",p="."+f,g=s.parentNode;g&&g!==i;g=g.parentNode){if(g.classList.contains(r)){a=g.querySelector(p+"."+o);break}g.classList.contains(c)&&(a=g.querySelector(p+"."+u))}a&&a.classList.remove(f);var v=s===a;if(s&&s.classList.add(f),s.hash&&(d=i.getElementById(s.hash.replace("#","")),d))if(d.classList.contains(l)){if(!v){var m=d.parentNode;h=m.querySelectorAll("."+l+p);for(var b=0;b<h.length;b++){var w=h[b];w.parentNode===m&&w.classList.remove(f)}d.classList.add(f);var y=[],L=m.querySelectorAll("."+l);for(b=0;b<L.length;b++)L[b].parentNode===m&&y.push(L[b]);t.trigger(d,t.eventName("shown",n),{tabNumber:Array.prototype.indexOf.call(y,d)}),e.detail&&e.detail.gesture.preventDefault()}}else s.classList[v?"remove":"add"](f)}}))}(r,window,document,"tab"),function(t,e,i){var n="mui-switch",s="mui-switch-handle",o="mui-active",r="mui-dragging",a="mui-disabled",l="."+s,c=function(t,e){return!(!e.classList||!e.classList.contains(n))&&e};t.registerTarget({name:i,index:100,handle:c,target:!1});var u=function(t){this.element=t,this.classList=this.element.classList,this.handle=this.element.querySelector(l),this.init(),this.initEvent()};u.prototype.init=function(){this.toggleWidth=this.element.offsetWidth,this.handleWidth=this.handle.offsetWidth,this.handleX=this.toggleWidth-this.handleWidth-3},u.prototype.initEvent=function(){this.element.addEventListener(t.EVENT_START,this),this.element.addEventListener("drag",this),this.element.addEventListener("swiperight",this),this.element.addEventListener(t.EVENT_END,this),this.element.addEventListener(t.EVENT_CANCEL,this)},u.prototype.handleEvent=function(e){if(!this.classList.contains(a))switch(e.type){case t.EVENT_START:this.start(e);break;case"drag":this.drag(e);break;case"swiperight":this.swiperight();break;case t.EVENT_END:case t.EVENT_CANCEL:this.end(e);break}},u.prototype.start=function(t){this.handle.style.webkitTransitionDuration=this.element.style.webkitTransitionDuration=".2s",this.classList.add(r),0!==this.toggleWidth&&0!==this.handleWidth||this.init()},u.prototype.drag=function(t){var e=t.detail;this.isDragging||"left"!==e.direction&&"right"!==e.direction||(this.isDragging=!0,this.lastChanged=void 0,this.initialState=this.classList.contains(o)),this.isDragging&&(this.setTranslateX(e.deltaX),t.stopPropagation(),e.gesture.preventDefault())},u.prototype.swiperight=function(t){this.isDragging&&t.stopPropagation()},u.prototype.end=function(e){this.classList.remove(r),this.isDragging?(this.isDragging=!1,e.stopPropagation(),t.trigger(this.element,"toggle",{isActive:this.classList.contains(o)})):this.toggle()},u.prototype.toggle=function(e){var i=this.classList;this.handle.style.webkitTransitionDuration=this.element.style.webkitTransitionDuration=!1===e?"0s":".2s",i.contains(o)?(i.remove(o),this.handle.style.webkitTransform="translate(0,0)"):(i.add(o),this.handle.style.webkitTransform="translate("+this.handleX+"px,0)"),t.trigger(this.element,"toggle",{isActive:this.classList.contains(o)})},u.prototype.setTranslateX=t.animationFrame((function(t){if(this.isDragging){var e=!1;(this.initialState&&-t>this.handleX/2||!this.initialState&&t>this.handleX/2)&&(e=!0),this.lastChanged!==e&&(e?(this.handle.style.webkitTransform="translate("+(this.initialState?0:this.handleX)+"px,0)",this.classList[this.initialState?"remove":"add"](o)):(this.handle.style.webkitTransform="translate("+(this.initialState?this.handleX:0)+"px,0)",this.classList[this.initialState?"add":"remove"](o)),this.lastChanged=e)}})),t.fn["switch"]=function(e){var i=[];return this.each((function(){var e=null,n=this.getAttribute("data-switch");n?e=t.data[n]:(n=++t.uuid,t.data[n]=new u(this),this.setAttribute("data-switch",n)),i.push(e)})),i.length>1?i:i[0]},t.ready((function(){t("."+n)["switch"]()}))}(r,window,"toggle"),function(t,e,i){var n,s,o="mui-active",r="mui-selected",a="mui-grid-view",l="mui-table-view-radio",c="mui-table-view-cell",u="mui-collapse-content",h="mui-disabled",d="mui-switch",f="mui-btn",p="mui-slider-handle",g="mui-slider-left",v="mui-slider-right",m="mui-transitioning",b="."+p,w="."+g,y="."+v,L="."+r,T="."+f,E=.8,x=isOpened=openedActions=progress=!1,S=sliderActionLeft=sliderActionRight=buttonsLeft=buttonsRight=sliderDirection=sliderRequestAnimationFrame=!1,_=translateX=lastTranslateX=sliderActionLeftWidth=sliderActionRightWidth=0,C=function(t){t?s?s.classList.add(o):n&&n.classList.add(o):(_&&_.cancel(),s?s.classList.remove(o):n&&n.classList.remove(o))},k=function t(){if(translateX!==lastTranslateX){if(buttonsRight&&buttonsRight.length>0){progress=translateX/sliderActionRightWidth,translateX<-sliderActionRightWidth&&(translateX=-sliderActionRightWidth-Math.pow(-translateX-sliderActionRightWidth,E));for(var e=0,i=buttonsRight.length;e<i;e++){var n=buttonsRight[e];"undefined"===typeof n._buttonOffset&&(n._buttonOffset=n.offsetLeft),buttonOffset=n._buttonOffset,N(n,translateX-buttonOffset*(1+Math.max(progress,-1)))}}if(buttonsLeft&&buttonsLeft.length>0){progress=translateX/sliderActionLeftWidth,translateX>sliderActionLeftWidth&&(translateX=sliderActionLeftWidth+Math.pow(translateX-sliderActionLeftWidth,E));for(e=0,i=buttonsLeft.length;e<i;e++){var s=buttonsLeft[e];"undefined"===typeof s._buttonOffset&&(s._buttonOffset=sliderActionLeftWidth-s.offsetLeft-s.offsetWidth),buttonOffset=s._buttonOffset,buttonsLeft.length>1&&(s.style.zIndex=buttonsLeft.length-e),N(s,translateX+buttonOffset*(1-Math.min(progress,1)))}}N(S,translateX),lastTranslateX=translateX}sliderRequestAnimationFrame=requestAnimationFrame((function(){t()}))},N=function(t,e){t&&(t.style.webkitTransform="translate("+e+"px,0)")};e.addEventListener(t.EVENT_START,(function(e){n&&C(!1),n=s=!1,x=isOpened=openedActions=!1;for(var o=e.target,r=!1;o&&o!==i;o=o.parentNode)if(o.classList){var p=o.classList;if(("INPUT"===o.tagName&&"radio"!==o.type&&"checkbox"!==o.type||"BUTTON"===o.tagName||p.contains(d)||p.contains(f)||p.contains(h))&&(r=!0),p.contains(u))break;if(p.contains(c)){n=o;var g=n.parentNode.querySelector(L);if(!n.parentNode.classList.contains(l)&&g&&g!==n)return t.swipeoutClose(g),void(n=r=!1);if(!n.parentNode.classList.contains(a)){var v=n.querySelector("a");v&&v.parentNode===n&&(s=v)}var m=n.querySelector(b);m&&(P(n),e.stopPropagation()),r||(m?(_&&_.cancel(),_=t.later((function(){C(!0)}),100)):C(!0));break}}})),e.addEventListener(t.EVENT_MOVE,(function(t){C(!1)}));var A={handleEvent:function(t){switch(t.type){case"drag":this.drag(t);break;case"dragend":this.dragend(t);break;case"flick":this.flick(t);break;case"swiperight":this.swiperight(t);break;case"swipeleft":this.swipeleft(t);break}},drag:function(t){if(n){x||(S=sliderActionLeft=sliderActionRight=buttonsLeft=buttonsRight=sliderDirection=sliderRequestAnimationFrame=!1,S=n.querySelector(b),S&&(sliderActionLeft=n.querySelector(w),sliderActionRight=n.querySelector(y),sliderActionLeft&&(sliderActionLeftWidth=sliderActionLeft.offsetWidth,buttonsLeft=sliderActionLeft.querySelectorAll(T)),sliderActionRight&&(sliderActionRightWidth=sliderActionRight.offsetWidth,buttonsRight=sliderActionRight.querySelectorAll(T)),n.classList.remove(m),isOpened=n.classList.contains(r),isOpened&&(openedActions=n.querySelector(w+L)?"left":"right")));var e=t.detail,i=e.direction,s=e.angle;if("left"===i&&(s>150||s<-150)?(buttonsRight||buttonsLeft&&isOpened)&&(x=!0):"right"===i&&s>-30&&s<30&&(buttonsLeft||buttonsRight&&isOpened)&&(x=!0),x){t.stopPropagation(),t.detail.gesture.preventDefault();var o=t.detail.deltaX;if(isOpened&&("right"===openedActions?o-=sliderActionRightWidth:o+=sliderActionLeftWidth),o>0&&!buttonsLeft||o<0&&!buttonsRight){if(!isOpened)return;o=0}o<0?sliderDirection="toLeft":o>0?sliderDirection="toRight":sliderDirection||(sliderDirection="toLeft"),sliderRequestAnimationFrame||k(),translateX=o}}},flick:function(t){x&&t.stopPropagation()},swipeleft:function(t){x&&t.stopPropagation()},swiperight:function(t){x&&t.stopPropagation()},dragend:function(e){if(x){e.stopPropagation(),sliderRequestAnimationFrame&&(cancelAnimationFrame(sliderRequestAnimationFrame),sliderRequestAnimationFrame=null);var i=e.detail;x=!1;var s,o,a="close",l="toLeft"===sliderDirection?sliderActionRightWidth:sliderActionLeftWidth,c=i.swipe||Math.abs(translateX)>l/2;if(c&&(isOpened?("left"===i.direction&&"right"===openedActions||"right"===i.direction&&"left"===openedActions)&&(a="open"):a="open"),n.classList.add(m),"open"===a){var u="toLeft"===sliderDirection?-l:l;if(N(S,u),s="toLeft"===sliderDirection?buttonsRight:buttonsLeft,"undefined"!==typeof s){for(var h=null,d=0;d<s.length;d++)h=s[d],N(h,u);h.parentNode.classList.add(r),n.classList.add(r),isOpened||t.trigger(n,"toLeft"===sliderDirection?"slideleft":"slideright")}}else N(S,0),sliderActionLeft&&sliderActionLeft.classList.remove(r),sliderActionRight&&sliderActionRight.classList.remove(r),n.classList.remove(r);if(buttonsLeft&&buttonsLeft.length>0&&buttonsLeft!==s){d=0;for(var f=buttonsLeft.length;d<f;d++){var p=buttonsLeft[d];o=p._buttonOffset,"undefined"===typeof o&&(p._buttonOffset=sliderActionLeftWidth-p.offsetLeft-p.offsetWidth),N(p,o)}}if(buttonsRight&&buttonsRight.length>0&&buttonsRight!==s)for(d=0,f=buttonsRight.length;d<f;d++){var g=buttonsRight[d];o=g._buttonOffset,"undefined"===typeof o&&(g._buttonOffset=g.offsetLeft),N(g,-o)}}}};function P(t,e){var i=e?"removeEventListener":"addEventListener";t[i]("drag",A),t[i]("dragend",A),t[i]("swiperight",A),t[i]("swipeleft",A),t[i]("flick",A)}t.swipeoutOpen=function(e,i){if(e){var n=e.classList;if(!n.contains(r)){i||(i=e.querySelector(y)?"right":"left");var s=e.querySelector(t.classSelector(".slider-"+i));if(s){s.classList.add(r),n.add(r),n.remove(m);for(var o,a=s.querySelectorAll(T),l=s.offsetWidth,c="right"===i?-l:l,u=a.length,h=0;h<u;h++)o=a[h],N(o,"right"===i?-o.offsetLeft:l-o.offsetWidth-o.offsetLeft);n.add(m);for(h=0;h<u;h++)N(a[h],c);N(e.querySelector(b),c)}}}},t.swipeoutClose=function(e){if(e){var i=e.classList;if(i.contains(r)){var n=e.querySelector(y+L)?"right":"left",s=e.querySelector(t.classSelector(".slider-"+n));if(s){s.classList.remove(r),i.remove(r),i.add(m);var o,a=s.querySelectorAll(T),l=s.offsetWidth,c=a.length;N(e.querySelector(b),0);for(var u=0;u<c;u++)o=a[u],N(o,"right"===n?-o.offsetLeft:l-o.offsetWidth-o.offsetLeft)}}}},e.addEventListener(t.EVENT_END,(function(t){n&&(C(!1),S&&P(n,!0))})),e.addEventListener(t.EVENT_CANCEL,(function(t){n&&(C(!1),S&&P(n,!0))}));var R=function(e){var i=e.target&&e.target.type||"";if("radio"!==i&&"checkbox"!==i){var s=n.classList;if(s.contains("mui-radio")){var o=n.querySelector("input[type=radio]");o&&(o.disabled||o.readOnly||(o.checked=!o.checked,t.trigger(o,"change")))}else if(s.contains("mui-checkbox")){o=n.querySelector("input[type=checkbox]");o&&(o.disabled||o.readOnly||(o.checked=!o.checked,t.trigger(o,"change")))}}};e.addEventListener(t.EVENT_CLICK,(function(t){n&&n.classList.contains("mui-collapse")&&t.preventDefault()})),e.addEventListener("doubletap",(function(t){n&&R(t)}));var O=/^(INPUT|TEXTAREA|BUTTON|SELECT)$/;e.addEventListener("tap",(function(e){if(n){var i=!1,s=n.classList,a=n.parentNode;if(a&&a.classList.contains(l)){if(s.contains(r))return;var c=a.querySelector("li"+L);return c&&c.classList.remove(r),s.add(r),void t.trigger(n,"selected",{el:n})}if(s.contains("mui-collapse")&&!n.parentNode.classList.contains("mui-unfold")){if(O.test(e.target.tagName)||e.detail.gesture.preventDefault(),!s.contains(o)){var u=n.parentNode.querySelector(".mui-collapse.mui-active");u&&u.classList.remove(o),i=!0}s.toggle(o),i&&t.trigger(n,"expand")}else R(e)}}))}(r,window,document),function(t,e){t.alert=function(i,n,s,o){if(t.os.plus){if("undefined"===typeof i)return;"function"===typeof n?(o=n,n=null,s="确定"):"function"===typeof s&&(o=s,s=null),t.plusReady((function(){plus.nativeUI.alert(i,o,n,s)}))}else e.alert(i)}}(r,window),function(t,e){t.confirm=function(i,n,s,o){if(t.os.plus){if("undefined"===typeof i)return;"function"===typeof n?(o=n,n=null,s=null):"function"===typeof s&&(o=s,s=null),t.plusReady((function(){plus.nativeUI.confirm(i,o,n,s)}))}else e.confirm(i)?o({index:0}):o({index:1})}}(r,window),function(t,e){t.prompt=function(i,n,s,o,r){if(t.os.plus){if("undefined"===typeof message)return;"function"===typeof n?(r=n,n=null,s=null,o=null):"function"===typeof s?(r=s,s=null,o=null):"function"===typeof o&&(r=o,o=null),t.plusReady((function(){plus.nativeUI.prompt(i,r,s,n,o)}))}else{var a=e.prompt(i);r(a?{index:0,value:a}:{index:1,value:""})}}}(r,window),function(t,e){var i="mui-active";t.toast=function(e,n){var s={long:3500,short:2e3};if(n=t.extend({duration:"short"},n||{}),!t.os.plus||"div"===n.type){"number"===typeof n.duration?duration=n.duration>0?n.duration:s["short"]:duration=s[n.duration],duration||(duration=s["short"]);var o=document.createElement("div");return o.classList.add("mui-toast-container"),o.innerHTML='<div class="mui-toast-message">'+e+"</div>",o.addEventListener("webkitTransitionEnd",(function(){o.classList.contains(i)||(o.parentNode.removeChild(o),o=null)})),o.addEventListener("click",(function(){o.parentNode.removeChild(o),o=null})),document.body.appendChild(o),o.offsetHeight,o.classList.add(i),setTimeout((function(){o&&o.classList.remove(i)}),duration),{isVisible:function(){return!!o}}}t.plusReady((function(){plus.nativeUI.toast(e,{verticalAlign:"bottom",duration:n.duration})}))}}(r,window),function(t,e,i){var n="mui-popup",s="mui-popup-backdrop",o="mui-popup-in",r="mui-popup-out",a="mui-popup-inner",l="mui-popup-title",c="mui-popup-text",u="mui-popup-input",h="mui-popup-buttons",d="mui-popup-button",f="mui-popup-button-bold",p=(s="mui-popup-backdrop","mui-active"),g=[],v=function(){var e=i.createElement("div");return e.classList.add(s),e.addEventListener(t.EVENT_MOVE,t.preventDefault),e.addEventListener("webkitTransitionEnd",(function(){this.classList.contains(p)||e.parentNode&&e.parentNode.removeChild(e)})),e}(),m=function(t){return'<div class="'+u+'"><input type="text" autofocus placeholder="'+(t||"")+'"/></div>'},b=function(t,e,i){return'<div class="'+a+'"><div class="'+l+'">'+e+'</div><div class="'+c+'">'+t.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>")+"</div>"+(i||"")+"</div>"},w=function(t){for(var e=t.length,i=[],n=0;n<e;n++)i.push('<span class="'+d+(n===e-1?" "+f:"")+'">'+t[n]+"</span>");return'<div class="'+h+'">'+i.join("")+"</div>"},y=function(e,s){var a=i.createElement("div");a.className=n,a.innerHTML=e;var l=function(){a.parentNode&&a.parentNode.removeChild(a),a=null};a.addEventListener(t.EVENT_MOVE,t.preventDefault),a.addEventListener("webkitTransitionEnd",(function(t){a&&t.target===a&&a.classList.contains(r)&&l()})),a.style.display="block",i.body.appendChild(a),a.offsetHeight,a.classList.add(o),v.classList.contains(p)||(v.style.display="block",i.body.appendChild(v),v.offsetHeight,v.classList.add(p));var c=t.qsa("."+d,a),h=a.querySelector("."+u+" input"),f={element:a,close:function(t,e){if(a){var i=s&&s({index:t||0,value:h&&h.value||""});if(!1===i)return;!1!==e?(a.classList.remove(o),a.classList.add(r)):l(),g.pop(),g.length?g[g.length-1]["show"](e):v.classList.remove(p)}}},m=function(t){f.close(c.indexOf(t.target))};return t(a).on("tap","."+d,m),g.length&&g[g.length-1]["hide"](),g.push({close:f.close,show:function(t){a.style.display="block",a.offsetHeight,a.classList.add(o)},hide:function(){a.style.display="none",a.classList.remove(o)}}),f},L=function(e,i,n,s,o){if("undefined"!==typeof e)return"function"===typeof i?(s=i,o=n,i=null,n=null):"function"===typeof n&&(o=s,s=n,n=null),t.os.plus&&"div"!==o?plus.nativeUI.alert(e,s,i||"提示",n||"确定"):y(b(e,i||"提示")+w([n||"确定"]),s)},T=function(e,i,n,s,o){if("undefined"!==typeof e)return"function"===typeof i?(s=i,o=n,i=null,n=null):"function"===typeof n&&(o=s,s=n,n=null),t.os.plus&&"div"!==o?plus.nativeUI.confirm(e,s,i,n||["取消","确认"]):y(b(e,i||"提示")+w(n||["取消","确认"]),s)},E=function(e,i,n,s,o,r){if("undefined"!==typeof e)return"function"===typeof i?(o=i,r=n,i=null,n=null,s=null):"function"===typeof n?(o=n,r=s,n=null,s=null):"function"===typeof s&&(r=o,o=s,s=null),t.os.plus&&"div"!==r?plus.nativeUI.prompt(e,o,n||"提示",i,s||["取消","确认"]):y(b(e,n||"提示",m(i))+w(s||["取消","确认"]),o)},x=function(){return!!g.length&&(g[g.length-1]["close"](),!0)},S=function(){while(g.length)g[g.length-1]["close"]()};t.closePopup=x,t.closePopups=S,t.alert=L,t.confirm=T,t.prompt=E}(r,window,document),function(t,e){var i="mui-progressbar",n="mui-progressbar-in",s="mui-progressbar-out",o="mui-progressbar-infinite",r=".mui-progressbar",a=function(e){if(e=t(e||"body"),0!==e.length){if(e=e[0],e.classList.contains(i))return e;var n=e.querySelectorAll(r);if(n)for(var s=0,o=n.length;s<o;s++){var a=n[s];if(a.parentNode===e)return a}}},l=function(a,l,c){if("number"===typeof a&&(c=l,l=a,a="body"),a=t(a||"body"),0!==a.length){var h;if(a=a[0],a.classList.contains(i))h=a;else{var d=a.querySelectorAll(r+":not(."+s+")");if(d)for(var f=0,p=d.length;f<p;f++){var g=d[f];if(g.parentNode===a){h=g;break}}h?h.classList.add(n):(h=e.createElement("span"),h.className=i+" "+n+("undefined"!==typeof l?"":" "+o)+(c?" "+i+"-"+c:""),"undefined"!==typeof l&&(h.innerHTML="<span></span>"),a.appendChild(h))}return l&&u(a,l),h}},c=function(t){var e=a(t);if(e){var i=e.classList;i.contains(n)&&!i.contains(s)&&(i.remove(n),i.add(s),e.addEventListener("webkitAnimationEnd",(function(){e.parentNode&&e.parentNode.removeChild(e),e=null})))}},u=function(t,e,i){"number"===typeof t&&(i=e,e=t,t=!1);var n=a(t);if(n&&!n.classList.contains(o)){e&&(e=Math.min(Math.max(e,0),100)),n.offsetHeight;var s=n.querySelector("span");if(s){var r=s.style;r.webkitTransform="translate3d("+(-100+e)+"%,0,0)",r.webkitTransitionDuration="undefined"!==typeof i?i+"ms":""}return n}};t.fn.progressbar=function(t){var e=[];return t=t||{},this.each((function(){var i=this,n=i.mui_plugin_progressbar;n?t&&n.setOptions(t):i.mui_plugin_progressbar=n={options:t,setOptions:function(t){this.options=t},show:function(){return l(i,this.options.progress,this.options.color)},setProgress:function(t){return u(i,t)},hide:function(){return c(i)}},e.push(n)})),1===e.length?e[0]:e}}(r,document),function(t,e,i){var n="mui-icon",s="mui-icon-clear",o="mui-icon-speech",r="mui-icon-search",a="mui-icon-eye",l="mui-input-row",c="mui-placeholder",u="mui-tooltip",h="mui-hidden",d="mui-focusin",f="."+s,p="."+o,g="."+a,v="."+c,m="."+u,b=function(t){for(;t&&t!==i;t=t.parentNode)if(t.classList&&t.classList.contains(l))return t;return null},w=function(t,e){this.element=t,this.options=e||{actions:"clear"},~this.options.actions.indexOf("slider")?(this.sliderActionClass=u+" "+h,this.sliderActionSelector=m):(~this.options.actions.indexOf("clear")&&(this.clearActionClass=n+" "+s+" "+h,this.clearActionSelector=f),~this.options.actions.indexOf("speech")&&(this.speechActionClass=n+" "+o,this.speechActionSelector=p),~this.options.actions.indexOf("search")&&(this.searchActionClass=c,this.searchActionSelector=v),~this.options.actions.indexOf("password")&&(this.passwordActionClass=n+" "+a,this.passwordActionSelector=g)),this.init()};w.prototype.init=function(){this.initAction(),this.initElementEvent()},w.prototype.initAction=function(){var e=this,i=e.element.parentNode;i&&(e.sliderActionClass?e.sliderAction=e.createAction(i,e.sliderActionClass,e.sliderActionSelector):(e.searchActionClass&&(e.searchAction=e.createAction(i,e.searchActionClass,e.searchActionSelector),e.searchAction.addEventListener("tap",(function(i){t.focus(e.element),i.stopPropagation()}))),e.speechActionClass&&(e.speechAction=e.createAction(i,e.speechActionClass,e.speechActionSelector),e.speechAction.addEventListener("click",t.stopPropagation),e.speechAction.addEventListener("tap",(function(t){e.speechActionClick(t)}))),e.clearActionClass&&(e.clearAction=e.createAction(i,e.clearActionClass,e.clearActionSelector),e.clearAction.addEventListener("tap",(function(t){e.clearActionClick(t)}))),e.passwordActionClass&&(e.passwordAction=e.createAction(i,e.passwordActionClass,e.passwordActionSelector),e.passwordAction.addEventListener("tap",(function(t){e.passwordActionClick(t)})))))},w.prototype.createAction=function(t,e,s){var o=t.querySelector(s);if(!o){o=i.createElement("span");o.className=e,e===this.searchActionClass&&(o.innerHTML='<span class="'+n+" "+r+'"></span><span>'+this.element.getAttribute("placeholder")+"</span>",this.element.setAttribute("placeholder",""),this.element.value.trim()&&t.classList.add("mui-active")),t.insertBefore(o,this.element.nextSibling)}return o},w.prototype.initElementEvent=function(){var e=this.element;if(this.sliderActionClass){var i=this.sliderAction,n=null,s=function(){i.classList.remove(h);var t=e.offsetLeft,s=e.offsetWidth-28,o=i.offsetWidth,r=Math.abs(e.max-e.min),a=s/r*Math.abs(e.value-e.min);i.style.left=14+t+a-o/2+"px",i.innerText=e.value,n&&clearTimeout(n),n=setTimeout((function(){i.classList.add(h)}),1e3)};e.addEventListener("input",s),e.addEventListener("tap",s),e.addEventListener(t.EVENT_MOVE,(function(t){t.stopPropagation()}))}else{if(this.clearActionClass){var o=this.clearAction;if(!o)return;t.each(["keyup","change","input","focus","cut","paste"],(function(t,i){(function(t){e.addEventListener(t,(function(){o.classList[e.value.trim()?"remove":"add"](h)}))})(i)})),e.addEventListener("blur",(function(){o.classList.add(h)}))}this.searchActionClass&&(e.addEventListener("focus",(function(){e.parentNode.classList.add("mui-active")})),e.addEventListener("blur",(function(){e.value.trim()||e.parentNode.classList.remove("mui-active")})))}},w.prototype.setPlaceholder=function(t){if(this.searchActionClass){var e=this.element.parentNode.querySelector(v);e&&(e.getElementsByTagName("span")[1].innerText=t)}else this.element.setAttribute("placeholder",t)},w.prototype.passwordActionClick=function(t){"text"===this.element.type?this.element.type="password":this.element.type="text",this.passwordAction.classList.toggle("mui-active"),t.preventDefault()},w.prototype.clearActionClick=function(e){var i=this;i.element.value="",t.focus(i.element),i.clearAction.classList.add(h),e.preventDefault()},w.prototype.speechActionClick=function(n){if(e.plus){var s=this,o=s.element.value;s.element.value="",i.body.classList.add(d),plus.speech.startRecognize({engine:"iFly"},(function(e){s.element.value+=e,t.focus(s.element),plus.speech.stopRecognize(),t.trigger(s.element,"recognized",{value:s.element.value}),o!==s.element.value&&(t.trigger(s.element,"change"),t.trigger(s.element,"input"))}),(function(t){i.body.classList.remove(d)}))}else alert("only for 5+");n.preventDefault()},t.fn.input=function(e){var i=[];return this.each((function(){var e=null,n=[],s=b(this.parentNode);if("range"===this.type&&s.classList.contains("mui-input-range"))n.push("slider");else{var o=this.classList;o.contains("mui-input-clear")&&n.push("clear"),t.os.android&&t.os.stream||!o.contains("mui-input-speech")||n.push("speech"),o.contains("mui-input-password")&&n.push("password"),"search"===this.type&&s.classList.contains("mui-search")&&n.push("search")}var r=this.getAttribute("data-input-"+n[0]);if(r)e=t.data[r];else{r=++t.uuid,e=t.data[r]=new w(this,{actions:n.join(",")});for(var a=0,l=n.length;a<l;a++)this.setAttribute("data-input-"+n[a],r)}i.push(e)})),1===i.length?i[0]:i},t.ready((function(){t(".mui-input-row input").input()}))}(r,window,document),function(t,e){var i="mui-active",n=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/,s=function(t){var e=t.match(n);return e&&5===e.length?[e[1],e[2],e[3],e[4]]:[]},o=function(i,n){if(this.element=i,this.options=t.extend({top:0,offset:150,duration:16,scrollby:e},n||{}),this.scrollByElem=this.options.scrollby||e,!this.scrollByElem)throw new Error("监听滚动的元素不存在");this.isNativeScroll=!1,this.scrollByElem===e?this.isNativeScroll=!0:~this.scrollByElem.className.indexOf("mui-scroll-wrapper")||(this.isNativeScroll=!0),this._style=this.element.style,this._bgColor=this._style.backgroundColor;var o=s(r.getStyles(this.element,"backgroundColor"));if(!o.length)throw new Error("元素背景颜色必须为RGBA");this._R=o[0],this._G=o[1],this._B=o[2],this._A=parseFloat(o[3]),this.lastOpacity=this._A,this._bufferFn=t.buffer(this.handleScroll,this.options.duration,this),this.initEvent()};o.prototype.initEvent=function(){this.scrollByElem.addEventListener("scroll",this._bufferFn),this.isNativeScroll&&this.scrollByElem.addEventListener(t.EVENT_MOVE,this._bufferFn)},o.prototype.handleScroll=function(n){var s=e.scrollY;!this.isNativeScroll&&n&&n.detail&&(s=-n.detail.y);var o=(s-this.options.top)/this.options.offset+this._A;o=Math.min(Math.max(this._A,o),1),this._style.backgroundColor="rgba("+this._R+","+this._G+","+this._B+","+o+")",o>this._A?this.element.classList.add(i):this.element.classList.remove(i),this.lastOpacity!==o&&(t.trigger(this.element,"alpha",{alpha:o}),this.lastOpacity=o)},o.prototype.destory=function(){this.scrollByElem.removeEventListener("scroll",this._bufferFn),this.scrollByElem.removeEventListener(t.EVENT_MOVE,this._bufferFn),this.element.style.backgroundColor=this._bgColor,this.element.mui_plugin_transparent=null},t.fn.transparent=function(t){t=t||{};var i=[];return this.each((function(){var n=this.mui_plugin_transparent;if(!n){var s=this.getAttribute("data-top"),r=this.getAttribute("data-offset"),a=this.getAttribute("data-duration"),l=this.getAttribute("data-scrollby");null!==s&&"undefined"===typeof t.top&&(t.top=s),null!==r&&"undefined"===typeof t.offset&&(t.offset=r),null!==a&&"undefined"===typeof t.duration&&(t.duration=a),null!==l&&"undefined"===typeof t.scrollby&&(t.scrollby=document.querySelector(l)||e),n=this.mui_plugin_transparent=new o(this,t)}i.push(n)})),1===i.length?i[0]:i},t.ready((function(){t(".mui-bar-transparent").transparent()}))}(r,window),function(t){var e="ontouchstart"in document,i=e?"tap":"click",n="change",s="mui-numbox",o=".mui-btn-numbox-plus,.mui-numbox-btn-plus",r=".mui-btn-numbox-minus,.mui-numbox-btn-minus",a=".mui-input-numbox,.mui-numbox-input",l=t.Numbox=t.Class.extend({init:function(e,i){var n=this;if(!e)throw"构造 numbox 时缺少容器元素";n.holder=e,i=i||{},i.step=parseInt(i.step||1),n.options=i,n.input=t.qsa(a,n.holder)[0],n.plus=t.qsa(o,n.holder)[0],n.minus=t.qsa(r,n.holder)[0],n.checkValue(),n.initEvent()},initEvent:function(){var e=this;e.plus.addEventListener(i,(function(i){var s=parseInt(e.input.value)+e.options.step;e.input.value=s.toString(),t.trigger(e.input,n,null)})),e.minus.addEventListener(i,(function(i){var s=parseInt(e.input.value)-e.options.step;e.input.value=s.toString(),t.trigger(e.input,n,null)})),e.input.addEventListener(n,(function(i){e.checkValue();var s=parseInt(e.input.value);t.trigger(e.holder,n,{value:s})}))},getValue:function(){var t=this;return parseInt(t.input.value)},checkValue:function(){var t=this,e=t.input.value;if(null==e||""==e||isNaN(e))t.input.value=t.options.min||0,t.minus.disabled=null!=t.options.min;else{e=parseInt(e);null!=t.options.max&&!isNaN(t.options.max)&&e>=parseInt(t.options.max)?(e=t.options.max,t.plus.disabled=!0):t.plus.disabled=!1,null!=t.options.min&&!isNaN(t.options.min)&&e<=parseInt(t.options.min)?(e=t.options.min,t.minus.disabled=!0):t.minus.disabled=!1,t.input.value=e}},setOption:function(t,e){var i=this;i.options[t]=e},setValue:function(t){this.input.value=t,this.checkValue()}});t.fn.numbox=function(t){return this.each((function(t,e){if(!e.numbox)if(n)e.numbox=new l(e,n);else{var i=e.getAttribute("data-numbox-options"),n=i?JSON.parse(i):{};n.step=e.getAttribute("data-numbox-step")||n.step,n.min=e.getAttribute("data-numbox-min")||n.min,n.max=e.getAttribute("data-numbox-max")||n.max,e.numbox=new l(e,n)}})),this[0]?this[0].numbox:null},t.ready((function(){t("."+s).numbox()}))}(r),function(t,e,i){var n="mui-disabled",s="reset",o="loading",r={loadingText:"Loading...",loadingIcon:"mui-spinner mui-spinner-white",loadingIconPosition:"left"},a=function(e,i){this.element=e,this.options=t.extend({},r,i),this.options.loadingText||(this.options.loadingText=r.loadingText),null===this.options.loadingIcon&&(this.options.loadingIcon="mui-spinner","rgb(255, 255, 255)"===t.getStyles(this.element,"color")&&(this.options.loadingIcon+=" mui-spinner-white")),this.isInput="INPUT"===this.element.tagName,this.resetHTML=this.isInput?this.element.value:this.element.innerHTML,this.state=""};a.prototype.loading=function(){this.setState(o)},a.prototype.reset=function(){this.setState(s)},a.prototype.setState=function(t){if(this.state===t)return!1;if(this.state=t,t===s)this.element.disabled=!1,this.element.classList.remove(n),this.setHtml(this.resetHTML);else if(t===o){this.element.disabled=!0,this.element.classList.add(n);var e=this.isInput?this.options.loadingText:"<span>"+this.options.loadingText+"</span>";this.options.loadingIcon&&!this.isInput&&("right"===this.options.loadingIconPosition?e+='&nbsp;<span class="'+this.options.loadingIcon+'"></span>':e='<span class="'+this.options.loadingIcon+'"></span>&nbsp;'+e),this.setHtml(e)}},a.prototype.setHtml=function(t){this.isInput?this.element.value=t:this.element.innerHTML=t},t.fn.button=function(t){var e=[];return this.each((function(){var i=this.mui_plugin_button;if(!i){var n=this.getAttribute("data-loading-text"),r=this.getAttribute("data-loading-icon"),l=this.getAttribute("data-loading-icon-position");this.mui_plugin_button=i=new a(this,{loadingText:n,loadingIcon:r,loadingIconPosition:l})}t!==o&&t!==s||i.setState(t),e.push(i)})),1===e.length?e[0]:e}}(r,window,document)},d504:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"IndexContainer"},[i("keep-alive",[i("router-view")],1)],1)},s=[],o=(i("e50e"),i("e18c"),i("1c2e"),i("b8a1")),r=(i("cc3c"),i("1cfa")),a={name:"Home",data:function(){return{autoUpdate:!1,aSideState:!1,thisClick:0,tabwildState:1,handleTabsList:[{title:"系统首页",name:"1",clmurl:"/"}],editableTabsValue:"1",curVersion:"1.0.1"}},mounted:function(){localStorage.eqSn="30:9C:23:0C:8B:1E",localStorage.version="1.1.0",this.getCurVersion()},methods:{getCurVersion:function(){var t=this;function e(){if("undefined"==typeof plus)return!1;plus.runtime.getProperty(plus.runtime.appid,(function(e){localStorage.version=e.version,t.curVersion=e.version})),plus.device.getInfo({success:function(t){var e=JSON.stringify(t.uuid).toString().substr(1);e=e.substring(0,e.length-1),localStorage.eqSn=e,console.log("===== uuid =====:"+e),console.log("getDeviceInfo success: "+JSON.stringify(t.uuid))},fail:function(t){console.log("getDeviceInfo failed: "+JSON.stringify(t))}})}localStorage.eqSn="30:9C:23:0C:8B:1E",localStorage.version="1.1.0",window.plus?e():(console.log("mui is not ready"),document.addEventListener("plusready",e,!1))},checkUpdate:function(t){var e=this,i={},n=r.stringify(i),s=this.$createElement;Object(o["d"])(n).then((function(i){var n=i;if(0==n.Code&&t!=n.Version){var o="http://cal.beswell.com:85/v1/Sensors/DownloadVueFramework";e.downWgt(o,n.Version),e.$notify({title:"升级提醒",message:s("i",{style:"color: teal"},"检测到新的版本,正在下载最新版本")})}}))},downWgt:function(t){var e=this;plus.downloader.createDownload(t,{filename:"_doc/update/"},(function(t,i){console.log(i),200==i?(console.log("下载wgt成功:"+t.filename),e.installWgt(t.filename)):(console.log("下载wgt失败!"),plus.nativeUI.alert("下载wgt失败!")),plus.nativeUI.closeWaiting()})).start()},installWgt:function(t){plus.nativeUI.showWaiting("安装wgt文件..."),plus.runtime.install(t,{},(function(){plus.nativeUI.closeWaiting(),console.log("安装wgt文件成功!"),plus.nativeUI.alert("应用资源更新完成!",(function(){plus.runtime.restart()}))}),(function(t){plus.nativeUI.closeWaiting(),console.log("安装wgt文件失败["+t.code+"]:"+t.message),plus.nativeUI.alert("安装wgt文件失败["+t.code+"]:"+t.message)}))}},components:{}},l=a,c=(i("8fc1"),i("2c07")),u=Object(c["a"])(l,n,s,!1,null,null,null);e["default"]=u.exports},d7e1:function(t,e,i){"use strict";var n=i("efe2");t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){throw 1},1)}))}},dbb3:function(t,e,i){"use strict";var n=i("1c8b"),s=i("5dfd").filter,o=i("1ea7"),r=i("ff9c"),a=o("filter"),l=r("filter");n({target:"Array",proto:!0,forced:!a||!l},{filter:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},ea69:function(t,e,i){"use strict";var n=i("1c8b"),s=i("e1d6"),o=i("3da3"),r=i("d88d"),a=i("3553"),l=i("1ca1"),c=i("1bbd"),u=i("1ea7"),h=i("ff9c"),d=u("splice"),f=h("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,v=9007199254740991,m="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!d||!f},{splice:function(t,e){var i,n,u,h,d,f,b=a(this),w=r(b.length),y=s(t,w),L=arguments.length;if(0===L?i=n=0:1===L?(i=0,n=w-y):(i=L-2,n=g(p(o(e),0),w-y)),w+i-n>v)throw TypeError(m);for(u=l(b,n),h=0;h<n;h++)d=y+h,d in b&&c(u,h,b[d]);if(u.length=n,i<n){for(h=y;h<w-n;h++)d=h+n,f=h+i,d in b?b[f]=b[d]:delete b[f];for(h=w;h>w-n+i;h--)delete b[h-1]}else if(i>n)for(h=w-n;h>y;h--)d=h+n-1,f=h+i-1,d in b?b[f]=b[d]:delete b[f];for(h=0;h<i;h++)b[h+y]=arguments[h+2];return b.length=w-n+i,u}})},ecb4:function(t,e,i){"use strict";var n=i("1c8b"),s=i("45af").indexOf,o=i("d7e1"),r=i("ff9c"),a=[].indexOf,l=!!a&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),u=r("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(t){return l?a.apply(this,arguments)||0:s(this,t,arguments.length>1?arguments[1]:void 0)}})},f221:function(t,e,i){var n=i("efe2"),s=i("fc8c"),o="​…᠎";t.exports=function(t){return n((function(){return!!s[t]()||o[t]()!=o||s[t].name!==t}))}},f3dd:function(t,e,i){"use strict";var n=i("1c8b"),s=i("d890"),o=i("6d7a"),r=i("9b9d"),a=i("1e2c"),l=i("c54b"),c=i("74cb"),u=i("efe2"),h=i("faa8"),d=i("74e7"),f=i("a719"),p=i("857c"),g=i("3553"),v=i("da10"),m=i("9f67"),b=i("38b9"),w=i("6d60"),y=i("cbab"),L=i("b338"),T=i("c051"),E=i("0a60"),x=i("aa6b"),S=i("d910"),_=i("ef71"),C=i("0fc1"),k=i("1944"),N=i("6d28"),A=i("7db2"),P=i("d5a8"),R=i("7e8b"),O=i("90fb"),I=i("4350"),X=i("6d51"),W=i("27b5"),D=i("b702"),M=i("5dfd").forEach,V=A("hidden"),q="Symbol",B="prototype",H=O("toPrimitive"),Y=D.set,F=D.getterFor(q),j=Object[B],U=s.Symbol,z=o("JSON","stringify"),J=x.f,G=S.f,$=T.f,K=_.f,Z=N("symbols"),Q=N("op-symbols"),tt=N("string-to-symbol-registry"),et=N("symbol-to-string-registry"),it=N("wks"),nt=s.QObject,st=!nt||!nt[B]||!nt[B].findChild,ot=a&&u((function(){return 7!=w(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=J(j,e);n&&delete j[e],G(t,e,i),n&&t!==j&&G(j,e,n)}:G,rt=function(t,e){var i=Z[t]=w(U[B]);return Y(i,{type:q,tag:t,description:e}),a||(i.description=e),i},at=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof U},lt=function(t,e,i){t===j&&lt(Q,e,i),p(t);var n=m(e,!0);return p(i),h(Z,n)?(i.enumerable?(h(t,V)&&t[V][n]&&(t[V][n]=!1),i=w(i,{enumerable:b(0,!1)})):(h(t,V)||G(t,V,b(1,{})),t[V][n]=!0),ot(t,n,i)):G(t,n,i)},ct=function(t,e){p(t);var i=v(e),n=y(i).concat(pt(i));return M(n,(function(e){a&&!ht.call(i,e)||lt(t,e,i[e])})),t},ut=function(t,e){return void 0===e?w(t):ct(w(t),e)},ht=function(t){var e=m(t,!0),i=K.call(this,e);return!(this===j&&h(Z,e)&&!h(Q,e))&&(!(i||!h(this,e)||!h(Z,e)||h(this,V)&&this[V][e])||i)},dt=function(t,e){var i=v(t),n=m(e,!0);if(i!==j||!h(Z,n)||h(Q,n)){var s=J(i,n);return!s||!h(Z,n)||h(i,V)&&i[V][n]||(s.enumerable=!0),s}},ft=function(t){var e=$(v(t)),i=[];return M(e,(function(t){h(Z,t)||h(P,t)||i.push(t)})),i},pt=function(t){var e=t===j,i=$(e?Q:v(t)),n=[];return M(i,(function(t){!h(Z,t)||e&&!h(j,t)||n.push(Z[t])})),n};if(l||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=R(t),i=function(t){this===j&&i.call(Q,t),h(this,V)&&h(this[V],e)&&(this[V][e]=!1),ot(this,e,b(1,t))};return a&&st&&ot(j,e,{configurable:!0,set:i}),rt(e,t)},k(U[B],"toString",(function(){return F(this).tag})),k(U,"withoutSetter",(function(t){return rt(R(t),t)})),_.f=ht,S.f=lt,x.f=dt,L.f=T.f=ft,E.f=pt,I.f=function(t){return rt(O(t),t)},a&&(G(U[B],"description",{configurable:!0,get:function(){return F(this).description}}),r||k(j,"propertyIsEnumerable",ht,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:U}),M(y(it),(function(t){X(t)})),n({target:q,stat:!0,forced:!l},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var i=U(e);return tt[e]=i,et[i]=e,i},keyFor:function(t){if(!at(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!a},{create:ut,defineProperty:lt,defineProperties:ct,getOwnPropertyDescriptor:dt}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ft,getOwnPropertySymbols:pt}),n({target:"Object",stat:!0,forced:u((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(g(t))}}),z){var gt=!l||u((function(){var t=U();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}));n({target:"JSON",stat:!0,forced:gt},{stringify:function(t,e,i){var n,s=[t],o=1;while(arguments.length>o)s.push(arguments[o++]);if(n=e,(f(e)||void 0!==t)&&!at(t))return d(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!at(e))return e}),s[1]=e,z.apply(null,s)}})}U[B][H]||C(U[B],H,U[B].valueOf),W(U,q),P[V]=!0},f4e3:function(t,e,i){"use strict";var n=i("b2a2"),s=i("857c"),o=i("d88d"),r=i("2732"),a=i("38eb"),l=i("59da");n("match",1,(function(t,e,i){return[function(e){var i=r(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var r=s(t),c=String(this);if(!r.global)return l(r,c);var u=r.unicode;r.lastIndex=0;var h,d=[],f=0;while(null!==(h=l(r,c))){var p=String(h[0]);d[f]=p,""===p&&(r.lastIndex=a(c,o(r.lastIndex),u)),f++}return 0===f?null:d}]}))},f657:function(t,e,i){var n=i("1c8b"),s=i("74e7");n({target:"Array",stat:!0},{isArray:s})},fe59:function(t,e,i){"use strict";var n=i("1c8b"),s=i("3c10");n({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})}}]);
  7. //# sourceMappingURL=chunk-3360695a.2abe3ade.js.map