(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"00fa":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.silenceBindingSpread=u,e.isWeixin=c,e.getCustomer=l,e.parseQuery=f,e.default=e.VUE_APP_WS_URL=void 0;var r=n("3474"),i=s(n("0c53")),o=n("7fe6"),a=n("da79");function s(t){return t&&t.__esModule?t:{default:t}}function u(){var t=getApp().globalData.spid,e=getApp().globalData.code;t=parseInt(t),Number.isNaN(t)&&(t=0),t&&(0,r.spread)({puid:t,code:e}).then((function(t){getApp().globalData.spid=0,getApp().globalData.code=0})).catch((function(t){}))}function c(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}function l(e){(0,o.getCustomerType)().then((function(n){var r=n.data.customer_type;"0"==r?t.navigateTo({url:e||"/pages/customer_list/chat"}):"1"==r&&t.makePhoneCall({phoneNumber:n.data.customer_phone})}))}function f(){var t={},e=(location.href.split("?")[1]||"").trim().replace(/^(\?|#|&)/,"");return e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=decodeURIComponent(n.shift()),i=n.length>0?decodeURIComponent(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}var h=i.default.get("WORKERMAN_URL")||"";e.VUE_APP_WS_URL=h,(0,a.getWorkermanUrl)().then((function(t){i.default.set("WORKERMAN_URL",t.data.chat),e.VUE_APP_WS_URL=h=t.data.chat}));var d=f;e.default=d}).call(this,n("543d")["default"])},"0c53":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("514d");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;nn||0===t.expire?i.push(t):r.push(t.key))})),i.length!==e.length&&this.cacheSetHandler(this.cacheExpire,i),r.forEach((function(e){t.cacheClearHandler(e)}))}}]),e}(),u=new s;e.default=u}).call(this,n("543d")["default"])},1346:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWechatConfig=a,e.wechatAuth=s,e.getLogo=u,e.login=c,e.silenceAuth=l,e.getShare=f,e.follow=h,e.imageBase64=d,e.copyWords=p,e.getShopConfig=g,e.getUserPhone=v,e.routineLogin=m,e.wechatAuthV2=y,e.getNavigation=_,e.getSubscribe=b,e.getUpdateInfo=w;var r=o(n("9011")),i=o(n("50b4"));function o(t){return t&&t.__esModule?t:{default:t}}function a(){return r.default.get("wechat/config",{url:i.default.signLink()},{noAuth:!0})}function s(t,e,n){return r.default.get("wechat/auth",{code:t,spread:e,login_type:n},{noAuth:!0})}function u(){return r.default.get("wechat/get_logo",{},{noAuth:!0})}function c(t){return r.default.post("wechat/mp_auth",t,{noAuth:!0})}function l(t){return r.default.get("v2/wechat/silence_auth",t,{noAuth:!0})}function f(){return r.default.get("share",{},{noAuth:!0})}function h(){return r.default.get("wechat/follow",{},{noAuth:!0})}function d(t,e){return r.default.post("image_base64",{image:t,code:e},{noAuth:!0})}function p(){return r.default.get("copy_words",{},{noAuth:!0})}function g(){return r.default.get("v2/bind_status",{},{noAuth:!0})}function v(t){return r.default.post("v2/auth_bindind_phone",t,{noAuth:!0})}function m(t){return r.default.get("v2/wechat/routine_auth",t,{noAuth:!0})}function y(t,e){return r.default.get("v2/wechat/auth",{code:t,spread:e},{noAuth:!0})}function _(t){return r.default.get("navigation",t,{noAuth:!0})}function b(){return r.default.get("subscribe",{},{noAuth:!0})}function w(t){return r.default.get("get_new_app/"+t,{noAuth:!0})}},"26cb":function(t,e,n){"use strict";(function(e){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function n(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},i=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){i.emit("vuex:action",t,e)}),{prepend:!0}))}function a(t,e){return t.filter(e)[0]}function s(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=a(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=s(t[n],e)})),r}function u(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function c(t){return null!==t&&"object"===typeof t}function l(t){return t&&"function"===typeof t.then}function f(t,e){return function(){return t(e)}}var h=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(t,e){this._children[t]=e},h.prototype.removeChild=function(t){delete this._children[t]},h.prototype.getChild=function(t){return this._children[t]},h.prototype.hasChild=function(t){return t in this._children},h.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},h.prototype.forEachChild=function(t){u(this._children,t)},h.prototype.forEachGetter=function(t){this._rawModule.getters&&u(this._rawModule.getters,t)},h.prototype.forEachAction=function(t){this._rawModule.actions&&u(this._rawModule.actions,t)},h.prototype.forEachMutation=function(t){this._rawModule.mutations&&u(this._rawModule.mutations,t)},Object.defineProperties(h.prototype,d);var p=function(t){this.register([],t,!1)};function g(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;g(t.concat(r),e.getChild(r),n.modules[r])}}p.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},p.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},p.prototype.update=function(t){g([],this.root,t)},p.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new h(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&u(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},p.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},p.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var v;var m=function(t){var e=this;void 0===t&&(t={}),!v&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,a=this,s=a.dispatch,u=a.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r;var c=this._modules.root.state;A(this,c,[],this._modules.root),w(this,c),n.forEach((function(t){return t(e)}));var l=void 0!==t.devtools?t.devtools:v.config.devtools;l&&o(this)},y={state:{configurable:!0}};function _(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function b(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;A(t,n,[],t._modules.root,!0),w(t,n,e)}function w(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};u(i,(function(e,n){o[n]=f(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,t._vm=new v({data:{$$state:e},computed:o}),v.config.silent=a,t.strict&&C(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function A(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=E(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){v.set(s,u,r.state)}))}var c=r.context=x(t,a,n);r.forEachMutation((function(e,n){var r=a+n;k(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;S(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;T(t,r,e,c)})),r.forEachChild((function(r,o){A(t,e,n.concat(o),r,i)}))}function x(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=$(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,i){var o=$(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return O(t,e)}},state:{get:function(){return E(t.state,n)}}}),i}function O(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function k(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function S(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return l(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function T(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function C(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function E(t,e){return e.reduce((function(t,e){return t[e]}),t)}function $(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function P(t){v&&t===v||(v=t,n(v))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},m.prototype.commit=function(t,e,n){var r=this,i=$(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},m.prototype.dispatch=function(t,e){var n=this,r=$(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(c){0}e(t)}))}))}},m.prototype.subscribe=function(t,e){return _(t,this._subscribers,e)},m.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _(n,this._actionSubscribers,e)},m.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},m.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},m.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),A(this,this.state,t,this._modules.get(t),n.preserveState),w(this,this.state)},m.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=E(e.state,t.slice(0,-1));v.delete(n,t[t.length-1])})),b(this)},m.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},m.prototype[[104,111,116,85,112,100,97,116,101].map(t=>String.fromCharCode(t)).join("")]=function(t){this._modules.update(t),b(this,!0)},m.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(m.prototype,y);var L=U((function(t,e){var n={};return D(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=F(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),j=U((function(t,e){var n={};return D(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=F(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),I=U((function(t,e){var n={};return D(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||F(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),N=U((function(t,e){var n={};return D(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=F(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),M=function(t){return{mapState:L.bind(null,t),mapGetters:I.bind(null,t),mapMutations:j.bind(null,t),mapActions:N.bind(null,t)}};function D(t){return R(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function R(t){return Array.isArray(t)||c(t)}function U(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function F(t,e,n){var r=t._modulesNamespaceMap[n];return r}function H(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var u=t.logMutations;void 0===u&&(u=!0);var c=t.logActions;void 0===c&&(c=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=s(t.state);"undefined"!==typeof l&&(u&&t.subscribe((function(t,o){var a=s(o);if(n(t,f,a)){var u=z(),c=i(t),h="mutation "+t.type+u;B(l,h,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),V(l)}f=a})),c&&t.subscribeAction((function(t,n){if(o(t,n)){var r=z(),i=a(t),s="action "+t.type+r;B(l,s,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),V(l)}})))}}function B(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function V(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function z(){var t=new Date;return" @ "+K(t.getHours(),2)+":"+K(t.getMinutes(),2)+":"+K(t.getSeconds(),2)+"."+K(t.getMilliseconds(),3)}function G(t,e){return new Array(e+1).join(t)}function K(t,e){return G("0",e-t.toString().length)+t}var W={Store:m,install:P,version:"3.6.2",mapState:L,mapMutations:j,mapGetters:I,mapActions:N,createNamespacedHelpers:M,createLogger:H};t.exports=W}).call(this,n("c8ba"))},"2f12":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(n("a34a")),i=c(n("6b37")),o=n("c6cd"),a=n("1346"),s=c(n("0c53")),u=n("a1ea");n("26cb");function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){l(o,r,i,a,s,"next",t)}function s(t){l(o,r,i,a,s,"throw",t)}a(void 0)}))}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n=this.domData.length-1&&(this.startIndex=0,this.count++),this.count>=this.totalCount&&this.startIndex===this.winingIndex?("function"===typeof this.callback&&setTimeout((function(){t.callback(t.startIndex,t.count)}),400),clearInterval(this.timer)):(this.count>=this.totalCount-1&&(this.speed+=30),this.timer=setTimeout((function(){t.callback(t.startIndex,t.count),t.rollFn()}),this.speed))}},t.exports=n},3185:function(t,e,n){"use strict";(function(e){var n={trustTags:a("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:a("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:a("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:a("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}},r=e.getSystemInfoSync().windowWidth,i=a(" ,\r,\n,\t,\f"),o=0;function a(t){for(var e=Object.create(null),n=t.split(","),r=n.length;r--;)e[n[r]]=!0;return e}function s(t,e){var r=t.indexOf("&");while(-1!=r){var i=t.indexOf(";",r+3),o=void 0;if(-1==i)break;"#"==t[r+1]?(o=parseInt(("x"==t[r+2]?"0":"")+t.substring(r+2,i)),isNaN(o)||(t=t.substr(0,r)+String.fromCharCode(o)+t.substr(i+1))):(o=t.substring(r+1,i),(n.entities[o]||"amp"==o&&e)&&(t=t.substr(0,r)+(n.entities[o]||"&")+t.substr(i+1))),r=t.indexOf("&",r+1)}return t}function u(t){this.options=t||{},this.tagStyle=Object.assign(n.tagStyle,this.options.tagStyle),this.imgList=t.imgList||[],this.plugins=t.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[]}function c(t){this.handler=t}u.prototype.parse=function(t){for(var e=this.plugins.length;e--;)this.plugins[e].onUpdate&&(t=this.plugins[e].onUpdate(t,n)||t);new c(this).parse(t);while(this.stack.length)this.popNode();return this.nodes},u.prototype.expose=function(){for(var t=this.stack.length;t--;){var e=this.stack[t];if("a"==e.name||e.c)return;e.c=1}},u.prototype.hook=function(t){for(var e=this.plugins.length;e--;)if(this.plugins[e].onParse&&0==this.plugins[e].onParse(t,this))return!1;return!0},u.prototype.getUrl=function(t){var e=this.options.domain;return"/"==t[0]?"/"==t[1]?t=(e?e.split("://")[0]:"http")+":"+t:e&&(t=e+t):!e||t.includes("data:")||t.includes("://")||(t=e+"/"+t),t},u.prototype.parseStyle=function(t){var e=t.attrs,n=(this.tagStyle[t.name]||"").split(";").concat((e.style||"").split(";")),o={},a="";e.id&&(this.options.useAnchor?this.expose():"img"!=t.name&&"a"!=t.name&&"video"!=t.name&&"audio"!=t.name&&(e.id=void 0)),e.width&&(o.width=parseFloat(e.width)+(e.width.includes("%")?"%":"px"),e.width=void 0),e.height&&(o.height=parseFloat(e.height)+(e.height.includes("%")?"%":"px"),e.height=void 0);for(var s=0,u=n.length;s0||f.includes("safe"))a+=";".concat(l,":").concat(f);else if(!o[l]||f.includes("import")||!o[l].includes("import")){if(f.includes("url")){var h=f.indexOf("(")+1;if(h){while('"'==f[h]||"'"==f[h]||i[f[h]])h++;f=f.substr(0,h)+this.getUrl(f.substr(h))}}else f.includes("rpx")&&(f=f.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*r/750+"px"})));o[l]=f}}}return t.attrs.style=a,o},u.prototype.onTagName=function(t){this.tagName=this.xml?t:t.toLowerCase(),"svg"==this.tagName&&(this.xml=!0)},u.prototype.onAttrName=function(t){t=this.xml?t:t.toLowerCase(),"data-"==t.substr(0,5)?"data-src"!=t||this.attrs.src?"img"==this.tagName||"a"==this.tagName?this.attrName=t:this.attrName=void 0:this.attrName="src":(this.attrName=t,this.attrs[t]="T")},u.prototype.onAttrVal=function(t){var e=this.attrName||"";"style"==e||"href"==e?this.attrs[e]=s(t,!0):e.includes("src")?this.attrs[e]=this.getUrl(s(t,!0)):e&&(this.attrs[e]=t)},u.prototype.onOpenTag=function(t){var e=Object.create(null);e.name=this.tagName,e.attrs=this.attrs,this.attrs=Object.create(null);var i=e.attrs,a=this.stack[this.stack.length-1],s=a?a.children:this.nodes,u=this.xml?t:n.voidTags[e.name];if("embed"==e.name){var c=i.src||"";c.includes(".mp4")||c.includes(".3gp")||c.includes(".m3u8")||(i.type||"").includes("video")?e.name="video":(c.includes(".mp3")||c.includes(".wav")||c.includes(".aac")||c.includes(".m4a")||(i.type||"").includes("audio"))&&(e.name="audio"),i.autostart&&(i.autoplay="T"),i.controls="T"}if("video"!=e.name&&"audio"!=e.name||("video"!=e.name||i.id||(i.id="v"+o++),i.controls||i.autoplay||(i.controls="T"),e.src=[],i.src&&(e.src.push(i.src),i.src=void 0),this.expose()),u){if(!this.hook(e)||n.ignoreTags[e.name])return void("base"!=e.name||this.options.domain?"source"==e.name&&a&&("video"==a.name||"audio"==a.name)&&i.src&&a.src.push(i.src):this.options.domain=i.href);var l=this.parseStyle(e);if("img"==e.name){if(i.src&&(i.src.includes("webp")&&(e.webp="T"),i.src.includes("data:")&&!i["original-src"]&&(i.ignore="T"),!i.ignore||e.webp||i.src.includes("cloud://"))){for(var f=this.stack.length;f--;){var h=this.stack[f];if("a"==h.name){e.a=h.attrs;break}var d=h.attrs.style||"";if(!d.includes("flex:")||d.includes("flex:0")||d.includes("flex: 0")||l.width&&l.width.includes("%"))if(d.includes("flex")&&"100%"==l.width)for(var p=f+1;p.5?m[y].toUpperCase():m[y]}_+=m.substr(y),m=_}}this.imgList.push(m)}"inline"==l.display&&(l.display=""),i.ignore&&(l["max-width"]=l["max-width"]||"100%",i.style+=";-webkit-touch-callout:none"),parseInt(l.width)>r&&(l.height=void 0),l.width&&(l.width.includes("auto")?l.width="":(e.w="T",l.height&&!l.height.includes("auto")&&(e.h="T")))}else if("svg"==e.name)return s.push(e),this.stack.push(e),void this.popNode();for(var b in l)l[b]&&(i.style+=";".concat(b,":").concat(l[b].replace(" !important","")));i.style=i.style.substr(1)||void 0}else("pre"==e.name||(i.style||"").includes("white-space")&&i.style.includes("pre"))&&(this.pre=e.pre=!0),e.children=[],this.stack.push(e);s.push(e)},u.prototype.onCloseTag=function(t){var e;for(t=this.xml?t:t.toLowerCase(),e=this.stack.length;e--;)if(this.stack[e].name==t)break;if(-1!=e)while(this.stack.length>e)this.popNode();else if("p"==t||"br"==t){var n=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;n.push({name:t,attrs:{}})}},u.prototype.popNode=function(){var t=this.stack.pop(),i=t.attrs,o=t.children,a=this.stack[this.stack.length-1],s=a?a.children:this.nodes;if(!this.hook(t)||n.ignoreTags[t.name])return"title"==t.name&&o.length&&"text"==o[0].type&&this.options.setTitle&&e.setNavigationBarTitle({title:o[0].text}),void s.pop();if(t.pre){t.pre=this.pre=void 0;for(var u=this.stack.length;u--;)this.stack[u].pre&&(this.pre=!0)}var c={};if("svg"==t.name){var l="",f=i.style;return i.style="",i.xmlns="http://www.w3.org/2000/svg",function t(e){for(var n in l+="<"+e.name,e.attrs){var r=e.attrs[n];r&&("viewbox"==n&&(n="viewBox"),l+=" ".concat(n,'="').concat(r,'"'))}if(e.children){l+=">";for(var i=0;i"}else l+="/>"}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+l.replace(/#/g,"%23"),style:f,ignore:"T"},t.children=void 0,void(this.xml=!1)}if(i.align&&("table"==t.name?"center"==i.align?c["margin-inline-start"]=c["margin-inline-end"]="auto":c["float"]=i.align:c["text-align"]=i.align,i.align=void 0),"font"==t.name&&(i.color&&(c.color=i.color,i.color=void 0),i.face&&(c["font-family"]=i.face,i.face=void 0),i.size)){var h=parseInt(i.size);isNaN(h)||(h<1?h=1:h>7&&(h=7),c["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][h-1]),i.size=void 0}if((i["class"]||"").includes("align-center")&&(c["text-align"]="center"),Object.assign(c,this.parseStyle(t)),parseInt(c.width)>r&&(c["max-width"]="100%",c["box-sizing"]="border-box"),n.blockTags[t.name]?t.name="div":n.trustTags[t.name]||this.xml||(t.name="span"),"a"==t.name||"ad"==t.name)this.expose();else if("ul"!=t.name&&"ol"!=t.name||!t.c){if("table"==t.name){var d=parseFloat(i.cellpadding),p=parseFloat(i.cellspacing),g=parseFloat(i.border);if(t.c&&(isNaN(d)&&(d=2),isNaN(p)&&(p=2)),g&&(i.style+=";border:"+g+"px solid gray"),t.flag&&t.c){c.display="grid",p?(c["grid-gap"]=p+"px",c.padding=p+"px"):g&&(i.style+=";border-left:0;border-top:0");var v=[],m=[],y=[],_={};(function t(e){for(var n=0;n"==this.content[this.i]||e&&">"==this.content[this.i+1])&&(t&&this.handler[t](this.content.substring(this.start,this.i)),this.i+=e?2:1,this.start=this.i,this.handler.onOpenTag(e),"script"==this.handler.tagName?(this.i=this.content.indexOf("="a"&&t<="z"||t>="A"&&t<="Z")this.start!=this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"==t||"!"==t||"?"==t){this.start!=this.i&&this.handler.onText(this.content.substring(this.start,this.i));var e=this.content[this.i+2];if("/"==t&&(e>="a"&&e<="z"||e>="A"&&e<="Z"))return this.i+=2,this.start=this.i,this.state=this.endTag;var n="--\x3e";"!"==t&&"-"==this.content[this.i+2]&&"-"==this.content[this.i+3]||(n=">"),this.i=this.content.indexOf(n,this.i),-1!=this.i&&(this.i+=n.length,this.start=this.i)}else this.i++}else this.start"==t||"/"==t){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!=t&&(this.i=this.content.indexOf(">",this.i),-1==this.i))return;this.start=++this.i,this.state=this.text}else this.i++},t.exports=u}).call(this,n("543d")["default"])},"31e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={namespaced:!0,state:{hotWord:[]},getters:{},mutations:{setHotWord:function(t,e){t.hotWord=e}}};e.default=r},3290:function(t,e){},3474:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUserInfo=u,e.userShare=c,e.loginH5=l,e.loginMobile=f,e.getCodeApi=h,e.registerVerify=d,e.register=p,e.registerReset=g,e.getMenuList=v,e.postSignUser=m,e.getSignConfig=y,e.getSignList=_,e.setSignIntegral=b,e.getSignMonthList=w,e.userActivity=A,e.getCommissionInfo=x,e.getIntegralList=O,e.spreadBanner=k,e.spreadPeople=S,e.spreadCount=T,e.getSpreadInfo=C,e.spreadOrder=E,e.getRankList=$,e.getBrokerageRank=P,e.extractCash=L,e.extractBank=j,e.userLevelGrade=I,e.userLevelTask=N,e.userLevelDetection=M,e.getAddressList=D,e.setAddressDefault=R,e.editAddress=U,e.delAddress=F,e.getAddressDetail=H,e.userEdit=B,e.getLogout=V,e.rechargeRoutine=z,e.rechargeWechat=G,e.getAddressDefault=K,e.getRechargeApi=W,e.setVisit=X,e.serviceList=q,e.getChatRecord=J,e.spread=Y,e.getlevelInfo=Z,e.getlevelExpList=Q,e.updateUserInfo=tt,e.phoneWxSilenceAuth=et,e.phoneSilenceAuth=nt,e.invoiceList=rt,e.invoiceSave=it,e.invoiceDelete=ot,e.invoiceDefault=at,e.invoiceDetail=st,e.invoiceOrder=ut,e.makeUpinvoice=ct,e.memberCard=lt,e.memberCardDraw=ft,e.memberCardCreate=ht,e.memberCouponsList=dt,e.spreadMsg=pt,e.imgToBase=gt,e.routineCode=vt,e.serviceRecord=mt,e.messageSystem=yt,e.getMsgDetails=_t,e.appleLogin=bt,e.getUserAgreement=wt,e.agentLevelList=At,e.agentLevelTaskList=xt;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:p;if(!e)return[t];var r=this._caches[t];return r||(r=y(t,n),this._caches[t]=r),_(r,e)}}]),t}();e.Formatter=g;var v=/^(?:\d)+/,m=/^(?:\w)+/;function y(t,e){var n=r(e,2),i=n[0],o=n[1],a=[],s=0,u="";while(s-1?b:t.indexOf("-hant")>-1||C(t,["-tw","-hk","-mo","-cht"])?w:b;var n=E(t,[A,x,O]);return n||void 0}}var P=function(){function t(e){var n=e.locale,r=e.fallbackLocale,i=e.messages,o=e.watcher,a=e.formater;c(this,t),this.locale=A,this.fallbackLocale=A,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=a||T,this.messages=i||{},this.setLocale(n||A),o&&this.watchLocale(o)}return f(t,[{key:"setLocale",value:function(t){var e=this,n=this.locale;this.locale=$(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(t){t(e.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,n=this.watchers.push(t)-1;return function(){e.watchers.splice(n,1)}}},{key:"add",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[t];r?n?Object.assign(r,e):Object.keys(e).forEach((function(t){S(r,t)||(r[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,n){return this.formater.interpolate(t,e,n).join("")}},{key:"t",value:function(t,e,n){var r=this.message;return"string"===typeof e?(e=$(e,this.messages),e&&(r=this.messages[e])):n=e,S(r,t)?this.formater.interpolate(r[t],n).join(""):t}}]),t}();function L(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function j(){return"undefined"!==typeof t&&t.getLocale?t.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():A}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var i=[e,t];t=i[0],e=i[1]}"string"!==typeof t&&(t=j()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||A);var o=new P({locale:t,fallbackLocale:n,messages:e,watcher:r}),a=function(t,e){if("function"!==typeof getApp)a=function(t,e){return o.t(t,e)};else{var n=!1;a=function(t,e){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,L(r,o))),o.t(t,e)}}return a(t,e)};return{i18n:o,f:function(t,e,n){return o.f(t,e,n)},t:function(t,e){return a(t,e)},add:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(t,e,n)},watch:function(t){return o.watchLocale(t)},getLocale:function(){return o.getLocale()},setLocale:function(t){return o.setLocale(t)}}}e.I18n=P;var N,M=function(t){return"string"===typeof t};function D(t,e){return N||(N=new g),z(t,(function(t,n){var r=t[n];return M(r)?!!F(r,e)||void 0:D(r,e)}))}function R(t,e,n){return N||(N=new g),z(t,(function(t,r){var i=t[r];M(i)?F(i,n)&&(t[r]=H(i,e,n)):R(i,e,n)})),t}function U(t,e){var n=e.locale,r=e.locales,i=e.delimiters;if(!F(t,i))return t;N||(N=new g);var o=[];Object.keys(r).forEach((function(t){t!==n&&o.push({locale:t,values:r[t]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(V(JSON.parse(t),o,i),null,2)}catch(a){}return t}function F(t,e){return t.indexOf(e[0])>-1}function H(t,e,n){return N.interpolate(t,e,n).join("")}function B(t,e,n,r){var i=t[e];if(M(i)){if(F(i,r)&&(t[e]=H(i,n[0].values,r),n.length>1)){var o=t[e+"Locales"]={};n.forEach((function(t){o[t.locale]=H(i,t.values,r)}))}}else V(i,n,r)}function V(t,e,n){return z(t,(function(t,r){B(t,r,e,n)})),t}function z(t,e){if(h(t)){for(var n=0;n-1}))):e}}function K(t){var e=[],n=t.split("-");while(n.length)e.push(n.join("-")),n.pop();return e}e.isString=M}).call(this,n("543d")["default"],n("c8ba"))},4729:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=r,e.goPage=i;var n=getApp();function r(e,n){return new Promise((function(r){e.activity&&"1"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(e.activity.id,"&time=").concat(e.activity.time,"&status=1")}):e.activity&&"2"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(e.activity.id,"&bargain=").concat(n)}):e.activity&&"3"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(e.activity.id)}):r(e)}))}function i(){return new Promise((function(t){if(0!=n.globalData.isIframe)return!1;t(!0)}))}}).call(this,n("543d")["default"])},"4f72":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCombinationList=o,e.getCombinationDetail=a,e.getCombinationPink=s,e.postCombinationRemove=u,e.getBargainList=c,e.getCombinationBannerList=l,e.getPink=f,e.getBargainUserList=h,e.getBargainDetail=d,e.postBargainStartUser=p,e.postBargainStart=g,e.postBargainHelp=v,e.postBargainHelpPrice=m,e.postBargainHelpList=y,e.postBargainHelpCount=_,e.postBargainShare=b,e.getSeckillIndexTime=w,e.getSeckillList=A,e.getSeckillDetail=x,e.getBargainPoster=O,e.getCombinationPoster=k,e.getBargainUserCancel=S,e.seckillCode=T,e.scombinationCode=C,e.getCombinationPosterData=E,e.getBargainPosterData=$,e.integralOrderConfirm=P,e.integralOrderCreate=L,e.integralOrderDetails=j,e.getIntegralProductDetail=I,e.getStoreIntegralList=N,e.getIntegralOrderList=M,e.getLogisticsDetails=D,e.orderTake=R,e.orderDel=U,e.getPresellList=F;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("combination/list",t,{noAuth:!0})}function a(t){return r.default.get("combination/detail/"+t)}function s(t){return r.default.get("combination/pink/"+t)}function u(t){return r.default.post("combination/remove",t)}function c(t){return r.default.get("bargain/list",t,{noAuth:!0})}function l(t){return r.default.get("combination/banner_list",t,{noAuth:!0})}function f(t){return r.default.get("pink",t,{noAuth:!0})}function h(t){return r.default.get("bargain/user/list",t)}function d(t){return r.default.get("bargain/detail/"+t)}function p(t){return r.default.post("bargain/start/user",t)}function g(t){return r.default.post("bargain/start",{bargainId:t})}function v(t){return r.default.post("bargain/help",t)}function m(t){return r.default.post("bargain/help/price",t)}function y(t){return r.default.post("bargain/help/list",t)}function _(t){return r.default.post("bargain/help/count",t)}function b(t){return r.default.post("bargain/share",{bargainId:t})}function w(){return r.default.get("seckill/index",{},{noAuth:!0})}function A(t,e){return r.default.get("seckill/list/"+t,e,{noAuth:!0})}function x(t,e){return r.default.get("seckill/detail/"+t,e)}function O(t){return r.default.post("bargain/poster",t)}function k(t){return r.default.post("combination/poster",t)}function S(t){return r.default.post("bargain/user/cancel",t)}function T(t,e){return r.default.get("seckill/code/"+t,e)}function C(t){return r.default.get("combination/code/"+t)}function E(t){return r.default.get("combination/poster_info/"+t)}function $(t){return r.default.get("bargain/poster_info/"+t)}function P(t){return r.default.post("store_integral/order/confirm",t)}function L(t){return r.default.post("store_integral/order/create",t)}function j(t){return r.default.get("store_integral/order/detail/".concat(t))}function I(t){return r.default.get("store_integral/detail/"+t,{},{noAuth:!0})}function N(t){return r.default.get("store_integral/list",t)}function M(t){return r.default.get("store_integral/order/list",t)}function D(t){return r.default.get("store_integral/order/express/".concat(t))}function R(t){return r.default.post("store_integral/order/take",t)}function U(t){return r.default.post("store_integral/order/del",t)}function F(t){return r.default.get("advance/list",t)}},"50b4":function(t,e){},"514d":function(t,e){t.exports={HTTP_REQUEST_URL:"https://demo.crmeb.com",HEADER:{"content-type":"application/json","Form-type":"routine"},TOKENNAME:"Authori-zation",EXPIRE:0,LIMIT:10}},"52ec":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",o="week",a="month",s="quarter",u="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},h={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+f(r,2,"0")+":"+f(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,a),i=e-r<0,o=t.clone().add(n+(i?-1:1),a);return Number(-(n+(e-r)/(i?r-o:o-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:a,y:u,w:o,d:i,D:"date",h:r,m:n,s:e,ms:t,Q:s}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p="en",g={};g[p]=d;var v=function(t){return t instanceof b},m=function(t,e,n){var r;if(!t)return p;if("string"==typeof t)g[t]&&(r=t),e&&(g[t]=e,r=t);else{var i=t.name;g[i]=t,r=i}return!n&&r&&(p=r),r||!n&&p},y=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},_=h;_.l=m,_.i=v,_.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var b=function(){function f(t){this.$L=this.$L||m(t.locale,null,!0),this.parse(t)}var h=f.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(c);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return _},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=y(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return y(t)t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1},t.prototype.uniIDHasPermission=function(t){var e=x(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=x(),e=t.tokenExpired;return e>Date.now()}}r="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!w.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var k=Object.prototype.toString,S=Object.prototype.hasOwnProperty;function T(t){return"function"===typeof t}function C(t){return"string"===typeof t}function E(t){return"[object Object]"===k.call(t)}function $(t,e){return S.call(t,e)}function P(){}function L(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var j=/-(\w)/g,I=L((function(t){return t.replace(j,(function(t,e){return e?e.toUpperCase():""}))})),N=["invoke","success","fail","complete","returnValue"],M={},D={};function R(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?U(n):n}function U(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(e){W(t[n],e).then((function(t){return T(r)&&r(t)||t}))}}})),e}function q(t,e){var n=[];Array.isArray(M.returnValue)&&n.push.apply(n,p(M.returnValue));var r=D[t];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,p(r.returnValue)),n.forEach((function(t){e=t(e)||e})),e}function J(t){var e=Object.create(null);Object.keys(M).forEach((function(t){"returnValue"!==t&&(e[t]=M[t].slice())}));var n=D[t];return n&&Object.keys(n).forEach((function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function Y(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o0&&(t.delta=n)}}}},St={args:function(t){var e=parseInt(t.current);if(!isNaN(e)){var n=t.urls;if(Array.isArray(n)){var r=n.length;if(r)return e<0?e=0:e>=r&&(e=r-1),e>0?(t.current=n[e],t.urls=n.filter((function(t,r){return!(r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(E(e)){var o=!0===i?e:{};for(var a in T(n)&&(n=n(e,o)||{}),e)if($(n,a)){var s=n[a];T(s)&&(s=s(e[a],e,o)),s&&(C(s)?o[s]=e[a]:E(s)&&(o[s.name?s.name:a]=s.value))}else-1!==It.indexOf(a)?T(e[a])&&(o[a]=Nt(t,e[a],r)):i||(o[a]=e[a]);return o}return T(e)&&(e=Nt(t,e,r)),e}function Dt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return T(Pt.returnValue)&&(e=Pt.returnValue(t,e)),Mt(t,e,n,{},r)}function Rt(t,e){if($(Pt,t)){var n=Pt[t];return n?function(e,r){var i=n;T(n)&&(i=n(e)),e=Mt(t,e,i.args,i.returnValue);var o=[e];"undefined"!==typeof r&&o.push(r),T(i.name)?t=i.name(e):C(i.name)&&(t=i.name);var a=wx[t].apply(wx,o);return ot(t)?Dt(t,a,i.returnValue,it(t)):a}:function(){}}return e}var Ut=Object.create(null),Ft=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function Ht(t){return function(e){var n=e.fail,r=e.complete,i={errMsg:"".concat(t,":fail method '").concat(t,"' not supported")};T(n)&&n(i),T(r)&&r(i)}}Ft.forEach((function(t){Ut[t]=Ht(t)}));var Bt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function Vt(t){var e=t.service,n=t.success,r=t.fail,i=t.complete,o=!1;Bt[e]?(o={errMsg:"getProvider:ok",service:e,provider:Bt[e]},T(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},T(r)&&r(o)),T(i)&&i(o)}var zt=Object.freeze({__proto__:null,getProvider:Vt}),Gt=function(){var t;return function(){return t||(t=new i.default),t}}();function Kt(t,e,n){return t[e].apply(t,n)}function Wt(){return Kt(Gt(),"$on",Array.prototype.slice.call(arguments))}function Xt(){return Kt(Gt(),"$off",Array.prototype.slice.call(arguments))}function qt(){return Kt(Gt(),"$once",Array.prototype.slice.call(arguments))}function Jt(){return Kt(Gt(),"$emit",Array.prototype.slice.call(arguments))}var Yt=Object.freeze({__proto__:null,$on:Wt,$off:Xt,$once:qt,$emit:Jt}),Zt=Object.freeze({__proto__:null}),Qt=Page,te=Component,ee=/:/g,ne=L((function(t){return I(t.replace(ee,"-"))}));function re(t){var e=t.triggerEvent;t.triggerEvent=function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return ie("onLoad",t),Qt(t)},Page.after=Qt.after,Component=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ie("created",t),te(t)});var oe=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function ae(t,e){var n=t.$mp[t.mpType];e.forEach((function(e){$(n,e)&&(t[e]=n[e])}))}function se(t,e){if(!e)return!0;if(i.default.options&&Array.isArray(i.default.options[t]))return!0;if(e=e.default||e,T(e))return!!T(e.extendOptions[t])||!!(e.super&&e.super.options&&Array.isArray(e.super.options[t]));if(T(e[t]))return!0;var n=e.mixins;return Array.isArray(n)?!!n.find((function(e){return se(t,e)})):void 0}function ue(t,e,n){e.forEach((function(e){se(e,n)&&(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}))}function ce(t,e){var n;return e=e.default||e,n=T(e)?e:t.extend(e),e=n.options,[n,e]}function le(t,e){if(Array.isArray(e)&&e.length){var n=Object.create(null);e.forEach((function(t){n[t]=!0})),t.$scopedSlots=t.$slots=n}}function fe(t,e){t=(t||"").split(",");var n=t.length;1===n?e._$vueId=t[0]:2===n&&(e._$vueId=t[0],e._$vuePid=t[1])}function he(t,e){var n=t.data||{},r=t.methods||{};if("function"===typeof n)try{n=n.call(e)}catch(i){Object({NODE_ENV:"production",VUE_APP_NAME:"routineTitle",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return E(n)||(n={}),Object.keys(r).forEach((function(t){-1!==e.__lifecycle_hooks__.indexOf(t)||$(n,t)||(n[t]=r[t])})),n}var de=[String,Number,Boolean,Object,Array,null];function pe(t){return function(e,n){this.$vm&&(this.$vm[t]=e)}}function ge(t,e){var n=t.behaviors,r=t.extends,i=t.mixins,o=t.props;o||(t.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(t){a.push(t.replace("uni://","wx".concat("://"))),"uni://form-field"===t&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),E(r)&&r.props&&a.push(e({properties:me(r.props,!0)})),Array.isArray(i)&&i.forEach((function(t){E(t)&&t.props&&a.push(e({properties:me(t.props,!0)}))})),a}function ve(t,e,n,r){return Array.isArray(e)&&1===e.length?e[0]:e}function me(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return e||(n.vueId={type:String,value:""},n.generic={type:Object,value:null},n.scopedSlotsCompiler={type:String,value:""},n.vueSlots={type:null,value:[],observer:function(t,e){var n=Object.create(null);t.forEach((function(t){n[t]=!0})),this.setData({$slots:n})}}),Array.isArray(t)?t.forEach((function(t){n[t]={type:null,observer:pe(t)}})):E(t)&&Object.keys(t).forEach((function(e){var r=t[e];if(E(r)){var i=r.default;T(i)&&(i=i()),r.type=ve(e,r.type),n[e]={type:-1!==de.indexOf(r.type)?r.type:null,value:i,observer:pe(e)}}else{var o=ve(e,r);n[e]={type:-1!==de.indexOf(o)?o:null,observer:pe(e)}}})),n}function ye(t){try{t.mp=JSON.parse(JSON.stringify(t))}catch(e){}return t.stopPropagation=P,t.preventDefault=P,t.target=t.target||{},$(t,"detail")||(t.detail={}),$(t,"markerId")&&(t.detail="object"===typeof t.detail?t.detail:{},t.detail.markerId=t.markerId),E(t.detail)&&(t.target=Object.assign({},t.target,t.detail)),t}function _e(t,e){var n=t;return e.forEach((function(e){var r=e[0],i=e[2];if(r||"undefined"!==typeof i){var o,a=e[1],s=e[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):t.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(e){return t.__get_value(a,e)===i})):E(o)&&(n=Object.keys(o).find((function(e){return t.__get_value(a,o[e])===i}))):n=o[i],s&&(n=t.__get_value(s,n))}})),n}function be(t,e,n){var r={};return Array.isArray(e)&&e.length&&e.forEach((function(e,i){"string"===typeof e?e?"$event"===e?r["$"+i]=n:"arguments"===e?n.detail&&n.detail.__args__?r["$"+i]=n.detail.__args__:r["$"+i]=[n]:0===e.indexOf("$event.")?r["$"+i]=t.__get_value(e.replace("$event.",""),n):r["$"+i]=t.__get_value(e):r["$"+i]=t:r["$"+i]=_e(t,e)})),r}function we(t){for(var e={},n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1;if(i&&(a=e.currentTarget&&e.currentTarget.dataset&&"wx"===e.currentTarget.dataset.comType,!n.length))return a?[e]:e.detail.__args__||e.detail;var s=be(t,r,e),u=[];return n.forEach((function(t){"$event"===t?"__set_model"!==o||i?i&&!a?u.push(e.detail.__args__[0]):u.push(e):u.push(e.target.value):Array.isArray(t)&&"o"===t[0]?u.push(we(t)):"string"===typeof t&&$(s,t)?u.push(s[t]):u.push(t)})),u}var xe,Oe="~",ke="^";function Se(t,e){return t===e||"regionchange"===e&&("begin"===t||"end"===t)}function Te(t){var e=t.$parent;while(e&&e.$parent&&(e.$options.generic||e.$parent.$options.generic||e.$scope._$vuePid))e=e.$parent;return e&&e.$parent}function Ce(t){var e=this;t=ye(t);var n=(t.currentTarget||t.target).dataset;if(n){var r=n.eventOpts||n["event-opts"];if(r){var i=t.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===ke;r=s?r.slice(1):r;var u=r.charAt(0)===Oe;r=u?r.slice(1):r,a&&Se(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=e.$vm;if(i.$options.generic&&(i=Te(i)||i),"$emit"===r)return void i.$emit.apply(i,Ae(e.$vm,t,n[1],n[2],s,r));var a=i[r];if(!T(a))throw new Error(" _vm.".concat(r," is not a function"));if(u){if(a.once)return;a.once=!0}var c=Ae(e.$vm,t,n[1],n[2],s,r);c=Array.isArray(c)?c:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(c=c.concat([,,,,,,,,,,t])),o.push(a.apply(i,c))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}}}xe=wx.getSystemInfoSync().language;var Ee=(0,o.initVueI18n)(xe,{}),$e=Ee.t;Ee.mixin={beforeCreate:function(){var t=this,e=Ee.i18n.watchLocale((function(){t.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){e()}))},methods:{$$t:function(t,e){return $e(t,e)}}},Ee.setLocale,Ee.getLocale;function Pe(t,e,n){var r=t.observable({locale:n||Ee.getLocale()}),i=[];e.$watchLocale=function(t){i.push(t)},Object.defineProperty(e,"$locale",{get:function(){return r.locale},set:function(t){r.locale=t,i.forEach((function(e){return e(t)}))}})}var Le={},je=[];function Ie(t){if(t){var e=Le[t];return delete Le[t],e}return je.shift()}var Ne=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Me(){i.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var t=i.default.prototype.__call_hook;i.default.prototype.__call_hook=function(e,n){return"onLoad"===e&&n&&n.__id__&&(this.__eventChannel__=Ie(n.__id__),delete n.__id__),t.call(this,e,n)}}function De(){var t={},e={};i.default.prototype.$hasScopedSlotsParams=function(n){var r=t[n];return r||(e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))),r},i.default.prototype.$getScopedSlotsParams=function(n,r,i){var o=t[n];if(o){var a=o[r]||{};return i?a[i]:a}e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))},i.default.prototype.$setScopedSlotsParams=function(n,r){var i=this.$options.propsData.vueId;if(i){var o=i.split(",")[0],a=t[o]=t[o]||{};a[n]=r,e[o]&&e[o].$forceUpdate()}},i.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete t[r],delete e[r])}})}function Re(t,e){var n=e.mocks,r=e.initRefs;Me(),De(),t.$options.store&&(i.default.prototype.$store=t.$options.store),O(i.default),i.default.prototype.mpHost="mp-weixin",i.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=d({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var t=getApp();t.$vm&&t.$vm.$i18n&&(this._i18n=t.$vm.$i18n)}"app"!==this.mpType&&(r(this),ae(this,n))}}});var o={onLaunch:function(e){this.$vm||(wx.canIUse&&wx.canIUse("nextTick"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",e),this.$vm.__call_hook("onLaunch",e))}};o.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(t){o[t]=a[t]})),Pe(i.default,t,wx.getSystemInfoSync().language||"zh-Hans"),ue(o,Ne),o}var Ue=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Fe(t,e){for(var n,r=t.$children,i=r.length-1;i>=0;i--){var o=r[i];if(o.$scope._$vueId===e)return o}for(var a=r.length-1;a>=0;a--)if(n=Fe(r[a],e),n)return n}function He(t){return Behavior(t)}function Be(){return!!this.route}function Ve(t){this.triggerEvent("__l",t)}function ze(t,e,n){var r=t.selectAllComponents(e);r.forEach((function(t){var r=t.dataset.ref;n[r]=t.$vm||t,"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){ze(t,e,n)}))}))}function Ge(t){var e=t.$scope;Object.defineProperty(t,"$refs",{get:function(){var t={};ze(e,".vue-ref",t);var n=e.selectAllComponents(".vue-ref-in-for");return n.forEach((function(e){var n=e.dataset.ref;t[n]||(t[n]=[]),t[n].push(e.$vm||e)})),t}})}function Ke(t){var e,n=t.detail||t.value,r=n.vuePid,i=n.vueOptions;r&&(e=Fe(this.$vm,r)),e||(e=this.$vm),i.parent=e}function We(t){return Re(t,{mocks:Ue,initRefs:Ge})}function Xe(t){return App(We(t)),t}var qe=/[!'()*]/g,Je=function(t){return"%"+t.charCodeAt(0).toString(16)},Ye=/%2C/g,Ze=function(t){return encodeURIComponent(t).replace(qe,Je).replace(Ye,",")};function Qe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze,n=t?Object.keys(t).map((function(n){var r=t[n];if(void 0===r)return"";if(null===r)return e(n);if(Array.isArray(r)){var i=[];return r.forEach((function(t){void 0!==t&&(null===t?i.push(e(n)):i.push(e(n)+"="+e(t)))})),i.join("&")}return e(n)+"="+e(r)})).filter((function(t){return t.length>0})).join("&"):null;return n?"?".concat(n):""}function tn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isPage,r=e.initRelation,o=ce(i.default,t),a=c(o,2),s=a[0],l=a[1],f=u({multipleSlots:!0,addGlobalClass:!0},l.options||{});l["mp-weixin"]&&l["mp-weixin"].options&&Object.assign(f,l["mp-weixin"].options);var h={options:f,data:he(l,i.default.prototype),behaviors:ge(l,He),properties:me(l.props,!1,l.__file),lifetimes:{attached:function(){var t=this.properties,e={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:t};fe(t.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:e}),this.$vm=new s(e),le(this.$vm,t.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(t){this.$vm&&this.$vm.__call_hook("onPageShow",t)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(t){this.$vm&&this.$vm.__call_hook("onPageResize",t)}},methods:{__l:Ke,__e:Ce}};return l.externalClasses&&(h.externalClasses=l.externalClasses),Array.isArray(l.wxsCallMethods)&&l.wxsCallMethods.forEach((function(t){h.methods[t]=function(e){return this.$vm[t](e)}})),n?h:[h,s]}function en(t){return tn(t,{isPage:Be,initRelation:Ve})}var nn=["onShow","onHide","onUnload"];function rn(t,e){e.isPage,e.initRelation;var n=en(t);return ue(n.methods,nn,t),n.methods.onLoad=function(t){this.options=t;var e=Object.assign({},t);delete e.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Qe(e)},this.$vm.$mp.query=t,this.$vm.__call_hook("onLoad",t)},n}function on(t){return rn(t,{isPage:Be,initRelation:Ve})}function an(t){return Component(on(t))}function sn(t){return Component(en(t))}function un(t){var e=We(t),n=getApp({allowDefault:!0});t.$scope=n;var r=n.globalData;if(r&&Object.keys(e.globalData).forEach((function(t){$(r,t)||(r[t]=e.globalData[t])})),Object.keys(e).forEach((function(t){$(n,t)||(n[t]=e[t])})),T(e.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var A=/-(\w)/g,x=w((function(t){return t.replace(A,(function(t,e){return e?e.toUpperCase():""}))})),O=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,S=w((function(t){return t.replace(k,"-$1").toLowerCase()}));function T(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function C(t,e){return t.bind(e)}var E=Function.prototype.bind?C:T;function $(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function L(t){for(var e={},n=0;n0),et=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===Y),nt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/),{}.watch);if(q)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){}}),window.addEventListener("test-passive",null,rt)}catch(ni){}var it=function(){return void 0===W&&(W=!q&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),W},ot=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"===typeof t&&/native code/.test(t.toString())}var st,ut="undefined"!==typeof Symbol&&at(Symbol)&&"undefined"!==typeof Reflect&&at(Reflect.ownKeys);st="undefined"!==typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=j,lt=0,ft=function(){this.id=lt++,this.subs=[]};function ht(t){ft.SharedObject.targetStack.push(t),ft.SharedObject.target=t,ft.target=t}function dt(){ft.SharedObject.targetStack.pop(),ft.SharedObject.target=ft.SharedObject.targetStack[ft.SharedObject.targetStack.length-1],ft.target=ft.SharedObject.target}ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){y(this.subs,t)},ft.prototype.depend=function(){ft.SharedObject.target&&ft.SharedObject.target.addDep(this)},ft.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===S(t)){var u=qt(String,i.type);(u<0||s0&&(a=we(a,(e||"")+"_"+n),be(a[0])&&be(c)&&(l[u]=mt(c.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?be(c)?l[u]=mt(c.text+a):""!==a&&l.push(mt(a)):be(a)&&be(c)?l[u]=mt(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function xe(t){var e=Oe(t.$options.inject,t);e&&(Ot(!1),Object.keys(e).forEach((function(n){Et(t,n,e[n])})),Ot(!0))}function Oe(t,e){if(t){for(var n=Object.create(null),r=ut?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=Ce(e,u,t[u]))}else i={};for(var c in e)c in i||(i[c]=Ee(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function Ce(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:_e(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Ee(t,e){return function(){return t[e]}}function $e(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r1?$(n):n;for(var r=$(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Fn=function(){return Hn.now()})}function Bn(){var t,e;for(Fn(),Dn=!0,jn.sort((function(t,e){return t.id-e.id})),Rn=0;RnRn&&jn[n].id>t.id)n--;jn.splice(n+1,0,t)}else jn.push(t);Mn||(Mn=!0,ue(Bn))}}var Wn=0,Xn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Wn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new st,this.newDepIds=new st,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};Xn.prototype.get=function(){var t;ht(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(ni){if(!this.user)throw ni;Jt(ni,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&le(t),dt(),this.cleanupDeps()}return t},Xn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Xn.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Xn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Kn(this)},Xn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(ni){Jt(ni,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Xn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Xn.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},Xn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var qn={enumerable:!0,configurable:!0,get:j,set:j};function Jn(t,e,n){qn.get=function(){return this[e][n]},qn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,qn)}function Yn(t){t._watchers=[];var e=t.$options;e.props&&Zn(t,e.props),e.methods&&ar(t,e.methods),e.data?Qn(t):Ct(t._data={},!0),e.computed&&nr(t,e.computed),e.watch&&e.watch!==nt&&sr(t,e.watch)}function Zn(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Ot(!1);var a=function(o){i.push(o);var a=Gt(o,e,n,t);Et(r,o,a),o in t||Jn(t,"_props",o)};for(var s in e)a(s);Ot(!0)}function Qn(t){var e=t.$options.data;e=t._data="function"===typeof e?tr(e,t):e||{},l(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&b(r,o)||V(o)||Jn(t,"_data",o)}Ct(e,!0)}function tr(t,e){ht();try{return t.call(e,e)}catch(ni){return Jt(ni,e,"data()"),{}}finally{dt()}}var er={lazy:!0};function nr(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new Xn(t,a||j,j,er)),i in t||rr(t,i,o)}}function rr(t,e,n){var r=!it();"function"===typeof n?(qn.get=r?ir(e):or(n),qn.set=j):(qn.get=n.get?r&&!1!==n.cache?ir(e):or(n.get):j,qn.set=n.set||j),Object.defineProperty(t,e,qn)}function ir(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.SharedObject.target&&e.depend(),e.value}}function or(t){return function(){return t.call(this,this)}}function ar(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?j:E(e[n],t)}function sr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=$(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function mr(t){t.mixin=function(t){return this.options=Vt(this.options,t),this}}function yr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Vt(n.options,t),a["super"]=n,a.options.props&&_r(a),a.options.computed&&br(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),i[r]=a,a}}function _r(t){var e=t.options.props;for(var n in e)Jn(t.prototype,"_props",n)}function br(t){var e=t.options.computed;for(var n in e)rr(t.prototype,n,e[n])}function wr(t){U.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Ar(t){return t&&(t.Ctor.options.name||t.tag)}function xr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Or(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Ar(a.componentOptions);s&&!e(s)&&kr(n,o,r,i)}}}function kr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}fr(gr),cr(gr),xn(gr),Tn(gr),hn(gr);var Sr=[String,RegExp,Array],Tr={name:"keep-alive",abstract:!0,props:{include:Sr,exclude:Sr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)kr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Or(t,(function(t){return xr(e,t)}))})),this.$watch("exclude",(function(e){Or(t,(function(t){return!xr(e,t)}))}))},render:function(){var t=this.$slots.default,e=mn(t),n=e&&e.componentOptions;if(n){var r=Ar(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!xr(o,r))||a&&r&&xr(a,r))return e;var s=this,u=s.cache,c=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;u[l]?(e.componentInstance=u[l].componentInstance,y(c,l),c.push(l)):(u[l]=e,c.push(l),this.max&&c.length>parseInt(this.max)&&kr(u,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Cr={KeepAlive:Tr};function Er(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:P,mergeOptions:Vt,defineReactive:Et},t.set=$t,t.delete=Pt,t.nextTick=ue,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),U.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,Cr),vr(t),mr(t),yr(t),wr(t)}Er(gr),Object.defineProperty(gr.prototype,"$isServer",{get:it}),Object.defineProperty(gr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gr,"FunctionalRenderContext",{value:Ge}),gr.version="2.6.11";var $r="[object Array]",Pr="[object Object]";function Lr(t,e){var n={};return jr(t,e),Ir(t,e,"",n),n}function jr(t,e){if(t!==e){var n=Mr(t),r=Mr(e);if(n==Pr&&r==Pr){if(Object.keys(t).length>=Object.keys(e).length)for(var i in e){var o=t[i];void 0===o?t[i]=null:jr(o,e[i])}}else n==$r&&r==$r&&t.length>=e.length&&e.forEach((function(e,n){jr(t[n],e)}))}}function Ir(t,e,n,r){if(t!==e){var i=Mr(t),o=Mr(e);if(i==Pr)if(o!=Pr||Object.keys(t).length1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Jr(t){return Array.isArray(t)?L(t):"string"===typeof t?qr(t):t}var Yr=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Zr(t,e){var n=e.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?t[r]:Zr(t[r],n.slice(1).join("."))}function Qr(t){t.config.errorHandler=function(e,n,r){t.util.warn("Error in "+r+': "'+e.toString()+'"',n);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(e)};var e=t.prototype.$emit;t.prototype.$emit=function(t){return this.$scope&&t&&this.$scope["triggerEvent"](t,{__args__:$(arguments,1)}),e.apply(this,arguments)},t.prototype.$nextTick=function(t){return Ur(this,t)},Yr.forEach((function(e){t.prototype[e]=function(t){return this.$scope&&this.$scope[e]?this.$scope[e](t):"undefined"!==typeof my?"createSelectorQuery"===e?my.createSelectorQuery(t):"createIntersectionObserver"===e?my.createIntersectionObserver(t):void 0:void 0}})),t.prototype.__init_provide=Ae,t.prototype.__init_injections=xe,t.prototype.__call_hook=function(t,e){var n=this;ht();var r,i=n.$options[t],o=t+" hook";if(i)for(var a=0,s=i.length;a=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;$(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function b(t,e,n,r){var i=e&&e.prototype instanceof A?e:A,o=Object.create(i.prototype),a=new P(r||[]);return o._invoke=T(t,n,a),o}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function A(){}function x(){}function O(){}function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t){function e(n,r,o,a){var s=w(t[n],t,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function T(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return j()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=w(t,e,n);if("normal"===u.type){if(r=n.done?p:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function C(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,C(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=w(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r>6),n=128+(63&t),[e,n]):(e=224+(t>>12),n=128+(t>>6&63),r=128+(63&t),[e,n,r])}function r(t){for(var n=[],r=0;r=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},createQrcode:function(){for(var t=0,e=0,n=null,r=0;r<8;r++){this.makeImpl(r);var i=s.getLostPoint(this);(0==r||t>i)&&(t=i,e=r,n=this.modules)}this.modules=n,this.setupTypeInfo(!1,e),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var t=8;t>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r,this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(t,e){for(var n=o[this.errorCorrectLevel]<<3|e,r=s.getBCHTypeInfo(n),i=0;i<15;i++){var a=!t&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a;a=!t&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new h,e=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,e);for(var n=0,r=this.utf8bytes.length;n=8*this.totalDataCount)break;if(t.put(i.PAD0,8),t.length>=8*this.totalDataCount)break;t.put(i.PAD1,8)}return this.createBytes(t)},createBytes:function(t){for(var e=0,n=0,r=0,i=this.rsBlock.length/3,o=new Array,a=0;a=0?b.get(w):0}}var A=new Array(this.totalDataCount),x=0;for(a=0;a0;a-=2){6==a&&a--;while(1){for(var u=0;u<2;u++)if(null==this.modules[r][a-u]){var c=!1;o>>i&1));var l=s.getMask(e,r,a-u);l&&(c=!c),this.modules[r][a-u]=c,i--,-1==i&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}}},i.PAD0=236,i.PAD1=17;for(var o=[1,0,3,2],a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){var e=t<<10;while(s.getBCHDigit(e)-s.getBCHDigit(s.G15)>=0)e^=s.G15<=0)e^=s.G18<>>=1;return e},getPatternPosition:function(t){return s.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case a.PATTERN000:return(e+n)%2==0;case a.PATTERN001:return e%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(e+n)%3==0;case a.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return e*n%2+e*n%3==0;case a.PATTERN110:return(e*n%2+e*n%3)%2==0;case a.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new l([1],0),n=0;n3&&t.modules[i][s-1]&&t.modules[i][s-2]&&t.modules[i][s-3]&&t.modules[i][s-4]&&(n+=40)),i=5&&(n+=3+o-5),o=1),u&&r++}for(s=0;s3&&t.modules[i-1][s]&&t.modules[i-2][s]&&t.modules[i-3][s]&&t.modules[i-4][s]&&(n+=40)),a^u?o++:(a=u,o>=5&&(n+=3+o-5),o=1)}var l=Math.abs(100*r/e/e-50)/5;return n+=10*l,n}},u={glog:function(t){if(t<1)throw new Error("glog("+t+")");return u.LOG_TABLE[t]},gexp:function(t){while(t<0)t+=255;while(t>=256)t-=255;return u.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},c=0;c<8;c++)u.EXP_TABLE[c]=1<=n){var o=u.glog(r[0])-u.glog(t.get(0));for(i=0;i9?2:1;if(this.utf8bytes.length+s>>7-t%8&1},put:function(t,e){for(var n=0;n>>e-n-1&1)},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var d=[];n=function(e){if(this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:e.canvasId,context:e.context,usingComponents:e.usingComponents,showLoading:e.showLoading,loadingText:e.loadingText},"string"===typeof e&&(e={text:e}),e)for(var n in e)this.options[n]=e[n];for(var r=null,o=(n=0,d.length);n1&&t.row<5&&t.col>1&&t.col<5||t.row>t.count-6&&t.row1&&t.col<5||t.row>1&&t.row<5&&t.col>t.count-6&&t.col1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),a(this,"getName",(function(t){return n.xml?t:t.toLowerCase()})),a(this,"isClose",(function(){return">"==n.data[n.i]||"/"==n.data[n.i]&&">"==n.data[n.i+1]})),a(this,"section",(function(){return n.data.substring(n.start,n.i)})),a(this,"siblings",(function(){return n.STACK.length?n.STACK[n.STACK.length-1].children:n.DOM})),this.attrs={},this.compress=i.compress,this.CssHandler=new l(i.tagStyle,h),this.data=e,this.domain=i.domain,this.DOM=[],this.i=this.start=this.audioNum=this.imgNum=this.videoNum=0,this.protocol=this.domain&&this.domain.includes("://")?this.domain.split("://")[0]:"",this.state=this.Text,this.STACK=[],this.useAnchor=i.useAnchor,this.xml=i.xml}return o(t,[{key:"parse",value:function(){s&&(this.data=s.parseEmoji(this.data));for(var t;t=this.data[this.i];this.i++)this.state(t);this.state==this.Text&&this.setText();while(this.STACK.length)this.popNode(this.STACK.pop());return this.DOM.length&&(this.DOM[0].PoweredBy="Parser",this.title&&(this.DOM[0].title=this.title)),this.DOM}},{key:"setAttr",value:function(){var t=this.getName(this.attrName);u.trustAttrs[t]&&(this.attrVal?this.attrs[t]="src"==t?this.getUrl(this.attrVal.replace(/&/g,"&")):this.attrVal:u.boolAttrs[t]&&(this.attrs[t]="T")),this.attrVal="";while(c[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}},{key:"setText",value:function(){var t,e=this.section();if(e)if(e=u.onText&&u.onText(e,(function(){return t=!0}))||e,t){this.data=this.data.substr(0,this.start)+e+this.data.substr(this.i);var n=this.start+e.length;for(this.i=this.start;this.iparseInt(o.substr(i+1))||-1!=(i=o.indexOf("max-width"))&&-1!=(i=o.indexOf(":",i+8))&&h",this.i))&&(this.i=this.data.length),"svg"==e){var r=this.data.substring(n,this.i+1);t.attrs.xmlns||(r=' xmlns="http://www.w3.org/2000/svg"'+r);var i=n;while("<"!=this.data[n])n--;r=this.data.substring(n,i)+r;var o=this.STACK[this.STACK.length-1];"100%"==t.attrs.width&&o&&(o.attrs.style||"").includes("inline")&&(o.attrs.style="width:300px;max-width:100%;"+o.attrs.style),this.siblings().push({name:"img",attrs:{src:"data:image/svg+xml;utf8,"+r.replace(/#/g,"%23"),ignore:"T"}})}return}}}},{key:"matchAttr",value:function(t){var e=t.attrs,n=this.CssHandler.match(t.name,e,t)+(e.style||""),r={};switch(e.id&&(1&this.compress?e.id=void 0:this.useAnchor&&this.bubble()),2&this.compress&&e.class&&(e.class=void 0),t.name){case"img":e["data-src"]&&(e.src=e.src||e["data-src"],e["data-src"]=void 0),e.src&&!e.ignore&&(this.bubble()?e.i=(this.imgNum++).toString():e.ignore="T");break;case"a":case"ad":this.bubble();break;case"font":if(e.color&&(r["color"]=e.color,e.color=void 0),e.face&&(r["font-family"]=e.face,e.face=void 0),e.size){var i=parseInt(e.size);i<1?i=1:i>7&&(i=7);var o=["xx-small","x-small","small","medium","large","x-large","xx-large"];r["font-size"]=o[i-1],e.size=void 0}break;case"video":case"audio":e.id?this["".concat(t.name,"Num")]++:e.id=t.name+ ++this["".concat(t.name,"Num")],"video"==t.name&&(e.width&&(n="width:".concat(parseFloat(e.width)+(e.width.includes("%")?"%":"px"),";").concat(n),e.width=void 0),e.height&&(n="height:".concat(parseFloat(e.height)+(e.height.includes("%")?"%":"px"),";").concat(n),e.height=void 0),this.videoNum>3&&(t.lazyLoad=!0)),e.source=[],e.src&&e.source.push(e.src),!e.controls&&e.autoplay,this.bubble();break;case"td":case"th":if(e.colspan||e.rowspan)for(var a,s=this.STACK.length;a=this.STACK[--s];)if("table"==a.name){a.c=void 0;break}}e.align&&(r["text-align"]=e.align,e.align=void 0);var u=n.replace(/"/g,'"').replace(/&/g,"&").split(";");n="";for(var l=0,f=u.length;lh&&(r.height="auto"),r){var m=r[v];if((v.includes("flex")||"order"==v||"self-align"==v)&&(t.c=1),m.includes("url")){var y=m.indexOf("(");if(-1!=y++){while('"'==m[y]||"'"==m[y]||c[m[y]])y++;m=m.substr(0,y)+this.getUrl(m.substr(y))}}else m.includes("rpx")?m=m.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*h/750+"px"})):"white-space"==v&&m.includes("pre")&&(this.pre=t.pre=!0);n+=";".concat(v,":").concat(m)}n=n.substr(1),n&&(e.style=n)}},{key:"popNode",value:function(t){if(t.pre){t.pre=this.pre=void 0;for(var e=this.STACK.length;e--;)this.STACK[e].pre&&(this.pre=!0)}if("head"==t.name||u.filter&&0==u.filter(t,this))return this.siblings().pop();var n=t.attrs;if("picture"==t.name)return t.name="img",n.src||"img"!=(t.children[0]||"").name||(n.src=t.children[0].attrs.src),n.src&&!n.ignore&&(n.i=(this.imgNum++).toString()),t.children=void 0;if(u.blockTags[t.name]?t.name="div":u.trustTags[t.name]||(t.name="span"),t.c)if("ul"==t.name){for(var r=1,i=this.STACK.length;i--;)"ul"==this.STACK[i].name&&r++;if(1!=r)for(var o=t.children.length;o--;)t.children[o].floor=r}else if("ol"==t.name)for(var a,s=0,c=1;a=t.children[s++];)"li"==a.name&&(a.type="ol",a.num=function(t,e){if("a"==e)return String.fromCharCode(97+(t-1)%26);if("A"==e)return String.fromCharCode(65+(t-1)%26);if("i"==e||"I"==e){t=(t-1)%99+1;var n=["I","II","III","IV","V","VI","VII","VIII","IX"],r=["X","XX","XXX","XL","L","LX","LXX","LXXX","XC"],i=(r[Math.floor(t/10)-1]||"")+(n[t%10-1]||"");return"i"==e?i.toLowerCase():i}return t}(c++,n.type)+".");if("table"==t.name){var l=n.cellpadding,f=n.cellspacing,h=n.border;t.c&&(this.bubble(),l||(l=2),f||(f=2)),h&&(n.style="border:".concat(h,"px solid gray;").concat(n.style||"")),f&&(n.style="border-spacing:".concat(f,"px;").concat(n.style||"")),(h||l)&&function t(e){for(var n,r=0;n=e[r];r++)"th"==n.name||"td"==n.name?(h&&(n.attrs.style="border:".concat(h,"px solid gray;").concat(n.attrs.style)),l&&(n.attrs.style="padding:".concat(l,"px;").concat(n.attrs.style))):t(n.children||[])}(t.children)}if(this.CssHandler.pop&&this.CssHandler.pop(t),"div"==t.name&&!Object.keys(n).length){var d=this.siblings();1==t.children.length&&"div"==t.children[0].name&&(d[d.length-1]=t.children[0])}}},{key:"bubble",value:function(){for(var t,e=this.STACK.length;t=this.STACK[--e];){if(u.richOnlyTags[t.name])return"table"!=t.name||Object.hasOwnProperty.call(t,"c")||(t.c=1),!1;t.c=1}return!0}},{key:"getUrl",value:function(t){return"/"==t[0]?"/"==t[1]?t=this.protocol+":"+t:this.domain&&(t=this.domain+t):this.domain&&0!=t.indexOf("data:")&&!t.includes("://")&&(t=this.domain+"/"+t),t}},{key:"Text",value:function(t){if("<"==t){var e=this.data[this.i+1],n=function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"};n(e)?(this.setText(),this.start=this.i+1,this.state=this.TagName):"/"==e?(this.setText(),n(this.data[1+ ++this.i])?(this.start=this.i+1,this.state=this.EndTag):this.Comment()):"!"==e&&(this.setText(),this.Comment())}}},{key:"Comment",value:function(){var t;t="--"==this.data.substring(this.i+2,this.i+4)?"--\x3e":"[CDATA["==this.data.substring(this.i+2,this.i+9)?"]]>":">",-1==(this.i=this.data.indexOf(t,this.i+2))?this.i=this.data.length:this.i+=t.length-1,this.start=this.i+1,this.state=this.Text}},{key:"TagName",value:function(t){if(c[t]){this.tagName=this.section();while(c[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}else this.isClose()&&(this.tagName=this.section(),this.setNode())}},{key:"AttrName",value:function(t){var e=c[t];if(e&&(this.attrName=this.section(),t=this.data[this.i]),"="==t){e||(this.attrName=this.section());while(c[this.data[++this.i]]);this.start=this.i--,this.state=this.AttrValue}else e?this.setAttr():this.isClose()&&(this.attrName=this.section(),this.setAttr())}},{key:"AttrValue",value:function(t){if('"'==t||"'"==t){if(this.start++,-1==(this.i=this.data.indexOf(t,this.i+1)))return this.i=this.data.length;this.attrVal=this.section(),this.i++}else{for(;!c[this.data[this.i]]&&!this.isClose();this.i++);this.attrVal=this.section()}this.setAttr()}},{key:"EndTag",value:function(t){if(c[t]||">"==t||"/"==t){for(var e=this.getName(this.section()),n=this.STACK.length;n--;)if(this.STACK[n].name==e)break;if(-1!=n){var r;while((r=this.STACK.pop()).name!=e);this.popNode(r)}else"p"!=e&&"br"!=e||this.siblings().push({name:e,attrs:{}});this.i=this.data.indexOf(">",this.i),this.start=this.i+1,-1==this.i?this.i=this.data.length:this.state=this.Text}}}]),t}();t.exports=p},a762:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(n("6b37")),n("514d");var r=n("00fa");n("7fe6");function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){};o.prototype={onSocketOpen:function(e){t.$emit("socketOpen",e)},init:function(){var t=this;this.timer=setInterval((function(){t.send({type:"ping"})}),1e4)},send:function(e){var n=JSON.stringify(e);return t.sendSocketMessage({data:n})},onMessage:function(e){var n=JSON.parse(e.data),r=n.type,i=n.data,o=void 0===i?{}:i;t.$emit(r,o)},onClose:function(){t.closeSocket(),clearInterval(this.timer),t.$emit("socket_close")},onError:function(e){t.$emit("socket_error",e)},close:function(){t.closeSocket()},onStart:function(e,n){var i="".concat(r.VUE_APP_WS_URL);this.ws=t.connectSocket({url:i+"?type=user&token="+e+"&form_type="+n,header:{"content-type":"application/json"},method:"GET",success:function(t){}}),this.ws.onOpen(this.onSocketOpen.bind(this)),this.ws.onError(this.onError.bind(this)),this.ws.onMessage(this.onMessage.bind(this)),this.ws.onClose(this.onClose.bind(this))}},o.prototype.constructor=o;var a=o;e.default=a}).call(this,n("543d")["default"])},b2c5:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("a34a")),i=n("514d"),o=a(n("6b37"));n("8632");function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,u,"next",t)}function u(t){s(o,r,i,a,u,"throw",t)}a(void 0)}))}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){return g(t)||p(t,e)||h(t,e)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n255?(n+=2,n>r*e&&(n++,o.push(t.slice(i,a)),i=a,r++)):(n++,n>r*e&&(o.push(t.slice(i,a)),i=a,r++));return o.push(t.slice(i,t.length)),[n,o,r]},PosterCanvas:function(e,n,r,i,o){var a=this;t.showLoading({title:"海报生成中",mask:!0});var s=t.createCanvasContext("myCanvas");s.clearRect(0,0,0,0),s.fillStyle="#fff",s.fillRect(0,0,750,1150),t.getImageInfo({src:e[0],success:function(u){var c=u.width,f=u.height;s.drawImage(e[1],0,0,c,c),s.save();var h=110,d=2*h,p=480,g=790;s.arc(p+h,g+h,h,0,2*Math.PI),s.drawImage(e[2],p,g,d,d),s.restore();var v=20,m=a.textByteLength(n,v),y=l(m,3),_=(y[0],y[1]),b=y[2];if(b>2){b=2;var w=_.slice(0,2);w[w.length-1]+="……",_=w}s.setTextAlign("left"),s.setFontSize(36),s.setFillStyle("#000");for(var A=36,x=0;x<_.length;x++)x?s.fillText(_[x],50,1e3+A*x+18,1100):s.fillText(_[x],50,1e3+A*x,1100);s.setTextAlign("left"),s.setFontSize(72),s.setFillStyle("#DA4F2A"),s.fillText("¥"+r,40,820+A),s.setTextAlign("left"),s.setFontSize(36),s.setFillStyle("#999"),s.fillText("¥"+i,50,876+A);var O=function(t,e,n,r,i,o,a,s){var u=t.measureText(e).width;switch(t.textAlign){case"center":n-=u/2;break;case"right":n-=u;break}r+=i+s,t.beginPath(),t.strokeStyle=o,t.lineWidth=a,t.moveTo(n,r),t.lineTo(n+u,r),t.stroke()};O(s,"¥"+i,55,865,36,"#999",2,0),s.setTextAlign("left"),s.setFontSize(28),s.setFillStyle("#999"),s.fillText("长按或扫描查看",490,1030+A),s.draw(!0,(function(){t.canvasToTempFilePath({canvasId:"myCanvas",fileType:"png",destWidth:c,destHeight:f,success:function(e){t.hideLoading(),o&&o(e.tempFilePath)}})}))},fail:function(e){t.hideLoading(),a.Tips({title:"无法获取图片信息"})}})},bargainPosterCanvas:function(e,n,r,i,o,a,s,u){var c=this,f=t.createCanvasContext("myCanvas");f.clearRect(0,0,0,0),f.fillStyle="#fff",f.fillRect(0,0,2*a,2*s),t.getImageInfo({src:e[0],success:function(h){h.width,h.height;f.drawImage(e[0],0,0,a,s);var d=.65,p=.166,g=.1857,v=.18,m=.385,y=.77,_=.1571,b=.2916,w=.6857,A=.3916,x=.1036,O=.2306,k=.25;f.drawImage(e[1],a*_,s*b,a*w,s*A),f.drawImage(e[2],a*m,s*y,a*k,a*k),f.save();var S=30,T=c.textByteLength(n,S),C=l(T,3),E=(C[0],C[1]),$=C[2];if($>2){$=2;var P=E.slice(0,2);P[P.length-1]+="…",E=P}f.setTextAlign("left"),f.setFillStyle("#000"),E.length<2?f.setFontSize(22):f.setFontSize(20);for(var L=8,j=0;js?(r=s,i=s/o):(r=n.width,i=n.height),a&&a({w:r,h:i});var u=t.createCanvasContext("canvas");u.width=r,u.height=i,u.clearRect(0,0,r,i),u.drawImage(n.path,0,0,r,i),u.save(),setTimeout((function(e){u.draw(!0,(function(){t.canvasToTempFilePath({canvasId:"canvas",fileType:"JPEG",destWidth:r,destHeight:i,quality:.7,success:function(t){v(t.tempFilePath)}})}))}),200)}}})}})},getUrlParams:function(t,e,n){if("string"!=typeof t)return{};e=e||"&",n=n||"=";var r={};if(-1!==t.indexOf(e)){for(var i in t=t.split(e),t)if(-1!==t[i].indexOf(n)){var o=t[i].split(n);r[o[0]]=o[1]}}else{if(-1===t.indexOf(n))return t;o=t.split(n);r[o[0]]=o[1]}return r},SplitArray:function(t,e){if("object"!=typeof t)return[];void 0===e&&(e=[]);for(var n=0;n=r?n:r,((this.Mul(t,i)-this.Mul(e,i))/i).toFixed(o)},Mul:function(t,e){t=parseFloat(t),e=parseFloat(e);var n=0,r=t.toString(),i=e.toString();try{n+=r.split(".")[1].length}catch(o){}try{n+=i.split(".")[1].length}catch(o){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)}},$L:{getLocation:function(){var t=this;return u(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getSetting();case 2:if(n=e.sent,2!==n){e.next=6;break}return t.openSetting(),e.abrupt("return");case 6:t.doGetLocation();case 7:case"end":return e.stop()}}),e)})))()},doGetLocation:function(){t.getLocation({success:function(e){t.removeStorageSync("CACHE_LONGITUDE"),t.removeStorageSync("CACHE_LATITUDE"),t.setStorageSync("CACHE_LONGITUDE",e.longitude),t.setStorageSync("CACHE_LATITUDE",e.latitude)},fail:function(e){e.errMsg.indexOf("auth deny")>=0?t.showToast({title:"访问位置被拒绝"}):t.showToast({title:e.errMsg})}})},getSetting:function(){return new Promise((function(e,n){t.getSetting({success:function(t){void 0!==t.authSetting["scope.userLocation"]?t.authSetting["scope.userLocation"]?e(1):e(2):e(0)}})}))},openSetting:function(){var e=this;t.openSetting({success:function(t){t.authSetting&&t.authSetting["scope.userLocation"]&&e.doGetLocation()},fail:function(t){}})},checkPermission:function(){return u(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!permision.isIOS){e.next=6;break}return e.next=3,permision.requestIOS("location");case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,permision.requestAndroid("android.permission.ACCESS_FINE_LOCATION");case 8:e.t0=e.sent;case 9:return n=e.t0,null===n||1===n?n=1:2===n?t.showModal({content:"系统定位已关闭",confirmText:"确定",showCancel:!1,success:function(t){}}):n.code?t.showModal({content:n.message}):t.showModal({content:"需要定位权限",confirmText:"设置",success:function(t){t.confirm&&permision.gotoAppSetting()}}),e.abrupt("return",n);case 12:case"end":return e.stop()}}),e)})))()}}};e.default=v}).call(this,n("543d")["default"])},bbdd:function(t,e,n){var r=function(){return this||"object"===typeof self&&self}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("96cf"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},c6cd:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.checkLogin=h,e.toLogin=void 0;var r=u(n("6b37")),i=u(n("0c53")),o=n("e1ea"),a=n("a1ea"),s=u(n("2f12"));function u(t){return t&&t.__esModule?t:{default:t}}function c(){var t=getCurrentPages(),e=t[t.length-1];return e.route}var l=(0,o.Debounce)(f,800);function f(e,n){r.default.commit("LOGOUT");var o=c();n||(n="/page/users/login/index"),i.default.set("login_back_url",o),s.default.getCode().then((function(t){s.default.silenceAuth(t).then((function(t){}))})).catch((function(e){t.hideLoading()}))}function h(){var e=i.default.get(a.LOGIN_STATUS),n=i.default.get(a.EXPIRES_TIME),o=Math.round(new Date/1e3);if(n="a"&&t<="z"||t>="A"&&t<="Z"})),this.data=e,this.floor=0,this.i=0,this.list=[],this.res=n,this.state=this.Space}return o(t,[{key:"parse",value:function(){for(var t;t=this.data[this.i];this.i++)this.state(t);return this.res}},{key:"Space",value:function(t){"."==t||"#"==t||this.isLetter(t)?(this.start=this.i,this.state=this.Name):"/"==t&&"*"==this.data[this.i+1]?this.Comment():s.blankChar[t]||";"==t||(this.state=this.Ignore)}},{key:"Comment",value:function(){this.i=this.data.indexOf("*/",this.i)+1,this.i||(this.i=this.data.length),this.state=this.Space}},{key:"Ignore",value:function(t){"{"==t?this.floor++:"}"!=t||--this.floor||(this.state=this.Space)}},{key:"Name",value:function(t){s.blankChar[t]?(this.list.push(this.section()),this.state=this.NameSpace):"{"==t?(this.list.push(this.section()),this.Content()):","==t?(this.list.push(this.section()),this.Comma()):!this.isLetter(t)&&(t<"0"||t>"9")&&"-"!=t&&"_"!=t&&(this.state=this.Ignore)}},{key:"NameSpace",value:function(t){"{"==t?this.Content():","==t?this.Comma():s.blankChar[t]||(this.state=this.Ignore)}},{key:"Comma",value:function(){while(s.blankChar[this.data[++this.i]]);"{"==this.data[this.i]?this.Content():(this.start=this.i--,this.state=this.Name)}},{key:"Content",value:function(){this.start=++this.i,-1==(this.i=this.data.indexOf("}",this.i))&&(this.i=this.data.length);for(var t,e=this.section(),n=0;t=this.list[n++];)this.res[t]?this.res[t]+=";"+e:this.res[t]=e;this.list=[],this.state=this.Space}}]),t}()},f875:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var n=setInterval((function(){e-=1,e<0&&clearInterval(n),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=r},fd65:function(t,e,n){ /*! * clipboard.js v2.0.6 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ (function(e,n){t.exports=n()})(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),c=u,l=n(1),f=n.n(l),h=n(2),d=n.n(h),p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=d()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function b(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e["default"]=_}])["default"]}))}}]);