GoodsSale.6a4be28a.js 223 KB

12345678910111213141516
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["GoodsSale"],{"0720":function(t,e,r){},"0ad3":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mRefund"},[r("m-header",{attrs:{backUrl:t.backUrlProtocol,name:"退费规则"}}),t.idss.length>0&&1==t.tenantId?r("div",{staticClass:"importTip"},[r("h3",{staticClass:"title"},[t._v("重要须知")]),t._l(t.idss,(function(e,n){return r("p",{key:e,domProps:{innerHTML:t._s(++n+"、"+t.importText[e])}})}))],2):t._e(),r("div",{staticClass:"course"},[r("h3",{staticClass:"title"},[t._v("您本次购买的产品及服务信息如下:")]),r("div",{staticClass:"service"},[r("van-row",{staticClass:"title"},[r("van-col",{attrs:{span:"9",offset:"1"}},[t._v("名称")]),r("van-col",{attrs:{span:"6",offset:"1"}},[t._v("类型")]),r("van-col",{attrs:{span:"6",offset:"1"}},[t._v("价格")])],1),t._l(t.buyList,(function(e,n){return r("van-row",{key:n,staticClass:"value"},[r("van-col",{attrs:{span:"9",offset:"1"}},[t._v(t._s(e.name))]),r("van-col",{attrs:{span:"6",offset:"1"}},[t._v(t._s(e.type))]),r("van-col",{staticStyle:{color:"#f85043"},attrs:{span:"6",offset:"1"}},[t._v("¥"+t._s(t.moneyFormat(e.price)))])],1)}))],2),r("div",{staticClass:"money"},[r("div",{staticClass:"service"},[r("van-row",{staticClass:"allMoney value"},[r("van-col",{attrs:{span:"9",offset:"1"}},[t._v("订单总金额")]),r("van-col",{attrs:{span:"6",offset:"1"}}),r("van-col",{staticStyle:{color:"#f85043"},attrs:{span:"6",offset:"1"}},[t._v("¥"+t._s(t.moneyFormat(t.allPrice)))])],1),t.balancePrice>0?r("van-row",{staticClass:"allMoney value"},[r("van-col",{attrs:{span:"9",offset:"1"}},[t._v("余额支付")]),r("van-col",{attrs:{span:"6",offset:"1"}}),r("van-col",{staticStyle:{color:"#f85043"},attrs:{span:"6",offset:"1"}},[t._v("¥"+t._s(-t.moneyFormat(t.balancePrice)))])],1):t._e()],1)])]),r("Mcoupon",{ref:"Mcoupon",staticClass:"Mcoupon",attrs:{useSystem:t.useSystem,showCoupon:t.showCoupon,showBalance:t.balance>0,balance:t.balance,payType:t.payType,buyList:t.buyList},on:{onClickCheckbox:t.onClickCheckbox,setCoupon:t.setCoupon}}),r("div",{staticClass:"buyWall"}),r("div",{staticClass:"buy"},[r("div",{staticClass:"price"},[r("p",{staticClass:"now_price"},[r("span",{staticClass:"text"},[t._v("仅需支付")]),r("span",{staticStyle:{"font-weight":"bold"}},[t._v("¥"+t._s(t._f("moneyFormat")(t.showPrice)))])])]),t.btnName?r("a",{staticClass:"btn-submit",on:{click:t.onPopupSure}},[t._v(t._s(t.btnName))]):r("a",{staticClass:"btn-submit",on:{click:t.onPopupSure}},[t._v(t._s(t.orderNo?"支付":"购买"))])])],1)},o=[],i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.showCoupon||t.showBalance?r("div",{staticClass:"pay-wrap"},[r("van-cell-group",{staticClass:"pay-section"},[t.showCoupon?r("van-cell",{attrs:{title:"优惠券","is-link":""},on:{click:function(e){t.couponShow=!0}},scopedSlots:t._u([{key:"title",fn:function(){return[r("span",{staticClass:"coupon-title"},[t._v("优惠券")])]},proxy:!0},{key:"default",fn:function(){return[0==t.checkCouponList.length?r("div",[t._v(t._s(t.coupon))]):r("div",[r("span",{staticStyle:{color:"#ff4444"}},[t._v("- ¥ "+t._s(t._f("moneyFormat")(t.faceValue))+"元")])])]},proxy:!0}],null,!1,3908080573)}):t._e(),t.showBalance?r("van-cell",{attrs:{disabled:!1,border:!1,title:"余额支付","title-class":"pay-name","value-class":"pay-value",center:!0},on:{click:t.onClickCheckbox}},[r("template",{slot:"icon"},[r("img",{staticClass:"logo",attrs:{src:t.iconSrcUrl,alt:""}})]),r("template",{slot:"title"},[t._v("\n 余额(剩余:¥"+t._s(t._f("moneyFormat")(t.balance))+")\n ")]),r("template",{slot:"default"},[r("van-checkbox",{attrs:{"checked-color":"#2dc7aa"},scopedSlots:t._u([t.activeIcon&&t.inactiveIcon?{key:"icon",fn:function(e){return[r("img",{staticClass:"checkbox_img",attrs:{src:e.checked?t.activeIcon:t.inactiveIcon}})]}}:null],null,!0),model:{value:t.payType,callback:function(e){t.payType=e},expression:"payType"}})],1)],2):t._e()],1),r("van-popup",{style:{height:"350px"},attrs:{position:"bottom","close-on-click-overlay":!0,round:"","lazy-render":!1,"get-container":".pay-wrap"},model:{value:t.couponShow,callback:function(e){t.couponShow=e},expression:"couponShow"}},[r("div",{staticClass:"couponList"},[r("h3",{staticClass:"title"},[t._v("选择优惠券")]),r("list",{ref:"list",staticClass:"list",attrs:{status:0,isEdit:!0,buyList:t.buyList,useSystem:t.useSystem,all:!0,studentId:t.studentIds},on:{resetTitle:t.resetTitle}}),r("div",{staticStyle:{padding:"0.25rem 0.26rem 0.05rem"}},[r("van-button",{attrs:{type:"info",block:"",size:"large",round:""},on:{click:t.sumitCoupon}},[t._v("确认")])],1)],1)])],1):t._e()},a=[],s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:{list:t.dataShow&&!t.loading}},[t.dataShow?[t.dataShow?r("van-list",{key:"data",attrs:{finished:t.finished,"immediate-check":!1,"finished-text":"- 没有更多优惠券 -"},on:{load:t.FetchList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[r("van-checkbox-group",{attrs:{"checked-color":"#ff6464"},on:{change:t.changeAll},model:{value:t.checkCouponList,callback:function(e){t.checkCouponList=e},expression:"checkCouponList"}},t._l(t.dataList,(function(e){return r("coupon-item",{key:e.code,attrs:{detail:e,isDisabled:e.disabled,isEdit:t.isEdit}})})),1)],1):t._e()]:t._e(),t.dataShow?t._e():r("m-empty",{key:"teacher",attrs:{msg:"暂无优惠券"}})],2)},c=[],u=r("d678"),l=r("0902"),h=r("4fdb"),f=r("5a0c"),p=r.n(f);var d=function(t,e){var r=p()().valueOf(),n=p()(t).valueOf(),o=p()(e).valueOf();return r>=n&&r<=o};function y(t){return y="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},y(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */b=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(E){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=c;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(A([])));v&&v!==e&&r.call(v,o)&&(d=v);var m=p.prototype=h.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==y(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function C(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=p,s(m,"constructor",p),s(p,"constructor",f),f.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function w(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){w(i,n,o,a,s,"next",t)}function s(t){w(i,n,o,a,s,"throw",t)}a(void 0)}))}}var S=["OTHER","MUSICAL","ACCESSORIES","MAINTENANCE","TEACHING","PRACTICE","SINGLE","MIX","VIP","MEMBER","FULLCOUPON"],C={props:["status","isEdit","allMoney","all","buyList","useSystem"],components:{MEmpty:u["a"],"coupon-item":l["a"]},data:function(){return{couponType:S,loading:!1,finished:!1,dataShow:!0,dataList:[],params:{page:1,useSystem:this.useSystem||"",usageStatus:this.status,rows:this.all?9999:10},checkCouponList:[],faceValue:0}},mounted:function(){this.FetchList()},methods:{FetchList:function(){var t=x(b().mark((function t(e){var r,n,o=this;return b().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e&&(this.dataList=[],this.params.page=e),t.prev=1,this.loading=!0,this.params.userId=this.$route.query.studentId,t.next=6,Object(h["b"])(this.params);case 6:if(r=t.sent,n=r.data,!(this.dataList.length>0&&1==n.pageNo)){t.next=10;break}return t.abrupt("return");case 10:this.dataList=this.dataList.concat(n.rows),this.params.page>=n.totalPage&&(this.finished=!0),this.params.page++,this.dataList.length<=0?this.dataShow=!1:this.dataShow=!0,t.next=20;break;case 16:t.prev=16,t.t0=t["catch"](1),this.dataShow=!1,this.finished=!0;case 20:this.loading=!1,this.$nextTick((function(){o.setTitle(o.allMoney)})),this.$nextTick((function(){o.setTitle(o.allMoney)}));case 23:case"end":return t.stop()}}),t,this,[[1,16]])})));function e(e){return t.apply(this,arguments)}return e}(),changeAll:function(t){this.setListDisabled(t)},setListDisabled:function(t){var e={},r={},n={},o=[];this.buyList.forEach((function(t){e[t.couponType]||o.includes(t.couponType)?e[t.couponType]+=Number(t.price):(e[t.couponType]=Number(t.price),r[t.couponType]=0,n[t.couponType]=0,o.push(t.couponType))}));var i=v({},e);this.nowMoney=0,this.faceValue=0,this.payMoney=1*this.allMoney,this.dataList.forEach((function(a){if(-1!=t.indexOf(a.couponCodeId))if("FULLCOUPON"!=a.typeDetail)r[a.typeDetail]+=a.fullAmount,n[a.typeDetail]+=a.faceValue,i[a.typeDetail]=e[a.typeDetail]-n[a.typeDetail];else{var s=0;for(var c in o)s+=e[o[c]];for(var u in o){var l=Number(e[o[u]]/s);n[o[u]]=Number(n[o[u]]+l*Number(a.faceValue)),i[o[u]]=Number(e[o[u]]-n[o[u]]),r[o[u]]=Number(r[o[u]]+l*Number(a.fullAmount))}}}));var a=0,s=0,c=0,u=0,l=!1;for(var h in o)a+=i[o[h]],s+=e[o[h]],c+=n[o[h]],u+=r[o[h]];return console.log("allNowMoney:",a,"allShopMoney:",s,"allfaceValue:",c,"allFullMoney",u),this.faceValue=c,this.dataList.forEach((function(t){"FULLCOUPON"!=t.typeDetail&&e[t.typeDetail]&&t.fullAmount<=e[t.typeDetail]-r[t.typeDetail]&&d(t.useStartDate,t.useDeadlineDate)||"FULLCOUPON"==t.typeDetail&&d(t.useStartDate,t.useDeadlineDate)&&t.fullAmount<=s-u?(t.disabled=!1,l=!0):t.disabled=!0})),this.dataList.forEach((function(e){-1!=t.indexOf(e.couponCodeId)&&(l=!0,e.disabled=!1)})),this.dataList.sort((function(t,e){return t.disabled-e.disabled})),this.$forceUpdate(),l},setTitle:function(t){var e=!1;this.isEdit?(e=this.setListDisabled([]),console.log("调用list,setTitle")):this.dataList=this.dataList.map((function(t){return t.disabled=!0,t})),e?this.$emit("resetTitle","有可用优惠券"):this.$emit("resetTitle","暂无优惠券可用")}},watch:{allMoney:function(t){this.setTitle([])}}},k=C,L=(r("5d8f"),r("2877")),A=Object(L["a"])(k,s,c,!1,null,"6b1a781c",null),P=A.exports;function E(t){return I(t)||T(t)||_(t)||O()}function O(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(t,e){if(t){if("string"===typeof t)return N(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(t,e):void 0}}function T(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function I(t){if(Array.isArray(t))return N(t)}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var j={components:{list:P},props:["showBalance","showCoupon","balance","payType","useSystem","buyList","studentId","iconSrc","activeIcon","inactiveIcon"],data:function(){return{couponShow:!1,coupon:"",checkCouponList:[],faceValue:0,dataList:[]}},mounted:function(){this.getCouponList()},methods:{getCouponList:function(t){this.$refs.list&&(this.resetCoupon(),this.$refs.list.FetchList(t))},onClickCheckbox:function(){this.$emit("onClickCheckbox")},resetTitle:function(t){this.coupon=t},sumitCoupon:function(t){this.checkCouponList=this.$refs.list.checkCouponList,this.faceValue=this.$refs.list.faceValue,this.$emit("setCoupon",{couponList:E(this.checkCouponList),valuePirce:this.faceValue,dataList:this.$refs.list.dataList}),this.couponShow=!1},closeCoupon:function(t){console.log(t)},resetCoupon:function(){this.checkCouponList=[],this.$refs.list.checkCouponList=[],this.$refs.list.faceValue=0,this.faceValue=0}},computed:{studentIds:function(){return this.studentId},iconSrcUrl:function(){return this.iconSrc?this.iconSrc:r("0d11")}}},B=j,M=(r("3d13"),Object(L["a"])(B,i,a,!1,null,"907e5ffe",null)),D=M.exports,R=r("71c2"),G=r("325c"),F=r("6612"),U=r.n(F),Y={name:"mRefund",components:{MHeader:R["a"],Mcoupon:D},props:{ids:{type:Array,default:function(){return[1,2,3,4,5,6]}},buyList:{type:Array},disCountList:{type:Array},useSystem:{type:String,default:"MEC"},showCoupon:{type:Boolean,default:!0},moneyList:{type:Array,default:function(){return[]}},orderNo:{type:Number||String,default:function(){return 0}},balance:[Number,String],btnName:{type:Boolean||String,default:function(){return!1}}},data:function(){var t=this;return{headerStatus:!1,importText:{1:"乐器、教辅、配件等,未经签收,自购买缴款之日起15日内可申请退款,超过上述期限则不予受理退费申请;非因商品本身存在质量问题,一经签收,无论使用与否,均不予退费;",2:"乐保服务,在维修老师下校检查前可申请退款,下校检查日过后则不予退费;",3:"AMR器乐练习系统服务,自购买缴款之日起15日内可申请退款,超过上述期限或实际已提供相应服务则一律不予受理退费;",4:"正价购买的个别课程,包括但不限于VIP课程项下一对一、网管课等,课程有效期内可申请退费,可退款金额为:购买金额-课时原价*已消耗课时数量;",5:"活动期间以优惠价格购买的个别课程,自购买缴款之日起15日内可申请退款,超过上述期限或实际已发生课时消耗的则一律不予受理退费;",6:"所有退款均按照退款金额的千分之五收取手续费;"},backUrlProtocol:{callBack:function(){t.callBack()}},payType:!1,payCountMoney:0,valuePirce:0,couponIdList:[],tenantId:null}},mounted:function(){Object(G["a"])().android||Object(G["a"])().iPhone||(this.headerStatus=!0),-1==this.ids.indexOf(6)&&this.ids.push(6),this.tenantId=sessionStorage.getItem("tenantId")},methods:{onPopupSure:function(){var t={pageShowPrice:this.pageShowPrice,amount:this.needPrice,payType:this.payType,couponIdList:this.couponIdList};this.$emit("onPopupSure",t)},callBack:function(){this.$emit("onClose")},moneyFormat:function(t){return U()(t).format("0.00")},setCoupon:function(t){this.$emit("setCoupon",t),this.valuePirce=t.valuePirce,this.couponIdList=t.couponList},onClickCheckbox:function(){this.payType=!this.payType}},computed:{allPrice:function(){var t=0;return this.buyList.forEach((function(e){t+=Number(e.price)})),t},disCountPrice:function(){var t=0;return this.disCountList.forEach((function(e){t+=Number(e.price)})),t},idss:function(){return-1==this.ids.indexOf(6)&&this.ids.push(6),this.ids},needPrice:function(){return Number((this.allPrice-this.valuePirce).toFixed(2))},balancePrice:function(){var t=0;return this.payType&&(t=this.allPrice-this.valuePirce>=this.balance?this.balance:Number(this.allPrice-this.valuePirce)),Number(t)},pageShowPrice:function(){var t=0;return t=this.payType?this.allPrice-this.valuePirce>=this.balance?Number((this.allPrice-this.valuePirce-this.balance).toFixed(2)):0:this.allPrice-this.valuePirce,Number(t)},showPrice:function(){var t=0;return t=this.payType?this.allPrice-this.valuePirce>=this.balance?Number((this.allPrice-this.valuePirce-this.balance).toFixed(2)):0:this.allPrice-this.valuePirce,Number(t).toFixed(2)}}},H=Y,z=(r("7004"),Object(L["a"])(H,n,o,!1,null,"7e4fd9a4",null));e["a"]=z.exports},"0d11":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAGZUlEQVRoQ9WZfYxcZRXGf+cOs/0ESmM1CpSCpoKmNFT5Q/CDjUACpd2ZJbOgbbozWyqGRLBVI0qoW0SDVQvWENO0zAeRP9rFmbsrtVpRCWgsARVNA1o/aNHgR4tgy6rZ3bmPubc76852pnPvzGxJz1+7c895nvPc9z3v+573Gqe52WmeP20TkHpQc0dmcSWwBGOxwZuBM30CwTHgCMYBif0jcX66Z7UdbcfLa0nA1dt09lkzSXkeqyBIPh4qKTGGwz4Tj4x0sHP3Kns1VFwNp6YEXJfVgpkxNsjjNuCsZsn9OMGwwbY4fHUgY3+LihVNQL+cxCJulfiSwTlRyRr4H5Xo75jL1oEeK4fFDi1g5Xa9xYnzbcTVYcGb8jOeckb5aHGd/SVMfCgBKwu61PHYA7wtDGgbfA47sLyYsWcaYTUUkCzoffL4HjCvEVhbn4vXDbpKffbjk+GeVMCNeb27LJ4E5rc1ufBgxzA63bT9ol5IXQHLH9E58RF+BVwQnm9aPP/qjXHZ0Dr7ey30ugISOblA17SkFBXUeNzt5VrMNDW0poBEXj2InVF5ptPfYG0pY9mGAlK7NGtsmN8Lzg2TkBzucuAnwabk8Wmgu0HcyzqDlOMhiXchdoTiEUc6RnnHwK32r8n+J4xAMq/bJb4RBjTwMfa/dpDLnui3sUROixC/xZhRL95xWFfstSDpZF57Ja4JyyW4azBjX64roL9fznOLeBGxMCzouN/tbsa+6f+dyOnrwIY68c/H53Cpv9N2F5T0PIoReQ7H53DeQI+NVOKqRiCZ0zWCvRFBffd/msPiUq+9ktqh+aMx/lhr33CMrmLahq7KaeY843nEhVG55NA92Gul2gLyykpkooKOT6VvuWnzD3cksvocRtVQA0+5Gfug/7wrq41mbGqKBwbcjPXUFJDI61AT06eCVfYclg312m9WbNPs2Az+gHjr+EOZx5WltfbzGwpaeIbHC8DsJgW84qZZUFlSJ6ZQUIDwYpOglbAn3Ix1+v90F3Sb5/FgUOdGqZS2YHVK5LQLSLXCYzGWlNbY/uNryLh1PazrrczuVoD9WMchVey1R1O71DE6zAHgfCuztHSL7V9ZUKcjfoRa6wQlbh7ss2CfmjwCnwTub1UAcCj+KpcMbLD/JPL6GPBhN203pXYpNjocHE2WtMwh7nb77N4qAcm8NklsbBnc39DEFwb77J7rtmrGzHlcVFpjLyRy+gSwtR34wBY3Y5+qnkJZbTFjfZMEnbEOXqrESowUV1c3JN07dIHFmDVR8XAxMLEcRuEVbB/MmD+6k2ogp80Gn4kCVPGNdfD276yyP0WJTT6kpXJ4LkrMhK8xsWRProG7gXuaAoQfAMNVscbTbto2BytPQavxSE7BPtuvj6b4jM1u2j5bNQLdBd3ieWxvCrB2UNHN2I3+o2RO9wkCwjbZejdjD0ydQh8wgu6rXTZ9Ahyud3vN79GrllG/5z0CxKIqMOMOxD8mx5nx52LafhaMwENaisMlk5/LWIj4SlQuDHllzhtaay9XCQjmal7PIN4bFfSUFrH4ndtn/goWWNVpNJGTX8R+MUe1TTjB6E2YlTlY6rPH/B+6srrCYiyreg7nyuPOqERm3F9K28Rxvfo4XdBi+Q1Ji1v9+Kt5zE3bimAKtbGIHfGeYp/9suYIBNMoJ789vCrqmznB32i/AONZN22XTxnJauoWmppqoGkQII/uwbX/b2ZOqIFKBom8HkdNbjIVELFnnh1v8F8T92IEZ5dmTbBvMM0VU69Wal6rrMjp4hj8GuholrDNcX6zdPlQr/mn2Sqre7GVzGu9xJY2J9Is3EY3Y1+sFXzSu9FEXo8iguPAG2VmfL90kOX0mxdZQGqLZo3OZy/i/W+IAOPZ+Gw6B3rs9Xr8Da/X/e9gczsYBD50ikU8bQ7L/auak/E2FOAHj9/jZBEfOUUi3H/HWL13jVUf0WuQhxJQiUvm9HEPvmYwZzqECP7riM+X+ix0bx5JgJ+0f68TFw9IJKaepVoRZcZuwR1u2vxbvdAWWUAFuTurZTLu1PFvCE3tFxJjfuJluO+7GdsXOutJjk0LqGCs2KY3OR30GFw7XuiNvqUdxXjSPH5YLrOz3peXsGJaFlBFJNkND3N+3OOdXowFMXGmPAzjmOAw4oB7iJfqrelhk57s114BzWTQYsxpL+B/iPI+T/N6qLsAAAAASUVORK5CYII="},"19db":function(t,e,r){},"2cac":function(t,e,r){},"320c":function(t,e,r){"use strict";
  2. /*
  3. object-assign
  4. (c) Sindre Sorhus
  5. @license MIT
  6. */var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function s(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}t.exports=s()?Object.assign:function(t,e){for(var r,s,c=a(t),u=1;u<arguments.length;u++){for(var l in r=Object(arguments[u]),r)o.call(r,l)&&(c[l]=r[l]);if(n){s=n(r);for(var h=0;h<s.length;h++)i.call(r,s[h])&&(c[s[h]]=r[s[h]])}}return c}},"325c":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return i}));r("5a0c");function n(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1==t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/Mac OS X/),android:t.indexOf("DAYAAPPA")>-1||t.indexOf("Adr")>-1,iPhone:t.indexOf("DAYAAPPI")>-1,isApp:t.indexOf("DAYAAPPI")>-1||t.indexOf("DAYAAPPA")>-1||t.indexOf("Adr")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1==t.indexOf("Safari"),weixin:t.indexOf("MicroMessenger")>-1,huawei:!!t.match(/huawei/i)||!!t.match(/honor/i),xiaomi:!!t.match(/mi\s/i)||!!t.match(/redmi/i)||!!t.match(/mix/i)}}function o(t,e){"string"==typeof t&&(t=t.replace(/-/gi,"/"));var r=new Date(t),n=r.getFullYear()>=10?r.getFullYear():"0"+r.getFullYear(),o=r.getMonth()+1>=10?r.getMonth()+1:"0"+(r.getMonth()+1),i=r.getDate()>=10?r.getDate():"0"+r.getDate();return"ios"==e?n+"/"+o+"/"+i:n+"-"+o+"-"+i}function i(){var t=window.location.href,e="";return e=/test/.test(t)?"http://mstutest.dayaedu.com":/dev/.test(t)?"http://mstudev.dayaedu.com":/online/.test(t)?"https://mstuonline.dayaedu.com":"http://mstutest.dayaedu.com",e}},"3d13":function(t,e,r){"use strict";r("5343")},"3d65":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"goodsOrder"},[r("div",{ref:"goodsOrder"},[r("m-header"),r("van-cell-group",[r("van-field",{attrs:{readonly:"",clickable:"",label:"订单类型",value:t.orderText,"input-align":"right",placeholder:"选择类型"},on:{click:function(e){t.showPicker=!0}}}),r("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[r("van-picker",{attrs:{"show-toolbar":"",columns:t.columns},on:{cancel:function(e){t.showPicker=!1},confirm:t.onConfirm}})],1),r("van-field",{attrs:{readonly:!0,label:"学生姓名",placeholder:"请输入学生姓名","input-align":"right"},model:{value:t.studentName,callback:function(e){t.studentName=e},expression:"studentName"}}),r("van-field",{attrs:{label:"选择商品",readonly:!0,"is-link":"",placeholder:"选择商品","input-align":"right"},on:{click:function(){t.goodsStatus=!0,t.hashState("goods")}}}),t._l(t.goodsList,(function(e,n){return r("van-cell",{key:n,staticClass:"input-cell",attrs:{center:!0}},[r("template",{slot:"icon"},[r("van-image",{staticClass:"logo",attrs:{src:e.image},scopedSlots:t._u([{key:"loading",fn:function(){return[r("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}],null,!0)})],1),r("template",{slot:"title"},[r("div",[t._v(t._s(e.goodsName))]),r("div",{staticClass:"price-section detail"},[r("span",{staticClass:"money"},[r("i",[t._v("现价:¥")]),t._v(t._s(t._f("moneyFormat")(e.discountPrice)))]),r("p",{staticClass:"groupPrice"},[r("span",{staticClass:"groupTitle"},[t._v("团购价:")]),r("span",{staticClass:"groupMoney"},[t._v("¥"+t._s(t._f("moneyFormat")(e.groupPurchasePrice)))])])]),r("div",{staticStyle:{position:"absolute",right:"0.16rem",bottom:"0.1rem"}},[r("van-stepper",{attrs:{"disable-input":!0,"button-size":"22"},on:{change:t.calcPrice},model:{value:e.goodsNum,callback:function(r){t.$set(e,"goodsNum",r)},expression:"item.goodsNum"}})],1),r("van-icon",{staticClass:"icon_close",attrs:{name:"cross"},on:{click:function(r){return t.onGoodDel(t.goodsList,e)}}})],1)],2)}))],2),r("van-cell-group",{staticClass:"pay-section"},[r("van-cell",{attrs:{disabled:!1,title:"总价格","title-class":"pay-name","value-class":"pay-value",center:!0},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(" ¥"+t._s(t._f("moneyFormat")(t.payCountMoney))+" ")]},proxy:!0}])}),r("van-field",{ref:"marketInput",attrs:{label:"减免金额",type:"number",placeholder:"请输入减免金额","input-align":"right"},on:{input:t.setNoMore},model:{value:t.marketAmount,callback:function(e){t.marketAmount=e},expression:"marketAmount"}})],1),r("protocol",{staticStyle:{"padding-top":"0.08rem"},attrs:{userId:t.studentId.toString()},model:{value:t.agreeStatus,callback:function(e){t.agreeStatus=e},expression:"agreeStatus"}}),r("div",{staticClass:"button-group"},[r("van-button",{staticClass:"btn-sure",attrs:{type:"primary",round:"",size:"large"},on:{click:function(e){return t.onRefundSure(t.obj)}}},[t._v("确认")])],1)],1),r("van-popup",{staticClass:"popup-qrcode",attrs:{closeable:"","close-icon":"cross"},on:{close:t.onClose},model:{value:t.qrCodeStatus,callback:function(e){t.qrCodeStatus=e},expression:"qrCodeStatus"}},[r("div",{attrs:{id:"qrcode"}},[r("vue-qr",{attrs:{logoSrc:t.config.imagePath,text:t.config.value,margin:10,size:220}})],1),r("a",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"download",attrs:{id:"tt",href:t.downloadUrl,download:t.downloadfilename}}),t.headerStatus?t._e():r("van-button",{attrs:{color:"#01C1B5",disabled:t.downloadStatus,type:"primary",round:""},on:{click:t.createPoster}},[t._v("下载二维码")])],1),r("van-popup",{style:{height:"100%",borderRadius:"0",overflowY:"auto"},attrs:{"lock-scroll":!0,position:"bottom"},model:{value:t.goodsStatus,callback:function(e){t.goodsStatus=e},expression:"goodsStatus"}},[r("van-sticky",{attrs:{"offset-top":"0"}},[r("m-header",{attrs:{backUrl:t.backUrl2,name:"商品列表",isFixed:!1}}),r("search",{attrs:{placeholder:"请输入商品名称"},on:{onSearch:t.onSearch}}),r("van-dropdown-menu",{attrs:{"active-color":"#01C1B5"}},[r("van-dropdown-item",{attrs:{title:t.valueText1,options:t.option1},on:{change:t.onOptionChange},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),r("van-dropdown-item",{attrs:{title:t.valueText2,options:t.option2},on:{change:t.onOptionChange},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1)],1),r("div",[t.dataShow?r("van-list",{key:"data",staticClass:"studentContainer",attrs:{finished:t.finished,"finished-text":""},on:{load:t.getGoodsList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[r("van-cell-group",t._l(t.dataList,(function(e,n){return r("van-cell",{key:n,staticClass:"input-cell",attrs:{center:!0},on:{click:function(r){return t.onChoiceGood(e)}}},[r("template",{slot:"icon"},[r("van-image",{staticClass:"logo",attrs:{src:e.image},scopedSlots:t._u([{key:"loading",fn:function(){return[r("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}],null,!0)})],1),r("template",{slot:"title"},[r("div",[t._v(t._s(e.name))]),r("van-tag",{staticStyle:{margin:"0.04rem 0"},attrs:{plain:"",color:"#C2A076"}},[t._v("品牌:"+t._s(e.brand))]),r("div",{staticClass:"price-section"},[r("span",{staticClass:"money"},[r("i",[t._v("现价:¥")]),t._v(t._s(t._f("moneyFormat")(e.discountPrice)))]),r("p",{staticClass:"groupPrice"},[r("span",{staticClass:"groupTitle"},[t._v("团购价:")]),r("span",{staticClass:"groupMoney"},[t._v("¥"+t._s(t._f("moneyFormat")(e.groupPurchasePrice)))])])]),r("div",{staticClass:"price-section"},[r("del",[t._v("原价:¥"+t._s(t._f("moneyFormat")(e.marketPrice)))])])],1)],2)})),1)],1):r("m-empty",{staticClass:"empty"})],1)],1),r("van-popup",{attrs:{id:"protocolPopup",position:"bottom"},model:{value:t.popupStatus,callback:function(e){t.popupStatus=e},expression:"popupStatus"}},[r("m-protocol",{attrs:{protocolHTML:t.protocolHTML},on:{onClose:function(e){t.popupStatus=!t.popupStatus},onPopupSure:function(e){t.popupStatus=!t.popupStatus}}})],1),t.refundStatus?r("van-popup",{attrs:{position:"bottom"},model:{value:t.refundStatus,callback:function(e){t.refundStatus=e},expression:"refundStatus"}},[r("m-refund",{attrs:{ids:[1,2],buyList:t.buyList,balance:1==this.orderType?t.balance:0},on:{onClose:function(e){t.refundStatus=!t.refundStatus},onPopupSure:t.onRefundSure}})],1):t._e(),r("m-payment",{attrs:{closeStatus:t.isStatus,amount:t.payMoney,payment:t.payment},on:{onChangeStatus:t.onChangeStatus}})],1)},o=[],i=r("71c2"),a=r("d655"),s=r("6320"),c=r("0ad3"),u=r("d678"),l=r("c106"),h=r("72bf"),f=r.n(h),p=r("b092"),d=r("325c"),y=r("485a"),g=r("658f"),v=r.n(g);function m(t){return m="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},m(t)}function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */b=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(E){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=c;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(A([])));g&&g!==e&&r.call(g,o)&&(d=g);var v=p.prototype=h.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==m(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function C(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=p,s(v,"constructor",p),s(p,"constructor",f),f.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},w(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(v),s(v,a,"Generator"),s(v,o,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function w(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){w(i,n,o,a,s,"next",t)}function s(t){w(i,n,o,a,s,"throw",t)}a(void 0)}))}}var S={name:"teacherList",components:{MHeader:i["a"],VueQr:v.a,MPayment:a["a"],MEmpty:u["a"],Protocol:s["a"],MRefund:c["a"],Search:l["a"]},data:function(){var t=this,e=this.$route.query;return{value1:"all",valueText1:"类型: 全部",option1:[{text:"全部",value:"all"},{text:"乐器",value:"INSTRUMENT"},{text:"辅件",value:"ACCESSORIES"},{text:"教材",value:"TEACHING"},{text:"教谱",value:"STAFF"}],couponObj:{INSTRUMENT:"MUSICAL",ACCESSORIES:"ACCESSORIES",TEACHING:"TEACHING",STAFF:"OTHER"},value2:"all",valueText2:"商品: 全部",search:null,option2:[],goodsStatus:!1,dataList:[],radio:"1",studentId:e.studentId,organId:e.organId,studentName:e.studentName,goodsList:[],marketAmount:null,tempForm:{},payType:!1,balance:0,isClick:!1,downloadStatus:!0,qrCodeStatus:!1,downloadUrl:null,downloadfilename:null,sGoodsOrderId:null,config:{value:null,imagePath:r("c251")},headerStatus:!0,isStatus:!1,payment:{},payMoney:0,payCountAmount:0,loading:!1,finished:!1,params:{status:1,page:1,rows:20},dataShow:!0,clickStatus:!1,choiceGood:null,backUrl2:{callBack:function(){t.goodsStatus=!1}},refundStatus:!1,refundSure:!1,buyList:[],disCountList:[],moneyList:[],payCountMoney:0,protocolHTML:null,agreeStatus:!1,popupStatus:!1,couponShow:!1,couponList:[],valuePirce:0,dataLists:[],countMoney:0,groupPrice:0,obj:null,showPicker:!1,columns:["老师代买","创建订单"],orderType:null,orderText:null}},mounted:function(){(Object(d["a"])().android||Object(d["a"])().iPhone)&&(this.headerStatus=!1),this.__init(),window.addEventListener("hashchange",this.onHash,!1)},methods:{onHash:function(){this.refundStatus=!1,this.goodsStatus=!1},hashState:function(t){var e="goods"===t?this.goodsStatus:this.refundStatus;if(e){this.isDestroy=!1;var r=window.location.hash.slice(1).split("?"),n=f.a.parse(r[1]),o=0;for(var i in n)o++;var a=window.location.href,s=o>0?"&cPop="+ +new Date:"?cPop="+ +new Date;history.pushState("","","".concat(a).concat(s))}else{var c=window.location.hash.slice(1).split("?"),u=f.a.parse(c[1]);u.cPop&&window.history.go(-1)}},onConfirm:function(t,e){this.orderText=t,this.orderType=0==e?1:1==e?2:null,this.showPicker=!1},onRefundSure:function(t){t?(this.refundStatus=!1,this.refundSure=!0,this.obj=t,1==this.orderType?this.onCheckSubmit():this.onCreateCode()):1==this.orderType?this.onCheckSubmit():this.onCreateCode()},onOptionChange:function(){var t=this;this.option1.forEach((function(e){e.value==t.value1&&(t.valueText1="all"==e.value?"类型: 全部":e.text)})),this.option2.forEach((function(e){e.value==t.value2&&(t.valueText2="all"==e.value?"商品: 全部":e.text)})),this.params.page=1,this.dataList=[],this.dataShow=!0,this.loading=!0,this.finished=!1,this.getGoodsList()},onChoiceGood:function(t){var e=this.goodsList,r=!1;e.forEach((function(e){e.goodsId==t.id&&(r=!0,++e.goodsNum)})),r||e.push({goodsNum:1,goodsId:t.id,image:t.image,goodsName:t.name,marketPrice:t.marketPrice,discountPrice:t.discountPrice,complementGoodsIdList:t.complementGoodsIdList,groupPurchasePrice:t.groupPurchasePrice,type:t.type}),this.goodsStatus=!1,this.calcPrice(),this.hashState("goods")},onGoodDel:function(t,e){var r=this;this.$dialog.confirm({title:"提示",message:"是否删除该商品",confirmButtonColor:"#01C1B5"}).then((function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1),r.calcPrice()}))},onSearch:function(t){this.search=t,this.params.page=1,this.dataList=[],this.loading=!0,this.finished=!1,this.dataShow=!0,this.getGoodsList()},getGoodsList:function(){var t=x(b().mark((function t(){var e,r=this;return b().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.params,e.type="all"==this.value1?null:this.value1,e.goodsCategoryId="all"==this.value2?null:this.value2,e.search=this.search?this.search:null,t.next=6,Object(p["h"])(e).then((function(t){var n=t.data;r.loading=!1,200==n.code?(e.page=n.data.pageNo,r.dataList=r.dataList.concat(n.data.rows),e.page>=n.data.totalPage&&(r.finished=!0),r.params.page++):r.finished=!0,r.dataList.length<=0&&(r.dataShow=!1)}));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),__init:function(){var t=x(b().mark((function t(){var e=this;return b().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(p["e"])({id:this.studentId}).then((function(t){e.balance=t.data.balance||0}));case 3:return t.next=5,Object(p["g"])({delFlag:0,rows:9999}).then((function(t){var r=t.data,n=[{text:"全部",value:"all"}];r.rows.forEach((function(t){n.push({text:t.name,value:t.id})})),e.option2=n}));case 5:t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),onCreateCode:function(){var t=x(b().mark((function t(){var e,r,n,o=this;return b().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.onCheckFiled()){t.next=2;break}return t.abrupt("return");case 2:if(this.refundSure||!(this.payCountMoney-this.marketAmount>0)){t.next=6;break}return this.refundStatus=!0,this.hashState(),t.abrupt("return");case 6:if(e={studentId:this.studentId,goodsList:JSON.stringify(this.goodsList),marketAmount:this.marketAmount?this.marketAmount:0,couponIdList:this.obj.couponIdList},r=!1,n=this.tempForm,e.studentId==n.studentId&&e.goodsList==n.goodsList&&e.marketAmount==n.marketAmount&&JSON.stringify(e.couponList)==JSON.stringify(n.couponList)&&(r=!0),!this.sGoodsOrderId||!r){t.next=14;break}this.onPosterCode(this.sGoodsOrderId),t.next=19;break;case 14:return e.type=1,this.tempForm=e,Object(y["a"])(!0),t.next=19,Object(p["a"])({userId:this.studentId,goodsSellDtos:this.goodsList,marketAmount:this.marketAmount?this.marketAmount:0,type:1,couponIdList:this.obj?this.obj.couponIdList:[]}).then((function(t){Object(y["a"])(!1);var e=t.data;200==e.code?(o.sGoodsOrderId=e.data.id,o.onPosterCode(e.data.id)):o.$toast(t.msg)})).catch((function(){Object(y["a"])(!1)}));case 19:setTimeout((function(){o.isClick=!1}),500);case 20:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onPosterCode:function(t){this.$refs.goodsOrder.style.filter="blur(3px)",this.qrCodeStatus=!0;var e=Object(d["c"])()+"/#/goodsOrderBuy?id="+t+"&studentId="+this.studentId;this.config.value=e,this.downloadStatus=!1},createPoster:function(){var t=this,e=document.querySelector("#qrcode img");this.downloadUrl=e.src,this.downloadfilename="qrCode.png",this.$toast.loading({duration:0,forbidClick:!0,message:"下载中..."}),Object(d["a"])().android?setTimeout((function(){t.$toast.clear(),t.$refs.download.click()}),2e3):Object(d["a"])().iPhone&&setTimeout((function(){t.$toast.clear(),window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"downLoadImg",content:{downloadUrl:e.src}}))}),2e3)},onClose:function(){this.$refs.goodsOrder.style.filter="blur(0px)"},onChangeStatus:function(){var t=x(b().mark((function t(e){var r=this;return b().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.isStatus=e,t.next=4,Object(p["e"])({id:this.studentId}).then((function(t){r.balance=t.data.balance||0}));case 4:this.payType=!1,this.calcPrice(),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(e){return t.apply(this,arguments)}return e}(),onCheckSubmit:function(){var t=x(b().mark((function t(){var e,r=this;return b().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.onCheckFiled()){t.next=2;break}return t.abrupt("return");case 2:if(this.refundSure||!(this.payCountMoney-this.marketAmount>0)){t.next=6;break}return this.refundStatus=!0,this.hashState(),t.abrupt("return");case 6:return e=this.goodsList,Object(y["a"])(!0),t.next=10,Object(p["a"])({userId:this.studentId,goodsSellDtos:e,marketAmount:this.marketAmount?this.marketAmount:0,isUseBalancePayment:!!this.obj&&this.obj.payType,couponIdList:this.obj?this.obj.couponIdList:[]}).then((function(t){Object(y["a"])(!1);var e=t.data;200==e.code?(r.result=e.data,r.onSubmit()):201==e.code?(r.$toast(e.msg),r.$router.push({path:"/paymentResult",query:{type:"on",isBack:"off",groupType:"GOODS_SELL"}})):r.$toast(e.msg)})).catch((function(){Object(y["a"])(!1)}));case 10:this.refundSure=!1;case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onCheckFiled:function(){if(!this.orderType)return this.$toast("请选择订单类型"),!1;if(this.goodsList.length<=0)return this.$toast("请选择商品"),!1;if(this.marketAmount){var t=/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;if(!t.test(this.marketAmount))return this.$toast("请选输入正确的减免金额"),!1}return(this.payCountMoney-Number(this.marketAmount)).toFixed(2)<this.groupPrice?(this.$toast("减免后支付金额不能低于团购价"),!1):this.payCountMoney-this.marketAmount<0?(this.$toast("减免金额不能大于总金额"),!1):!!this.agreeStatus||(this.$toast("请先阅读并同意《产品及服务协议》"),!1)},onSubmit:function(){var t=this.result;if("YQPAY"==t.type){var e=t.payMap;document.querySelector("#onSubmit").action=e.host,document.querySelector("#apiContent").value=e.apiContent,document.querySelector("#merNo").value=e.merNo,document.querySelector("#notifyUrl").value=e.notifyUrl,document.querySelector("#sign").value=e.sign,document.querySelector("#signType").value=e.signType,document.querySelector("#timestamp").value=e.timestamp,document.querySelector("#version").value=e.version,document.querySelector("#onSubmit").submit()}else"UNIONPAY"==t.type?(localStorage.setItem("payInfo",JSON.stringify(t)),this.$router.push({path:"/alipay",query:{balance:t.totalPrice}})):"ADAPAY"==t.type&&(this.payment=t,this.payMoney=t.payMap.amount,this.isStatus=!0)},onClickCheckbox:function(){this.payType=!this.payType,this.calcPrice()},setCoupon:function(t){t&&(this.couponList=t.couponList,this.valuePirce=t.valuePirce,this.dataLists=t.dataList),this.calcPrice()},setNoMore:function(){this.calcPrice()},calcPrice:function(){var t=this,e=this.goodsList,r=0;this.groupPrice=0,this.buyList=[],this.moneyList=[],this.disCountList=[],e.forEach((function(e){t.buyList.push({name:e.goodsNum>1?"".concat(e.goodsName," * ").concat(e.goodsNum):e.goodsName,type:"购买",price:Number((e.goodsNum*e.discountPrice).toFixed(2)),couponType:t.couponObj[e.type]}),r+=Number((e.goodsNum*e.discountPrice).toFixed(2)),t.groupPrice+=Number((e.goodsNum*e.groupPurchasePrice).toFixed(2))}));var n={FULL_REDUCTION:"满减",DISCOUNT:"折扣"};this.dataLists&&this.dataLists.length>0&&this.dataLists.forEach((function(e){-1!=t.couponList.indexOf(e.couponCodeId)&&t.disCountList.push({name:e.couponName,type:n[e.couponType],price:-e.faceValue.toFixed(2)})})),this.marketAmount>0&&this.buyList.push({name:"减免金额",type:"一次性",price:-this.marketAmount,couponType:"FULLCOUPON"}),this.payCountMoney=r,r=r-this.marketAmount<=0?0:Number((r-this.marketAmount).toFixed(2)),this.countMoney=r,r-=this.valuePirce,this.moneyList.push({name:"应付金额",price:r}),this.payType?r-this.balance>=0?(this.moneyList.push({name:"余额支付",price:this.balance}),r=Number((r-this.balance).toFixed(2)),this.moneyList.push({name:"现金支付",price:r})):(this.moneyList.push({name:"现金支付",price:0}),this.moneyList.push({name:"余额支付",price:r}),r=0):(this.moneyList.push({name:"余额支付",price:0}),this.moneyList.push({name:"现金支付",price:r})),this.payMoney=r}},destroyed:function(){window.removeEventListener("hashchange",this.onHash,!1),this.$toast.clear(),this.qrCodeStatus=!1}},C=S,k=(r("f065"),r("2877")),L=Object(k["a"])(C,n,o,!1,null,"0b478442",null);e["default"]=L.exports},"3fba":function(t,e,r){"use strict";r("af41")},"457e":function(t,e,r){},"485a":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("433b");var n=r("d399");function o(t){t?n["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):n["a"].clear()}},5343:function(t,e,r){},"534e":function(t,e,r){},"550a":function(t,e,r){"use strict";r("457e")},"5a3a":function(t,e,r){},"5d8f":function(t,e,r){"use strict";r("5a3a")},6320:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"protocol"},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isProtocol,expression:"isProtocol"}],staticClass:"agreeProtocol"},[t._t("default",(function(){return[t.exists?t._e():r("van-checkbox",{attrs:{"checked-color":t.checkedColor},on:{click:t.onChange},scopedSlots:t._u([{key:"icon",fn:function(e){return[r("img",{attrs:{src:e.checked?t.activeButtonIcon:t.inactiveButtonIcon}})]}}],null,!1,2864056873),model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}}),t.exists?t._e():r("i",{style:t.leftStyle,on:{click:t.onClick}},[t._v(t._s(t.leftString))]),t.exists?r("i",{style:t.leftStyle},[t._v("查看")]):t._e(),r("span",{style:t.rightStyle,on:{click:t.onPopupClose}},[t._v("《"+t._s(t.rightString)+"》")])]}))],2),r("van-popup",{attrs:{id:"protocolPopup",position:"bottom"},model:{value:t.popupStatus,callback:function(e){t.popupStatus=e},expression:"popupStatus"}},[r("m-protocol",{attrs:{protocolHTML:t.protocolHTML,popupStatus:t.popupStatus,checked:t.checked,tenantId:t.tenantId},on:{onClose:t.onPopupClose,onPopupSure:t.onPopupSure}})],1)],1)},o=[],i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mProtocol",attrs:{id:"mProtocol"}},[r("m-header",{attrs:{backUrl:t.backUrlProtocol,name:"协议信息"}}),r("div",{staticStyle:{"margin-bottom":"1rem"},domProps:{innerHTML:t._s(t.protocolHTML)}}),r("div",{staticClass:"btn-style"},[t.tenantId?r("van-button",{staticClass:"protocol-btn",attrs:{round:"",disabled:t.disabled,type:"info"},on:{click:t.onPopupSure}},[t._v("\n "+t._s(t.disabled?"请认真阅读协议内容":"我已完全阅读并同意协议内容")+"\n "),r("van-count-down",{directives:[{name:"show",rawName:"v-show",value:t.disabled,expression:"disabled"}],ref:"countDown",staticStyle:{"font-size":".18rem",display:"inline-block",color:"#fff"},attrs:{time:6e3,format:"ss"},on:{finish:t.finish}})],1):r("van-button",{staticClass:"protocol-btn",attrs:{type:"info"},on:{click:t.onPopupSure}},[t._v("确认")])],1)],1)},a=[],s=r("6e6e"),c={name:"mProtocol",components:{MHeader:s["a"]},props:{protocolHTML:String,tenantId:{type:[String,Number]},checked:Boolean,popupStatus:Boolean},data:function(){var t=this;return{disabled:!0,headerStatus:!1,backUrlProtocol:{callBack:function(){t.callBack()}}}},mounted:function(){this.checked&&(this.disabled=!1)},methods:{finish:function(){this.disabled=!1},onPopupSure:function(){document.querySelector("#mProtocol").scrollTop=0,this.$emit("onPopupSure")},callBack:function(){document.querySelector("#mProtocol").scrollTop=0,this.$emit("onClose")}},watch:{popupStatus:function(t){t&&!this.checked?(this.disabled=!0,this.$refs.countDown.reset(),this.$refs.countDown.start()):this.disabled=!1}}},u=c,l=(r("f9b6"),r("2877")),h=Object(l["a"])(u,i,a,!1,null,null,null),f=h.exports,p=(r("4328"),r("2b7c")),d=r("981f").default,y=function(t){return d({url:"/api-web/eduContracts/queryProduceContract",method:"get",params:t})},g=function(t){return Object(p["a"])({url:"/tenantInfo/getContract/".concat(t.id),method:"get",params:t})};function v(t){return v="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},v(t)}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(E){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=c;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(A([])));g&&g!==e&&r.call(g,o)&&(d=g);var b=p.prototype=h.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==v(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function C(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=p,s(b,"constructor",p),s(p,"constructor",f),f.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),s(b,a,"Generator"),s(b,o,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function b(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function w(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){b(i,n,o,a,s,"next",t)}function s(t){b(i,n,o,a,s,"throw",t)}a(void 0)}))}}var x={name:"mheader",components:{MProtocol:f},props:{value:{type:Boolean,default:function(){return!1}},tenantId:[String,Number],type:{type:[String,Number],default:0},musicGroupId:String,checkedColor:String,userId:String,activeIcon:String,inactiveIcon:String,leftStyle:String,leftString:{type:String,default:function(){return"我已阅读并同意"}},rightStyle:String,rightString:{type:String,default:function(){return"产品及服务协议"}}},data:function(){return{popupStatus:!1,checked:this.value,exists:!0,protocolHTML:null,fullPath:null,isProtocol:!1}},mounted:function(){this.__init(),window.addEventListener("hashchange",this.onHash,!1)},methods:{onHash:function(){this.popupStatus=!1},__init:function(){var t=w(m().mark((function t(){var e,r,n,o=this;return m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.tenantId){t.next=16;break}return t.prev=1,t.next=4,g({id:this.tenantId,type:this.type});case 4:e=t.sent,this.protocolHTML=e.data,this.isProtocol=!!this.protocolHTML,this.exists=!1,this.checked=!1,this.$emit("input",this.exists),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](1);case 14:t.next=21;break;case 16:return r={userId:this.userId?this.userId:null,musicGroupId:this.musicGroupId?this.musicGroupId:null},n=sessionStorage.getItem("token"),n&&(localStorage.setItem("Authorization",n),localStorage.setItem("userInfo",n)),t.next=21,y(r).then((function(t){var e=t.data;o.protocolHTML="",200==e.code&&(o.protocolHTML=e.data.productContract,o.isProtocol=!!o.protocolHTML,o.exists=e.data.exists,o.checked=o.exists,o.$emit("input",o.exists))}));case 21:this.protocolHTML||(this.isProtocol=!!this.protocolHTML,this.checked=!0,this.$emit("input",this.checked||this.exists));case 22:case"end":return t.stop()}}),t,this,[[1,12]])})));function e(){return t.apply(this,arguments)}return e}(),onChange:function(){this.tenantId?this.checked?(this.checked=!1,this.onPopupClose()):this.$emit("input",!1):this.$emit("input",this.checked)},onClick:function(){this.tenantId?this.checked?(this.checked=!1,this.$emit("input",!1)):this.onPopupClose():(this.checked=!this.checked,this.$emit("input",this.checked))},onPopupSure:function(){this.$emit("input",!0),this.checked=!0,this.onPopupClose()},onPopupClose:function(){if(this.protocolHTML){if(this.popupStatus=!this.popupStatus,this.popupStatus){var t=this.$route,e=0;for(var r in t.query)e+=1;var n=t.fullPath,o=window.location.origin,i=e>0?"&pto=1":"?pto=1";history.pushState("","","".concat(o,"/#").concat(n).concat(i))}else window.history.go(-1);var a=document.querySelector("#protocolPopup");a&&(a.scrollTop=0)}}},watch:{popupStatus:function(t){this.$emit("changeCheck",t)},value:function(t){t&&(this.checked=t)}},destroyed:function(){window.removeEventListener("hashchange",this.onHash)}},S=x,C=(r("9786"),Object(l["a"])(S,n,o,!1,null,"4680de30",null));e["a"]=C.exports},6453:function(t,e,r){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},"658f":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=13)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e){return t.exports=r="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},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){t.exports=r(14)()},function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return p}));var n=r(0),o=r.n(n),i=r(1),a=r.n(i);function s(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=Number(t)?3:0)}var c=function(){function t(e){o()(this,t),this.mode=h.MODE_8BIT_BYTE,this.parsedData=[],this.data=e;for(var r=[],n=0,i=this.data.length;n<i;n++){var a=[],s=this.data.charCodeAt(n);s>65536?(a[0]=240|(1835008&s)>>>18,a[1]=128|(258048&s)>>>12,a[2]=128|(4032&s)>>>6,a[3]=128|63&s):s>2048?(a[0]=224|(61440&s)>>>12,a[1]=128|(4032&s)>>>6,a[2]=128|63&s):s>128?(a[0]=192|(1984&s)>>>6,a[1]=128|63&s):a[0]=s,r.push(a)}this.parsedData=Array.prototype.concat.apply([],r),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a()(t,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}}]),t}(),u=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.L;o()(this,t),this.moduleCount=0,this.dataList=[],this.typeNumber=e,this.errorCorrectLevel=r,this.moduleCount=0,this.dataList=[]}return a()(t,[{key:"addData",value:function(t){if(this.typeNumber<=0)this.typeNumber=function(t,e){for(var r=1,n=s(t),o=0,i=m.length;o<i;o++){var a=0;switch(e){case l.L:a=m[o][0];break;case l.M:a=m[o][1];break;case l.Q:a=m[o][2];break;case l.H:a=m[o][3]}if(n<=a)break;r++}if(r>m.length)throw new Error("Too long data");return r}(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: ".concat(this.typeNumber));if(!function(t,e,r){var n=s(e),o=t-1,i=0;switch(r){case l.L:i=m[o][0];break;case l.M:i=m[o][1];break;case l.Q:i=m[o][2];break;case l.H:i=m[o][3]}return n<=i}(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: ".concat(this.typeNumber))}var e=new c(t);this.dataList.push(e),this.dataCache=void 0}},{key:"isDark",value:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error("".concat(t,",").concat(e));return this.modules[t][e]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(e,r){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[n][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,r),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)}},{key:"setupPositionProbePattern",value:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)}},{key:"getBestMaskPattern",value:function(){if(Number.isInteger(this.maskPattern)&&Object.values(f).includes(this.maskPattern))return this.maskPattern;for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=p.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e}},{key:"setupTimingPattern",value:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}},{key:"setupPositionAdjustPattern",value:function(){for(var t=p.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],o=t[r];if(null==this.modules[n][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[n+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}}},{key:"setupTypeNumber",value:function(t){for(var e=p.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++)n=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},{key:"setupTypeInfo",value:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=p.getBCHTypeInfo(r),o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++)i=!t&&1==(n>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i;this.modules[this.moduleCount-8][8]=!t}},{key:"mapData",value:function(t,e){for(var r=-1,n=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[n][a-s]){var c=!1;i<t.length&&(c=1==(t[i]>>>o&1)),p.getMask(e,n,a-s)&&(c=!c),this.modules[n][a-s]=c,-1==--o&&(i++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}}],[{key:"createData",value:function(e,r,n){for(var o=g.getRSBlocks(e,r),i=new v,a=0;a<n.length;a++){var s=n[a];i.put(s.mode,4),i.put(s.getLength(),p.getLengthInBits(s.mode,e)),s.write(i)}var c=0;for(a=0;a<o.length;a++)c+=o[a].dataCount;if(i.getLengthInBits()>8*c)throw new Error("code length overflow. (".concat(i.getLengthInBits(),">").concat(8*c,")"));for(i.getLengthInBits()+4<=8*c&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*c||(i.put(t.PAD0,8),i.getLengthInBits()>=8*c));)i.put(t.PAD1,8);return t.createBytes(i,o)}},{key:"createBytes",value:function(t,e){for(var r=0,n=0,o=0,i=new Array(e.length),a=new Array(e.length),s=0;s<e.length;s++){var c=e[s].dataCount,u=e[s].totalCount-c;n=Math.max(n,c),o=Math.max(o,u),i[s]=new Array(c);for(var l=0;l<i[s].length;l++)i[s][l]=255&t.buffer[l+r];r+=c;var h=p.getErrorCorrectPolynomial(u),f=new y(i[s],h.getLength()-1).mod(h);for(a[s]=new Array(h.getLength()-1),l=0;l<a[s].length;l++){var d=l+f.getLength()-a[s].length;a[s][l]=d>=0?f.get(d):0}}var g=0;for(l=0;l<e.length;l++)g+=e[l].totalCount;var v=new Array(g),m=0;for(l=0;l<n;l++)for(s=0;s<e.length;s++)l<i[s].length&&(v[m++]=i[s][l]);for(l=0;l<o;l++)for(s=0;s<e.length;s++)l<a[s].length&&(v[m++]=a[s][l]);return v}}]),t}();u.PAD0=236,u.PAD1=17;var l={L:1,M:0,Q:3,H:2},h={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},f={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},p=function(){function t(){o()(this,t)}return a()(t,null,[{key:"getBCHTypeInfo",value:function(e){for(var r=e<<10;t.getBCHDigit(r)-t.getBCHDigit(t.G15)>=0;)r^=t.G15<<t.getBCHDigit(r)-t.getBCHDigit(t.G15);return(e<<10|r)^t.G15_MASK}},{key:"getBCHTypeNumber",value:function(e){for(var r=e<<12;t.getBCHDigit(r)-t.getBCHDigit(t.G18)>=0;)r^=t.G18<<t.getBCHDigit(r)-t.getBCHDigit(t.G18);return e<<12|r}},{key:"getBCHDigit",value:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e}},{key:"getPatternPosition",value:function(e){return t.PATTERN_POSITION_TABLE[e-1]}},{key:"getMask",value:function(t,e,r){switch(t){case f.PATTERN000:return(e+r)%2==0;case f.PATTERN001:return e%2==0;case f.PATTERN010:return r%3==0;case f.PATTERN011:return(e+r)%3==0;case f.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case f.PATTERN101:return e*r%2+e*r%3==0;case f.PATTERN110:return(e*r%2+e*r%3)%2==0;case f.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:".concat(t))}}},{key:"getErrorCorrectPolynomial",value:function(t){for(var e=new y([1],0),r=0;r<t;r++)e=e.multiply(new y([1,d.gexp(r)],0));return e}},{key:"getLengthInBits",value:function(t,e){if(1<=e&&e<10)switch(t){case h.MODE_NUMBER:return 10;case h.MODE_ALPHA_NUM:return 9;case h.MODE_8BIT_BYTE:case h.MODE_KANJI:return 8;default:throw new Error("mode:".concat(t))}else if(e<27)switch(t){case h.MODE_NUMBER:return 12;case h.MODE_ALPHA_NUM:return 11;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 10;default:throw new Error("mode:".concat(t))}else{if(!(e<41))throw new Error("type:".concat(e));switch(t){case h.MODE_NUMBER:return 14;case h.MODE_ALPHA_NUM:return 13;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 12;default:throw new Error("mode:".concat(t))}}}},{key:"getLostPoint",value:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var o=0;o<e;o++){for(var i=0,a=t.isDark(n,o),s=-1;s<=1;s++)if(!(n+s<0||e<=n+s))for(var c=-1;c<=1;c++)o+c<0||e<=o+c||0==s&&0==c||a==t.isDark(n+s,o+c)&&i++;i>5&&(r+=3+i-5)}for(n=0;n<e-1;n++)for(o=0;o<e-1;o++){var u=0;t.isDark(n,o)&&u++,t.isDark(n+1,o)&&u++,t.isDark(n,o+1)&&u++,t.isDark(n+1,o+1)&&u++,0!=u&&4!=u||(r+=3)}for(n=0;n<e;n++)for(o=0;o<e-6;o++)t.isDark(n,o)&&!t.isDark(n,o+1)&&t.isDark(n,o+2)&&t.isDark(n,o+3)&&t.isDark(n,o+4)&&!t.isDark(n,o+5)&&t.isDark(n,o+6)&&(r+=40);for(o=0;o<e;o++)for(n=0;n<e-6;n++)t.isDark(n,o)&&!t.isDark(n+1,o)&&t.isDark(n+2,o)&&t.isDark(n+3,o)&&t.isDark(n+4,o)&&!t.isDark(n+5,o)&&t.isDark(n+6,o)&&(r+=40);var l=0;for(o=0;o<e;o++)for(n=0;n<e;n++)t.isDark(n,o)&&l++;return r+Math.abs(100*l/e/e-50)/5*10}}]),t}();p.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]],p.G15=1335,p.G18=7973,p.G15_MASK=21522;var d=function(){function t(){o()(this,t)}return a()(t,null,[{key:"glog",value:function(e){if(e<1)throw new Error("glog(".concat(e,")"));return t.LOG_TABLE[e]}},{key:"gexp",value:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]}}]),t}();d.EXP_TABLE=new Array(256),d.LOG_TABLE=new Array(256),d._constructor=function(){for(var t=0;t<8;t++)d.EXP_TABLE[t]=1<<t;for(t=8;t<256;t++)d.EXP_TABLE[t]=d.EXP_TABLE[t-4]^d.EXP_TABLE[t-5]^d.EXP_TABLE[t-6]^d.EXP_TABLE[t-8];for(t=0;t<255;t++)d.LOG_TABLE[d.EXP_TABLE[t]]=t}();var y=function(){function t(e,r){if(o()(this,t),null==e.length)throw new Error("".concat(e.length,"/").concat(r));for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+r);for(var i=0;i<e.length-n;i++)this.num[i]=e[i+n]}return a()(t,[{key:"get",value:function(t){return this.num[t]}},{key:"getLength",value:function(){return this.num.length}},{key:"multiply",value:function(e){for(var r=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var o=0;o<e.getLength();o++)r[n+o]^=d.gexp(d.glog(this.get(n))+d.glog(e.get(o)));return new t(r,0)}},{key:"mod",value:function(e){if(this.getLength()-e.getLength()<0)return this;for(var r=d.glog(this.get(0))-d.glog(e.get(0)),n=new Array(this.getLength()),o=0;o<this.getLength();o++)n[o]=this.get(o);for(o=0;o<e.getLength();o++)n[o]^=d.gexp(d.glog(e.get(o))+r);return new t(n,0).mod(e)}}]),t}(),g=function(){function t(e,r){o()(this,t),this.totalCount=e,this.dataCount=r}return a()(t,null,[{key:"getRSBlocks",value:function(e,r){var n=t.getRsBlockTable(e,r);if(null==n)throw new Error("bad rs block @ typeNumber:".concat(e,"/errorCorrectLevel:").concat(r));for(var o=n.length/3,i=[],a=0;a<o;a++)for(var s=n[3*a+0],c=n[3*a+1],u=n[3*a+2],l=0;l<s;l++)i.push(new t(c,u));return i}},{key:"getRsBlockTable",value:function(e,r){switch(r){case l.L:return t.RS_BLOCK_TABLE[4*(e-1)+0];case l.M:return t.RS_BLOCK_TABLE[4*(e-1)+1];case l.Q:return t.RS_BLOCK_TABLE[4*(e-1)+2];case l.H:return t.RS_BLOCK_TABLE[4*(e-1)+3];default:return}}}]),t}();g.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];var v=function(){function t(){o()(this,t),this.buffer=[],this.length=0}return a()(t,[{key:"get",value:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)}},{key:"put",value:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value: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++}}]),t}(),m=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return c})),r.d(e,"a",(function(){return u}));var n=r(2),o=r.n(n);function i(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function a(t,e){for(var r,n="",o=0,i=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",o=0):o=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+t.slice(i+1,s):n=t.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var s={resolve:function(){for(var e,r="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=t.cwd()),s=e),i(s),0!==s.length&&(r=s+"/"+r,n=47===s.charCodeAt(0))}return r=a(r,!n),n?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(i(t),0===t.length)return".";var e=47===t.charCodeAt(0),r=47===t.charCodeAt(t.length-1);return 0!==(t=a(t,!e)).length||e||(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return i(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var r=arguments[e];i(r),r.length>0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":s.normalize(t)},relative:function(t,e){if(i(t),i(e),t===e)return"";if((t=s.resolve(t))===(e=s.resolve(e)))return"";for(var r=1;r<t.length&&47===t.charCodeAt(r);++r);for(var n=t.length,o=n-r,a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var c=e.length-a,u=o<c?o:c,l=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(47===e.charCodeAt(a+h))return e.slice(a+h+1);if(0===h)return e.slice(a+h)}else o>u&&(47===t.charCodeAt(r+h)?l=h:0===h&&(l=0));break}var f=t.charCodeAt(r+h);if(f!==e.charCodeAt(a+h))break;47===f&&(l=h)}var p="";for(h=r+l+1;h<=n;++h)h!==n&&47!==t.charCodeAt(h)||(0===p.length?p+="..":p+="/..");return p.length>0?p+e.slice(a+l):(a+=l,47===e.charCodeAt(a)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(i(t),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":t.slice(0,n)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');i(t);var r,n=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var s=e.length-1,c=-1;for(r=t.length-1;r>=0;--r){var u=t.charCodeAt(r);if(47===u){if(!a){n=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(u===e.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return n===o?o=c:-1===o&&(o=t.length),t.slice(n,o)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!a){n=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":t.slice(n,o)},extname:function(t){i(t);for(var e=-1,r=0,n=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===n&&(o=!1,n=s+1),46===c?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){r=s+1;break}}return-1===e||-1===n||0===a||1===a&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(null===t||"object"!==o()(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+o()(t));return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){i(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var r,n=t.charCodeAt(0),o=47===n;o?(e.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,u=!0,l=t.length-1,h=0;l>=r;--l)if(47!==(n=t.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===n?-1===a?a=l:1!==h&&(h=1):-1!==a&&(h=-1);else if(!u){s=l+1;break}return-1===a||-1===c||0===h||1===h&&a===c-1&&a===s+1?-1!==c&&(e.base=e.name=0===s&&o?t.slice(1,c):t.slice(s,c)):(0===s&&o?(e.name=t.slice(1,a),e.base=t.slice(1,c)):(e.name=t.slice(s,a),e.base=t.slice(s,c)),e.ext=t.slice(a,c)),s>0?e.dir=t.slice(0,s-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s;var c=s.extname,u=s.basename}).call(this,r(19))},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,c,"next",t)}function c(t){r(a,o,i,s,c,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.d(e,"b",(function(){return b})),r.d(e,"a",(function(){return x}));const n=(t,e,r={},o=r)=>{if(Array.isArray(e))e.forEach(e=>n(t,e,r,o));else if("function"==typeof e)e(t,r,o,n);else{const i=Object.keys(e)[0];Array.isArray(e[i])?(o[i]={},n(t,e[i],r,o[i])):o[i]=e[i](t,r,o,n)}return r},o=(t,e)=>(r,n,o,i)=>{e(r,n,o)&&i(r,t,n,o)},i=(t=0)=>e=>e.data[e.pos+t],a=t=>e=>e.data.subarray(e.pos,e.pos+=t),s=t=>e=>e.data.subarray(e.pos,e.pos+t),c=t=>e=>Array.from(a(t)(e)).map(t=>String.fromCharCode(t)).join(""),u=t=>e=>{const r=a(2)(e);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]},l=(t,e)=>(r,n,o)=>{const i="function"==typeof e?e(r,n,o):e,s=a(t),c=new Array(i);for(var u=0;u<i;u++)c[u]=s(r);return c},h=t=>e=>{const r=(t=>t.data[t.pos++])(e),n=new Array(8);for(var o=0;o<8;o++)n[7-o]=!!(r&1<<o);return Object.keys(t).reduce((e,r)=>{const o=t[r];return o.length?e[r]=((t,e,r)=>{for(var n=0,o=0;o<r;o++)n+=t[e+o]&&2**(r-o-1);return n})(n,o.index,o.length):e[r]=n[o.index],e},{})};var f={blocks:t=>{const e=[],r=t.data.length;for(var n=0,o=(t=>t.data[t.pos++])(t);0!==o&&o;o=(t=>t.data[t.pos++])(t)){if(t.pos+o>=r){const o=r-t.pos;e.push(a(o)(t)),n+=o;break}e.push(a(o)(t)),n+=o}const i=new Uint8Array(n);for(var s=0,c=0;c<e.length;c++)i.set(e[c],s),s+=e[c].length;return i}};const p=o({gce:[{codes:a(2)},{byteSize:t=>t.data[t.pos++]},{extras:h({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:u(!0)},{transparentColorIndex:t=>t.data[t.pos++]},{terminator:t=>t.data[t.pos++]}]},t=>{var e=s(2)(t);return 33===e[0]&&249===e[1]}),d=o({image:[{code:t=>t.data[t.pos++]},{descriptor:[{left:u(!0)},{top:u(!0)},{width:u(!0)},{height:u(!0)},{lct:h({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},o({lct:l(3,(t,e,r)=>Math.pow(2,r.descriptor.lct.size+1))},(t,e,r)=>r.descriptor.lct.exists),{data:[{minCodeSize:t=>t.data[t.pos++]},f]}]},t=>44===i()(t)),y=o({text:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{preData:(t,e,r)=>a(r.text.blockSize)(t)},f]},t=>{var e=s(2)(t);return 33===e[0]&&1===e[1]}),g=o({application:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,r)=>c(r.blockSize)(t)},f]},t=>{var e=s(2)(t);return 33===e[0]&&255===e[1]}),v=o({comment:[{codes:a(2)},f]},t=>{var e=s(2)(t);return 33===e[0]&&254===e[1]});var m=[{header:[{signature:c(3)},{version:c(3)}]},{lsd:[{width:u(!0)},{height:u(!0)},{gct:h({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:t=>t.data[t.pos++]},{pixelAspectRatio:t=>t.data[t.pos++]}]},o({gct:l(3,(t,e)=>Math.pow(2,e.lsd.gct.size+1))},(t,e)=>e.lsd.gct.exists),{frames:((t,e)=>(r,n,o,i)=>{const a=[];let s=r.pos;for(;e(r,n,o);){const e={};if(i(r,t,n,e),r.pos===s)break;s=r.pos,a.push(e)}return a})([p,g,v,d,y],t=>{var e=i()(t);return 33===e||44===e})}],b=function(t){var e=new Uint8Array(t);return n({data:e,pos:0},m)},w=function(t,e,r){if(t.image){var n=t.image,o=n.descriptor.width*n.descriptor.height,i=function(t,e,r){var n,o,i,a,s,c,u,l,h,f,p,d,y,g,v,m,b=r,w=new Array(r),x=new Array(4096),S=new Array(4096),C=new Array(4097);for(s=1+(o=1<<(f=t)),n=o+2,u=-1,i=(1<<(a=f+1))-1,l=0;l<o;l++)x[l]=0,S[l]=l;for(p=d=y=g=v=m=0,h=0;h<b;){if(0===g){if(d<a){p+=e[m]<<d,d+=8,m++;continue}if(l=p&i,p>>=a,d-=a,l>n||l==s)break;if(l==o){i=(1<<(a=f+1))-1,n=o+2,u=-1;continue}if(-1==u){C[g++]=S[l],u=l,y=l;continue}for(c=l,l==n&&(C[g++]=y,l=u);l>o;)C[g++]=S[l],l=x[l];y=255&S[l],C[g++]=y,n<4096&&(x[n]=u,S[n]=y,0==(++n&i)&&n<4096&&(a++,i+=n)),u=c}g--,w[v++]=C[g],h++}for(h=v;h<b;h++)w[h]=0;return w}(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(i=function(t,e){for(var r=new Array(t.length),n=t.length/e,o=function(n,o){var i=t.slice(o*e,(o+1)*e);r.splice.apply(r,[n*e,e].concat(i))},i=[0,4,2,1],a=[8,8,4,2],s=0,c=0;c<4;c++)for(var u=i[c];u<n;u+=a[c])o(u,s),s++;return r}(i,n.descriptor.width));var a={pixels:i,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?a.colorTable=n.lct:a.colorTable=e,t.gce&&(a.delay=10*(t.gce.delay||10),a.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(a.transparentIndex=t.gce.transparentColorIndex)),r&&(a.patch=function(t){for(var e=t.pixels.length,r=new Uint8ClampedArray(4*e),n=0;n<e;n++){var o=4*n,i=t.pixels[n],a=t.colorTable[i];r[o]=a[0],r[o+1]=a[1],r[o+2]=a[2],r[o+3]=i!==t.transparentIndex?255:0}return r}(a)),a}console.warn("gif frame does not have associated image.")},x=function(t,e){return t.frames.filter((function(t){return t.image})).map((function(r){return w(r,t.gct,e)}))}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return m}));var n=r(2),o=r.n(n),i=r(0),a=r.n(i),s=r(1),c=r.n(s),u=r(3),l=r.n(u),h=r(10),f=r(7),p=r(4),d=r(12),y=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((n=n.apply(t,e||[])).next())}))},g=h.a.Canvas;function v(t){if(t)return new Promise((function(r,n){if("data"==t.slice(0,4)){var o=new Image;return o.onload=function(){r(o),e(o)},o.onerror=function(){n("Image load error"),e(o)},void(o.src=t)}var i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){r(i)},i.onerror=function(){n("Image load error")},i.src=t}));function e(t){t.onload=null,t.onerror=null}}var m=function(){function e(t){a()(this,e);var r=Object.assign({},t);if(Object.keys(e.defaultOptions).forEach((function(t){t in r||Object.defineProperty(r,t,{value:e.defaultOptions[t],enumerable:!0,writable:!0})})),r.components?"object"===o()(r.components)&&Object.keys(e.defaultComponentOptions).forEach((function(t){t in r.components?Object.defineProperty(r.components,t,{value:Object.assign(Object.assign({},e.defaultComponentOptions[t]),r.components[t]),enumerable:!0,writable:!0}):Object.defineProperty(r.components,t,{value:e.defaultComponentOptions[t],enumerable:!0,writable:!0})})):r.components=e.defaultComponentOptions,null!==r.dotScale&&void 0!==r.dotScale){if(r.dotScale<=0||r.dotScale>1)throw new Error("dotScale should be in range (0, 1].");r.components.data.scale=r.dotScale,r.components.timing.scale=r.dotScale,r.components.alignment.scale=r.dotScale}this.options=r,this.canvas=new g(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new p.a(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return c()(e,[{key:"draw",value:function(){var t=this;return new Promise((function(e){return t._draw().then(e)}))}},{key:"_clear",value:function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"_draw",value:function(){var r,n,o,i,a,s,c,u,h,m,w,x,S,C,k,L,A,P,E;return y(this,void 0,void 0,l.a.mark((function y(){var O,_,T,I,N,j,B,M,D,R,G,F,U,Y,H,z,q,Q,V,J,X,K,$,Z,W,tt,et,rt,nt,ot,it,at,st,ct,ut,lt,ht,ft,pt,dt,yt,gt,vt,mt,bt,wt,xt,St,Ct,kt,Lt,At,Pt,Et,Ot,_t,Tt,It,Nt,jt,Bt,Mt,Dt,Rt,Gt,Ft,Ut,Yt,Ht,zt,qt,Qt;return l.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(O=null===(r=this.qrCode)||void 0===r?void 0:r.moduleCount,_=this.options.size,((T=this.options.margin)<0||2*T>=_)&&(T=0),I=Math.ceil(T),N=_-2*T,j=this.options.whiteMargin,B=this.options.backgroundDimming,M=Math.ceil(N/O),G=new g(R=(D=M*O)+2*I,R),F=G.getContext("2d"),this._clear(),F.save(),F.translate(I,I),U=new g(R,R),Y=U.getContext("2d"),H=null,z=[],!this.options.gifBackground){l.next=47;break}if(q=Object(f.b)(this.options.gifBackground),H=q,z=Object(f.a)(q,!0),!this.options.autoColor){l.next=45;break}Q=0,V=0,J=0,X=0,K=0;case 28:if(!(K<z[0].colorTable.length)){l.next=41;break}if(!(($=z[0].colorTable[K])[0]>200||$[1]>200||$[2]>200)){l.next=32;break}return l.abrupt("continue",38);case 32:if(0!==$[0]||0!==$[1]||0!==$[2]){l.next=34;break}return l.abrupt("continue",38);case 34:X++,Q+=$[0],V+=$[1],J+=$[2];case 38:K++,l.next=28;break;case 41:Q=~~(Q/X),V=~~(V/X),J=~~(J/X),this.options.colorDark="rgb(".concat(Q,",").concat(V,",").concat(J,")");case 45:l.next=61;break;case 47:if(!this.options.backgroundImage){l.next=58;break}return l.next=50,v(this.options.backgroundImage);case 50:Z=l.sent,this.options.autoColor&&(W=e._getAverageRGB(Z),this.options.colorDark="rgb(".concat(W.r,",").concat(W.g,",").concat(W.b,")")),Y.drawImage(Z,0,0,Z.width,Z.height,0,0,R,R),Y.rect(0,0,R,R),Y.fillStyle=B,Y.fill(),l.next=61;break;case 58:Y.rect(0,0,R,R),Y.fillStyle=this.options.colorLight,Y.fill();case 61:for(tt=p.c.getPatternPosition(this.qrCode.typeNumber),et=(null===(o=null===(n=this.options.components)||void 0===n?void 0:n.data)||void 0===o?void 0:o.scale)||.4,rt=.5*(1-et),nt=0;nt<O;nt++)for(ot=0;ot<O;ot++){for(it=this.qrCode.isDark(nt,ot),at=6==nt&&ot>=8&&ot<=O-8||6==ot&&nt>=8&&nt<=O-8,st=ot<8&&(nt<8||nt>=O-8)||ot>=O-8&&nt<8||at,ct=1;ct<tt.length-1;ct++)st=st||nt>=tt[ct]-2&&nt<=tt[ct]+2&&ot>=tt[ct]-2&&ot<=tt[ct]+2;ut=ot*M+(st?0:rt*M),lt=nt*M+(st?0:rt*M),F.strokeStyle=it?this.options.colorDark:this.options.colorLight,F.lineWidth=.5,F.fillStyle=it?this.options.colorDark:this.options.colorLight,0===tt.length?st||F.fillRect(ut,lt,(st?1:et)*M,(st?1:et)*M):(ht=ot<O-4&&ot>=O-4-5&&nt<O-4&&nt>=O-4-5,st||ht||F.fillRect(ut,lt,(st?1:et)*M,(st?1:et)*M))}if(ft=tt[tt.length-1],pt=this.options.colorLight,F.fillStyle=pt,F.fillRect(0,0,8*M,8*M),F.fillRect(0,(O-8)*M,8*M,8*M),F.fillRect((O-8)*M,0,8*M,8*M),(null===(a=null===(i=this.options.components)||void 0===i?void 0:i.timing)||void 0===a?void 0:a.protectors)&&(F.fillRect(8*M,6*M,(O-8-8)*M,M),F.fillRect(6*M,8*M,M,(O-8-8)*M)),(null===(c=null===(s=this.options.components)||void 0===s?void 0:s.cornerAlignment)||void 0===c?void 0:c.protectors)&&e._drawAlignProtector(F,ft,ft,M),!(null===(h=null===(u=this.options.components)||void 0===u?void 0:u.alignment)||void 0===h?void 0:h.protectors)){l.next=99;break}dt=0;case 75:if(!(dt<tt.length)){l.next=99;break}yt=0;case 77:if(!(yt<tt.length)){l.next=96;break}if(gt=tt[yt],vt=tt[dt],6!==gt||6!==vt&&vt!==ft){l.next=84;break}return l.abrupt("continue",93);case 84:if(6!==vt||6!==gt&&gt!==ft){l.next=88;break}return l.abrupt("continue",93);case 88:if(gt!==ft||vt!==ft){l.next=92;break}return l.abrupt("continue",93);case 92:e._drawAlignProtector(F,gt,vt,M);case 93:yt++,l.next=77;break;case 96:dt++,l.next=75;break;case 99:for(F.fillStyle=this.options.colorDark,F.fillRect(0,0,7*M,M),F.fillRect((O-7)*M,0,7*M,M),F.fillRect(0,6*M,7*M,M),F.fillRect((O-7)*M,6*M,7*M,M),F.fillRect(0,(O-7)*M,7*M,M),F.fillRect(0,(O-7+6)*M,7*M,M),F.fillRect(0,0,M,7*M),F.fillRect(6*M,0,M,7*M),F.fillRect((O-7)*M,0,M,7*M),F.fillRect((O-7+6)*M,0,M,7*M),F.fillRect(0,(O-7)*M,M,7*M),F.fillRect(6*M,(O-7)*M,M,7*M),F.fillRect(2*M,2*M,3*M,3*M),F.fillRect((O-7+2)*M,2*M,3*M,3*M),F.fillRect(2*M,(O-7+2)*M,3*M,3*M),mt=(null===(w=null===(m=this.options.components)||void 0===m?void 0:m.timing)||void 0===w?void 0:w.scale)||.4,bt=.5*(1-mt),wt=0;wt<O-8;wt+=2)e._drawDot(F,8+wt,6,M,bt,mt),e._drawDot(F,6,8+wt,M,bt,mt);xt=(null===(S=null===(x=this.options.components)||void 0===x?void 0:x.cornerAlignment)||void 0===S?void 0:S.scale)||.4,St=.5*(1-xt),e._drawAlign(F,ft,ft,M,St,xt,this.options.colorDark,(null===(k=null===(C=this.options.components)||void 0===C?void 0:C.cornerAlignment)||void 0===k?void 0:k.protectors)||!1),Ct=(null===(A=null===(L=this.options.components)||void 0===L?void 0:L.alignment)||void 0===A?void 0:A.scale)||.4,kt=.5*(1-Ct),Lt=0;case 124:if(!(Lt<tt.length)){l.next=148;break}At=0;case 126:if(!(At<tt.length)){l.next=145;break}if(Pt=tt[At],Et=tt[Lt],6!==Pt||6!==Et&&Et!==ft){l.next=133;break}return l.abrupt("continue",142);case 133:if(6!==Et||6!==Pt&&Pt!==ft){l.next=137;break}return l.abrupt("continue",142);case 137:if(Pt!==ft||Et!==ft){l.next=141;break}return l.abrupt("continue",142);case 141:e._drawAlign(F,Pt,Et,M,kt,Ct,this.options.colorDark,(null===(E=null===(P=this.options.components)||void 0===P?void 0:P.alignment)||void 0===E?void 0:E.protectors)||!1);case 142:At++,l.next=126;break;case 145:Lt++,l.next=124;break;case 148:if(j&&(F.fillStyle=this.options.backgroundColor,F.fillRect(-I,-I,R,I),F.fillRect(-I,D,R,I),F.fillRect(D,-I,I,R),F.fillRect(-I,-I,I,R)),!this.options.logoImage){l.next=179;break}return l.next=152,v(this.options.logoImage);case 152:Ot=l.sent,_t=this.options.logoScale,Tt=this.options.logoMargin,It=this.options.logoCornerRadius,(_t<=0||_t>=1)&&(_t=.2),Tt<0&&(Tt=0),It<0&&(It=0),Bt=jt=.5*(R-(Nt=D*_t)),F.restore(),F.fillStyle=this.options.logoBackgroundColor,F.save(),e._prepareRoundedCornerClip(F,jt-Tt,Bt-Tt,Nt+2*Tt,Nt+2*Tt,It+Tt),F.clip(),Mt=F.globalCompositeOperation,F.globalCompositeOperation="destination-out",F.fill(),F.globalCompositeOperation=Mt,F.restore(),F.save(),e._prepareRoundedCornerClip(F,jt,Bt,Nt,Nt,It),F.clip(),F.drawImage(Ot,jt,Bt,Nt,Nt),F.restore(),F.save(),F.translate(I,I);case 179:if(!H){l.next=191;break}if(z.forEach((function(t){Dt||((Dt=new d.a(_,_)).setDelay(t.delay),Dt.setRepeat(0));var e=t.dims,r=e.width,n=e.height;Rt||(Rt=new g(r,n),(Gt=Rt.getContext("2d")).rect(0,0,Rt.width,Rt.height),Gt.fillStyle="#ffffff",Gt.fill()),Ft&&Yt&&r===Ft.width&&n===Ft.height||(Ft=new g(r,n),Ut=Ft.getContext("2d"),Yt=Ut.createImageData(r,n)),Yt.data.set(t.patch),Ut.putImageData(Yt,0,0),Gt.drawImage(Ft.getContext("2d").canvas,t.dims.left,t.dims.top);var o=new g(R,R),i=o.getContext("2d");i.drawImage(Rt.getContext("2d").canvas,0,0,R,R),i.rect(0,0,R,R),i.fillStyle=B,i.fill(),i.drawImage(G.getContext("2d").canvas,0,0,R,R);var a=new g(_,_),s=a.getContext("2d");s.drawImage(o.getContext("2d").canvas,0,0,_,_),Dt.addFrame(s.getImageData(0,0,a.width,a.height).data)})),Dt){l.next=183;break}throw new Error("No frames.");case 183:if(Dt.finish(),!b(this.canvas)){l.next=188;break}return Ht=Dt.stream().toFlattenUint8Array(),zt=Ht.reduce((function(t,e){return t+String.fromCharCode(e)}),""),l.abrupt("return",Promise.resolve("data:image/gif;base64,".concat(window.btoa(zt))));case 188:return l.abrupt("return",Promise.resolve(t.from(Dt.stream().toFlattenUint8Array())));case 191:if(Y.drawImage(G.getContext("2d").canvas,0,0,R,R),F.drawImage(U.getContext("2d").canvas,-I,-I,R,R),qt=new g(_,_),qt.getContext("2d").drawImage(G.getContext("2d").canvas,0,0,_,_),this.canvas=qt,Qt=this.options.gifBackground?"gif":"png",!b(this.canvas)){l.next=200;break}return l.abrupt("return",Promise.resolve(this.canvas.toDataURL(Qt)));case 200:return l.abrupt("return",Promise.resolve(this.canvas.toBuffer(Qt)));case 201:case"end":return l.stop()}}),y,this)})))}}],[{key:"_prepareRoundedCornerClip",value:function(t,e,r,n,o,i){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+o,i),t.arcTo(e+n,r+o,e,r+o,i),t.arcTo(e,r+o,e,r,i),t.arcTo(e,r,e+n,r,i),t.closePath()}},{key:"_getAverageRGB",value:function(t){var e,r,n={r:0,g:0,b:0},o=-4,i={r:0,g:0,b:0},a=0;r=t.naturalHeight||t.height,e=t.naturalWidth||t.width;var s,c=new g(e,r).getContext("2d");if(!c)return n;c.drawImage(t,0,0);try{s=c.getImageData(0,0,e,r)}catch(t){return n}for(;(o+=20)<s.data.length;)s.data[o]>200||s.data[o+1]>200||s.data[o+2]>200||(++a,i.r+=s.data[o],i.g+=s.data[o+1],i.b+=s.data[o+2]);return i.r=~~(i.r/a),i.g=~~(i.g/a),i.b=~~(i.b/a),i}},{key:"_drawDot",value:function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;t.fillRect((e+o)*n,(r+o)*n,i*n,i*n)}},{key:"_drawAlignProtector",value:function(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)}},{key:"_drawAlign",value:function(t,r,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=t.fillStyle;t.fillStyle=s,new Array(4).fill(0).map((function(s,c){e._drawDot(t,r-2+c,n-2,o,i,a),e._drawDot(t,r+2,n-2+c,o,i,a),e._drawDot(t,r+2-c,n+2,o,i,a),e._drawDot(t,r-2,n+2-c,o,i,a)})),e._drawDot(t,r,n,o,i,a),c||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(s,c){e._drawDot(t,r-1+c,n-1,o,i,a),e._drawDot(t,r+1,n-1+c,o,i,a),e._drawDot(t,r+1-c,n+1,o,i,a),e._drawDot(t,r-1,n+1-c,o,i,a)}))),t.fillStyle=u}}]),e}();function b(t){try{return t instanceof HTMLElement}catch(e){return"object"===o()(t)&&1===t.nodeType&&"object"===o()(t.style)&&"object"===o()(t.ownerDocument)}}m.CorrectLevel=p.b,m.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},m.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:p.b.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:m.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"}}).call(this,r(15).Buffer)},function(t,e,r){"use strict";var n=r(11);const{asBuffer:o,asDownload:i,asZipDownload:a,atScale:s,options:c}=n.a,u=Symbol.for("toDataURL"),{CanvasRenderingContext2D:l,CanvasGradient:h,CanvasPattern:f,Image:p,ImageData:d,Path2D:y,DOMMatrix:g,DOMRect:v,DOMPoint:m}=window,b={Canvas:class{constructor(t,e){let r=document.createElement("canvas"),n=[];for(var[l,h]of(Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>o(r,"image/png"),jpg:()=>o(r,"image/jpeg"),pages:()=>n.concat(r).map(t=>t.getContext("2d"))})))Object.defineProperty(r,l,{get:h});return Object.assign(r,{width:t,height:e,newPage(...t){var{width:e,height:o}=r,i=Object.assign(document.createElement("canvas"),{width:e,height:o});i.getContext("2d").drawImage(r,0,0),n.push(i);var[e,o]=t.length?t:[e,o];return Object.assign(r,{width:e,height:o}).getContext("2d")},saveAs(t,e){e="number"==typeof e?{quality:e}:e;let r=c(this.pages,{filename:t,...e}),{pattern:n,padding:o,mime:u,quality:l,matte:h,density:f,archive:p}=r,d=s(r.pages,f);return null==o?i(d[0],u,l,h,t):a(d,u,l,h,p,n,o)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;let r=c(this.pages,{extension:t,...e}),{mime:n,quality:i,matte:a,pages:u,density:l}=r,h=s(u,l,a)[0];return o(h,n,i,a)},[u]:r.toDataURL.bind(r),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;let n=c(this.pages,{extension:t,...e}),{mime:o,quality:i,matte:a,pages:l,density:h}=n,f=s(l,h,a)[0],p=f[f===r?u:"toDataURL"](o,i);return Promise.resolve(p)}})}},loadImage:t=>new Promise((e,r)=>Object.assign(new p,{crossOrigin:"Anonymous",onload:e,onerror:r,src:t})),CanvasRenderingContext2D:l,CanvasGradient:h,CanvasPattern:f,Image:p,ImageData:d,Path2D:y,DOMMatrix:g,DOMRect:v,DOMPoint:m};e.a=b},function(t,e,r){"use strict";(function(t){var n=r(5);class o{constructor(){let e=void 0===t,r="image/png",n="image/jpeg",o="application/pdf",i="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:r,jpg:n,jpeg:"image/jpeg",webp:"image/webp"}:{png:r,jpg:n,jpeg:"image/jpeg",pdf:o,svg:i},mimes:e?{[r]:"png",[n]:"jpg","image/webp":"webp"}:{[r]:"png",[n]:"jpg",[o]:"pdf",[i]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}class i{static for(t){return(new i).append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=0|this.crc,r=this.table,n=0,o=0|t.length;n<o;n++)e=e>>>8^r[255&(e^t[n])];return this.crc=e,this}}function a(t){let e=new Uint8Array(t),r=new DataView(e.buffer),n={array:e,view:r,size:t,set8:(t,e)=>(r.setUint8(t,e),n),set16:(t,e)=>(r.setUint16(t,e,!0),n),set32:(t,e)=>(r.setUint32(t,e,!0),n),bytes:(t,r)=>(e.set(r,t),n)};return n}i.prototype.table=(()=>{var t,e,r,n=[];for(t=0;t<256;t++){for(r=t,e=0;e<8;e++)r=1&r?r>>>1^3988292384:r>>>1;n[t]=r}return n})();class s{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,n=s.encoder.encode(`${this.directory}/${r?"":t}`),o=new Uint8Array(r?0:await e.arrayBuffer()),c=30+n.length,u=c+o.length,{offset:l}=this,h=a(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,i.for(o)).set32(14,o.length).set32(18,o.length).set16(22,n.length);l+=c;let f=a(c+o.length+16).set32(0,67324752).bytes(4,h.array).bytes(30,n).bytes(c,o);l+=o.length,f.set32(u,134695760).bytes(u+4,h.array.slice(10,22)),l+=16,this.files.push({offset:l,folder:r,name:n,header:h,payload:f}),this.offset=l}toBuffer(){let t=this.files.reduce((t,{name:e})=>46+e.length+t,0),e=a(t+22),r=0;for(var{offset:n,name:o,header:i,folder:s}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,i.array).set8(r+38,s?16:0).set32(r+42,n).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let c=new Uint8Array(this.offset+e.size),u=0;for(var{payload:l}of this.files)c.set(l.array,u),u+=l.size;return c.set(e.array,u),c}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}s.encoder=new TextEncoder;const c=(t,e,r,n)=>{if(n){let{width:e,height:r}=t,o=Object.assign(document.createElement("canvas"),{width:e,height:r}),i=o.getContext("2d");i.fillStyle=n,i.fillRect(0,0,e,r),i.drawImage(t,0,0),t=o}return new Promise((n,o)=>t.toBlob(n,e,r))},u=(t,e)=>{const r=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download",t),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>window.URL.revokeObjectURL(r),100)},l={asBuffer:(...t)=>c(...t).then(t=>t.arrayBuffer()),asDownload:async(t,e,r,n,o)=>{u(o,await c(t,e,r,n))},asZipDownload:async(t,e,r,o,i,a,l)=>{let h=Object(n.a)(i,".zip")||"archive",f=new s(h);await Promise.all(t.map(async(t,n)=>{let i=(t=>a.replace("{}",String(t+1).padStart(l,"0")))(n);await f.add(i,await c(t,e,r,o))})),u(h+".zip",f.blob)},atScale:(t,e,r)=>t.map(t=>{if(1==e&&!r)return t.canvas;let n=document.createElement("canvas"),o=n.getContext("2d"),i=t.canvas?t.canvas:t;return n.width=i.width*e,n.height=i.height*e,r&&(o.fillStyle=r,o.fillRect(0,0,n.width,n.height)),o.scale(e,e),o.drawImage(i,0,0),n}),options:function(t,{filename:e="",extension:r="",format:i,page:a,quality:s,matte:c,density:u,outline:l,archive:h}={}){var{fromMime:f,toMime:p,expected:d}=new o,y=(h=h||"canvas",i||r.replace(/@\d+x$/i,"")||Object(n.b)(e)),g=(i=f(p(y)||y),p(i)),v=t.length;if(!y)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!i)throw new Error(`Unsupported file format "${y}" (expected ${d})`);if(!v)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let m,b,w=e.replace(/{(\d*)}/g,(t,e)=>(b=!0,e=parseInt(e,10),m=isFinite(e)?e:isFinite(m)?m:-1,"{}")),x=a>0?a-1:a<0?v+a:void 0;if(isFinite(x)&&x<0||x>=v)throw new RangeError(1==v?`Canvas only has a ‘page 1’ (${x} is out of bounds)`:`Canvas has pages 1–${v} (${x} is out of bounds)`);if(t=isFinite(x)?[t[x]]:b||"pdf"==i?t:t.slice(-1),void 0===s)s=.92;else if("number"!=typeof s||!isFinite(s)||s<0||s>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===u){let t=(r||Object(n.a)(e,y)).match(/@(\d+)x$/i);u=t?parseInt(t[1],10):1}else if("number"!=typeof u||!Number.isInteger(u)||u<1)throw new TypeError("The density option must be a non-negative integer");return void 0===l?l=!0:"svg"==i&&(l=!!l),{filename:e,pattern:w,format:i,mime:g,pages:t,padding:m,quality:s,matte:c,density:u,outline:l,archive:h}}};e.a=l}).call(this,r(8))},function(t,e,r){"use strict";var n=function(t,e){var r,n,o,i,a;function s(t,e,n,o,i){r[e][0]-=t*(r[e][0]-n)/1024,r[e][1]-=t*(r[e][1]-o)/1024,r[e][2]-=t*(r[e][2]-i)/1024}function c(t,e,n,o,i){for(var s,c,u=Math.abs(e-t),l=Math.min(e+t,256),h=e+1,f=e-1,p=1;h<l||f>u;)c=a[p++],h<l&&((s=r[h++])[0]-=c*(s[0]-n)/(1<<18),s[1]-=c*(s[1]-o)/(1<<18),s[2]-=c*(s[2]-i)/(1<<18)),f>u&&((s=r[f--])[0]-=c*(s[0]-n)/(1<<18),s[1]-=c*(s[1]-o)/(1<<18),s[2]-=c*(s[2]-i)/(1<<18))}function u(t,e,n){var a,s,c,u,l,h=~(1<<31),f=h,p=-1,d=p;for(a=0;a<256;a++)s=r[a],(c=Math.abs(s[0]-t)+Math.abs(s[1]-e)+Math.abs(s[2]-n))<h&&(h=c,p=a),(u=c-(o[a]>>12))<f&&(f=u,d=a),l=i[a]>>10,i[a]-=l,o[a]+=l<<10;return i[p]+=64,o[p]-=65536,d}this.buildColormap=function(){!function(){var t,e;for(r=[],n=new Int32Array(256),o=new Int32Array(256),i=new Int32Array(256),a=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,r[t]=new Float64Array([e,e,e,0]),i[t]=256,o[t]=0}(),function(){var r,n,o,i,l,h,f=t.length,p=30+(e-1)/3,d=f/(3*e),y=~~(d/100),g=1024,v=2048,m=v>>6;for(m<=1&&(m=0),r=0;r<m;r++)a[r]=g*(256*(m*m-r*r)/(m*m));f<1509?(e=1,n=3):n=f%499!=0?1497:f%491!=0?1473:f%487!=0?1461:1509;var b=0;for(r=0;r<d;)if(s(g,h=u(o=(255&t[b])<<4,i=(255&t[b+1])<<4,l=(255&t[b+2])<<4),o,i,l),0!==m&&c(m,h,o,i,l),(b+=n)>=f&&(b-=f),0===y&&(y=1),++r%y==0)for(g-=g/p,(m=(v-=v/30)>>6)<=1&&(m=0),h=0;h<m;h++)a[h]=g*(256*(m*m-h*h)/(m*m))}(),function(){for(var t=0;t<256;t++)r[t][0]>>=4,r[t][1]>>=4,r[t][2]>>=4,r[t][3]=t}(),function(){var t,e,o,i,a,s,c=0,u=0;for(t=0;t<256;t++){for(a=t,s=(o=r[t])[1],e=t+1;e<256;e++)(i=r[e])[1]<s&&(a=e,s=i[1]);if(i=r[a],t!=a&&(e=i[0],i[0]=o[0],o[0]=e,e=i[1],i[1]=o[1],o[1]=e,e=i[2],i[2]=o[2],o[2]=e,e=i[3],i[3]=o[3],o[3]=e),s!=c){for(n[c]=u+t>>1,e=c+1;e<s;e++)n[e]=t;c=s,u=t}}for(n[c]=u+255>>1,e=c+1;e<256;e++)n[e]=255}()},this.getColormap=function(){for(var t=[],e=[],n=0;n<256;n++)e[r[n][3]]=n;for(var o=0,i=0;i<256;i++){var a=e[i];t[o++]=r[a][0],t[o++]=r[a][1],t[o++]=r[a][2]}return t},this.lookupRGB=function(t,e,o){for(var i,a,s,c=1e3,u=-1,l=n[e],h=l-1;l<256||h>=0;)l<256&&((s=(a=r[l])[1]-e)>=c?l=256:(l++,s<0&&(s=-s),(i=a[0]-t)<0&&(i=-i),(s+=i)<c&&((i=a[2]-o)<0&&(i=-i),(s+=i)<c&&(c=s,u=a[3])))),h>=0&&((s=e-(a=r[h])[1])>=c?h=-1:(h--,s<0&&(s=-s),(i=a[0]-t)<0&&(i=-i),(s+=i)<c&&((i=a[2]-o)<0&&(i=-i),(s+=i)<c&&(c=s,u=a[3]))));return u}},o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=function(t,e,r,n){var i,a,s,c,u,l,h,f,p,d=Math.max(2,n),y=new Uint8Array(256),g=new Int32Array(5003),v=new Int32Array(5003),m=0,b=0,w=!1;function x(t,e){y[a++]=t,a>=254&&k(e)}function S(t){C(5003),b=u+2,w=!0,P(u,t)}function C(t){for(var e=0;e<t;++e)g[e]=-1}function k(t){a>0&&(t.writeByte(a),t.writeBytes(y,0,a),a=0)}function L(t){return(1<<t)-1}function A(){return 0===h?-1:(--h,255&r[f++])}function P(t,e){for(i&=o[m],m>0?i|=t<<m:i=t,m+=p;m>=8;)x(255&i,e),i>>=8,m-=8;if((b>s||w)&&(w?(s=L(p=c),w=!1):(++p,s=12==p?4096:L(p))),t==l){for(;m>0;)x(255&i,e),i>>=8,m-=8;k(e)}}this.encode=function(r){r.writeByte(d),h=t*e,f=0,function(t,e){var r,n,o,i,h,f;for(w=!1,s=L(p=c=t),l=1+(u=1<<t-1),b=u+2,a=0,i=A(),f=0,r=5003;r<65536;r*=2)++f;f=8-f,C(5003),P(u,e);t:for(;-1!=(n=A());)if(r=(n<<12)+i,g[o=n<<f^i]!==r){if(g[o]>=0){h=5003-o,0===o&&(h=1);do{if((o-=h)<0&&(o+=5003),g[o]===r){i=v[o];continue t}}while(g[o]>=0)}P(i,e),i=n,b<4096?(v[o]=b++,g[o]=r):S(e)}else i=v[o];P(i,e),P(l,e)}(d+1,r),r.writeByte(0)}};function a(){this.page=-1,this.pages=[],this.newPage()}a.pageSize=4096,a.charMap={};for(var s=0;s<256;s++)a.charMap[s]=String.fromCharCode(s);function c(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var t="",e=0;e<this.pages.length;e++)for(var r=0;r<a.pageSize;r++)t+=a.charMap[this.pages[e][r]];return t},a.prototype.toFlattenUint8Array=function(){for(var t=[],e=0;e<this.pages.length;e++)if(e===this.pages.length-1){var r=Uint8Array.from(this.pages[e].slice(0,this.cursor));t.push(r)}else t.push(this.pages[e]);var n=new Uint8Array(t.reduce((function(t,e){return t+e.length}),0));return t.reduce((function(t,e){return n.set(e,t),t+e.length}),0),n},a.prototype.writeByte=function(t){this.cursor>=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,r=0;r<e;r++)this.writeByte(t.charCodeAt(r))},a.prototype.writeBytes=function(t,e,r){for(var n=r||t.length,o=e||0;o<n;o++)this.writeByte(t[o])},c.prototype.setDelay=function(t){this.delay=Math.round(t/10)},c.prototype.setFrameRate=function(t){this.delay=Math.round(100/t)},c.prototype.setDispose=function(t){t>=0&&(this.dispose=t)},c.prototype.setRepeat=function(t){this.repeat=t},c.prototype.setTransparent=function(t){this.transparent=t},c.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},c.prototype.finish=function(){this.out.writeByte(59)},c.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},c.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},c.prototype.setGlobalPalette=function(t){this.globalPalette=t},c.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},c.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},c.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},c.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var r=0,n=0;n<e;n++){var o=this.findClosestRGB(255&this.pixels[r++],255&this.pixels[r++],255&this.pixels[r++]);this.usedEntry[o]=!0,this.indexedPixels[n]=o}},c.prototype.ditherPixels=function(t,e){var r={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!t||!r[t])throw"Unknown dithering kernel: "+t;var n=r[t],o=0,i=this.height,a=this.width,s=this.pixels,c=e?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var u=0;u<i;u++){e&&(c*=-1);for(var l=1==c?0:a-1,h=1==c?a:0;l!==h;l+=c){var f=3*(o=u*a+l),p=s[f],d=s[f+1],y=s[f+2];f=this.findClosestRGB(p,d,y),this.usedEntry[f]=!0,this.indexedPixels[o]=f,f*=3;for(var g=p-this.colorTab[f],v=d-this.colorTab[f+1],m=y-this.colorTab[f+2],b=1==c?0:n.length-1,w=1==c?n.length:0;b!==w;b+=c){var x=n[b][1],S=n[b][2];if(x+l>=0&&x+l<a&&S+u>=0&&S+u<i){var C=n[b][0];f=o+x+S*a,s[f*=3]=Math.max(0,Math.min(255,s[f]+g*C)),s[f+1]=Math.max(0,Math.min(255,s[f+1]+v*C)),s[f+2]=Math.max(0,Math.min(255,s[f+2]+m*C))}}}}},c.prototype.findClosest=function(t,e){return this.findClosestRGB((16711680&t)>>16,(65280&t)>>8,255&t,e)},c.prototype.findClosestRGB=function(t,e,r,n){if(null===this.colorTab)return-1;if(this.neuQuant&&!n)return this.neuQuant.lookupRGB(t,e,r);for(var o=0,i=16777216,a=this.colorTab.length,s=0,c=0;s<a;c++){var u=t-(255&this.colorTab[s++]),l=e-(255&this.colorTab[s++]),h=r-(255&this.colorTab[s++]),f=u*u+l*l+h*h;(!n||this.usedEntry[c])&&f<i&&(i=f,o=c)}return o},c.prototype.getImagePixels=function(){var t=this.width,e=this.height;this.pixels=new Uint8Array(t*e*3);for(var r=this.image,n=0,o=0,i=0;i<e;i++)for(var a=0;a<t;a++)this.pixels[o++]=r[n++],this.pixels[o++]=r[n++],this.pixels[o++]=r[n++],n++},c.prototype.writeGraphicCtrlExt=function(){var t,e;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(t=0,e=0):(t=1,e=2),this.dispose>=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},c.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},c.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},c.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},c.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e<t;e++)this.out.writeByte(0)},c.prototype.writeShort=function(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)},c.prototype.writePixels=function(){new i(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},c.prototype.stream=function(){return this.out},e.a=c},function(t,e,r){t.exports=r(20)},function(t,e,r){var n=r(2).default;function o(){"use strict";
  7. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=C(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p={};function d(){}function y(){}function g(){}var v={};l(v,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(P([])));b&&b!==r&&i.call(b,s)&&(v=b);var w=g.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){var r;this._invoke=function(o,a){function s(){return new e((function(r,s){!function r(o,a,s,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==n(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}(o,a,r,s)}))}return r=r?r.then(s,s):s()}}function C(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return y.prototype=g,l(w,"constructor",g),l(g,"constructor",y),y.displayName=l(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,u,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";(function(t){
  8. /*!
  9. * The buffer module from node.js, for the browser.
  10. *
  11. * @author Feross Aboukhadijeh <http://feross.org>
  12. * @license MIT
  13. */
  14. var n=r(16),o=r(17),i=r(18);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,r)}function u(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=f(t,e),t}(t,e,r,n):"string"==typeof e?function(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(e,r),o=(t=s(t,n)).write(e,r);return o!==n&&(t=t.slice(0,o)),t}(t,e,r):function(t,e){if(c.isBuffer(e)){var r=0|p(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?s(t,0):f(t,e);if("Buffer"===e.type&&i(e.data))return f(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(l(e),t=s(t,e<0?0:0|p(e)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function f(t,e){var r=e.length<0?0:0|p(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function d(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(t).length;default:if(n)return F(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return P(this,e,r);case"latin1":case"binary":return E(this,e,r);case"base64":return L(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<s;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){for(var h=!0,f=0;f<c;f++)if(u(t,i+f)!==u(e,f)){h=!1;break}if(h)return i}return-1}function b(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return Y(F(e,t.length-r),t,r,n)}function x(t,e,r,n){return Y(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function S(t,e,r,n){return x(t,e,r,n)}function C(t,e,r,n){return Y(U(e),t,r,n)}function k(t,e,r,n){return Y(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function L(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,c,u=t[o],l=null,h=u>239?4:u>223?3:u>191?2:1;if(o+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(i=t[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function P(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function E(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function O(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=G(t[i]);return o}function _(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function N(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function j(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function B(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(t,e,r,n,i){return i||B(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,i){return i||B(t,0,r,8),o.write(t,e,r,n,52,8),r+8}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,r){return u(null,t,e,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,r){return function(t,e,r,n){return l(e),e<=0?s(t,e):void 0!==r?"string"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=c.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},c.byteLength=d,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):y.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,r,n,o){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),u=this.slice(n,o),l=t.slice(e,r),h=0;h<s;++h)if(u[h]!==l[h]){i=u[h],a=l[h];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},c.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return x(this,t,e,r);case"latin1":case"binary":return S(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=c.prototype;else{var o=e-t;r=new c(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},c.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},c.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},c.prototype.readUInt8=function(t,e){return e||T(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||T(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||T(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||T(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||T(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||T(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||T(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||I(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUIntBE=function(t,e,r,n){t=+t,e|=0,r|=0,n||I(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);I(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);I(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return M(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return M(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},c.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=c.isBuffer(t)?t:F(new c(t,n).toString()),s=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var R=/[^+\/0-9A-Za-z-_]/g;function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function F(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function U(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(R,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(8))},function(t,e,r){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),a=n[0],s=n[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),l=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===s&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===s&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=0,s=r-o;a<s;a+=16383)i.push(l(t,a,a+16383>s?s:a+16383));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,r){for(var o,i,a=[],s=e;s<r;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){
  15. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  16. e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,c=(1<<s)-1,u=c>>1,l=-7,h=r?o-1:0,f=r?-1:1,p=t[e+h];for(h+=f,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+t[e+h],h+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=f,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,h=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+h>=1?f/c:f*Math.pow(2,1-h))*c>=2&&(a++,c/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*c-1)*Math.pow(2,o),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*y}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,u=[],l=!1,h=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):h=-1,u.length&&p())}function p(){if(!l){var t=s(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++h<e;)c&&c[h].run();h=-1,e=u.length}c=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),1!==u.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,r){"use strict";r.r(e);var n=r(6),o=r.n(n),i=r(3),a=r.n(i);function s(t){return""===t?t:"true"===t||"1"==t}var c=function(t,e){return new Promise((function(e,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(n.response)},n.open("GET",t),n.send()}))},u=r(9),l=function(t,e,r,n,o,i,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},name:"vue-qr",data:function(){return{imgUrl:""}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.main()},methods:{main:function(){var t=this;return o()(a.a.mark((function e(){var r,n,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.gifBgSrc){e.next=7;break}return e.next=3,c(t.gifBgSrc);case 3:return r=e.sent,n=t.logoSrc,t.render(void 0,n,r),e.abrupt("return");case 7:o=t.bgSrc,i=t.logoSrc,t.render(o,i);case 10:case"end":return e.stop()}}),e)})))()},render:function(t,e,r){var n=this;return o()(a.a.mark((function o(){var i;return a.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:i=n,new u.a({gifBackground:r,text:i.text,size:i.size,margin:i.margin,colorDark:i.colorDark,colorLight:i.colorLight,backgroundColor:i.backgroundColor,backgroundImage:t,backgroundDimming:i.backgroundDimming,logoImage:e,logoScale:i.logoScale,logoBackgroundColor:i.logoBackgroundColor,correctLevel:i.correctLevel,logoMargin:i.logoMargin,logoCornerRadius:i.logoCornerRadius,whiteMargin:s(i.whiteMargin),dotScale:i.dotScale,autoColor:s(i.autoColor),binarize:s(i.binarize),binarizeThreshold:i.binarizeThreshold,components:i.components}).draw().then((function(t){n.imgUrl=t,i.callback&&i.callback(t,i.qid)}));case 2:case"end":return o.stop()}}),o)})))()}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.bindElement?e("img",{staticStyle:{display:"inline-block"},attrs:{src:this.imgUrl}}):this._e()}),[],!1,null,null,null).exports;l.install=function(t){return t.component(l.name,l)};var h=l,f=[h];"undefined"!=typeof window&&window.Vue&&function(t){f.map((function(e){t.component(e.name,e)}))}(window.Vue),e.default=h}])}))},"6e6e":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[t._t("default",(function(){return[t._v(t._s(t.name?t.name:t.$route.meta.descrition))]}))],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},o=[],i={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},a=i,s=(r("70bb"),r("2877")),c=Object(s["a"])(a,n,o,!1,null,"10a70108",null);e["a"]=c.exports},7004:function(t,e,r){"use strict";r("534e")},"707b":function(t,e,r){},"70bb":function(t,e,r){"use strict";r("c905")},"72bf":function(t,e,r){"use strict";var n=r("6453"),o=r("320c"),i=r("f234");function a(t){switch(t.arrayFormat){case"index":return function(e,r,n){return null===r?[c(e,t),"[",n,"]"].join(""):[c(e,t),"[",c(n,t),"]=",c(r,t)].join("")};case"bracket":return function(e,r){return null===r?c(e,t):[c(e,t),"[]=",c(r,t)].join("")};default:return function(e,r){return null===r?c(e,t):[c(e,t),"=",c(r,t)].join("")}}}function s(t){var e;switch(t.arrayFormat){case"index":return function(t,r,n){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return function(t,r,n){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}function c(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function u(t){return Array.isArray(t)?t.sort():"object"===typeof t?u(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}function l(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function h(t,e){e=o({arrayFormat:"none"},e);var r=s(e),n=Object.create(null);return"string"!==typeof t?n:(t=t.trim().replace(/^[?#&]/,""),t?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),o=e.shift(),a=e.length>0?e.join("="):void 0;a=void 0===a?null:i(a),r(i(o),a,n)})),Object.keys(n).sort().reduce((function(t,e){var r=n[e];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?t[e]=u(r):t[e]=r,t}),Object.create(null))):n)}e.extract=l,e.parse=h,e.stringify=function(t,e){var r={encode:!0,strict:!0,arrayFormat:"none"};e=o(r,e),!1===e.sort&&(e.sort=function(){});var n=a(e);return t?Object.keys(t).sort(e.sort).map((function(r){var o=t[r];if(void 0===o)return"";if(null===o)return c(r,e);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(t){void 0!==t&&i.push(n(r,t,i.length))})),i.join("&")}return c(r,e)+"="+c(o,e)})).filter((function(t){return t.length>0})).join("&"):""},e.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:h(l(t),e)}}},"77b6":function(t,e,r){"use strict";r("0720")},"841a":function(t,e,r){},"8f37":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAFv0lEQVRYR9WZaVBTVxTH/y+bCbKkCSRSA6iIaHXAbTodFGxdWlHbKX5qa/VLWXSq1rqgFrXLtCOIFuvWWnBsxbbTWltbB6tV2+q4FgTjQFldiEITDDEQk5CQvNe5z5ESQpKXKCr3W97Zfvfk3nPue5dCjyG7LBtNU0gHgxmgEA0GIT11+vQ3BRMYaEDhOI9BkWGsoap7PKrrRyVEUlq+BTSzCAC/T6G4O3eCR31u5LWuwBjYidk9YALrlB8Bw0zj7usRalLUSSO/dRaBZoGlV+TbQTOLHyGC/6F41A5jQusSil2zgPoJWgaeJuPkAYmUVC0rAINl/k/5MVhQ2EpJL8sqAYx+DOEDCVlFMtz+yEtXIKj3SoSJZJjx136cZBymhUzF5ODJiBZFIUIQAT7Fh8FhgMauwQXzRfxp+gtnzGfAwG/3XnH8Ak4NnYnlincxceBETnO8ZruG7S07sM9QDBo0JxtfSpyApXwptgzejLlPpfny16tcbVEjvTEDDfarAdm7dDpfSyJcEI6S2MMYIR7xQMGMDiPm31iAM+azD+THa4YllAS/xx3DGMnDKSImpwkvNaSiuqM6YGivwB9GfoCliiUuzjX2m8hpyoGJvov8wZsQJx7uImcYBp+2FOBY+zGkSdOwKGKhi7y+ox5JtZPhgCMgaI/AUcIolI8qg4ASuDhecnMp9hu+YZ9lyNOxSZXnIr9iuYIp9S+wz/jgQ5vQ7OZjTdNa7NZ/+XCBVyiWY11kjpvTH+8cxELNIjjhxK6onXhd9pqLTruzHc/XTcV1+3WQ8vfHiBNuPqqtNUiqm/RwgU/GHcf4oPG9Ov23UwsLbUHsgGG9ym20DXW2OsQNiIOYJwbN0FBb1aiy/gOdQwcH48C229tZH/4Oj0tCM+YGQvgPdnYnlWHn7V0oaTuCsUGJSAlOQYwoGnJBOKy0FS0OHUrNZThhOokKawUndo/ALQlaCCkhJye9KZFNt655A7LCMzFP9gYkPIlXX6XmUnyi3YhTd0951fMIXPtMNRRCRUDAhfoilLSVYHf0F1AKlZx9kApTqC9ETvN6j1XEI/CBod9jeuh0zsHuKx5tO8pWgO+Gfsuu30DGIeMhpDdmshu75/AIvEA2H59FbfUrntlpxqyG2fgl9hCkAqlbfaao/18huwtJZnvKcrV5yNNt4g4spsRsHY4URnKG3tqyDeECOd6UzXOxKdLvwbrm9ezzzar8LpmTcWLO1VdQ21GLr2L2IiUkuUtmp+14rjaJLY/dh9dONys0FfuHFLvN3tMMZjfMwYFhPyCIF+SiQv7eg8aDiBUNQ9mo0i4ZadVxVfGwMTa8P2gDlinfcbEr0BXgI+3H3IGJ5nvKtVg1aKXPLJOG8VZjOgvcc9xx3MGR9t8wJTgFKpHKRVxuKUejXYOXw+a4dcRKayWS66b4B0y01yhXI1u5ymuma6w12K0vREHUFp+T46rQ7jQhpnKI/8DEIlOegTxVrsdYly1q7G3d6/dG9QZPNrGqMjowYJLl1YOyPfrXderYM8bPsT9xTaBPvTLzJcxoeDEw4Avx5xAvjsdp02nk6zajg+lAoiQRMaIYKAQKiHhCrLyVjYpRlxDKD/UJw0VhfdMG7NDv9B945IB45KvykavNxVnzOa+xcp/eiKyITC48XnW0nVpMrHkWZtrsPzCpySSjXEYYLwwXR573qyX39NvJdOLVq2k4Zz7vFpLTSygX0O46YyWJbLcLZGmQo+iyW8tRbCjuNWyfAJNICeIE7IkpwnBxLOf5dtA2ZGmy8GvbYY82fQZMIpKOtzjibWSGZ0AukPsE1ztaEV810us3jD4Fvk9I9sCk4CQkByezVYWcN+46zWjqvIVySwUIaLZyJSYMnICZ9am4aPn78WTYZ0p7KMwNS2Pfcr427PMC3A8/Bva7z63964N2v7syIKu7X13KsNuxv117dUH3m4vFblXvSb+6/Q/3RV8/cgQL7gAAAABJRU5ErkJggg=="},9786:function(t,e,r){"use strict";r("ecc0")},"9c08":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADBklEQVRIS72W/0uVVxzHX+ec57ne1KXFNNOlpTRbKpX0k2gUMUf7oVnQYBUMGrSfBquNbeF+2C+S/RNNBkIQmH0xSGs2JvtlUlMIiSKs0L4typx6733uc844j6b3yiP3Ymuf355zPp/P+/P+fDmfRwC4p6fqpVQnDTQKyLVnyxWDmBaYAa3lCe9I5IZwTyfqhTS/C8wbOV4ckAVyXLFD5HTErgDNy404g12viHTEp7KJvqVc0rpVBf5++NPn2iOdMSYD05aByagJfF2jaN/uBKoHr3t03c8MYHX/f4DmMsmZnbORpoojISJFcORp0CG8K8/GeR5Pt1sWg71XPXrH3iBFRVHYtVamhbLnPclnlbNFPjWcZPhFOoXu+xo/hFUog40rRVDUTHKoShJVgtsThi3diVD1rFO02HpTgeCvlkhw3D6c5KebfnYAa6JgC73hndmCPp4xjLw03Hxu+Ce54KOtXvFNnRMUu/ZcgnuT4d0+z8C6+3Gr4ttaRY4SGANiFiOQpDYM/m3oeai5/lhz6UOXgojgwgOfT/tTkBfxmAdo3aI4XKVoG0rSN6Z5GoN8F2pXCT4qkxysVJTnpyDOOTrwq8fFh0t3VACQ58BQS4SGS4nAcZjYEdhXIbGBbC5c6DCboj+eaDrv+XSNaia8kDnY/q7gWI3i0G9LU7VmxVHo3xOhaqUg5pugg1Il7hv6xg1doz5945pnsbmnorpA8HOjQ0PPIvgU64p86N7t8kGhDArf1JOgbpXkeI2isSR9ZqyZZXbrpYkHKbJxDO51Of9A0zbkpw2MI+DzjZK2eofCHMHopOGTa17Q+6/FZuCrzYr9FRJ37jmZu5uZL/K21YLLzS6THvQ/0rxIQGku7CyRFK8Q+MbQeVfz/WAyuAsTq3+0WvHF+4qiaJC+BQD7tS4Pvqtz+HidpHSFwOZ0ZMJwdVzzy13NnVdZvezkKDiwXvJltTMjIh2xqbA9bFOTzM5fOB3g9cJ5uyvzbS59o5NNQSUsiJT6P/ptYVrAgNb+Ce9I3o1/AXUqQlA5Ce8vAAAAAElFTkSuQmCC"},a40b:function(t,e,r){"use strict";r("707b")},af41:function(t,e,r){},b1ec:function(t,e,r){t.exports=r.p+"img/icon-address.6d64ef81.png"},ba25:function(t,e,r){"use strict";r.d(e,"e",(function(){return o})),r.d(e,"f",(function(){return i})),r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return s})),r.d(e,"d",(function(){return c}));var n=r("2b7c");function o(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/home/content",method:"get",params:t})}var i=function(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/product/search",method:"post",data:t})},a=function(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/member/address/list/".concat(t.userId),method:"get"})},s=function(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/cart/addAll",method:"post",data:t})},c=function(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/order/teacher/generateOrder",method:"post",data:t})}},c251:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAA51BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////8Ukoo5pJ0snpYYlYz1+/oclo5ftbA1opv6/f3u9/fV7OogmJDm9PNPradCqKHh8vHb7+7Q6ugkmpP8/v5xvrnL6Oag09BLrKa/4uBas60woJkpnJWt2tdTsKo9pp90v7q84d6l1tOWz8tmuLPw+fjq9vVru7ZGqqSy3NmZ0M2RzMmJycV+xL96wr2MyseFx8L3/PzG5eS5392p2NWc0s6HyMOCxcEJDKN7AAAAFXRSTlMACvvw6GX248zLvqiklH99RTcbFg+xn1GKAAAGzUlEQVR42rzV2VbiQBSF4crAPDrswoQYBBFtEMWBVgQbBJUWff/n6bXawkQOIJVV1Hd5LshPTiphyxjFQjaVsEwoYlqJVLZQNNhG9mNpE1thpmP77Cd7uTi2KJ7bY+sYeQtbZuXXbCJmQwM7turvZ6BJZulN2E1Cm+QuI3ZsaGTvkOvHoVV8oWDXhmb2ty0YSWiXNFggA+iXCZ1/ROG/35YPHr3ueQ3RxJhg2IjgV5vP1Z8biMCeLyGPKIY8bHACeXnx/bEQxSX/xplUIMv6/DLlEEmJLzhoQVbu//c/DkouQHDuICm+L3EEaAA1gQxxENKQJwKod8hJM2aYIKQCyoc85BpSTIMVQcgFHGDqBQHlFqQUWQGEbAAwDfbR8SGjwLIg5APgBjfhHjKyLAVKPgDocuGsAgkplgARKQBepLOYYBaIaAFuRwyqMk+BxUwQ0QJwwYXf2JzJQEQNQFtMmpCgMuCPmFyB0BPgl8XoCISWANzIvY/VB7yI0QiEnoCZGH2A0BNwLUZdEHoCzsVoDEJPwLMYPYHQE9ATo3MQegKuxGgKQktAiwsVEBoCgg0cg9AS0HDEZAZCS0CbC30QOgJGXGYD6gPe+NwFqO0HzBwueJCgKqAy4HPlE0hQE+AOz/iXF0hQElAdVHngxsdK6gOougsZ0QNOhsd8icM+KPUBjec6X65XA6E8oNHjqzmDIxASAfKXp25OQSgLcJsO/5Hz8QpBdcDpId9IaQpsI2Do8E2NtxDw4PFF5XqvO34fNy9LJM3zVQc81Bcu7s0a+OK3Rsf8m/aD2gD3kYfd3tHfr42ueEippjLAbfOQzhuWcp+q4UhXXcBr+P6e3ftYpTIJPQ2X6gKa4eX2sc5ph3+ZqAr4ywNNH+v1Q9u6UxNQ+de8lTclDsXwVdfZ2cPdndnxTQ9KWwq0hXKIXIrF5VBB/f6fZ2egeUeo8DDMYv6STk1/zUt+eS9NhHOZ6pY7LoWLTrOqOmRR2MsvHQSARAALOSUPA1hwo7aQ6fdB0MEhAHRYXhm2mTJF/KmbB7lPBxA7Yv2FqwVsQ/y5xeORs5bzSAYgDBBw//vLcqVb5aRkwLV7MoDyhkdZb+4JIn4o6XNCpAJoMpAJsFK6ZS/QwSU71qQBEIoMS/EwLPiLiccDgQagwkASJcYAVas2u0nlZHwFJ6M7MEqJBGDI3TleX3iSk9K06a5SdeKIiwH4IcC6JwEIGKp+pngbvHrjeG5ukFUL1oACoMj1llBQCpuHa2e1ud/HqHhOACDqTml2wcmJvZEaeGyZRSuArxIADNGh12NCMEHO8D4gAPclAOihaJ7kAfDjNT9A0rQt9eYeAcA1coEuyxMPBehYdYICAQAvAmQ+yYNSARBmxzb4/aquV0AAcAWejWhppgAAqvGhnyPbycM/EwCAylQNCgP+gAeoees6S+QQhwQADFSqq+rAs1QvTxEiOyOrA1ggUJNs+zI0mQCHLVDOfmf3+AQAhqrSA+65vFzY8HyL751slQgeYcEIABxu85W4UuBV7uzVGU3c7DE18EtkJxRkZhaVVWXzVVBWPVe+eYoS19MBwrDGVD5viYSzIVaEeCEBqibnApFgBvwlt9C2gS4MCQCaTOUW18wrCaNsOEMO1CQA4Cm1jTeETglBtTEzA22aFgGA+AzyxL/LAKS6Uj8Sz79Bh4cGaUv2gk9FPcalV+HmB5ywOHIim5AAeFxvZvKRXIcJJuNmf9BTcuML9gmPdi4oYxPUbbZNWkCLXU6iNADPoNmEN1kyLGphCAXsMxHAbYTfDcgBJLc0ZhmQNizq4XSyWZ3o+yxfCtZGjWJCPh3f8qdFVV4zL+eeTOcbDTXM31Wv1GhkEhZ3RO5ZthmWG0GOoa3b2naq0coVd+USBUgxaShn0hr4qFKe6MY7lJ/pNLPVpbeUi3Tu8u66G9nttPCgsOJILNDO9sYvWu18L1plSpDQ2KPF9KteQ+O1QGCEu2pKtrRb3Ck/9Fo6R5LL2YOt6XMqlQ80PuL90mxqrcoZoNx/018TQ/JLnY7337ptvaHCPUE93/pyVvJDDbWnJ9DYrOtaII3ExdWkOTwefEVDvu3R2l3BH4vL045nreOxPqg5KClUtJSe79Pc7rby6DcyIjMnKSv22d7c/uni4N/tzHtNhRf7Djh4DaYhDU9T3dmf/Uc8OgbbIYZ+P+XP9wy5FBOHbREn0W+h+HzyvjGfeNwy31j71jjeQ9H5+wed3KQQMSRRAahBU74TR728wWuh245MM2p3C68DDcfDo14fadjt+ON+xx94PP7I5/GHXo8/9vsBBp+PP/r9AYbf//v4/z/IfVQ1r+aOpgAAAABJRU5ErkJggg=="},c905:function(t,e,r){},c9c2:function(t,e,r){t.exports=r.p+"img/icon-sell-out.fd867225.png"},d0e8:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"goodsOrder"},[n("div",{ref:"goodsOrder"},[n("m-header",{attrs:{backUrl:t.backUrl}}),n("van-cell-group",[n("van-field",{attrs:{readonly:"",clickable:"",label:"订单类型",value:t.orderText,"input-align":"right",placeholder:"选择类型"},on:{click:function(e){t.showPicker=!0}}}),n("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[n("van-picker",{attrs:{"show-toolbar":"",columns:t.columns},on:{cancel:function(e){t.showPicker=!1},confirm:t.onConfirm}})],1),n("van-field",{attrs:{readonly:!0,label:"学生姓名",placeholder:"请输入学生姓名","input-align":"right"},model:{value:t.studentName,callback:function(e){t.studentName=e},expression:"studentName"}}),n("van-field",{attrs:{label:"选择商品",readonly:!0,"is-link":"",placeholder:"选择商品","input-align":"right"},on:{click:function(){t.goodsStatus=!0,t.hashState("goods")}}}),n("div",{staticClass:"studentContainer"},t._l(t.goodsList,(function(e,r){return n("van-cell",{key:r,staticClass:"input-cell",attrs:{center:!0}},[n("template",{slot:"icon"},[n("van-image",{staticClass:"logo",attrs:{src:e.pic,alt:""}})],1),n("template",{slot:"title"},[n("div",{staticClass:"content"},[n("div",{staticClass:"name"},[n("span",{staticStyle:{"vertical-align":"middle","line-height":"0.16rem"}},[t._v(t._s(e.name))]),n("van-tag",{staticStyle:{"margin-left":"0",padding:"0.01rem 0.03rem","margin-right":"0.05rem"},attrs:{plain:"",color:"#C2A076"}},[t._v("品牌:"+t._s(e.brandName))])],1),n("div",{staticClass:"operation",on:{click:function(r){return t.onGoodDel(t.goodsList,e)}}},[n("i",{staticClass:"icon_del"}),t._v("删除\n ")])]),n("p",{staticStyle:{padding:"0.02rem 0","font-size":"0.14rem",color:"#808080"}},[t._v("\n 型号:"+t._s(e.productSn)+"\n ")]),n("div",{staticClass:"price-section"},[n("div",[n("span",{staticClass:"money"},[n("span",{staticStyle:{"font-weight":"400","font-size":"0.14rem"}},[t._v("现价:")]),n("i",[t._v("¥")]),t._v(t._s(t._f("moneyFormat")(e.price)))]),n("del",[t._v("原价:¥"+t._s(t._f("moneyFormat")(e.originalPrice)))])]),n("div",{staticStyle:{"font-size":"0.14rem",color:"#808080"}},[t._v("\n ×"+t._s(e.goodsNum)+"\n ")])])])],2)})),1)],1),n("van-cell",{staticClass:"cell-address",attrs:{"is-link":""},on:{click:function(e){t.addressStatus=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("img",{attrs:{src:r("b1ec")}})]},proxy:!0},{key:"title",fn:function(){return[t.addressInfo.id?n("div",[n("span",{staticClass:"userName"},[t._v(t._s(t.addressInfo.name))]),n("span",{staticClass:"phone"},[t._v("\n "+t._s(t.addressInfo.phoneNumber&&t.addressInfo.phoneNumber.replace(/^(\d{3})\d{4}(\d+)/,"$1****$2"))+"\n ")])]):n("div",{staticClass:"emtry"},[t._v("请选择收货地址")])]},proxy:!0},t.addressInfo.id?{key:"label",fn:function(){return[n("span",{staticClass:"addressInfo"},[t._v(t._s(t.addressInfo.province)+" "+t._s(t.addressInfo.city)+"\n "+t._s(t.addressInfo.region)+" "+t._s(t.addressInfo.detailAddress))])]},proxy:!0}:null],null,!0)}),n("van-cell-group",{staticClass:"pay-section"},[n("van-cell",{attrs:{disabled:!1,title:"总价格","title-class":"pay-name","value-class":"pay-value",center:!0},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(" ¥"+t._s(t._f("moneyFormat")(t.payCountMoney))+" ")]},proxy:!0}])})],1),n("protocol",{staticStyle:{"padding-top":"0.08rem"},attrs:{userId:t.studentId+""},model:{value:t.agreeStatus,callback:function(e){t.agreeStatus=e},expression:"agreeStatus"}}),n("div",{staticClass:"button-group"},[n("van-button",{staticClass:"btn-sure",attrs:{type:"primary",round:"",size:"large"},on:{click:function(e){return t.onRefundSure(t.obj)}}},[t._v("确认")])],1)],1),n("van-popup",{staticClass:"popup-qrcode",attrs:{closeable:"","close-icon":"cross"},on:{close:t.onClose},model:{value:t.qrCodeStatus,callback:function(e){t.qrCodeStatus=e},expression:"qrCodeStatus"}},[n("div",{attrs:{id:"qrcode"}},[n("vue-qr",{attrs:{logoSrc:t.config.imagePath,text:t.config.value,margin:10,size:220}})],1),n("a",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"download",attrs:{id:"tt",href:t.downloadUrl,download:t.downloadfilename}}),t.headerStatus?t._e():n("van-button",{attrs:{color:"#01C1B5",disabled:t.downloadStatus,type:"primary",round:""},on:{click:t.createPoster}},[t._v("下载二维码")])],1),n("van-popup",{style:{height:"100%",borderRadius:"0",overflowY:"auto"},attrs:{"lock-scroll":!0,position:"bottom"},model:{value:t.goodsStatus,callback:function(e){t.goodsStatus=e},expression:"goodsStatus"}},[n("GoodsList",{on:{getChoiceGood:t.getChoiceGood},model:{value:t.goodsStatus,callback:function(e){t.goodsStatus=e},expression:"goodsStatus"}})],1),n("van-action-sheet",{style:{height:"60%"},attrs:{title:"选择地址"},model:{value:t.addressStatus,callback:function(e){t.addressStatus=e},expression:"addressStatus"}},[n("AddAddress",{attrs:{addressInfo:t.addressInfo,userId:t.studentId},on:{onDetail:function(e){t.addressInfo=e}},model:{value:t.addressStatus,callback:function(e){t.addressStatus=e},expression:"addressStatus"}})],1),n("van-popup",{staticStyle:{"border-radius":"0 !important"},attrs:{id:"protocolPopup",position:"bottom"},model:{value:t.popupStatus,callback:function(e){t.popupStatus=e},expression:"popupStatus"}},[n("m-protocol",{attrs:{protocolHTML:t.protocolHTML},on:{onClose:function(e){t.popupStatus=!t.popupStatus},onPopupSure:function(e){t.popupStatus=!t.popupStatus}}})],1),t.refundStatus?n("van-popup",{staticStyle:{"border-radius":"0 !important"},attrs:{position:"bottom","get-container":"#app"},model:{value:t.refundStatus,callback:function(e){t.refundStatus=e},expression:"refundStatus"}},[n("m-refund",{attrs:{useSystem:"MALL",ids:[1],buyList:t.buyList,balance:t.balance},on:{onClose:function(e){t.refundStatus=!t.refundStatus},onPopupSure:t.onRefundSure}})],1):t._e(),n("m-payment",{attrs:{closeStatus:t.isStatus,amount:t.payMoney,payment:t.payment},on:{onChangeStatus:t.onChangeStatus}})],1)},o=[],i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"goodsList"},[n("van-sticky",[n("m-header",{attrs:{backUrl:t.backUrl2,isFixed:!1,name:"商品列表"}}),n("search",{attrs:{placeholder:"请输入商品名称"},on:{onSearch:t.onSearch}}),n("van-dropdown-menu",{staticStyle:{"background-color":"#fff"},attrs:{"active-color":"#01C1B5"}},[n("van-dropdown-item",{attrs:{title:t.valueText1,options:t.option1},on:{change:t.onOptionChange},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),n("van-dropdown-item",{attrs:{title:t.valueText2,options:t.option2},on:{change:t.onOptionChange},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1)],1),n("div",[t.dataShow?n("van-list",{key:"data",staticClass:"studentContainer",attrs:{"immediate-check":!1,finished:t.finished,"finished-text":""},on:{load:t.getList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[n("van-cell-group",t._l(t.dataList,(function(e,o){return n("van-cell",{key:o,staticClass:"input-cell",staticStyle:{"align-items":"flex-start"},attrs:{center:!0},on:{click:function(r){return t.onChoiceGood(e)}}},[n("template",{slot:"icon"},[n("div",{staticClass:"logo-section"},[n("van-image",{staticClass:"logo",attrs:{src:e.pic,alt:""}}),e.stock<=0?n("div",{staticClass:"sellOut"},[n("img",{staticClass:"sellOutImg",attrs:{src:r("c9c2"),fit:"cover"}})]):t._e()],1)]),n("template",{slot:"title"},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[t._v("\n "+t._s(e.name)+"\n ")]),n("van-tag",{staticStyle:{margin:"0.04rem 0"},attrs:{plain:"",color:"#C2A076"}},[t._v("品牌:"+t._s(e.brandName))]),n("p",{staticStyle:{padding:"0.02rem 0","font-size":"0.14rem",color:"#808080"}},[t._v("\n 型号:"+t._s(e.productSn)+"\n ")]),n("div",{staticClass:"price-section"},[n("div",[n("span",{staticClass:"money"},[n("span",{staticStyle:{"font-weight":"400","font-size":"0.14rem"}},[t._v("现价:")]),n("i",[t._v("¥")]),t._v(t._s(t._f("moneyFormat")(e.price)))]),n("del",[t._v("原价:¥"+t._s(t._f("moneyFormat")(e.originalPrice)))])]),n("div",{staticStyle:{"font-size":"0.14rem",color:"#808080"}},[t._v("×1")])])],1)],2)})),1)],1):n("m-empty",{staticClass:"empty",attrs:{msg:"暂无商品"}})],1),n("van-popup",{attrs:{closeable:"",position:"bottom",round:""},on:{close:function(){t.addGoodsShow=!1}},model:{value:t.addGoodsShow,callback:function(e){t.addGoodsShow=e},expression:"addGoodsShow"}},[n("addGoodsCart",{attrs:{show:t.addGoodsShow,item:t.selectGoodsItem},on:{onAddCart:t.onAddCart}})],1)],1)},a=[],s=r("71c2"),c=r("d678"),u=r("c106"),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"addGoodsCart"},[n("van-cell",{attrs:{"title-style":"padding-left: 12px"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("div",{staticClass:"goodsSection"},[n("van-image",{staticClass:"goodsImg",attrs:{src:t.selectItem.pic,fit:"cover"}}),t.selectItem.stock<=0?n("div",{staticClass:"sellOut"},[n("img",{staticClass:"sellOutImg",attrs:{src:r("c9c2"),fit:"cover"}})]):t._e()],1)]},proxy:!0},{key:"title",fn:function(){return[n("div",{staticClass:"goodsInfo"},[n("p",{staticClass:"goodsPrice"},[n("span",[t._v("¥")]),t._v("\n "+t._s(t._f("moneyFormat")(t.selectItem.price))+"\n ")]),n("p",{staticClass:"goodsStore"},[t._v("库存:"+t._s(t.selectItem.stock))])])]},proxy:!0}])}),n("van-cell",{scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"title"},[t._v("规格")])]},proxy:!0},{key:"label",fn:function(){return[n("van-radio-group",{staticClass:"radio-group",attrs:{value:t.radio}},t._l(t.skuStockList,(function(e,r){return n("van-radio",{key:r,staticClass:"radio",attrs:{name:e.id},on:{click:function(){t.radio!=e.id&&(t.radio=e.id)}}},[n("van-tag",{attrs:{size:"large",plain:e.id===t.radio,type:e.id===t.radio?"primary":"default"}},[t._v("\n "+t._s(e.spDataJson)+"\n ")])],1)})),1)]},proxy:!0}])}),n("van-cell",{staticStyle:{margin:"12px 0"},attrs:{title:"购买数量",border:!1,"title-class":"title",center:""}},[n("van-stepper",{attrs:{"input-width":"50px",theme:"round",buttonSize:"24px",max:t.selectItem.stock>200?200:t.selectItem.stock,min:1,disabled:t.selectItem.stock<=0,integer:""},model:{value:t.total,callback:function(e){t.total=e},expression:"total"}})],1),n("div",{staticClass:"btnGroup",staticStyle:{"margin-bottom":"8px"}},[n("van-button",{attrs:{block:"",round:"",type:"info",text:"确定",disabled:t.selectItem.stock<=0},on:{click:function(){return t.onAddCart()}}})],1)],1)},h=[];function f(t){return f="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},f(t)}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(E){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=c;var l={};function h(){}function d(){}function y(){}var g={};s(g,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(A([])));m&&m!==e&&r.call(m,o)&&(g=m);var b=y.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==f(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function C(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=y,s(b,"constructor",y),s(y,"constructor",d),d.displayName=s(y,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,a,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),s(b,a,"Generator"),s(b,o,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function d(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){d(i,n,o,a,s,"next",t)}function s(t){d(i,n,o,a,s,"throw",t)}a(void 0)}))}}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b={name:"addGoodsCart",props:{show:{type:Boolean,default:!1},item:{type:Object,default:{}},defaultRadio:{type:Number,default:0},showType:{type:String,default:"cart"},onGetCartCount:{type:Function,default:function(t){}}},watch:{show:function(t){t&&(this.totalData={},this.total=1,this.radio="",this.setList())}},data:function(){return{radio:"",total:1,totalData:{},skuStockList:[]}},computed:{selectItem:function(){var t=this.radio,e=this.skuStockList.find((function(e){return e.id==t}));if(e){var r=e.stock-e.lockStock;return v(v({},e),{},{stock:r})}return{stock:0}}},mounted:function(){this.setList()},methods:{setList:function(){var t=this,e=[],r=JSON.parse(JSON.stringify(this.item));if(Array.isArray(r.skuStockList)&&(e=r.skuStockList.map((function(t){if(t.pic=t.pic||r.pic,t.cartNum=0,t.spData){var e=JSON.parse(t.spData),n="";e.forEach((function(t){n+="".concat(t.value)})),t.spDataJson=n}else t.spDataJson="默认";return t.lockStock=t.lockStock>0?t.lockStock:0,v({},t)}))),!e.length)return e;var n=0;if(this.defaultRadio){var o=e.findIndex((function(e){return e.id==t.defaultRadio}));n=o>-1?o:0}this.radio=e[n].id,this.skuStockList=e},onAddCart:function(){var t=y(p().mark((function t(){var e;return p().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.selectItem,e=this.item,this.$emit("onAddCart",v({goodsNum:this.total,productSn:e.productSn,name:e.name,brandName:e.brandName,originalPrice:e.originalPrice},this.selectItem));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),setProductStock:function(t){for(var e=0;e<this.skuStockList.length;e++)this.skuStockList[e].id===this.radio&&(this.skuStockList[e].cartNum=t)}}},w=b,x=(r("550a"),r("2877")),S=Object(x["a"])(w,l,h,!1,null,"f32678f6",null),C=S.exports,k=r("ba25");function L(t){return L="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},L(t)}function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function O(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */O=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(P){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(P){return{type:"throw",arg:P}}}t.wrap=c;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(k([])));g&&g!==e&&r.call(g,o)&&(d=g);var v=p.prototype=h.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==L(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function x(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return f.prototype=p,s(v,"constructor",p),s(p,"constructor",f),f.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},m(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(v),s(v,a,"Generator"),s(v,o,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function _(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function T(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,s,"next",t)}function s(t){_(i,n,o,a,s,"throw",t)}a(void 0)}))}}var I={components:{MHeader:s["a"],MEmpty:c["a"],Search:u["a"],addGoodsCart:C},data:function(){var t=this;return{loading:!1,finished:!1,params:{pageNum:1,pageSize:20},dataShow:!0,backUrl2:{callBack:function(){t.$emit("input",!1)}},value1:"all",valueText1:"分类: 全部",option1:[],value2:"all",valueText2:"类型: 全部",search:null,option2:[],dataList:[],addGoodsShow:!1,selectGoodsItem:{}}},mounted:function(){var t=T(O().mark((function t(){var e,r,n,o,i=this;return O().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(k["e"])({});case 3:e=t.sent,r={text:"全部",value:"all"},this.option1=[r],n=e.data.productCategoryList||[],n.forEach((function(t){i.option1.push({text:t.name,value:t.id})})),this.option2=[r],o=e.data.productAttributeCategoryList||[],o.forEach((function(t){i.option2.push({text:t.name,value:t.id})})),t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](0);case 15:this.loading=!0,this.getList();case 17:case"end":return t.stop()}}),t,this,[[0,13]])})));function e(){return t.apply(this,arguments)}return e}(),methods:{onSearch:function(t){this.search=t,this.params.pageNum=1,this.dataList=[],this.loading=!0,this.finished=!1,this.dataShow=!0,this.getList()},onOptionChange:function(){var t=this;this.option1.forEach((function(e){e.value==t.value1&&(t.valueText1="all"==e.value?" 分类: 全部":e.text)})),this.option2.forEach((function(e){e.value==t.value2&&(t.valueText2="all"==e.value?"类型: 全部":e.text)})),this.params.pageNum=1,this.dataList=[],this.dataShow=!0,this.loading=!0,this.finished=!1,this.getList()},onAddCart:function(t){this.addGoodsShow=!1,this.$emit("getChoiceGood",P({},t)),this.$emit("input",!1)},onChoiceGood:function(t){this.selectGoodsItem=t,this.addGoodsShow=!0},getList:function(){var t=T(O().mark((function t(){var e,r,n;return O().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.params,e.productAttributeCategoryId="all"==this.value2?null:this.value2,e.productCategoryId="all"==this.value1?null:this.value1,e.keyword=this.search?this.search:null,t.next=7,Object(k["f"])(e);case 7:r=t.sent,this.loading=!1,n=r.data,e.pageNum=n.pageNum,this.dataList=this.dataList.concat(n.list),e.pageNum>=n.totalPage&&(this.finished=!0),e.pageNum++,this.dataShow=!(this.dataList.length<=0),t.next=21;break;case 17:t.prev=17,t.t0=t["catch"](0),this.finished=!0,this.dataShow=!1;case 21:case"end":return t.stop()}}),t,this,[[0,17]])})));function e(){return t.apply(this,arguments)}return e}()}},N=I,j=(r("e2b3"),Object(x["a"])(N,i,a,!1,null,"b43bf8d6",null)),B=j.exports,M=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"addressList"},[t.dataShow?r("div",t._l(t.list,(function(e,n){return r("div",{key:n,staticClass:"address",class:t.addressInfo.id===e.id&&"active",on:{click:function(r){return t.onDetail(e)}}},[r("div",{staticClass:"content"},[r("p",[r("span",{staticClass:"name"},[t._v(t._s(e.name))]),r("span",[t._v("\n "+t._s(e.phoneNumber&&e.phoneNumber.replace(/^(\d{3})\d{4}(\d+)/,"$1****$2"))+"\n ")])]),r("p",{staticClass:"addressContent"},[t._v("\n "+t._s(e.province)+" "+t._s(e.city)+" "+t._s(e.region)+"\n "+t._s(e.detailAddress)+"\n ")])])])})),0):r("m-empty",{staticClass:"empty",attrs:{msg:"暂无地址"}})],1)},D=[];function R(t){return R="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},R(t)}function G(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */G=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(A){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(A){return{type:"throw",arg:A}}}t.wrap=c;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(k([])));g&&g!==e&&r.call(g,o)&&(d=g);var v=p.prototype=h.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==R(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function x(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,s(v,"constructor",p),s(p,"constructor",f),f.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},m(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(v),s(v,a,"Generator"),s(v,o,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function F(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function U(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){F(i,n,o,a,s,"next",t)}function s(t){F(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Y={name:"addAddress",props:["userId","addressInfo"],components:{MEmpty:c["a"]},data:function(){return{list:[],dataShow:!0}},mounted:function(){var t=U(G().mark((function t(){var e,r;return G().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(k["b"])({userId:this.userId});case 3:e=t.sent,r=e.data,this.list=r,this.dataShow=this.list.length>0,t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(){return t.apply(this,arguments)}return e}(),methods:{onDetail:function(t){this.$emit("onDetail",t),this.$emit("input",!1)}}},H=Y,z=(r("77b6"),Object(x["a"])(H,M,D,!1,null,"4bccc732",null)),q=z.exports,Q=r("d655"),V=r("6320"),J=r("0ad3"),X=r("b092"),K=r("325c"),$=r("72bf"),Z=r.n($),W=r("658f"),tt=r.n(W);function et(t){return et="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},et(t)}function rt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */rt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(A){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(A){return{type:"throw",arg:A}}}t.wrap=c;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(k([])));g&&g!==e&&r.call(g,o)&&(d=g);var v=p.prototype=h.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==et(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function x(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,s(v,"constructor",p),s(p,"constructor",f),f.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},m(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(v),s(v,a,"Generator"),s(v,o,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function nt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function ot(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){nt(i,n,o,a,s,"next",t)}function s(t){nt(i,n,o,a,s,"throw",t)}a(void 0)}))}}var it={name:"teacherList",components:{MHeader:s["a"],VueQr:tt.a,MPayment:Q["a"],Protocol:V["a"],MRefund:J["a"],GoodsList:B,AddAddress:q},data:function(){var t=this.$route.query;return{couponObj:{INSTRUMENT:"MUSICAL",ACCESSORIES:"ACCESSORIES",TEACHING:"TEACHING",STAFF:"OTHER"},addressStatus:!1,addressInfo:{},goodsStatus:!1,dataList:[],radio:"1",studentId:t.studentId,organId:t.organId,studentName:t.studentName,goodsList:[],marketAmount:null,tempForm:{},payType:!1,balance:0,backUrl:{status:!0,path:"/serviceStudent?type=shop"},isClick:!1,downloadStatus:!0,qrCodeStatus:!1,downloadUrl:null,downloadfilename:null,sGoodsOrderId:null,config:{value:null,imagePath:r("c251")},headerStatus:!0,isStatus:!1,payment:{},payMoney:0,payCountAmount:0,loading:!1,refundStatus:!1,refundSure:!1,buyList:[],disCountList:[],moneyList:[],payCountMoney:0,protocolHTML:null,agreeStatus:!1,popupStatus:!1,couponShow:!1,couponList:[],valuePirce:0,dataLists:[],countMoney:0,groupPrice:0,obj:null,showPicker:!1,columns:["老师代买","创建订单"],orderType:null,orderText:null}},mounted:function(){var t=ot(rt().mark((function t(){return rt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return(Object(K["a"])().android||Object(K["a"])().iPhone)&&(this.headerStatus=!1),t.next=3,this.__init();case 3:window.addEventListener("hashchange",this.onHash,!1);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{onHash:function(){this.refundStatus=!1,this.goodsStatus=!1},hashState:function(t){var e="goods"===t?this.goodsStatus:this.refundStatus;if(e){this.isDestroy=!1;var r=window.location.hash.slice(1).split("?"),n=Z.a.parse(r[1]),o=0;for(var i in n)o++;var a=window.location.href,s=o>0?"&cPop="+ +new Date:"?cPop="+ +new Date;history.pushState("","","".concat(a).concat(s))}else{var c=window.location.hash.slice(1).split("?"),u=Z.a.parse(c[1]);u.cPop&&window.history.go(-1)}},onConfirm:function(t,e){this.orderText=t,this.orderType=0==e?1:1==e?2:null,this.showPicker=!1},onRefundSure:function(t){t&&(this.refundStatus=!1,this.refundSure=!0,this.obj=t),1==this.orderType?this.onCheckSubmit():this.onCreateCode()},getChoiceGood:function(t){var e=this,r=this.goodsList,n=!1,o=!1;r.forEach((function(r){if(r.id==t.id){var i=r.goodsNum+t.goodsNum;i>t.stock?(e.$toast("库存不足"),o=!0):(n=!0,r.goodsNum=r.goodsNum+t.goodsNum)}})),n||o||r.push(t),this.goodsStatus=!1,this.calcPrice(),this.hashState("goods")},onGoodDel:function(t,e){var r=this;this.$dialog.confirm({message:"确定删除该商品",confirmButtonColor:"#01C1B5"}).then((function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1),r.calcPrice()}))},__init:function(){var t=ot(rt().mark((function t(){var e=this;return rt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(X["e"])({id:this.studentId}).then((function(t){e.balance=t.data.balance||0}));case 3:t.next=7;break;case 5:t.prev=5,t.t0=t["catch"](0);case 7:case"end":return t.stop()}}),t,this,[[0,5]])})));function e(){return t.apply(this,arguments)}return e}(),onCreateCode:function(){var t=ot(rt().mark((function t(){var e,r,n,o=this;return rt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.onCheckFiled()){t.next=2;break}return t.abrupt("return");case 2:if(this.refundSure){t.next=6;break}return this.refundStatus=!0,this.hashState(),t.abrupt("return");case 6:e={studentId:this.studentId,goodsList:JSON.stringify(this.goodsList),addressInfo:JSON.stringify(this.addressInfo)},r=!1,n=this.tempForm,e.studentId==n.studentId&&e.goodsList==n.goodsList&&e.addressInfo==n.addressInfo&&(r=!0),this.sGoodsOrderId&&r?this.onPosterCode(this.sGoodsOrderId):(e.type=1,this.tempForm=e,this.afterPayMent((function(t){o.sGoodsOrderId=t.data.pay.orderNo,o.onPosterCode(t.data.pay.orderNo)}))),setTimeout((function(){o.isClick=!1}),500);case 12:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onPosterCode:function(t){this.$refs.goodsOrder.style.filter="blur(3px)",this.qrCodeStatus=!0;var e=Object(K["c"])()+"/#/goodsOrderBuyMall?id="+t+"&studentId="+this.studentId;this.config.value=e,this.downloadStatus=!1},afterPayMent:function(){var t=ot(rt().mark((function t(e){var r,n,o,i,a,s,c,u=this;return rt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=this.goodsList,n=[],r.forEach((function(t){n.push({price:t.groupPurchasePrice,productSkuId:t.id,quantity:t.goodsNum,productId:t.productId,hidden:1,memberId:u.studentId})})),t.next=6,Object(k["c"])(n);case 6:return o=t.sent,i=o.data||[],a=i.reduce((function(t,e){return t.push(e.id),t}),[]),s={cartIds:a,memberReceiveAddressId:this.addressInfo.id,userId:this.studentId,orderAmount:this.obj.amount,useBalance:this.obj.payType,couponId:this.obj.couponIdList.join(",")},t.next=12,Object(k["d"])(s);case 12:c=t.sent,"success"==c.data.orderType?(this.$toast(c.msg),this.$router.push({path:"/paymentResult",query:{type:"on",isBack:"off",groupType:"MALL_BUY"}})):e&&e(c),t.next=18;break;case 16:t.prev=16,t.t0=t["catch"](0);case 18:case"end":return t.stop()}}),t,this,[[0,16]])})));function e(e){return t.apply(this,arguments)}return e}(),createPoster:function(){var t=this,e=document.querySelector("#qrcode img");this.downloadUrl=e.src,this.downloadfilename="qrCode.png",this.$toast.loading({duration:0,forbidClick:!0,message:"下载中..."}),Object(K["a"])().android?setTimeout((function(){t.$toast.clear(),t.$refs.download.click()}),2e3):Object(K["a"])().iPhone&&setTimeout((function(){t.$toast.clear(),window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"downLoadImg",content:{downloadUrl:e.src}}))}),2e3)},onClose:function(){this.$refs.goodsOrder.style.filter="blur(0px)"},onChangeStatus:function(){var t=ot(rt().mark((function t(e){return rt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.isStatus=e,t.next=3,this.__init();case 3:this.obj=null,this.payType=!1,this.calcPrice();case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onCheckSubmit:function(){var t=ot(rt().mark((function t(){var e=this;return rt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.onCheckFiled()){t.next=2;break}return t.abrupt("return");case 2:if(this.refundSure){t.next=5;break}return this.refundStatus=!0,t.abrupt("return");case 5:this.afterPayMent((function(t){e.result=t.data.pay,e.onSubmit()})),this.refundSure=!1;case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onCheckFiled:function(){return this.orderType?this.goodsList.length<=0?(this.$toast("请选择商品"),!1):this.addressInfo.id?!!this.agreeStatus||(this.$toast("请先阅读并同意《产品及服务协议》"),!1):void this.$toast("请选择地址"):(this.$toast("请选择订单类型"),!1)},onSubmit:function(){var t=this.result;if("YQPAY"==t.type){var e=t.payMap;document.querySelector("#onSubmit").action=e.host,document.querySelector("#apiContent").value=e.apiContent,document.querySelector("#merNo").value=e.merNo,document.querySelector("#notifyUrl").value=e.notifyUrl,document.querySelector("#sign").value=e.sign,document.querySelector("#signType").value=e.signType,document.querySelector("#timestamp").value=e.timestamp,document.querySelector("#version").value=e.version,document.querySelector("#onSubmit").submit()}else"UNIONPAY"==t.type?(localStorage.setItem("payInfo",JSON.stringify(t)),this.$router.push({path:"/alipay",query:{balance:t.totalPrice}})):"ADAPAY"==t.type&&(this.payment=t,this.payMoney=t.payMap.amount,this.isStatus=!0)},onClickCheckbox:function(){this.payType=!this.payType,this.calcPrice()},setCoupon:function(t){t&&(this.couponList=t.couponList,this.valuePirce=t.valuePirce,this.dataLists=t.dataList),this.calcPrice()},setNoMore:function(){this.calcPrice()},calcPrice:function(){var t=this,e=this.goodsList,r=0;this.groupPrice=0,this.buyList=[],this.moneyList=[],this.disCountList=[],e.forEach((function(e){var n=Number((e.goodsNum*e.price).toFixed(2));t.buyList.push({name:e.goodsNum>1?"".concat(e.name," * ").concat(e.goodsNum):e.name,type:"购买",price:n,couponType:"MALLCOUPON"}),r+=n,t.groupPrice+=n})),this.payCountMoney=r,r=r-this.marketAmount<=0?0:Number((r-this.marketAmount).toFixed(2)),this.countMoney=r,r-=this.valuePirce,this.moneyList.push({name:"应付金额",price:r}),this.payType?r-this.balance>=0?(this.moneyList.push({name:"余额支付",price:this.balance}),r=Number((r-this.balance).toFixed(2)),this.moneyList.push({name:"现金支付",price:r})):(this.moneyList.push({name:"现金支付",price:0}),this.moneyList.push({name:"余额支付",price:r}),r=0):(this.moneyList.push({name:"余额支付",price:0}),this.moneyList.push({name:"现金支付",price:r})),this.payMoney=r}},destroyed:function(){window.removeEventListener("hashchange",this.onHash,!1),this.$toast.clear(),this.qrCodeStatus=!1}},at=it,st=(r("3fba"),Object(x["a"])(at,n,o,!1,null,"7d358aef",null));e["default"]=st.exports},d655:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mpayment"},[n("van-popup",{style:{minHeight:"30%"},attrs:{"close-on-click-overlay":!1,"close-icon-position":"top-left",position:"bottom",round:"",closeOnPopstate:!0,"safe-area-inset-bottom":!0},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[n("i",{staticClass:"van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-left",on:{click:t.onClose}}),n("div",{staticClass:"title van-hairline--bottom"},[t._v("选择支付方式")]),n("div",{staticClass:"payAmount"},[n("p",[t._v("应付金额")]),n("div",{staticClass:"amount"},[t._v(t._s(t.payAmount)),n("span",[t._v("元")])])]),n("van-radio-group",{model:{value:t.payType,callback:function(e){t.payType=e},expression:"payType"}},[n("div",{staticClass:"payment-item van-hairline--bottom",on:{click:function(e){t.payType="zfb"}}},[n("div",{staticClass:"logo-section"},[n("img",{staticClass:"logo",attrs:{src:r("9c08"),alt:""}})]),n("div",{staticClass:"title-section"},[t._v("支付宝支付")]),n("div",{staticClass:"value-section"},[n("van-radio",{attrs:{name:"zfb"}})],1)]),n("div",{staticClass:"payment-item centerLine",on:{click:function(e){t.payType="wx"}}},[n("div",{staticClass:"logo-section"},[n("img",{staticClass:"logo",attrs:{src:r("8f37"),alt:""}})]),n("div",{staticClass:"title-section"},[t._v("微信支付")]),n("div",{staticClass:"value-section"},[n("van-radio",{attrs:{name:"wx"}})],1)])]),n("div",{staticClass:"blank"}),n("van-button",{attrs:{type:"primary",block:""},on:{click:t.onSubmit}},[t._v("确认支付")])],1)],1)},o=[],i=r("ff51"),a={name:"mheader",props:{closeStatus:{type:Boolean,default:!1},amount:{type:Number,default:0},payment:{type:Object}},data:function(){return{isShow:this.closeStatus,payAmount:this.amount,paymentObject:this.payment,payType:"zfb"}},methods:{onClose:function(){var t=this;this.$dialog.confirm({message:"是否放弃本次付款",confirmButtonText:"继续付款",cancelButtonText:"放弃"}).then((function(){})).catch((function(){t.isShow=!1,t.$emit("onChangeStatus",t.isShow)}))},onSubmit:function(){var t=this.payType,e=window.navigator.userAgent.toLowerCase();"micromessenger"==e.match(/MicroMessenger/i)?"zfb"==t?(this.pay_channel="alipay_qr",this.getCodePay("qrCode")):"wx"==t&&(this.pay_channel="wx_pub",this.getCodePay("pay")):"alipayclient"==e.match(/AlipayClient/i)?"zfb"==t?(this.pay_channel="alipay_wap",this.getCodePay("pay")):"wx"==t&&(this.pay_channel="wx_pub",this.getCodePay("qrCode")):("zfb"==t?this.pay_channel="alipay_qr":"wx"==t&&(this.pay_channel="wx_pub"),this.getCodePay("qrCode"))},getCodePay:function(t){var e=Object(i["i"])();e+="qrCode"==t?"/#/payQRCode":"/#/payResult",e+="?payType=".concat(this.pay_channel,"&payment=").concat(JSON.stringify(this.paymentObject),"&platform=teacher"),this.$emit("onChangeStatus",!1),window.location.href=e}},watch:{closeStatus:function(t){this.isShow=t},amount:function(t){this.payAmount=Object(i["d"])(t)},payment:function(t){var e=t.payMap.returnUrl;e&&(t.payMap.returnUrl=e.replace(/&/gi,"^^")),this.paymentObject=t}}},s=a,c=(r("a40b"),r("2877")),u=Object(c["a"])(s,n,o,!1,null,"5c0cd816",null);e["a"]=u.exports},e2b3:function(t,e,r){"use strict";r("19db")},ecc0:function(t,e,r){},f065:function(t,e,r){"use strict";r("841a")},f234:function(t,e,r){"use strict";var n="%[a-f0-9]{2}",o=new RegExp(n,"gi"),i=new RegExp("("+n+")+","gi");function a(t,e){try{return decodeURIComponent(t.join(""))}catch(o){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],a(r),a(n))}function s(t){try{return decodeURIComponent(t)}catch(n){for(var e=t.match(o),r=1;r<e.length;r++)t=a(e,r).join(""),e=t.match(o);return t}}function c(t){var e={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(t);while(r){try{e[r[0]]=decodeURIComponent(r[0])}catch(u){var n=s(r[0]);n!==r[0]&&(e[r[0]]=n)}r=i.exec(t)}e["%C2"]="�";for(var o=Object.keys(e),a=0;a<o.length;a++){var c=o[a];t=t.replace(new RegExp(c,"g"),e[c])}return t}t.exports=function(t){if("string"!==typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return c(t)}}},f9b6:function(t,e,r){"use strict";r("2cac")}}]);