You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
55 KiB
2 lines
55 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-invite"],{"1de5":function(t,e,r){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"2cca":function(t,e,r){var o=r("d9f3");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=r("4f06").default;n("5eb2ab8c",o,!0,{sourceMap:!1,shadowMode:!1})},"30c1":function(t,e,r){"use strict";var o=r("2cca"),n=r.n(o);n.a},"410d3":function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return n})),r.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"erweima"},[e("v-uni-view",{staticClass:"info"},[e("v-uni-image",{attrs:{src:this.userInfo.avatar,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"name"},[this._v(this._s(this.userInfo.nickname))])],1),e("v-uni-view",{staticClass:"content"},[e("v-uni-canvas",{staticStyle:{width:"200px",height:"200px"},attrs:{id:"qrcode","canvas-id":"qrcode"}}),e("v-uni-view",{staticClass:"text"},[this._v("扫一扫上方二维码加入我们吧")])],1)],1)},n=[]},"50ed":function(t,e,r){"use strict";r.r(e);var o=r("410d3"),n=r("8577");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);r("30c1");var a=r("f0c5"),u=Object(a["a"])(n["default"],o["b"],o["c"],!1,null,"181a0157",null,!1,o["a"],void 0);e["default"]=u.exports},"5af7":function(t,e,r){"use strict";r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.userRegister=e.updateUserInfo=e.smsSend=e.smsCheck=e.privacyPolicy=e.payUpGoods=e.orderPay=e.orderDetail=e.logout=e.loginApi=e.getgoodsDetail=e.getWarehouseList=e.getUserProfitStatistic=e.getUserProfitList=e.getUserInfo=e.getUserFansStatistic=e.getUserFansOrderStatistic=e.getUserFansOrderList=e.getUserFansList=e.getUserCommissionStatistic=e.getUserCommissionList=e.getUserCommissionApi=e.getSellerOrderList=e.getGoodsList=e.getBuyerOrderList=e.getArea=e.getAddrList=e.getAddrDesc=e.forgetPsw=e.editAddr=e.deleteAddr=e.createOrder=e.couponList=e.changePassword=e.cancelOrder=e.bindInvitor=e.addAddr=void 0;var o=uni.$u.http;e.smsSend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/sms/send",t,e)};e.smsCheck=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/sms/check",t,e)};e.userRegister=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/user/register",t,e)};e.loginApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/user/login",t,e)};e.privacyPolicy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/addons/shopro/data.richtext/index",t,e)};e.forgetPsw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/user/resetpwd",t,e)};e.getUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserinfo",t,e)};e.getAddrList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/index",t,e)};e.getArea=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/data.area/index",t,e)};e.addAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/add",t,e)};e.editAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/edit",t,e)};e.deleteAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/delete",t,e)};e.getAddrDesc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/detail",t,e)};e.changePassword=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.user/changePassword",t,e)};e.logout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/logout",t,e)};e.updateUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/updateUserInfo",t,e)};e.couponList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.coupon/index",t,e)};e.getUserCommissionStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserCommissionStatistic",t,e)};e.getUserCommissionApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserCommission",t,e)};e.getUserCommissionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserCommissionList",t,e)};e.getUserFansStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserFansStatistic",t,e)};e.getUserFansList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserFansList",t,e)};e.getUserFansOrderStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserFansOrderStatistic",t,e)};e.getUserFansOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserFansOrderList",t,e)};e.getUserProfitStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserProfitStatistic",t,e)};e.getUserProfitList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserProfitList",t,e)};e.getWarehouseList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/getWarehouseList",t,e)};e.getGoodsList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/getGoodsList",t,e)};e.getgoodsDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.get("/api/order/goodsDetail",{params:t},e)};e.getBuyerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.get("/api/order/getBuyerOrderList",{params:t},e)};e.getSellerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.get("/api/order/getSellerOrderList",{params:t},e)};e.createOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/createOrder",t,e)};e.cancelOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/cancelOrder",t,e)};e.orderDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.get("/api/order/orderDetail",{params:t},e)};e.orderPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/orderPay",t,e)};e.bindInvitor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/bindInvitor",t,e)};e.payUpGoods=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/payUpGoods",t,e)}},"64fb":function(t,e,r){"use strict";r("7a82");var o=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r("dc6b")),i=r("5af7"),a={data:function(){return{qrcodeData:"",userInfo:{avatar:"",createtime:null,expires_in:null,expiretime:null,id:null,mobile:null,nickname:null,score:null,token:null,user_id:null,username:null}}},methods:{getUserInfoHandle:function(){var t=this;(0,i.getUserInfo)().then((function(e){t.userInfo=Object.assign((t.userInfo,e.data));var r=new n.default;r.data="https://www.hezhiying.com.cn/pages/register/register?mobile=".concat(t.userInfo.mobile),r.size=200,r.make();var o=uni.createCanvasContext("qrcode",t);r.canvasContext=o,r.drawCanvas()}))}},onLoad:function(){this.getUserInfoHandle();this.qrcodeData="https://www.example.com"}};e.default=a},"6c57":function(t,e,r){var o=r("23e7"),n=r("da84");o({global:!0,forced:n.globalThis!==n},{globalThis:n})},"7ec2":function(t,e,r){r("7a82"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("d401"),r("14d9"),r("159b"),r("131a"),r("26e9"),r("fb6a");var o=r("7037")["default"];function n(){"use strict";
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",c=u.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(A){l=function(t,e,r){return t[e]=r}}function g(t,e,r,o){var n=e&&e.prototype instanceof m?e:m,i=Object.create(n.prototype),u=new P(o||[]);return a(i,"_invoke",{value:S(t,r,u)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(A){return{type:"throw",arg:A}}}e.wrap=g;var f={};function m(){}function p(){}function v(){}var b={};l(b,s,(function(){return this}));var y=Object.getPrototypeOf,C=y&&y(y(E([])));C&&C!==r&&i.call(C,s)&&(b=C);var w=v.prototype=m.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){var r;a(this,"_invoke",{value:function(n,a){function u(){return new e((function(r,u){(function r(n,a,u,s){var d=h(t[n],t,a);if("throw"!==d.type){var c=d.arg,l=c.value;return l&&"object"==o(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){c.value=t,u(c)}),(function(t){return r("throw",t,u,s)}))}s(d.arg)})(n,a,r,u)}))}return r=r?r.then(u,u):u()}})}function S(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return O()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var s=h(t,e,r);if("normal"===s.type){if(o=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o="completed",r.method="throw",r.arg=s.arg)}}}function L(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var n=h(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}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 B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function E(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,o=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 o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=v,a(w,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:p,configurable:!0}),p.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},k(I.prototype),l(I.prototype,d,(function(){return this})),e.AsyncIterator=I,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new I(g(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(w),l(w,c,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=E,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(B),!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,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var u=i.call(n,"catchLoc"),s=i.call(n,"finallyLoc");if(u&&s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(u){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,f):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),f},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),B(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;B(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},8577:function(t,e,r){"use strict";r.r(e);var o=r("64fb"),n=r.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(i);e["default"]=n.a},9523:function(t,e,r){r("7a82");var o=r("a395");t.exports=function(t,e,r){return e=o(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},a2a2:function(t,e,r){t.exports=r.p+"static/img/bg.5183c054.png"},a395:function(t,e,r){var o=r("7037")["default"],n=r("e50d");t.exports=function(t){var e=n(t,"string");return"symbol"===o(e)?e:String(e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},c973:function(t,e,r){function o(t,e,r,o,n,i,a){try{var u=t[i](a),s=u.value}catch(d){return void r(d)}u.done?e(s):Promise.resolve(s).then(o,n)}r("d3b7"),t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function u(t){o(a,n,i,u,s,"next",t)}function s(t){o(a,n,i,u,s,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},cb29:function(t,e,r){var o=r("23e7"),n=r("81d5"),i=r("44d2");o({target:"Array",proto:!0},{fill:n}),i("fill")},d9f3:function(t,e,r){var o=r("24fb"),n=r("1de5"),i=r("a2a2");e=o(!1);var a=n(i);e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 主要颜色 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.erweima[data-v-181a0157]{min-height:calc(100vh - 44px);background:url('+a+");background-size:contain;border-top:1px solid transparent}.erweima .info[data-v-181a0157]{display:flex;align-items:center;flex-direction:column;justify-content:center;margin-top:20%}.erweima .info > uni-image[data-v-181a0157]{height:%?200?%;width:%?200?%;border-radius:50%;border:2px solid #236030}.erweima .info .name[data-v-181a0157]{font-size:%?26?%;color:#fff;margin-top:%?30?%}.erweima .content[data-v-181a0157]{background:#fff;padding:%?50?%;border-radius:10px;width:-webkit-fit-content;width:fit-content;margin:%?20?% auto;text-align:center}.erweima .content .text[data-v-181a0157]{font-size:%?24?%;color:#999;margin-top:%?20?%}",""]),t.exports=e},dc6b:function(t,e,r){(function(o){var n,i,a=r("7ec2").default,u=r("c973").default,s=r("ded3").default,d=r("7037").default;r("6c57"),r("14d9"),r("d9e2"),r("d401"),r("1d1c"),r("a9e3"),r("d3b7"),r("159b"),r("b64b"),r("25f0"),r("caad"),r("2532"),r("cb29"),function(o,a){"object"==d(e)&&"undefined"!=typeof t?t.exports=a():(n=a,i="function"===typeof n?n.call(e,r,e,t):n,void 0===i||(t.exports=i))}("undefined"!==typeof window&&window,(function(){function t(t){this.mode=r.MODE_8BIT_BYTE,this.data=t}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}t.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},e.prototype={addData:function(e){var r=new t(e);this.dataList.push(r),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=l.getRSBlocks(t,this.errorCorrectLevel),r=new g,o=0,i=0;i<e.length;i++)o+=e[i].dataCount;for(i=0;i<this.dataList.length;i++){var a=this.dataList[i];r.put(a.mode,4),r.put(a.getLength(),n.getLengthInBits(a.mode,t)),a.write(r)}if(r.getLengthInBits()<=8*o)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,r){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[o][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,r),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(this.modules[t+r][e+o]=0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=n.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r);this.make();for(var n=0;n<this.modules.length;n++)for(var i=1*n,a=0;a<this.modules[n].length;a++){var u=1*a;this.modules[n][a]&&(o.beginFill(0,100),o.moveTo(u,i),o.lineTo(u+1,i),o.lineTo(u+1,i+1),o.lineTo(u,i+1),o.endFill())}return o},setupTimingPattern: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)},setupPositionAdjustPattern:function(){for(var t=n.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var o=t[e],i=t[r];if(null==this.modules[o][i])for(var a=-2;a<=2;a++)for(var u=-2;u<=2;u++)this.modules[o+a][i+u]=-2==a||2==a||-2==u||2==u||0==a&&0==u}},setupTypeNumber:function(t){for(var e=n.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(r=0;r<18;r++)o=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=n.getBCHTypeInfo(r),i=0;i<15;i++){var a=!t&&1==(o>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(i=0;i<15;i++)a=!t&&1==(o>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,i=7,a=0,u=this.moduleCount-1;u>0;u-=2)for(6==u&&u--;;){for(var s=0;s<2;s++)if(null==this.modules[o][u-s]){var d=!1;a<t.length&&(d=1==(t[a]>>>i&1)),n.getMask(e,o,u-s)&&(d=!d),this.modules[o][u-s]=d,-1==--i&&(a++,i=7)}if((o+=r)<0||this.moduleCount<=o){o-=r,r=-r;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,r,o){for(var i=l.getRSBlocks(t,r),a=new g,u=0;u<o.length;u++){var s=o[u];a.put(s.mode,4),a.put(s.getLength(),n.getLengthInBits(s.mode,t)),s.write(a)}var d=0;for(u=0;u<i.length;u++)d+=i[u].dataCount;if(a.getLengthInBits()>8*d)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*d+")");for(a.getLengthInBits()+4<=8*d&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*d||(a.put(e.PAD0,8),a.getLengthInBits()>=8*d));)a.put(e.PAD1,8);return e.createBytes(a,i)},e.createBytes=function(t,e){for(var r=0,o=0,i=0,a=new Array(e.length),u=new Array(e.length),s=0;s<e.length;s++){var d=e[s].dataCount,l=e[s].totalCount-d;o=Math.max(o,d),i=Math.max(i,l),a[s]=new Array(d);for(var g=0;g<a[s].length;g++)a[s][g]=255&t.buffer[g+r];r+=d;var h=n.getErrorCorrectPolynomial(l),f=new c(a[s],h.getLength()-1).mod(h);for(u[s]=new Array(h.getLength()-1),g=0;g<u[s].length;g++){var m=g+f.getLength()-u[s].length;u[s][g]=m>=0?f.get(m):0}}var p=0;for(g=0;g<e.length;g++)p+=e[g].totalCount;var v=new Array(p),b=0;for(g=0;g<o;g++)for(s=0;s<e.length;s++)g<a[s].length&&(v[b++]=a[s][g]);for(g=0;g<i;g++)for(s=0;s<e.length;s++)g<u[s].length&&(v[b++]=u[s][g]);return v};for(var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},n={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;n.getBCHDigit(e)-n.getBCHDigit(n.G15)>=0;)e^=n.G15<<n.getBCHDigit(e)-n.getBCHDigit(n.G15);return(t<<10|e)^n.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;n.getBCHDigit(e)-n.getBCHDigit(n.G18)>=0;)e^=n.G18<<n.getBCHDigit(e)-n.getBCHDigit(n.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return n.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case 0:return(e+r)%2==0;case 1:return e%2==0;case 2:return r%3==0;case 3:return(e+r)%3==0;case 4:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case 5:return e*r%2+e*r%3==0;case 6:return(e*r%2+e*r%3)%2==0;case 7:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new c([1],0),r=0;r<t;r++)e=e.multiply(new c([1,i.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:case r.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,o=0;o<e;o++)for(var n=0;n<e;n++){for(var i=0,a=t.isDark(o,n),u=-1;u<=1;u++)if(!(o+u<0||e<=o+u))for(var s=-1;s<=1;s++)n+s<0||e<=n+s||0==u&&0==s||a==t.isDark(o+u,n+s)&&i++;i>5&&(r+=3+i-5)}for(o=0;o<e-1;o++)for(n=0;n<e-1;n++){var d=0;t.isDark(o,n)&&d++,t.isDark(o+1,n)&&d++,t.isDark(o,n+1)&&d++,t.isDark(o+1,n+1)&&d++,0!=d&&4!=d||(r+=3)}for(o=0;o<e;o++)for(n=0;n<e-6;n++)t.isDark(o,n)&&!t.isDark(o,n+1)&&t.isDark(o,n+2)&&t.isDark(o,n+3)&&t.isDark(o,n+4)&&!t.isDark(o,n+5)&&t.isDark(o,n+6)&&(r+=40);for(n=0;n<e;n++)for(o=0;o<e-6;o++)t.isDark(o,n)&&!t.isDark(o+1,n)&&t.isDark(o+2,n)&&t.isDark(o+3,n)&&t.isDark(o+4,n)&&!t.isDark(o+5,n)&&t.isDark(o+6,n)&&(r+=40);var c=0;for(n=0;n<e;n++)for(o=0;o<e;o++)t.isDark(o,n)&&c++;return r+Math.abs(100*c/e/e-50)/5*10}},i={glog:function(t){if(t<1)throw new Error("glog("+t+")");return i.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return i.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)i.EXP_TABLE[d]=1<<d;for(d=8;d<256;d++)i.EXP_TABLE[d]=i.EXP_TABLE[d-4]^i.EXP_TABLE[d-5]^i.EXP_TABLE[d-6]^i.EXP_TABLE[d-8];for(d=0;d<255;d++)i.LOG_TABLE[i.EXP_TABLE[d]]=d;function c(t,e){if(null==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}function l(t,e){this.totalCount=t,this.dataCount=e}function g(){this.buffer=new Array,this.length=0}function h(t){return t.setFillStyle=t.setFillStyle||function(e){t.fillStyle=e},t.setFontSize=t.setFontSize||function(e){t.font="".concat(e,"px")},t.setTextAlign=t.setTextAlign||function(e){t.textAlign=e},t.setTextBaseline=t.setTextBaseline||function(e){t.textBaseline=e},t.setGlobalAlpha=t.setGlobalAlpha||function(e){t.globalAlpha=e},t.setStrokeStyle=t.setStrokeStyle||function(e){t.strokeStyle=e},t.setShadow=t.setShadow||function(e,r,o,n){t.shadowOffsetX=e,t.shadowOffsetY=r,t.shadowBlur=o,t.shadowColor=n},t.draw=t.draw||function(t,e){e&&e()},t}function f(t,e){var r=this,o=this.data="";this.dataEncode=!0;var n=this.size=200;this.useDynamicSize=!1,this.dynamicSize=n;var i=this.typeNumber=-1;this.errorCorrectLevel=f.errorCorrectLevel.H;var a=this.margin=0;this.areaColor="#FFFFFF",this.backgroundColor="rgba(255,255,255,0)",this.backgroundImageSrc=void 0;var u=this.backgroundImageWidth=void 0,s=this.backgroundImageHeight=void 0,d=this.backgroundImageX=void 0,c=this.backgroundImageY=void 0;this.backgroundImageAlpha=1,this.backgroundImageBorderRadius=0;var l=this.backgroundPadding=0;this.foregroundColor="#000000",this.foregroundImageSrc=void 0;var g=this.foregroundImageWidth=void 0,m=this.foregroundImageHeight=void 0,p=this.foregroundImageX=void 0,v=this.foregroundImageY=void 0,b=this.foregroundImagePadding=0;this.foregroundImageBackgroundColor="#FFFFFF";var y=this.foregroundImageBorderRadius=0,C=this.foregroundImageShadowOffsetX=0,w=this.foregroundImageShadowOffsetY=0,k=this.foregroundImageShadowBlur=0;this.foregroundImageShadowColor="#808080";var I=this.foregroundPadding=0,S=this.positionProbeBackgroundColor=void 0,L=this.positionProbeForegroundColor=void 0,x=this.separatorColor=void 0,B=this.positionAdjustBackgroundColor=void 0,P=this.positionAdjustForegroundColor=void 0,E=this.timingBackgroundColor=void 0,O=this.timingForegroundColor=void 0,A=this.typeNumberBackgroundColor=void 0,D=this.typeNumberForegroundColor=void 0,_=this.darkBlockColor=void 0;this.base=void 0,this.modules=[],this.moduleCount=0,this.drawModules=[];var T=this.canvasContext=void 0;this.loadImage,this.drawReserve=!1,this.isMaked=!1,Object.defineProperties(this,{data:{get:function(){if(""===o||void 0===o)throw console.error("[uQRCode]: data must be set!"),new f.Error("data must be set!");return o},set:function(t){o=String(t)}},size:{get:function(){return n},set:function(t){n=Number(t)}},typeNumber:{get:function(){return i},set:function(t){i=Number(t)}},margin:{get:function(){return a},set:function(t){a=Number(t)}},backgroundImageWidth:{get:function(){return void 0===u?this.dynamicSize:this.useDynamicSize?this.dynamicSize/this.size*u:u},set:function(t){u=Number(t)}},backgroundImageHeight:{get:function(){return void 0===s?this.dynamicSize:this.useDynamicSize?this.dynamicSize/this.size*s:s},set:function(t){s=Number(t)}},backgroundImageX:{get:function(){return void 0===d?0:this.useDynamicSize?this.dynamicSize/this.size*d:d},set:function(t){d=Number(t)}},backgroundImageY:{get:function(){return void 0===c?0:this.useDynamicSize?this.dynamicSize/this.size*c:c},set:function(t){c=Number(t)}},backgroundPadding:{get:function(){return l},set:function(t){l=t>1?1:t<0?0:t}},foregroundImageWidth:{get:function(){return void 0===g?(this.dynamicSize-2*this.margin)/4:this.useDynamicSize?this.dynamicSize/this.size*g:g},set:function(t){g=Number(t)}},foregroundImageHeight:{get:function(){return void 0===m?(this.dynamicSize-2*this.margin)/4:this.useDynamicSize?this.dynamicSize/this.size*m:m},set:function(t){m=Number(t)}},foregroundImageX:{get:function(){return void 0===p?this.dynamicSize/2-this.foregroundImageWidth/2:this.useDynamicSize?this.dynamicSize/this.size*p:p},set:function(t){p=Number(t)}},foregroundImageY:{get:function(){return void 0===v?this.dynamicSize/2-this.foregroundImageHeight/2:this.useDynamicSize?this.dynamicSize/this.size*v:v},set:function(t){v=Number(t)}},foregroundImagePadding:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*b:b},set:function(t){b=Number(t)}},foregroundImageBorderRadius:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*y:y},set:function(t){y=Number(t)}},foregroundImageShadowOffsetX:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*C:C},set:function(t){C=Number(t)}},foregroundImageShadowOffsetY:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*w:w},set:function(t){w=Number(t)}},foregroundImageShadowBlur:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*k:k},set:function(t){k=Number(t)}},foregroundPadding:{get:function(){return I},set:function(t){I=t>1?1:t<0?0:t}},positionProbeBackgroundColor:{get:function(){return S||this.backgroundColor},set:function(t){S=t}},positionProbeForegroundColor:{get:function(){return L||this.foregroundColor},set:function(t){L=t}},separatorColor:{get:function(){return x||this.backgroundColor},set:function(t){x=t}},positionAdjustBackgroundColor:{get:function(){return B||this.backgroundColor},set:function(t){B=t}},positionAdjustForegroundColor:{get:function(){return P||this.foregroundColor},set:function(t){P=t}},timingBackgroundColor:{get:function(){return E||this.backgroundColor},set:function(t){E=t}},timingForegroundColor:{get:function(){return O||this.foregroundColor},set:function(t){O=t}},typeNumberBackgroundColor:{get:function(){return A||this.backgroundColor},set:function(t){A=t}},typeNumberForegroundColor:{get:function(){return D||this.foregroundColor},set:function(t){D=t}},darkBlockColor:{get:function(){return _||this.foregroundColor},set:function(t){_=t}},canvasContext:{get:function(){if(void 0===T)throw console.error("[uQRCode]: use drawCanvas, you need to set the canvasContext!"),new f.Error("use drawCanvas, you need to set the canvasContext!");return T},set:function(t){T=h(t)}}}),f.plugins.forEach((function(t){return t(f,r,!1)})),t&&this.setOptions(t),e&&(this.canvasContext=h(e))}return c.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)e[r+o]^=i.gexp(i.glog(this.get(r))+i.glog(t.get(o)));return new c(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=i.glog(this.get(0))-i.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(o=0;o<t.getLength();o++)r[o]^=i.gexp(i.glog(t.get(o))+e);return new c(r,0).mod(t)}},l.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]],l.getRSBlocks=function(t,e){var r=l.getRsBlockTable(t,e);if(null==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=r.length/3,n=new Array,i=0;i<o;i++)for(var a=r[3*i+0],u=r[3*i+1],s=r[3*i+2],d=0;d<a;d++)n.push(new l(u,s));return n},l.getRsBlockTable=function(t,e){switch(e){case o.L:return l.RS_BLOCK_TABLE[4*(t-1)+0];case o.M:return l.RS_BLOCK_TABLE[4*(t-1)+1];case o.Q:return l.RS_BLOCK_TABLE[4*(t-1)+2];case o.H:return l.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},g.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},e.errorCorrectLevel=o,f.errorCorrectLevel=e.errorCorrectLevel,f.Error=function(t){this.errMsg="[uQRCode]: "+t},f.plugins=[],f.use=function(t){"function"==typeof t&&f.plugins.push(t)},f.prototype.loadImage=function(t){return Promise.resolve(t)},f.prototype.setOptions=function(t){var e,r,o,n,i,a,u,d,c,l,g,h,f,m,p,v,b,y,C,w,k,I,S,L,x,B,P,E,O,A,D,_,T,M,N,z,F,R,j,U,H,X,Y,G,W,K,Q,J,q,$,V,Z,tt,et,rt,ot,nt=this;t&&(Object.keys(t).forEach((function(e){nt[e]=t[e]})),function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t=o?e:s({},e),r){var i=r[n];null!=i&&(i.constructor==Object?t[n]=this.deepReplace(t[n],i):i.constructor!=String||i?t[n]=i:t[n]=t[n])}}(this,{data:t.data||t.text,dataEncode:t.dataEncode,size:t.size,useDynamicSize:t.useDynamicSize,typeNumber:t.typeNumber,errorCorrectLevel:t.errorCorrectLevel,margin:t.margin,areaColor:t.areaColor,backgroundColor:t.backgroundColor||(null===(e=t.background)||void 0===e?void 0:e.color),backgroundImageSrc:t.backgroundImageSrc||(null===(r=t.background)||void 0===r||null===(o=r.image)||void 0===o?void 0:o.src),backgroundImageWidth:t.backgroundImageWidth||(null===(n=t.background)||void 0===n||null===(i=n.image)||void 0===i?void 0:i.width),backgroundImageHeight:t.backgroundImageHeight||(null===(a=t.background)||void 0===a||null===(u=a.image)||void 0===u?void 0:u.height),backgroundImageX:t.backgroundImageX||(null===(d=t.background)||void 0===d||null===(c=d.image)||void 0===c?void 0:c.x),backgroundImageY:t.backgroundImageY||(null===(l=t.background)||void 0===l||null===(g=l.image)||void 0===g?void 0:g.y),backgroundImageAlpha:t.backgroundImageAlpha||(null===(h=t.background)||void 0===h||null===(f=h.image)||void 0===f?void 0:f.alpha),backgroundImageBorderRadius:t.backgroundImageBorderRadius||(null===(m=t.background)||void 0===m||null===(p=m.image)||void 0===p?void 0:p.borderRadius),backgroundPadding:t.backgroundPadding,foregroundColor:t.foregroundColor||(null===(v=t.foreground)||void 0===v?void 0:v.color),foregroundImageSrc:t.foregroundImageSrc||(null===(b=t.foreground)||void 0===b||null===(y=b.image)||void 0===y?void 0:y.src),foregroundImageWidth:t.foregroundImageWidth||(null===(C=t.foreground)||void 0===C||null===(w=C.image)||void 0===w?void 0:w.width),foregroundImageHeight:t.foregroundImageHeight||(null===(k=t.foreground)||void 0===k||null===(I=k.image)||void 0===I?void 0:I.height),foregroundImageX:t.foregroundImageX||(null===(S=t.foreground)||void 0===S||null===(L=S.image)||void 0===L?void 0:L.x),foregroundImageY:t.foregroundImageY||(null===(x=t.foreground)||void 0===x||null===(B=x.image)||void 0===B?void 0:B.y),foregroundImagePadding:t.foregroundImagePadding||(null===(P=t.foreground)||void 0===P||null===(E=P.image)||void 0===E?void 0:E.padding),foregroundImageBackgroundColor:t.foregroundImageBackgroundColor||(null===(O=t.foreground)||void 0===O||null===(A=O.image)||void 0===A?void 0:A.backgroundColor),foregroundImageBorderRadius:t.foregroundImageBorderRadius||(null===(D=t.foreground)||void 0===D||null===(_=D.image)||void 0===_?void 0:_.borderRadius),foregroundImageShadowOffsetX:t.foregroundImageShadowOffsetX||(null===(T=t.foreground)||void 0===T||null===(M=T.image)||void 0===M?void 0:M.shadowOffsetX),foregroundImageShadowOffsetY:t.foregroundImageShadowOffsetY||(null===(N=t.foreground)||void 0===N||null===(z=N.image)||void 0===z?void 0:z.shadowOffsetY),foregroundImageShadowBlur:t.foregroundImageShadowBlur||(null===(F=t.foreground)||void 0===F||null===(R=F.image)||void 0===R?void 0:R.shadowBlur),foregroundImageShadowColor:t.foregroundImageShadowColor||(null===(j=t.foreground)||void 0===j||null===(U=j.image)||void 0===U?void 0:U.shadowColor),foregroundPadding:t.foregroundPadding,positionProbeBackgroundColor:t.positionProbeBackgroundColor||(null===(H=t.positionProbe)||void 0===H?void 0:H.backgroundColor)||(null===(X=t.positionDetection)||void 0===X?void 0:X.backgroundColor),positionProbeForegroundColor:t.positionProbeForegroundColor||(null===(Y=t.positionProbe)||void 0===Y?void 0:Y.foregroundColor)||(null===(G=t.positionDetection)||void 0===G?void 0:G.foregroundColor),separatorColor:t.separatorColor||(null===(W=t.separator)||void 0===W?void 0:W.color),positionAdjustBackgroundColor:t.positionAdjustBackgroundColor||(null===(K=t.positionAdjust)||void 0===K?void 0:K.backgroundColor)||(null===(Q=t.alignment)||void 0===Q?void 0:Q.backgroundColor),positionAdjustForegroundColor:t.positionAdjustForegroundColor||(null===(J=t.positionAdjust)||void 0===J?void 0:J.foregroundColor)||(null===(q=t.alignment)||void 0===q?void 0:q.foregroundColor),timingBackgroundColor:t.timingBackgroundColor||(null===($=t.timing)||void 0===$?void 0:$.backgroundColor),timingForegroundColor:t.timingForegroundColor||(null===(V=t.timing)||void 0===V?void 0:V.foregroundColor),typeNumberBackgroundColor:t.typeNumberBackgroundColor||(null===(Z=t.typeNumber)||void 0===Z?void 0:Z.backgroundColor)||(null===(tt=t.versionInformation)||void 0===tt?void 0:tt.backgroundColor),typeNumberForegroundColor:t.typeNumberForegroundColor||(null===(et=t.typeNumber)||void 0===et?void 0:et.foregroundColor)||(null===(rt=t.versionInformation)||void 0===rt?void 0:rt.foregroundColor),darkBlockColor:t.darkBlockColor||(null===(ot=t.darkBlock)||void 0===ot?void 0:ot.color)},!0))},f.prototype.make=function(){var t=this.foregroundColor,r=this.backgroundColor,o=this.typeNumber,n=this.errorCorrectLevel,i=this.data,a=this.dataEncode,u=this.size,s=this.margin,d=this.useDynamicSize;if(t===r)throw console.error("[uQRCode]: foregroundColor and backgroundColor cannot be the same!"),new f.Error("foregroundColor and backgroundColor cannot be the same!");a&&(i=function(t){t=t.toString();for(var e,r="",o=0;o<t.length;o++)(e=t.charCodeAt(o))>=1&&e<=127?r+=t.charAt(o):e>2047?(r+=String.fromCharCode(224|e>>12&15),r+=String.fromCharCode(128|e>>6&63),r+=String.fromCharCode(128|e>>0&63)):(r+=String.fromCharCode(192|e>>6&31),r+=String.fromCharCode(128|e>>0&63));return r}(i));var c=new e(o,n);c.addData(i),c.make(),this.base=c,this.typeNumber=c.typeNumber,this.modules=c.modules,this.moduleCount=c.moduleCount,this.dynamicSize=d?Math.ceil((u-2*s)/c.moduleCount)*c.moduleCount+2*s:u,function(t){var e=t.dynamicSize,r=t.margin,o=t.backgroundColor,n=t.backgroundPadding,i=t.foregroundColor,a=t.foregroundPadding,u=t.modules,s=t.moduleCount,d=(e-2*r)/s,c=d,l=0;n>0&&(c-=2*(l=c*n/2));var g=d,h=0;a>0&&(g-=2*(h=g*a/2));for(var f=0;f<s;f++)for(var m=0;m<s;m++){var p=m*d+r,v=f*d+r;if(u[f][m]){var b=h,y=p+h,C=v+h,w=g,k=g;u[f][m]={type:["foreground"],color:i,isBlack:!0,isDrawn:!1,destX:p,destY:v,destWidth:d,destHeight:d,x:y,y:C,width:w,height:k,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b}}else b=l,y=p+l,C=v+l,w=c,k=c,u[f][m]={type:["background"],color:o,isBlack:!1,isDrawn:!1,destX:p,destY:v,destWidth:d,destHeight:d,x:y,y:C,width:w,height:k,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b}}}(this),function(t){var e=t.modules,r=t.moduleCount,o=t.positionProbeBackgroundColor,n=t.positionProbeForegroundColor,i=r-7;[[0,0,1],[1,0,1],[2,0,1],[3,0,1],[4,0,1],[5,0,1],[6,0,1],[0,1,1],[1,1,0],[2,1,0],[3,1,0],[4,1,0],[5,1,0],[6,1,1],[0,2,1],[1,2,0],[2,2,1],[3,2,1],[4,2,1],[5,2,0],[6,2,1],[0,3,1],[1,3,0],[2,3,1],[3,3,1],[4,3,1],[5,3,0],[6,3,1],[0,4,1],[1,4,0],[2,4,1],[3,4,1],[4,4,1],[5,4,0],[6,4,1],[0,5,1],[1,5,0],[2,5,0],[3,5,0],[4,5,0],[5,5,0],[6,5,1],[0,6,1],[1,6,1],[2,6,1],[3,6,1],[4,6,1],[5,6,1],[6,6,1]].forEach((function(t){var r=e[t[0]][t[1]],a=e[t[0]+i][t[1]],u=e[t[0]][t[1]+i];u.type.push("positionProbe"),a.type.push("positionProbe"),r.type.push("positionProbe"),r.color=1==t[2]?n:o,a.color=1==t[2]?n:o,u.color=1==t[2]?n:o}))}(this),function(t){var e=t.modules,r=t.moduleCount,o=t.separatorColor;[[7,0],[7,1],[7,2],[7,3],[7,4],[7,5],[7,6],[7,7],[0,7],[1,7],[2,7],[3,7],[4,7],[5,7],[6,7]].forEach((function(t){var n=e[t[0]][t[1]],i=e[r-t[0]-1][t[1]],a=e[t[0]][r-t[1]-1];a.type.push("separator"),i.type.push("separator"),n.type.push("separator"),n.color=o,i.color=o,a.color=o}))}(this),function(t){var e=t.typeNumber,r=t.modules,o=t.moduleCount,n=t.foregroundColor,i=t.backgroundColor,a=t.positionAdjustForegroundColor,u=t.positionAdjustBackgroundColor,s=t.timingForegroundColor,d=t.timingBackgroundColor,c=[[],[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]][e-1];if(c)for(var l=[[-2,-2,1],[-1,-2,1],[0,-2,1],[1,-2,1],[2,-2,1],[-2,-1,1],[-1,-1,0],[0,-1,0],[1,-1,0],[2,-1,1],[-2,0,1],[-1,0,0],[0,0,1],[1,0,0],[2,0,1],[-2,1,1],[-1,1,0],[0,1,0],[1,1,0],[2,1,1],[-2,2,1],[-1,2,1],[0,2,1],[1,2,1],[2,2,1]],g=c.length,h=0;h<g;h++)for(var f=0;f<g;f++){var m={x:c[h],y:c[f]},p=m.x,v=m.y;p<9&&v<9||p>o-9-1&&v<9||v>o-9-1&&p<9||l.forEach((function(t){var e=r[p+t[0]][v+t[1]];e.type.push("positionAdjust"),e.type.includes("timing")?1==t[2]?e.color=a==n?s:a:e.color=a==n&&u==i?d:u:e.color=1==t[2]?a:u}))}}(this),function(t){for(var e=t.modules,r=t.moduleCount,o=t.timingForegroundColor,n=t.timingBackgroundColor,i=r-16,a=0;a<i;a++){var u=e[6][8+a],s=e[8+a][6];u.type.push("timing"),s.type.push("timing"),u.color=1&a^1?o:n,s.color=1&a^1?o:n}}(this),function(t){var e=t.modules,r=t.moduleCount,o=t.darkBlockColor,n=e[r-7-1][8];n.type.push("darkBlock"),n.color=o}(this),function(t){var e=t.typeNumber,r=t.modules,o=t.moduleCount,n=t.typeNumberBackgroundColor,i=t.typeNumberForegroundColor;if(e<7)return r;var a=[0,0,0,0,0,0,0,"000111110010010100","001000010110111100","001001101010011001","001010010011010011","001011101111110110","001100011101100010","001101100001000111","001110011000001101","001111100100101000","010000101101111000","010001010001011101","010010101000010111","010011010100110010","010100100110100110","010101011010000011","010110100011001001","010111011111101100","011000111011000100","011001000111100001","011010111110101011","011011000010001110","011100110000011010","011101001100111111","011110110101110101","011111001001010000","100000100111010101","100001011011110000","100010100010111010","100011011110011111","100100101100001011","100101010000101110","100110101001100100","100111010101000001","101000110001101001"],u=a[e]+a[e],s=[o-11,o-10,o-9];[[5,s[2]],[5,s[1]],[5,s[0]],[4,s[2]],[4,s[1]],[4,s[0]],[3,s[2]],[3,s[1]],[3,s[0]],[2,s[2]],[2,s[1]],[2,s[0]],[1,s[2]],[1,s[1]],[1,s[0]],[0,s[2]],[0,s[1]],[0,s[0]],[s[2],5],[s[1],5],[s[0],5],[s[2],4],[s[1],4],[s[0],4],[s[2],3],[s[1],3],[s[0],3],[s[2],2],[s[1],2],[s[0],2],[s[2],1],[s[1],1],[s[0],1],[s[2],0],[s[1],0],[s[0],0]].forEach((function(t,e){var o=r[t[0]][t[1]];o.type.push("typeNumber"),o.color="1"==u[e]?i:n}))}(this),this.isMaked=!0,this.drawModules=[]},f.prototype.getDrawModules=function(){if(this.drawModules&&this.drawModules.length>0)return this.drawModules;var t=this.drawModules=[],e=this.modules,r=this.moduleCount,o=this.dynamicSize,n=this.areaColor,i=this.backgroundImageSrc,a=this.backgroundImageX,u=this.backgroundImageY,s=this.backgroundImageWidth,d=this.backgroundImageHeight,c=this.backgroundImageAlpha,l=this.backgroundImageBorderRadius,g=this.foregroundImageSrc,h=this.foregroundImageX,f=this.foregroundImageY,m=this.foregroundImageWidth,p=this.foregroundImageHeight,v=this.foregroundImagePadding,b=this.foregroundImageBackgroundColor,y=this.foregroundImageBorderRadius,C=this.foregroundImageShadowOffsetX,w=this.foregroundImageShadowOffsetY,k=this.foregroundImageShadowBlur,I=this.foregroundImageShadowColor;n&&t.push({name:"area",type:"area",color:n,x:0,y:0,width:o,height:o}),i&&t.push({name:"backgroundImage",type:"image",imageSrc:i,mappingName:"backgroundImageSrc",x:a,y:u,width:s,height:d,alpha:c,borderRadius:l});for(var S=0;S<r;S++)for(var L=0;L<r;L++){var x=e[S][L];x.isDrawn||(x.type.includes("foreground")?t.push({name:"foreground",type:"tile",color:x.color,destX:x.destX,destY:x.destY,destWidth:x.destWidth,destHeight:x.destHeight,x:x.x,y:x.y,width:x.width,height:x.height,paddingTop:x.paddingTop,paddingRight:x.paddingRight,paddingBottom:x.paddingBottom,paddingLeft:x.paddingLeft,rowIndex:S,colIndex:L}):t.push({name:"background",type:"tile",color:x.color,destX:x.destX,destY:x.destY,destWidth:x.destWidth,destHeight:x.destHeight,x:x.x,y:x.y,width:x.width,height:x.height,paddingTop:x.paddingTop,paddingRight:x.paddingRight,paddingBottom:x.paddingBottom,paddingLeft:x.paddingLeft,rowIndex:S,colIndex:L}),x.isDrawn=!0)}return g&&t.push({name:"foregroundImage",type:"image",imageSrc:g,mappingName:"foregroundImageSrc",x:h,y:f,width:m,height:p,padding:v,backgroundColor:b,borderRadius:y,shadowOffsetX:C,shadowOffsetY:w,shadowBlur:k,shadowColor:I}),t},f.prototype.isBlack=function(t,e){var r=this.moduleCount;return!(0>t||0>e||t>=r||e>=r)&&this.modules[t][e].isBlack},f.prototype.drawCanvas=function(t){var e=this,r=this.isMaked,o=this.canvasContext,n=(this.useDynamicSize,this.dynamicSize,this.foregroundColor,this.foregroundPadding,this.backgroundColor,this.backgroundPadding,this.drawReserve);this.margin;if(!r)return console.error("[uQRCode]: please execute the make method first!"),Promise.reject(new f.Error("please execute the make method first!"));var i=this.getDrawModules(),s=function(){var r=u(a().mark((function r(u,s){var d,c,l,g,h,m,p,v,b,y,C,w,k,I;return a().wrap((function(r){while(1)switch(r.prev=r.next){case 0:r.prev=0,o.draw(t),d=0;case 3:if(!(d<i.length)){r.next=48;break}c=i[d],r.t0=(o.save(),c.type),r.next="area"===r.t0?8:"tile"===r.t0?10:"image"===r.t0?13:44;break;case 8:return o.setFillStyle(c.color),o.fillRect(c.x,c.y,c.width,c.height),r.abrupt("break",44);case 10:return l=c.x,g=c.y,h=c.width,m=c.height,o.setFillStyle(c.color),o.fillRect(l,g,h,m),r.abrupt("break",44);case 13:if("backgroundImage"!==c.name){r.next=28;break}return l=Math.round(c.x),g=Math.round(c.y),h=Math.round(c.width),m=Math.round(c.height),h<2*(v=Math.round(c.borderRadius))&&(v=h/2),m<2*v&&(v=m/2),o.setGlobalAlpha(c.alpha),v>0&&(o.beginPath(),o.moveTo(l+v,g),o.arcTo(l+h,g,l+h,g+m,v),o.arcTo(l+h,g+m,l,g+m,v),o.arcTo(l,g+m,l,g,v),o.arcTo(l,g,l+h,g,v),o.closePath(),o.setStrokeStyle("rgba(0,0,0,0)"),o.stroke(),o.clip()),r.prev=16,r.next=19,e.loadImage(c.imageSrc);case 19:p=r.sent,o.drawImage(p,l,g,h,m),r.next=26;break;case 23:throw r.prev=23,r.t1=r["catch"](16),console.error("[uQRCode]: ".concat(c.mappingName," invalid!")),new f.Error("".concat(c.mappingName," invalid!"));case 26:r.next=44;break;case 28:if("foregroundImage"!==c.name){r.next=44;break}return l=Math.round(c.x),g=Math.round(c.y),h=Math.round(c.width),m=Math.round(c.height),b=Math.round(c.padding),h<2*(v=Math.round(c.borderRadius))&&(v=h/2),m<2*v&&(v=m/2),y=l-b,C=g-b,w=h+2*b,k=m+2*b,I=Math.round(w/h*v),w<2*I&&(I=w/2),k<2*I&&(I=k/2),o.save(),o.setShadow(c.shadowOffsetX,c.shadowOffsetY,c.shadowBlur,c.shadowColor),I>0?(o.beginPath(),o.moveTo(y+I,C),o.arcTo(y+w,C,y+w,C+k,I),o.arcTo(y+w,C+k,y,C+k,I),o.arcTo(y,C+k,y,C,I),o.arcTo(y,C,y+w,C,I),o.closePath(),o.setFillStyle(c.backgroundColor),o.fill()):(o.setFillStyle(c.backgroundColor),o.fillRect(y,C,w,k)),o.restore(),o.save(),I>0?(o.beginPath(),o.moveTo(y+I,C),o.arcTo(y+w,C,y+w,C+k,I),o.arcTo(y+w,C+k,y,C+k,I),o.arcTo(y,C+k,y,C,I),o.arcTo(y,C,y+w,C,I),o.closePath(),o.setFillStyle(b>0?c.backgroundColor:"rgba(0,0,0,0)"),o.fill()):(o.setFillStyle(b>0?c.backgroundColor:"rgba(0,0,0,0)"),o.fillRect(y,C,w,k)),o.restore(),v>0&&(o.beginPath(),o.moveTo(l+v,g),o.arcTo(l+h,g,l+h,g+m,v),o.arcTo(l+h,g+m,l,g+m,v),o.arcTo(l,g+m,l,g,v),o.arcTo(l,g,l+h,g,v),o.closePath(),o.setStrokeStyle("rgba(0,0,0,0)"),o.stroke(),o.clip()),r.prev=34,r.next=37,e.loadImage(c.imageSrc);case 37:p=r.sent,o.drawImage(p,l,g,h,m),r.next=44;break;case 41:throw r.prev=41,r.t2=r["catch"](34),console.error("[uQRCode]: ".concat(c.mappingName," invalid!")),new f.Error("".concat(c.mappingName," invalid!"));case 44:n&&o.draw(!0),o.restore();case 45:d++,r.next=3;break;case 48:o.draw(!0),setTimeout(u,150),r.next=54;break;case 51:r.prev=51,r.t3=r["catch"](0),s(r.t3);case 54:case"end":return r.stop()}}),r,null,[[0,51],[16,23],[34,41]])})));return function(t,e){return r.apply(this,arguments)}}();return new Promise((function(t,e){s(t,e)}))},f.prototype.draw=function(t){return this.drawCanvas(t)},f.prototype.register=function(t){t&&t(f,this,!0)},f}))}).call(this,r("c8ba"))},ded3:function(t,e,r){r("b64b"),r("a4d3"),r("4de4"),r("d3b7"),r("e439"),r("14d9"),r("159b"),r("dbb4"),r("1d1c"),r("7a82");var o=r("9523");function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},e50d:function(t,e,r){r("8172"),r("efec"),r("a4d3"),r("e01a"),r("d3b7"),r("d9e2"),r("d401"),r("a9e3");var o=r("7037")["default"];t.exports=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports}}]); |