GoodsSale.d59843c6.js 167 KB

12345678910111213141516
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["GoodsSale"],{"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="},2351: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,u=a(t),c=1;c<arguments.length;c++){for(var l in r=Object(arguments[c]),r)o.call(r,l)&&(u[l]=r[l]);if(n){s=n(r);for(var h=0;h<s.length;h++)i.call(r,s[h])&&(u[s[h]]=r[s[h]])}}return u}},3210:function(t,e,r){"use strict";r("2351")},"325c":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}));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(){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}},"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=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)},u=[],c=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)},l=[],h=r("6e6e"),f={name:"mProtocol",components:{MHeader:h["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}}},p=f,d=(r("f9b6"),r("2877")),g=Object(d["a"])(p,c,l,!1,null,null,null),y=g.exports,v=(r("4328"),r("2b7c")),m=r("981f").default,b=function(t){return m({url:"/api-web/eduContracts/queryProduceContract",method:"get",params:t})},w=function(t){return Object(v["a"])({url:"/tenantInfo/getContract/".concat(t.id),method:"get",params:t})};function x(t){return x="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},x(t)}function C(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=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 u(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new k(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 u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=u;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(P([])));y&&y!==e&&r.call(y,o)&&(d=y);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 u=c(t[o],t,i);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==x(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(u.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=c(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 A(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 k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function P(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(u(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=P,k.prototype={constructor:k,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"),u=r.call(i,"finallyLoc");if(s&&u){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(!u)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:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function A(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,o)}function S(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){A(i,n,o,a,s,"next",t)}function s(t){A(i,n,o,a,s,"throw",t)}a(void 0)}))}}var k={name:"mheader",components:{MProtocol:y},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=S(C().mark((function t(){var e,r,n,o=this;return C().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,w({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,b(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)}},P=k,L=(r("9786"),Object(d["a"])(P,s,u,!1,null,"4680de30",null)),E=L.exports,T=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:{showCoupon:!0,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=[],_=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,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()},I=[],B=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)},N=[],M=r("d678"),D=r("0902"),R=r("4fdb"),j=r("5a0c"),U=r.n(j);var F=function(t,e){var r=U()().valueOf(),n=U()(t).valueOf(),o=U()(e).valueOf();return r>=n&&r<=o};function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function Y(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 H(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach((function(e){z(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q=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 u(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,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 k()}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 u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(P){return{type:"throw",arg:P}}}t.wrap=u;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(S([])));y&&y!==e&&r.call(y,o)&&(d=y);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 u=c(t[o],t,i);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==G(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(u.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=c(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(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:k}}function k(){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(u(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=S,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(C),!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"),u=r.call(i,"finallyLoc");if(s&&u){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(!u)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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function V(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,o)}function q(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){V(i,n,o,a,s,"next",t)}function s(t){V(i,n,o,a,s,"throw",t)}a(void 0)}))}}var X=["OTHER","MUSICAL","ACCESSORIES","MAINTENANCE","TEACHING","PRACTICE","SINGLE","MIX","VIP","MEMBER","FULLCOUPON"],J={props:["status","isEdit","allMoney","all","buyList"],components:{MEmpty:M["a"],"coupon-item":D["a"]},data:function(){return{couponType:X,loading:!1,finished:!1,dataShow:!0,dataList:[],params:{page:1,usageStatus:this.status,rows:this.all?9999:10},checkCouponList:[],faceValue:0}},mounted:function(){this.FetchList()},methods:{FetchList:function(){var t=q(Q().mark((function t(e){var r,n,o=this;return Q().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(R["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]?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=H({},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 u in o)s+=e[o[u]];for(var c in o){var l=Number(e[o[c]]/s);n[o[c]]=Number(n[o[c]]+l*Number(a.faceValue)),i[o[c]]=Number(e[o[c]]-n[o[c]]),r[o[c]]=Number(r[o[c]]+l*Number(a.fullAmount))}}}));var a=0,s=0,u=0,c=0,l=!1;for(var h in o)a+=i[o[h]],s+=e[o[h]],u+=n[o[h]],c+=r[o[h]];return console.log("allNowMoney:",a,"allShopMoney:",s,"allfaceValue:",u,"allFullMoney",c),this.faceValue=u,this.dataList.forEach((function(t){"FULLCOUPON"!=t.typeDetail&&e[t.typeDetail]&&t.fullAmount<=e[t.typeDetail]-r[t.typeDetail]&&F(t.useStartDate,t.useDeadlineDate)||"FULLCOUPON"==t.typeDetail&&F(t.useStartDate,t.useDeadlineDate)&&t.fullAmount<=s-c?(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=J,Z=(r("c96e"),Object(d["a"])(K,B,N,!1,null,"7974fe2e",null)),W=Z.exports;function $(t){return nt(t)||rt(t)||et(t)||tt()}function tt(){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 et(t,e){if(t){if("string"===typeof t)return ot(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)?ot(t,e):void 0}}function rt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function nt(t){if(Array.isArray(t))return ot(t)}function ot(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 it={components:{list:W},props:["showBalance","showCoupon","balance","payType","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:$(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")}}},at=it,st=(r("e313"),Object(d["a"])(at,_,I,!1,null,"eaed27d6",null)),ut=st.exports,ct=r("325c"),lt=r("6612"),ht=r.n(lt),ft={name:"mRefund",components:{MHeader:i["a"],Mcoupon:ut},props:{ids:{type:Array,default:function(){return[1,2,3,4,5,6]}},buyList:{type:Array},disCountList:{type:Array},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(ct["a"])().android||Object(ct["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 ht()(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)}}},pt=ft,dt=(r("8643"),Object(d["a"])(pt,T,O,!1,null,"3fbe4d72",null)),gt=dt.exports,yt=r("c106"),vt=r("72bf"),mt=r.n(vt),bt=r("b092"),wt=r("485a"),xt=r("658f"),Ct=r.n(xt);function At(t){return At="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},At(t)}function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=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 u(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,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 k()}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 u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(P){return{type:"throw",arg:P}}}t.wrap=u;var l={};function h(){}function f(){}function p(){}var d={};s(d,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(S([])));y&&y!==e&&r.call(y,o)&&(d=y);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 u=c(t[o],t,i);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==At(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(u.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=c(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(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:k}}function k(){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(u(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=S,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(C),!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"),u=r.call(i,"finallyLoc");if(s&&u){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(!u)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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function kt(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,o)}function Pt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){kt(i,n,o,a,s,"next",t)}function s(t){kt(i,n,o,a,s,"throw",t)}a(void 0)}))}}var Lt={name:"teacherList",components:{MHeader:i["a"],VueQr:Ct.a,MPayment:a["a"],MEmpty:M["a"],Protocol:E,MRefund:gt,Search:yt["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(ct["a"])().android||Object(ct["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=mt.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 u=window.location.hash.slice(1).split("?"),c=mt.a.parse(u[1]);c.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=Pt(St().mark((function t(){var e,r=this;return St().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(bt["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=Pt(St().mark((function t(){var e=this;return St().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(bt["e"])({id:this.studentId}).then((function(t){e.balance=t.data.balance||0}));case 3:return t.next=5,Object(bt["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=Pt(St().mark((function t(){var e,r,n,o=this;return St().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(wt["a"])(!0),t.next=19,Object(bt["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(wt["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(wt["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(ct["b"])()+"/#/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(ct["a"])().android?setTimeout((function(){t.$toast.clear(),t.$refs.download.click()}),2e3):Object(ct["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=Pt(St().mark((function t(e){var r=this;return St().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.isStatus=e,t.next=4,Object(bt["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=Pt(St().mark((function t(){var e,r=this;return St().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(wt["a"])(!0),t.next=10,Object(bt["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(wt["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(wt["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},computed:{groupAllPrice:function(){}}},Et=Lt,Tt=(r("3210"),Object(d["a"])(Et,n,o,!1,null,"8589f50a",null));e["default"]=Tt.exports},"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()}},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 c})),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 u=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}(),c=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 u(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 u=!1;i<t.length&&(u=1==(t[i]>>>o&1)),p.getMask(e,n,a-s)&&(u=!u),this.modules[n][a-s]=u,-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=y.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 u=0;for(a=0;a<o.length;a++)u+=o[a].dataCount;if(i.getLengthInBits()>8*u)throw new Error("code length overflow. (".concat(i.getLengthInBits(),">").concat(8*u,")"));for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(t.PAD0,8),i.getLengthInBits()>=8*u));)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 u=e[s].dataCount,c=e[s].totalCount-u;n=Math.max(n,u),o=Math.max(o,c),i[s]=new Array(u);for(var l=0;l<i[s].length;l++)i[s][l]=255&t.buffer[l+r];r+=u;var h=p.getErrorCorrectPolynomial(c),f=new g(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 y=0;for(l=0;l<e.length;l++)y+=e[l].totalCount;var v=new Array(y),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}();c.PAD0=236,c.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 g([1],0),r=0;r<t;r++)e=e.multiply(new g([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 u=-1;u<=1;u++)o+u<0||e<=o+u||0==s&&0==u||a==t.isDark(n+s,o+u)&&i++;i>5&&(r+=3+i-5)}for(n=0;n<e-1;n++)for(o=0;o<e-1;o++){var c=0;t.isDark(n,o)&&c++,t.isDark(n+1,o)&&c++,t.isDark(n,o+1)&&c++,t.isDark(n+1,o+1)&&c++,0!=c&&4!=c||(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 g=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}(),y=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],u=n[3*a+1],c=n[3*a+2],l=0;l<s;l++)i.push(new t(u,c));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}();y.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 u})),r.d(e,"a",(function(){return c}));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 u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).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 u=e.length-a,c=o<u?o:u,l=-1,h=0;h<=c;++h){if(h===c){if(u>c){if(47===e.charCodeAt(a+h))return e.slice(a+h+1);if(0===h)return e.slice(a+h)}else o>c&&(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,u=-1;for(r=t.length-1;r>=0;--r){var c=t.charCodeAt(r);if(47===c){if(!a){n=r+1;break}}else-1===u&&(a=!1,u=r+1),s>=0&&(c===e.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=u))}return n===o?o=u:-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 u=t.charCodeAt(s);if(47!==u)-1===n&&(o=!1,n=s+1),46===u?-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,u=-1,c=!0,l=t.length-1,h=0;l>=r;--l)if(47!==(n=t.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===n?-1===a?a=l:1!==h&&(h=1):-1!==a&&(h=-1);else if(!c){s=l+1;break}return-1===a||-1===u||0===h||1===h&&a===u-1&&a===s+1?-1!==u&&(e.base=e.name=0===s&&o?t.slice(1,u):t.slice(s,u)):(0===s&&o?(e.name=t.slice(1,a),e.base=t.slice(1,u)):(e.name=t.slice(s,a),e.base=t.slice(s,u)),e.ext=t.slice(a,u)),s>0?e.dir=t.slice(0,s-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s;var u=s.extname,c=s.basename}).call(this,r(19))},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).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,u,"next",t)}function u(t){r(a,o,i,s,u,"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),u=t=>e=>Array.from(a(t)(e)).map(t=>String.fromCharCode(t)).join(""),c=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),u=new Array(i);for(var c=0;c<i;c++)u[c]=s(r);return u},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,u=0;u<e.length;u++)i.set(e[u],s),s+=e[u].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:c(!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:c(!0)},{top:c(!0)},{width:c(!0)},{height:c(!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)),g=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]}),y=o({application:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,r)=>u(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:u(3)},{version:u(3)}]},{lsd:[{width:c(!0)},{height:c(!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,y,v,d,g],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,u,c,l,h,f,p,d,g,y,v,m,b=r,w=new Array(r),x=new Array(4096),C=new Array(4096),A=new Array(4097);for(s=1+(o=1<<(f=t)),n=o+2,c=-1,i=(1<<(a=f+1))-1,l=0;l<o;l++)x[l]=0,C[l]=l;for(p=d=g=y=v=m=0,h=0;h<b;){if(0===y){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,c=-1;continue}if(-1==c){A[y++]=C[l],c=l,g=l;continue}for(u=l,l==n&&(A[y++]=g,l=c);l>o;)A[y++]=C[l],l=x[l];g=255&C[l],A[y++]=g,n<4096&&(x[n]=c,C[n]=g,0==(++n&i)&&n<4096&&(a++,i+=n)),c=u}y--,w[v++]=A[y],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,u=0;u<4;u++)for(var c=i[u];c<n;c+=a[u])o(c,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),u=r.n(s),c=r(3),l=r.n(c),h=r(10),f=r(7),p=r(4),d=r(12),g=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},y=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 y(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 u()(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,u,c,h,m,w,x,C,A,S,k,P,L,E;return g(this,void 0,void 0,l.a.mark((function g(){var T,O,_,I,B,N,M,D,R,j,U,F,G,Y,H,z,Q,V,q,X,J,K,Z,W,$,tt,et,rt,nt,ot,it,at,st,ut,ct,lt,ht,ft,pt,dt,gt,yt,vt,mt,bt,wt,xt,Ct,At,St,kt,Pt,Lt,Et,Tt,Ot,_t,It,Bt,Nt,Mt,Dt,Rt,jt,Ut,Ft,Gt,Yt,Ht,zt,Qt,Vt;return l.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(T=null===(r=this.qrCode)||void 0===r?void 0:r.moduleCount,O=this.options.size,((_=this.options.margin)<0||2*_>=O)&&(_=0),I=Math.ceil(_),B=O-2*_,N=this.options.whiteMargin,M=this.options.backgroundDimming,D=Math.ceil(B/T),U=new y(j=(R=D*T)+2*I,j),F=U.getContext("2d"),this._clear(),F.save(),F.translate(I,I),G=new y(j,j),Y=G.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}V=0,q=0,X=0,J=0,K=0;case 28:if(!(K<z[0].colorTable.length)){l.next=41;break}if(!((Z=z[0].colorTable[K])[0]>200||Z[1]>200||Z[2]>200)){l.next=32;break}return l.abrupt("continue",38);case 32:if(0!==Z[0]||0!==Z[1]||0!==Z[2]){l.next=34;break}return l.abrupt("continue",38);case 34:J++,V+=Z[0],q+=Z[1],X+=Z[2];case 38:K++,l.next=28;break;case 41:V=~~(V/J),q=~~(q/J),X=~~(X/J),this.options.colorDark="rgb(".concat(V,",").concat(q,",").concat(X,")");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:W=l.sent,this.options.autoColor&&($=e._getAverageRGB(W),this.options.colorDark="rgb(".concat($.r,",").concat($.g,",").concat($.b,")")),Y.drawImage(W,0,0,W.width,W.height,0,0,j,j),Y.rect(0,0,j,j),Y.fillStyle=M,Y.fill(),l.next=61;break;case 58:Y.rect(0,0,j,j),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<T;nt++)for(ot=0;ot<T;ot++){for(it=this.qrCode.isDark(nt,ot),at=6==nt&&ot>=8&&ot<=T-8||6==ot&&nt>=8&&nt<=T-8,st=ot<8&&(nt<8||nt>=T-8)||ot>=T-8&&nt<8||at,ut=1;ut<tt.length-1;ut++)st=st||nt>=tt[ut]-2&&nt<=tt[ut]+2&&ot>=tt[ut]-2&&ot<=tt[ut]+2;ct=ot*D+(st?0:rt*D),lt=nt*D+(st?0:rt*D),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(ct,lt,(st?1:et)*D,(st?1:et)*D):(ht=ot<T-4&&ot>=T-4-5&&nt<T-4&&nt>=T-4-5,st||ht||F.fillRect(ct,lt,(st?1:et)*D,(st?1:et)*D))}if(ft=tt[tt.length-1],pt=this.options.colorLight,F.fillStyle=pt,F.fillRect(0,0,8*D,8*D),F.fillRect(0,(T-8)*D,8*D,8*D),F.fillRect((T-8)*D,0,8*D,8*D),(null===(a=null===(i=this.options.components)||void 0===i?void 0:i.timing)||void 0===a?void 0:a.protectors)&&(F.fillRect(8*D,6*D,(T-8-8)*D,D),F.fillRect(6*D,8*D,D,(T-8-8)*D)),(null===(u=null===(s=this.options.components)||void 0===s?void 0:s.cornerAlignment)||void 0===u?void 0:u.protectors)&&e._drawAlignProtector(F,ft,ft,D),!(null===(h=null===(c=this.options.components)||void 0===c?void 0:c.alignment)||void 0===h?void 0:h.protectors)){l.next=99;break}dt=0;case 75:if(!(dt<tt.length)){l.next=99;break}gt=0;case 77:if(!(gt<tt.length)){l.next=96;break}if(yt=tt[gt],vt=tt[dt],6!==yt||6!==vt&&vt!==ft){l.next=84;break}return l.abrupt("continue",93);case 84:if(6!==vt||6!==yt&&yt!==ft){l.next=88;break}return l.abrupt("continue",93);case 88:if(yt!==ft||vt!==ft){l.next=92;break}return l.abrupt("continue",93);case 92:e._drawAlignProtector(F,yt,vt,D);case 93:gt++,l.next=77;break;case 96:dt++,l.next=75;break;case 99:for(F.fillStyle=this.options.colorDark,F.fillRect(0,0,7*D,D),F.fillRect((T-7)*D,0,7*D,D),F.fillRect(0,6*D,7*D,D),F.fillRect((T-7)*D,6*D,7*D,D),F.fillRect(0,(T-7)*D,7*D,D),F.fillRect(0,(T-7+6)*D,7*D,D),F.fillRect(0,0,D,7*D),F.fillRect(6*D,0,D,7*D),F.fillRect((T-7)*D,0,D,7*D),F.fillRect((T-7+6)*D,0,D,7*D),F.fillRect(0,(T-7)*D,D,7*D),F.fillRect(6*D,(T-7)*D,D,7*D),F.fillRect(2*D,2*D,3*D,3*D),F.fillRect((T-7+2)*D,2*D,3*D,3*D),F.fillRect(2*D,(T-7+2)*D,3*D,3*D),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<T-8;wt+=2)e._drawDot(F,8+wt,6,D,bt,mt),e._drawDot(F,6,8+wt,D,bt,mt);xt=(null===(C=null===(x=this.options.components)||void 0===x?void 0:x.cornerAlignment)||void 0===C?void 0:C.scale)||.4,Ct=.5*(1-xt),e._drawAlign(F,ft,ft,D,Ct,xt,this.options.colorDark,(null===(S=null===(A=this.options.components)||void 0===A?void 0:A.cornerAlignment)||void 0===S?void 0:S.protectors)||!1),At=(null===(P=null===(k=this.options.components)||void 0===k?void 0:k.alignment)||void 0===P?void 0:P.scale)||.4,St=.5*(1-At),kt=0;case 124:if(!(kt<tt.length)){l.next=148;break}Pt=0;case 126:if(!(Pt<tt.length)){l.next=145;break}if(Lt=tt[Pt],Et=tt[kt],6!==Lt||6!==Et&&Et!==ft){l.next=133;break}return l.abrupt("continue",142);case 133:if(6!==Et||6!==Lt&&Lt!==ft){l.next=137;break}return l.abrupt("continue",142);case 137:if(Lt!==ft||Et!==ft){l.next=141;break}return l.abrupt("continue",142);case 141:e._drawAlign(F,Lt,Et,D,St,At,this.options.colorDark,(null===(E=null===(L=this.options.components)||void 0===L?void 0:L.alignment)||void 0===E?void 0:E.protectors)||!1);case 142:Pt++,l.next=126;break;case 145:kt++,l.next=124;break;case 148:if(N&&(F.fillStyle=this.options.backgroundColor,F.fillRect(-I,-I,j,I),F.fillRect(-I,R,j,I),F.fillRect(R,-I,I,j),F.fillRect(-I,-I,I,j)),!this.options.logoImage){l.next=179;break}return l.next=152,v(this.options.logoImage);case 152:Tt=l.sent,Ot=this.options.logoScale,_t=this.options.logoMargin,It=this.options.logoCornerRadius,(Ot<=0||Ot>=1)&&(Ot=.2),_t<0&&(_t=0),It<0&&(It=0),Mt=Nt=.5*(j-(Bt=R*Ot)),F.restore(),F.fillStyle=this.options.logoBackgroundColor,F.save(),e._prepareRoundedCornerClip(F,Nt-_t,Mt-_t,Bt+2*_t,Bt+2*_t,It+_t),F.clip(),Dt=F.globalCompositeOperation,F.globalCompositeOperation="destination-out",F.fill(),F.globalCompositeOperation=Dt,F.restore(),F.save(),e._prepareRoundedCornerClip(F,Nt,Mt,Bt,Bt,It),F.clip(),F.drawImage(Tt,Nt,Mt,Bt,Bt),F.restore(),F.save(),F.translate(I,I);case 179:if(!H){l.next=191;break}if(z.forEach((function(t){Rt||((Rt=new d.a(O,O)).setDelay(t.delay),Rt.setRepeat(0));var e=t.dims,r=e.width,n=e.height;jt||(jt=new y(r,n),(Ut=jt.getContext("2d")).rect(0,0,jt.width,jt.height),Ut.fillStyle="#ffffff",Ut.fill()),Ft&&Yt&&r===Ft.width&&n===Ft.height||(Ft=new y(r,n),Gt=Ft.getContext("2d"),Yt=Gt.createImageData(r,n)),Yt.data.set(t.patch),Gt.putImageData(Yt,0,0),Ut.drawImage(Ft.getContext("2d").canvas,t.dims.left,t.dims.top);var o=new y(j,j),i=o.getContext("2d");i.drawImage(jt.getContext("2d").canvas,0,0,j,j),i.rect(0,0,j,j),i.fillStyle=M,i.fill(),i.drawImage(U.getContext("2d").canvas,0,0,j,j);var a=new y(O,O),s=a.getContext("2d");s.drawImage(o.getContext("2d").canvas,0,0,O,O),Rt.addFrame(s.getImageData(0,0,a.width,a.height).data)})),Rt){l.next=183;break}throw new Error("No frames.");case 183:if(Rt.finish(),!b(this.canvas)){l.next=188;break}return Ht=Rt.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(Rt.stream().toFlattenUint8Array())));case 191:if(Y.drawImage(U.getContext("2d").canvas,0,0,j,j),F.drawImage(G.getContext("2d").canvas,-I,-I,j,j),Qt=new y(O,O),Qt.getContext("2d").drawImage(U.getContext("2d").canvas,0,0,O,O),this.canvas=Qt,Vt=this.options.gifBackground?"gif":"png",!b(this.canvas)){l.next=200;break}return l.abrupt("return",Promise.resolve(this.canvas.toDataURL(Vt)));case 200:return l.abrupt("return",Promise.resolve(this.canvas.toBuffer(Vt)));case 201:case"end":return l.stop()}}),g,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,u=new y(e,r).getContext("2d");if(!u)return n;u.drawImage(t,0,0);try{s=u.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,u=arguments.length>7?arguments[7]:void 0,c=t.fillStyle;t.fillStyle=s,new Array(4).fill(0).map((function(s,u){e._drawDot(t,r-2+u,n-2,o,i,a),e._drawDot(t,r+2,n-2+u,o,i,a),e._drawDot(t,r+2-u,n+2,o,i,a),e._drawDot(t,r-2,n+2-u,o,i,a)})),e._drawDot(t,r,n,o,i,a),u||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(s,u){e._drawDot(t,r-1+u,n-1,o,i,a),e._drawDot(t,r+1,n-1+u,o,i,a),e._drawDot(t,r+1-u,n+1,o,i,a),e._drawDot(t,r-1,n+1-u,o,i,a)}))),t.fillStyle=c}}]),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:u}=n.a,c=Symbol.for("toDataURL"),{CanvasRenderingContext2D:l,CanvasGradient:h,CanvasPattern:f,Image:p,ImageData:d,Path2D:g,DOMMatrix:y,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=u(this.pages,{filename:t,...e}),{pattern:n,padding:o,mime:c,quality:l,matte:h,density:f,archive:p}=r,d=s(r.pages,f);return null==o?i(d[0],c,l,h,t):a(d,c,l,h,p,n,o)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;let r=u(this.pages,{extension:t,...e}),{mime:n,quality:i,matte:a,pages:c,density:l}=r,h=s(c,l,a)[0];return o(h,n,i,a)},[c]:r.toDataURL.bind(r),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;let n=u(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?c:"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:g,DOMMatrix:y,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()),u=30+n.length,c=u+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+=u;let f=a(u+o.length+16).set32(0,67324752).bytes(4,h.array).bytes(30,n).bytes(u,o);l+=o.length,f.set32(c,134695760).bytes(c+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 u=new Uint8Array(this.offset+e.size),c=0;for(var{payload:l}of this.files)u.set(l.array,c),c+=l.size;return u.set(e.array,c),u}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}s.encoder=new TextEncoder;const u=(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))},c=(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)=>u(...t).then(t=>t.arrayBuffer()),asDownload:async(t,e,r,n,o)=>{c(o,await u(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 u(t,e,r,o))})),c(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:u,density:c,outline:l,archive:h}={}){var{fromMime:f,toMime:p,expected:d}=new o,g=(h=h||"canvas",i||r.replace(/@\d+x$/i,"")||Object(n.b)(e)),y=(i=f(p(g)||g),p(i)),v=t.length;if(!g)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!i)throw new Error(`Unsupported file format "${g}" (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===c){let t=(r||Object(n.a)(e,g)).match(/@(\d+)x$/i);c=t?parseInt(t[1],10):1}else if("number"!=typeof c||!Number.isInteger(c)||c<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:y,pages:t,padding:m,quality:s,matte:u,density:c,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 u(t,e,n,o,i){for(var s,u,c=Math.abs(e-t),l=Math.min(e+t,256),h=e+1,f=e-1,p=1;h<l||f>c;)u=a[p++],h<l&&((s=r[h++])[0]-=u*(s[0]-n)/(1<<18),s[1]-=u*(s[1]-o)/(1<<18),s[2]-=u*(s[2]-i)/(1<<18)),f>c&&((s=r[f--])[0]-=u*(s[0]-n)/(1<<18),s[1]-=u*(s[1]-o)/(1<<18),s[2]-=u*(s[2]-i)/(1<<18))}function c(t,e,n){var a,s,u,c,l,h=~(1<<31),f=h,p=-1,d=p;for(a=0;a<256;a++)s=r[a],(u=Math.abs(s[0]-t)+Math.abs(s[1]-e)+Math.abs(s[2]-n))<h&&(h=u,p=a),(c=u-(o[a]>>12))<f&&(f=c,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),g=~~(d/100),y=1024,v=2048,m=v>>6;for(m<=1&&(m=0),r=0;r<m;r++)a[r]=y*(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(y,h=c(o=(255&t[b])<<4,i=(255&t[b+1])<<4,l=(255&t[b+2])<<4),o,i,l),0!==m&&u(m,h,o,i,l),(b+=n)>=f&&(b-=f),0===g&&(g=1),++r%g==0)for(y-=y/p,(m=(v-=v/30)>>6)<=1&&(m=0),h=0;h<m;h++)a[h]=y*(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,u=0,c=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!=u){for(n[u]=c+t>>1,e=u+1;e<s;e++)n[e]=t;u=s,c=t}}for(n[u]=c+255>>1,e=u+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,u=1e3,c=-1,l=n[e],h=l-1;l<256||h>=0;)l<256&&((s=(a=r[l])[1]-e)>=u?l=256:(l++,s<0&&(s=-s),(i=a[0]-t)<0&&(i=-i),(s+=i)<u&&((i=a[2]-o)<0&&(i=-i),(s+=i)<u&&(u=s,c=a[3])))),h>=0&&((s=e-(a=r[h])[1])>=u?h=-1:(h--,s<0&&(s=-s),(i=a[0]-t)<0&&(i=-i),(s+=i)<u&&((i=a[2]-o)<0&&(i=-i),(s+=i)<u&&(u=s,c=a[3]))));return c}},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,u,c,l,h,f,p,d=Math.max(2,n),g=new Uint8Array(256),y=new Int32Array(5003),v=new Int32Array(5003),m=0,b=0,w=!1;function x(t,e){g[a++]=t,a>=254&&S(e)}function C(t){A(5003),b=c+2,w=!0,L(c,t)}function A(t){for(var e=0;e<t;++e)y[e]=-1}function S(t){a>0&&(t.writeByte(a),t.writeBytes(g,0,a),a=0)}function k(t){return(1<<t)-1}function P(){return 0===h?-1:(--h,255&r[f++])}function L(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=k(p=u),w=!1):(++p,s=12==p?4096:k(p))),t==l){for(;m>0;)x(255&i,e),i>>=8,m-=8;S(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=k(p=u=t),l=1+(c=1<<t-1),b=c+2,a=0,i=P(),f=0,r=5003;r<65536;r*=2)++f;f=8-f,A(5003),L(c,e);t:for(;-1!=(n=P());)if(r=(n<<12)+i,y[o=n<<f^i]!==r){if(y[o]>=0){h=5003-o,0===o&&(h=1);do{if((o-=h)<0&&(o+=5003),y[o]===r){i=v[o];continue t}}while(y[o]>=0)}L(i,e),i=n,b<4096?(v[o]=b++,y[o]=r):C(e)}else i=v[o];L(i,e),L(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 u(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])},u.prototype.setDelay=function(t){this.delay=Math.round(t/10)},u.prototype.setFrameRate=function(t){this.delay=Math.round(100/t)},u.prototype.setDispose=function(t){t>=0&&(this.dispose=t)},u.prototype.setRepeat=function(t){this.repeat=t},u.prototype.setTransparent=function(t){this.transparent=t},u.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},u.prototype.finish=function(){this.out.writeByte(59)},u.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},u.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},u.prototype.setGlobalPalette=function(t){this.globalPalette=t},u.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},u.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},u.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))},u.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}},u.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,u=e?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var c=0;c<i;c++){e&&(u*=-1);for(var l=1==u?0:a-1,h=1==u?a:0;l!==h;l+=u){var f=3*(o=c*a+l),p=s[f],d=s[f+1],g=s[f+2];f=this.findClosestRGB(p,d,g),this.usedEntry[f]=!0,this.indexedPixels[o]=f,f*=3;for(var y=p-this.colorTab[f],v=d-this.colorTab[f+1],m=g-this.colorTab[f+2],b=1==u?0:n.length-1,w=1==u?n.length:0;b!==w;b+=u){var x=n[b][1],C=n[b][2];if(x+l>=0&&x+l<a&&C+c>=0&&C+c<i){var A=n[b][0];f=o+x+C*a,s[f*=3]=Math.max(0,Math.min(255,s[f]+y*A)),s[f+1]=Math.max(0,Math.min(255,s[f+1]+v*A)),s[f+2]=Math.max(0,Math.min(255,s[f+2]+m*A))}}}}},u.prototype.findClosest=function(t,e){return this.findClosestRGB((16711680&t)>>16,(65280&t)>>8,255&t,e)},u.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,u=0;s<a;u++){var c=t-(255&this.colorTab[s++]),l=e-(255&this.colorTab[s++]),h=r-(255&this.colorTab[s++]),f=c*c+l*l+h*h;(!n||this.usedEntry[u])&&f<i&&(i=f,o=u)}return o},u.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++},u.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)},u.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)},u.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)},u.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)},u.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e<t;e++)this.out.writeByte(0)},u.prototype.writeShort=function(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)},u.prototype.writePixels=function(){new i(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},u.prototype.stream=function(){return this.out},e.a=u},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",u=a.asyncIterator||"@@asyncIterator",c=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 P(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=A(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 u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.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 g(){}function y(){}var v={};l(v,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==r&&i.call(b,s)&&(v=b);var w=y.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 C(t,e){var r;this._invoke=function(o,a){function s(){return new e((function(r,s){!function r(o,a,s,u){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==n(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}(o,a,r,s)}))}return r=r?r.then(s,s):s()}}function A(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,A(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 S(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 P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(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 g.prototype=y,l(w,"constructor",y),l(y,"constructor",g),g.displayName=l(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new C(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,c,"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=L,P.prototype={constructor:P,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)&&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"),u=i.call(o,"finallyLoc");if(s&&u){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(!u)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),k(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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=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 u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(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 c(this,t,e,r)}function c(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),u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e),t}(t,e,r,n):"string"==typeof e?function(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!u.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(u.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)),!u.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(u.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 G(t).length;default:if(n)return F(t).length;e=(""+e).toLowerCase(),n=!0}}function g(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 T(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return L(this,e,r);case"latin1":case"binary":return E(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,u.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,u=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,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var h=!0,f=0;f<u;f++)if(c(t,i+f)!==c(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 C(t,e,r,n){return x(t,e,r,n)}function A(t,e,r,n){return Y(G(e),t,r,n)}function S(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 k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function P(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,u,c=t[o],l=null,h=c>239?4:c>223?3:c>191?2:1;if(o+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}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 L(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 T(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+=U(t[i]);return o}function O(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,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(!u.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 B(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 N(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 M(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 D(t,e,r,n,i){return i||M(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function R(t,e,r,n,i){return i||M(t,0,r,8),o.write(t,e,r,n,52,8),r+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.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(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.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)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.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},u.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}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.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)y(this,e,e+1);return this},u.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)y(this,e,e+3),y(this,e+1,e+2);return this},u.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)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.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+">"},u.prototype.compare=function(t,e,r,n,o){if(!u.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),c=this.slice(n,o),l=t.slice(e,r),h=0;h<s;++h)if(c[h]!==l[h]){i=c[h],a=l[h];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},u.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 C(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.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),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var o=e-t;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||_(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||_(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||_(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||_(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||_(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||_(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},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||_(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},u.prototype.readInt8=function(t,e){return e||_(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||_(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||_(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||_(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||_(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||_(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||_(t,8,this.length),o.read(this,t,!1,52,8)},u.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},u.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},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},u.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},u.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},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||I(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},u.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),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return R(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return R(this,t,e,!1,r)},u.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||!u.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},u.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&&!u.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=u.isBuffer(t)?t:F(new u(t,n).toString()),s=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function U(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 G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).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=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),a=n[0],s=n[1],u=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)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===s&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},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,u=a.length;s<u;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function c(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,u=(1<<s)-1,c=u>>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-c;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-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,g=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*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-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,c+=o;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*g}},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 u,c=[],l=!1,h=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):h=-1,c.length&&p())}function p(){if(!l){var t=s(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=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 g(){}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];c.push(new d(t,e)),1!==c.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=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,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 u=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()}))},c=r(9),l=function(t,e,r,n,o,i,a,s){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(u=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)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}({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,u(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 c.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")),u=Object(s["a"])(a,n,o,!1,null,"10a70108",null);e["a"]=u.exports},"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?[u(e,t),"[",n,"]"].join(""):[u(e,t),"[",u(n,t),"]=",u(r,t)].join("")};case"bracket":return function(e,r){return null===r?u(e,t):[u(e,t),"[]=",u(r,t)].join("")};default:return function(e,r){return null===r?u(e,t):[u(e,t),"=",u(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 u(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function c(t){return Array.isArray(t)?t.sort():"object"===typeof t?c(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]=c(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 u(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 u(r,e)+"="+u(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)}}},8643:function(t,e,r){"use strict";r("8e65")},"8a9b":function(t,e,r){},"8e65":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"},b633:function(t,e,r){"use strict";r("fe26")},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){},c96e:function(t,e,r){"use strict";r("8a9b")},d25fa:function(t,e,r){},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){this.paymentObject=t}}},s=a,u=(r("b633"),r("2877")),c=Object(u["a"])(s,n,o,!1,null,"35465e6d",null);e["a"]=c.exports},e313:function(t,e,r){"use strict";r("d25fa")},ecc0:function(t,e,r){},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 u(t){var e={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(t);while(r){try{e[r[0]]=decodeURIComponent(r[0])}catch(c){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 u=o[a];t=t.replace(new RegExp(u,"g"),e[u])}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 u(t)}}},f9b6:function(t,e,r){"use strict";r("2cac")},fe26:function(t,e,r){}}]);