operation-event_promotion-advertise-advertise~operation-pay_bill-index~other-page-supplier-order-sup~b62a43ee.2047a68c.js 36 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["operation-event_promotion-advertise-advertise~operation-pay_bill-index~other-page-supplier-order-sup~b62a43ee"],{1851:function(o,e,t){"use strict";var r=t("8bdb"),n=t("84d6"),i=t("1cb5");r({target:"Array",proto:!0},{fill:n}),i("fill")},"5a06":function(o,e,t){"use strict";function r(){var o=this.waitingQueue=[],e=this.isRunning=!1;this.exec=function(t){return new Promise((function(r,n){e?o.push({task:t,resolve:r,reject:n}):(e=!0,function t(r,n,i){r().then((function(o){n(o)})).catch((function(o){i(o)})).finally((function(){if(o.length){var r=o.shift();t(r.task,r.resolve,r.reject)}else e=!1}))}(t,r,n))}))}}t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.queueLoadImage=e.queueDraw=void 0,t("bf0f"),t("5c47"),t("aa9c");var n=new r;e.queueDraw=n;var i=new r;e.queueLoadImage=i},"5d65":function(o,e,t){"use strict";t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.cacheImageList=void 0;e.cacheImageList=[]},dad0:function(o,e,t){"use strict";t("6a54");var r=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=C;var n=r(t("2634")),i=r(t("2fdc")),a=r(t("9b1b"));function u(o){this.mode=s.MODE_8BIT_BYTE,this.data=o}function d(o,e){this.typeNumber=o,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}t("aa9c"),t("7a76"),t("c9b5"),t("a03a"),t("64aa"),t("bf0f"),t("2797"),t("dc8a"),t("ab80"),t("4626"),t("5ac7"),t("1851"),u.prototype={getLength:function(o){return this.data.length},write:function(o){for(var e=0;e<this.data.length;e++)o.put(this.data.charCodeAt(e),8)}},d.prototype={addData:function(o){var e=new u(o);this.dataList.push(e),this.dataCache=null},isDark:function(o,e){if(o<0||this.moduleCount<=o||e<0||this.moduleCount<=e)throw new Error(o+","+e);return this.modules[o][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var o=1;for(o=1;o<40;o++){for(var e=m.getRSBlocks(o,this.errorCorrectLevel),t=new v,r=0,n=0;n<e.length;n++)r+=e[n].dataCount;for(n=0;n<this.dataList.length;n++){var i=this.dataList[n];t.put(i.mode,4),t.put(i.getLength(),l.getLengthInBits(i.mode,o)),i.write(t)}if(t.getLengthInBits()<=8*r)break}this.typeNumber=o}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(o,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var t=0;t<this.moduleCount;t++){this.modules[t]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[t][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(o,e),this.typeNumber>=7&&this.setupTypeNumber(o),null==this.dataCache&&(this.dataCache=d.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(o,e){for(var t=-1;t<=7;t++)if(!(o+t<=-1||this.moduleCount<=o+t))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[o+t][e+r]=0<=t&&t<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==t||6==t)||2<=t&&t<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var o=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var r=l.getLostPoint(this);(0==t||o>r)&&(o=r,e=t)}return e},createMovieClip:function(o,e,t){var r=o.createEmptyMovieClip(e,t);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]&&(r.beginFill(0,100),r.moveTo(u,i),r.lineTo(u+1,i),r.lineTo(u+1,i+1),r.lineTo(u,i+1),r.endFill())}return r},setupTimingPattern:function(){for(var o=8;o<this.moduleCount-8;o++)null==this.modules[o][6]&&(this.modules[o][6]=o%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 o=l.getPatternPosition(this.typeNumber),e=0;e<o.length;e++)for(var t=0;t<o.length;t++){var r=o[e],n=o[t];if(null==this.modules[r][n])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[r+i][n+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}},setupTypeNumber:function(o){for(var e=l.getBCHTypeNumber(this.typeNumber),t=0;t<18;t++){var r=!o&&1==(e>>t&1);this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=r}for(t=0;t<18;t++)r=!o&&1==(e>>t&1),this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=r},setupTypeInfo:function(o,e){for(var t=this.errorCorrectLevel<<3|e,r=l.getBCHTypeInfo(t),n=0;n<15;n++){var i=!o&&1==(r>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(n=0;n<15;n++)i=!o&&1==(r>>n&1),n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i;this.modules[this.moduleCount-8][8]=!o},mapData:function(o,e){for(var t=-1,r=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var u=0;u<2;u++)if(null==this.modules[r][a-u]){var d=!1;i<o.length&&(d=1==(o[i]>>>n&1)),l.getMask(e,r,a-u)&&(d=!d),this.modules[r][a-u]=d,-1==--n&&(i++,n=7)}if((r+=t)<0||this.moduleCount<=r){r-=t,t=-t;break}}}},d.PAD0=236,d.PAD1=17,d.createData=function(o,e,t){for(var r=m.getRSBlocks(o,e),n=new v,i=0;i<t.length;i++){var a=t[i];n.put(a.mode,4),n.put(a.getLength(),l.getLengthInBits(a.mode,o)),a.write(n)}var u=0;for(i=0;i<r.length;i++)u+=r[i].dataCount;if(n.getLengthInBits()>8*u)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+8*u+")");for(n.getLengthInBits()+4<=8*u&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*u||(n.put(d.PAD0,8),n.getLengthInBits()>=8*u));)n.put(d.PAD1,8);return d.createBytes(n,r)},d.createBytes=function(o,e){for(var t=0,r=0,n=0,i=new Array(e.length),a=new Array(e.length),u=0;u<e.length;u++){var d=e[u].dataCount,s=e[u].totalCount-d;r=Math.max(r,d),n=Math.max(n,s),i[u]=new Array(d);for(var g=0;g<i[u].length;g++)i[u][g]=255&o.buffer[g+t];t+=d;var h=l.getErrorCorrectPolynomial(s),c=new f(i[u],h.getLength()-1).mod(h);for(a[u]=new Array(h.getLength()-1),g=0;g<a[u].length;g++){var m=g+c.getLength()-a[u].length;a[u][g]=m>=0?c.get(m):0}}var v=0;for(g=0;g<e.length;g++)v+=e[g].totalCount;var p=new Array(v),C=0;for(g=0;g<r;g++)for(u=0;u<e.length;u++)g<i[u].length&&(p[C++]=i[u][g]);for(g=0;g<n;g++)for(u=0;u<e.length;u++)g<a[u].length&&(p[C++]=a[u][g]);return p};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},g={L:1,M:0,Q:3,H:2},l={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(o){for(var e=o<<10;l.getBCHDigit(e)-l.getBCHDigit(l.G15)>=0;)e^=l.G15<<l.getBCHDigit(e)-l.getBCHDigit(l.G15);return(o<<10|e)^l.G15_MASK},getBCHTypeNumber:function(o){for(var e=o<<12;l.getBCHDigit(e)-l.getBCHDigit(l.G18)>=0;)e^=l.G18<<l.getBCHDigit(e)-l.getBCHDigit(l.G18);return o<<12|e},getBCHDigit:function(o){for(var e=0;0!=o;)e++,o>>>=1;return e},getPatternPosition:function(o){return l.PATTERN_POSITION_TABLE[o-1]},getMask:function(o,e,t){switch(o){case 0:return(e+t)%2==0;case 1:return e%2==0;case 2:return t%3==0;case 3:return(e+t)%3==0;case 4:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case 5:return e*t%2+e*t%3==0;case 6:return(e*t%2+e*t%3)%2==0;case 7:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+o)}},getErrorCorrectPolynomial:function(o){for(var e=new f([1],0),t=0;t<o;t++)e=e.multiply(new f([1,h.gexp(t)],0));return e},getLengthInBits:function(o,e){if(1<=e&&e<10)switch(o){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:case s.MODE_KANJI:return 8;default:throw new Error("mode:"+o)}else if(e<27)switch(o){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+o)}else{if(!(e<41))throw new Error("type:"+e);switch(o){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+o)}}},getLostPoint:function(o){for(var e=o.getModuleCount(),t=0,r=0;r<e;r++)for(var n=0;n<e;n++){for(var i=0,a=o.isDark(r,n),u=-1;u<=1;u++)if(!(r+u<0||e<=r+u))for(var d=-1;d<=1;d++)n+d<0||e<=n+d||0==u&&0==d||a==o.isDark(r+u,n+d)&&i++;i>5&&(t+=3+i-5)}for(r=0;r<e-1;r++)for(n=0;n<e-1;n++){var s=0;o.isDark(r,n)&&s++,o.isDark(r+1,n)&&s++,o.isDark(r,n+1)&&s++,o.isDark(r+1,n+1)&&s++,0!=s&&4!=s||(t+=3)}for(r=0;r<e;r++)for(n=0;n<e-6;n++)o.isDark(r,n)&&!o.isDark(r,n+1)&&o.isDark(r,n+2)&&o.isDark(r,n+3)&&o.isDark(r,n+4)&&!o.isDark(r,n+5)&&o.isDark(r,n+6)&&(t+=40);for(n=0;n<e;n++)for(r=0;r<e-6;r++)o.isDark(r,n)&&!o.isDark(r+1,n)&&o.isDark(r+2,n)&&o.isDark(r+3,n)&&o.isDark(r+4,n)&&!o.isDark(r+5,n)&&o.isDark(r+6,n)&&(t+=40);var g=0;for(n=0;n<e;n++)for(r=0;r<e;r++)o.isDark(r,n)&&g++;return t+Math.abs(100*g/e/e-50)/5*10}},h={glog:function(o){if(o<1)throw new Error("glog("+o+")");return h.LOG_TABLE[o]},gexp:function(o){for(;o<0;)o+=255;for(;o>=256;)o-=255;return h.EXP_TABLE[o]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},c=0;c<8;c++)h.EXP_TABLE[c]=1<<c;for(c=8;c<256;c++)h.EXP_TABLE[c]=h.EXP_TABLE[c-4]^h.EXP_TABLE[c-5]^h.EXP_TABLE[c-6]^h.EXP_TABLE[c-8];for(c=0;c<255;c++)h.LOG_TABLE[h.EXP_TABLE[c]]=c;function f(o,e){if(null==o.length)throw new Error(o.length+"/"+e);for(var t=0;t<o.length&&0==o[t];)t++;this.num=new Array(o.length-t+e);for(var r=0;r<o.length-t;r++)this.num[r]=o[r+t]}function m(o,e){this.totalCount=o,this.dataCount=e}function v(){this.buffer=new Array,this.length=0}function p(o){return o.setFillStyle=o.setFillStyle||function(e){o.fillStyle=e},o.setFontSize=o.setFontSize||function(e){o.font="".concat(e,"px")},o.setTextAlign=o.setTextAlign||function(e){o.textAlign=e},o.setTextBaseline=o.setTextBaseline||function(e){o.textBaseline=e},o.setGlobalAlpha=o.setGlobalAlpha||function(e){o.globalAlpha=e},o.setStrokeStyle=o.setStrokeStyle||function(e){o.strokeStyle=e},o.setShadow=o.setShadow||function(e,t,r,n){o.shadowOffsetX=e,o.shadowOffsetY=t,o.shadowBlur=r,o.shadowColor=n},o.draw=o.draw||function(o,e){e&&e()},o.clearRect=o.clearRect||function(e,t,r,n){o.draw(!1)},o}function C(o,e){var t=this,r=this.data="",n=this.size=200;this.useDynamicSize=!1,this.dynamicSize=n;var i=this.typeNumber=-1;this.errorCorrectLevel=C.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,d=this.backgroundImageHeight=void 0,s=this.backgroundImageX=void 0,g=this.backgroundImageY=void 0;this.backgroundImageAlpha=1,this.backgroundImageBorderRadius=0;var l=this.backgroundPadding=0;this.foregroundColor="#000000",this.foregroundImageSrc=void 0;var h=this.foregroundImageWidth=void 0,c=this.foregroundImageHeight=void 0,f=this.foregroundImageX=void 0,m=this.foregroundImageY=void 0,v=this.foregroundImagePadding=0;this.foregroundImageBackgroundColor="#FFFFFF";var b=this.foregroundImageBorderRadius=0,k=this.foregroundImageShadowOffsetX=0,y=this.foregroundImageShadowOffsetY=0,w=this.foregroundImageShadowBlur=0;this.foregroundImageShadowColor="#808080";var I=this.foregroundPadding=0,B=this.positionProbeBackgroundColor=void 0,S=this.positionProbeForegroundColor=void 0,P=this.separatorColor=void 0,L=this.positionAdjustBackgroundColor=void 0,D=this.positionAdjustForegroundColor=void 0,A=this.timingBackgroundColor=void 0,E=this.timingForegroundColor=void 0,T=this.typeNumberBackgroundColor=void 0,M=this.typeNumberForegroundColor=void 0,N=this.darkBlockColor=void 0;this.base=void 0,this.modules=[],this.moduleCount=0,this.drawModules=[];var z=this.canvasContext=void 0;this.loadImage,this.drawReserve=!1,this.isMaked=!1,Object.defineProperties(this,{data:{get:function(){if(""===r||void 0===r)throw console.error("[uQRCode]: data must be set!"),new C.Error("data must be set!");return r},set:function(o){r=String(o)}},size:{get:function(){return n},set:function(o){n=Number(o)}},typeNumber:{get:function(){return i},set:function(o){i=Number(o)}},margin:{get:function(){return a},set:function(o){a=Number(o)}},backgroundImageWidth:{get:function(){return void 0===u?this.dynamicSize:this.useDynamicSize?this.dynamicSize/this.size*u:u},set:function(o){u=Number(o)}},backgroundImageHeight:{get:function(){return void 0===d?this.dynamicSize:this.useDynamicSize?this.dynamicSize/this.size*d:d},set:function(o){d=Number(o)}},backgroundImageX:{get:function(){return void 0===s?0:this.useDynamicSize?this.dynamicSize/this.size*s:s},set:function(o){s=Number(o)}},backgroundImageY:{get:function(){return void 0===g?0:this.useDynamicSize?this.dynamicSize/this.size*g:g},set:function(o){g=Number(o)}},backgroundPadding:{get:function(){return l},set:function(o){l=o>1?1:o<0?0:o}},foregroundImageWidth:{get:function(){return void 0===h?(this.dynamicSize-2*this.margin)/4:this.useDynamicSize?this.dynamicSize/this.size*h:h},set:function(o){h=Number(o)}},foregroundImageHeight:{get:function(){return void 0===c?(this.dynamicSize-2*this.margin)/4:this.useDynamicSize?this.dynamicSize/this.size*c:c},set:function(o){c=Number(o)}},foregroundImageX:{get:function(){return void 0===f?this.dynamicSize/2-this.foregroundImageWidth/2:this.useDynamicSize?this.dynamicSize/this.size*f:f},set:function(o){f=Number(o)}},foregroundImageY:{get:function(){return void 0===m?this.dynamicSize/2-this.foregroundImageHeight/2:this.useDynamicSize?this.dynamicSize/this.size*m:m},set:function(o){m=Number(o)}},foregroundImagePadding:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*v:v},set:function(o){v=Number(o)}},foregroundImageBorderRadius:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*b:b},set:function(o){b=Number(o)}},foregroundImageShadowOffsetX:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*k:k},set:function(o){k=Number(o)}},foregroundImageShadowOffsetY:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*y:y},set:function(o){y=Number(o)}},foregroundImageShadowBlur:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*w:w},set:function(o){w=Number(o)}},foregroundPadding:{get:function(){return I},set:function(o){I=o>1?1:o<0?0:o}},positionProbeBackgroundColor:{get:function(){return B||this.backgroundColor},set:function(o){B=o}},positionProbeForegroundColor:{get:function(){return S||this.foregroundColor},set:function(o){S=o}},separatorColor:{get:function(){return P||this.backgroundColor},set:function(o){P=o}},positionAdjustBackgroundColor:{get:function(){return L||this.backgroundColor},set:function(o){L=o}},positionAdjustForegroundColor:{get:function(){return D||this.foregroundColor},set:function(o){D=o}},timingBackgroundColor:{get:function(){return A||this.backgroundColor},set:function(o){A=o}},timingForegroundColor:{get:function(){return E||this.foregroundColor},set:function(o){E=o}},typeNumberBackgroundColor:{get:function(){return T||this.backgroundColor},set:function(o){T=o}},typeNumberForegroundColor:{get:function(){return M||this.foregroundColor},set:function(o){M=o}},darkBlockColor:{get:function(){return N||this.foregroundColor},set:function(o){N=o}},canvasContext:{get:function(){if(void 0===z)throw console.error("[uQRCode]: use drawCanvas, you need to set the canvasContext!"),new C.Error("use drawCanvas, you need to set the canvasContext!");return z},set:function(o){z=p(o)}}}),C.plugins.forEach((function(o){return o(C,t,!1)})),o&&this.setOptions(o),e&&(this.canvasContext=p(e))}f.prototype={get:function(o){return this.num[o]},getLength:function(){return this.num.length},multiply:function(o){for(var e=new Array(this.getLength()+o.getLength()-1),t=0;t<this.getLength();t++)for(var r=0;r<o.getLength();r++)e[t+r]^=h.gexp(h.glog(this.get(t))+h.glog(o.get(r)));return new f(e,0)},mod:function(o){if(this.getLength()-o.getLength()<0)return this;for(var e=h.glog(this.get(0))-h.glog(o.get(0)),t=new Array(this.getLength()),r=0;r<this.getLength();r++)t[r]=this.get(r);for(r=0;r<o.getLength();r++)t[r]^=h.gexp(h.glog(o.get(r))+e);return new f(t,0).mod(o)}},m.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]],m.getRSBlocks=function(o,e){var t=m.getRsBlockTable(o,e);if(null==t)throw new Error("bad rs block @ typeNumber:"+o+"/errorCorrectLevel:"+e);for(var r=t.length/3,n=new Array,i=0;i<r;i++)for(var a=t[3*i+0],u=t[3*i+1],d=t[3*i+2],s=0;s<a;s++)n.push(new m(u,d));return n},m.getRsBlockTable=function(o,e){switch(e){case g.L:return m.RS_BLOCK_TABLE[4*(o-1)+0];case g.M:return m.RS_BLOCK_TABLE[4*(o-1)+1];case g.Q:return m.RS_BLOCK_TABLE[4*(o-1)+2];case g.H:return m.RS_BLOCK_TABLE[4*(o-1)+3];default:return}},v.prototype={get:function(o){var e=Math.floor(o/8);return 1==(this.buffer[e]>>>7-o%8&1)},put:function(o,e){for(var t=0;t<e;t++)this.putBit(1==(o>>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),o&&(this.buffer[e]|=128>>>this.length%8),this.length++}},d.errorCorrectLevel=g,C.errorCorrectLevel=d.errorCorrectLevel,C.Error=function(o){this.errMsg="[uQRCode]: "+o},C.plugins=[],C.use=function(o){"function"==typeof o&&C.plugins.push(o)},C.prototype.loadImage=function(o){return Promise.resolve(o)},C.prototype.setOptions=function(o){var e,t,r,n,i,u,d,s,g,l,h,c,f,m,v,p,C,b,k,y,w,I,B,S,P,L,D,A,E,T,M,N,z,_,x,O,R,F,H,X,Y,j,W,G,K,Q,U,J,q,V,Z,$,oo,eo,to,ro,no=this;o&&(Object.keys(o).forEach((function(e){no[e]=o[e]})),function(){var o,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in o=r?e:(0,a.default)({},e),t){var i=t[n];null!=i&&(i.constructor==Object?o[n]=this.deepReplace(o[n],i):i.constructor!=String||i?o[n]=i:o[n]=o[n])}}(this,{data:o.data||o.text,size:o.size,useDynamicSize:o.useDynamicSize,typeNumber:o.typeNumber,errorCorrectLevel:o.errorCorrectLevel,margin:o.margin,areaColor:o.areaColor,backgroundColor:o.backgroundColor||(null===(e=o.background)||void 0===e?void 0:e.color),backgroundImageSrc:o.backgroundImageSrc||(null===(t=o.background)||void 0===t||null===(r=t.image)||void 0===r?void 0:r.src),backgroundImageWidth:o.backgroundImageWidth||(null===(n=o.background)||void 0===n||null===(i=n.image)||void 0===i?void 0:i.width),backgroundImageHeight:o.backgroundImageHeight||(null===(u=o.background)||void 0===u||null===(d=u.image)||void 0===d?void 0:d.height),backgroundImageX:o.backgroundImageX||(null===(s=o.background)||void 0===s||null===(g=s.image)||void 0===g?void 0:g.x),backgroundImageY:o.backgroundImageY||(null===(l=o.background)||void 0===l||null===(h=l.image)||void 0===h?void 0:h.y),backgroundImageAlpha:o.backgroundImageAlpha||(null===(c=o.background)||void 0===c||null===(f=c.image)||void 0===f?void 0:f.alpha),backgroundImageBorderRadius:o.backgroundImageBorderRadius||(null===(m=o.background)||void 0===m||null===(v=m.image)||void 0===v?void 0:v.borderRadius),backgroundPadding:o.backgroundPadding,foregroundColor:o.foregroundColor||(null===(p=o.foreground)||void 0===p?void 0:p.color),foregroundImageSrc:o.foregroundImageSrc||(null===(C=o.foreground)||void 0===C||null===(b=C.image)||void 0===b?void 0:b.src),foregroundImageWidth:o.foregroundImageWidth||(null===(k=o.foreground)||void 0===k||null===(y=k.image)||void 0===y?void 0:y.width),foregroundImageHeight:o.foregroundImageHeight||(null===(w=o.foreground)||void 0===w||null===(I=w.image)||void 0===I?void 0:I.height),foregroundImageX:o.foregroundImageX||(null===(B=o.foreground)||void 0===B||null===(S=B.image)||void 0===S?void 0:S.x),foregroundImageY:o.foregroundImageY||(null===(P=o.foreground)||void 0===P||null===(L=P.image)||void 0===L?void 0:L.y),foregroundImagePadding:o.foregroundImagePadding||(null===(D=o.foreground)||void 0===D||null===(A=D.image)||void 0===A?void 0:A.padding),foregroundImageBackgroundColor:o.foregroundImageBackgroundColor||(null===(E=o.foreground)||void 0===E||null===(T=E.image)||void 0===T?void 0:T.backgroundColor),foregroundImageBorderRadius:o.foregroundImageBorderRadius||(null===(M=o.foreground)||void 0===M||null===(N=M.image)||void 0===N?void 0:N.borderRadius),foregroundImageShadowOffsetX:o.foregroundImageShadowOffsetX||(null===(z=o.foreground)||void 0===z||null===(_=z.image)||void 0===_?void 0:_.shadowOffsetX),foregroundImageShadowOffsetY:o.foregroundImageShadowOffsetY||(null===(x=o.foreground)||void 0===x||null===(O=x.image)||void 0===O?void 0:O.shadowOffsetY),foregroundImageShadowBlur:o.foregroundImageShadowBlur||(null===(R=o.foreground)||void 0===R||null===(F=R.image)||void 0===F?void 0:F.shadowBlur),foregroundImageShadowColor:o.foregroundImageShadowColor||(null===(H=o.foreground)||void 0===H||null===(X=H.image)||void 0===X?void 0:X.shadowColor),foregroundPadding:o.foregroundPadding,positionProbeBackgroundColor:o.positionProbeBackgroundColor||(null===(Y=o.positionProbe)||void 0===Y?void 0:Y.backgroundColor)||(null===(j=o.positionDetection)||void 0===j?void 0:j.backgroundColor),positionProbeForegroundColor:o.positionProbeForegroundColor||(null===(W=o.positionProbe)||void 0===W?void 0:W.foregroundColor)||(null===(G=o.positionDetection)||void 0===G?void 0:G.foregroundColor),separatorColor:o.separatorColor||(null===(K=o.separator)||void 0===K?void 0:K.color),positionAdjustBackgroundColor:o.positionAdjustBackgroundColor||(null===(Q=o.positionAdjust)||void 0===Q?void 0:Q.backgroundColor)||(null===(U=o.alignment)||void 0===U?void 0:U.backgroundColor),positionAdjustForegroundColor:o.positionAdjustForegroundColor||(null===(J=o.positionAdjust)||void 0===J?void 0:J.foregroundColor)||(null===(q=o.alignment)||void 0===q?void 0:q.foregroundColor),timingBackgroundColor:o.timingBackgroundColor||(null===(V=o.timing)||void 0===V?void 0:V.backgroundColor),timingForegroundColor:o.timingForegroundColor||(null===(Z=o.timing)||void 0===Z?void 0:Z.foregroundColor),typeNumberBackgroundColor:o.typeNumberBackgroundColor||(null===($=o.typeNumber)||void 0===$?void 0:$.backgroundColor)||(null===(oo=o.versionInformation)||void 0===oo?void 0:oo.backgroundColor),typeNumberForegroundColor:o.typeNumberForegroundColor||(null===(eo=o.typeNumber)||void 0===eo?void 0:eo.foregroundColor)||(null===(to=o.versionInformation)||void 0===to?void 0:to.foregroundColor),darkBlockColor:o.darkBlockColor||(null===(ro=o.darkBlock)||void 0===ro?void 0:ro.color)},!0))},C.prototype.make=function(){var o=this.foregroundColor,e=this.backgroundColor,t=this.typeNumber,r=this.errorCorrectLevel,n=this.data,i=this.size,a=this.margin,u=this.useDynamicSize;if(o===e)throw console.error("[uQRCode]: foregroundColor and backgroundColor cannot be the same!"),new C.Error("foregroundColor and backgroundColor cannot be the same!");var s=new d(t,r);s.addData(function(o){o=o.toString();for(var e,t="",r=0;r<o.length;r++)(e=o.charCodeAt(r))>=1&&e<=127?t+=o.charAt(r):e>2047?(t+=String.fromCharCode(224|e>>12&15),t+=String.fromCharCode(128|e>>6&63),t+=String.fromCharCode(128|e>>0&63)):(t+=String.fromCharCode(192|e>>6&31),t+=String.fromCharCode(128|e>>0&63));return t}(n)),s.make(),this.base=s,this.typeNumber=s.typeNumber,this.modules=s.modules,this.moduleCount=s.moduleCount,this.dynamicSize=u?Math.ceil((i-2*a)/s.moduleCount)*s.moduleCount+2*a:i,function(o){var e=o.dynamicSize,t=o.margin,r=o.backgroundColor,n=o.backgroundPadding,i=o.foregroundColor,a=o.foregroundPadding,u=o.modules,d=o.moduleCount,s=(e-2*t)/d,g=s,l=0;n>0&&(l=g*n/2,g-=2*l);var h=s,c=0;a>0&&(c=h*a/2,h-=2*c);for(var f=0;f<d;f++)for(var m=0;m<d;m++){var v=m*s+t,p=f*s+t;if(u[f][m]){var C=c,b=v+c,k=p+c,y=h,w=h;u[f][m]={type:["foreground"],color:i,isBlack:!0,isDrawn:!1,destX:v,destY:p,destWidth:s,destHeight:s,x:b,y:k,width:y,height:w,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C}}else C=l,b=v+l,k=p+l,y=g,w=g,u[f][m]={type:["background"],color:r,isBlack:!1,isDrawn:!1,destX:v,destY:p,destWidth:s,destHeight:s,x:b,y:k,width:y,height:w,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C}}}(this),function(o){var e=o.modules,t=o.moduleCount,r=o.positionProbeBackgroundColor,n=o.positionProbeForegroundColor,i=t-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(o){var t=e[o[0]][o[1]],a=e[o[0]+i][o[1]],u=e[o[0]][o[1]+i];u.type.push("positionProbe"),a.type.push("positionProbe"),t.type.push("positionProbe"),t.color=1==o[2]?n:r,a.color=1==o[2]?n:r,u.color=1==o[2]?n:r}))}(this),function(o){var e=o.modules,t=o.moduleCount,r=o.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(o){var n=e[o[0]][o[1]],i=e[t-o[0]-1][o[1]],a=e[o[0]][t-o[1]-1];a.type.push("separator"),i.type.push("separator"),n.type.push("separator"),n.color=r,i.color=r,a.color=r}))}(this),function(o){var e=o.typeNumber,t=o.modules,r=o.moduleCount,n=o.foregroundColor,i=o.backgroundColor,a=o.positionAdjustForegroundColor,u=o.positionAdjustBackgroundColor,d=o.timingForegroundColor,s=o.timingBackgroundColor,g=[[],[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(g)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]],h=g.length,c=0;c<h;c++)for(var f=function(o){var e={x:g[c],y:g[o]},h=e.x,f=e.y;h<9&&f<9||h>r-9-1&&f<9||f>r-9-1&&h<9||l.forEach((function(o){var e=t[h+o[0]][f+o[1]];e.type.push("positionAdjust"),e.type.includes("timing")?1==o[2]?e.color=a==n?d:a:e.color=a==n&&u==i?s:u:e.color=1==o[2]?a:u}))},m=0;m<h;m++)f(m)}(this),function(o){for(var e=o.modules,t=o.moduleCount,r=o.timingForegroundColor,n=o.timingBackgroundColor,i=t-16,a=0;a<i;a++){var u=e[6][8+a],d=e[8+a][6];u.type.push("timing"),d.type.push("timing"),u.color=1&a^1?r:n,d.color=1&a^1?r:n}}(this),function(o){var e=o.modules,t=o.moduleCount,r=o.darkBlockColor,n=e[t-7-1][8];n.type.push("darkBlock"),n.color=r}(this),function(o){var e=o.typeNumber,t=o.modules,r=o.moduleCount,n=o.typeNumberBackgroundColor,i=o.typeNumberForegroundColor;if(e<7)return t;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],d=[r-11,r-10,r-9];[[5,d[2]],[5,d[1]],[5,d[0]],[4,d[2]],[4,d[1]],[4,d[0]],[3,d[2]],[3,d[1]],[3,d[0]],[2,d[2]],[2,d[1]],[2,d[0]],[1,d[2]],[1,d[1]],[1,d[0]],[0,d[2]],[0,d[1]],[0,d[0]],[d[2],5],[d[1],5],[d[0],5],[d[2],4],[d[1],4],[d[0],4],[d[2],3],[d[1],3],[d[0],3],[d[2],2],[d[1],2],[d[0],2],[d[2],1],[d[1],1],[d[0],1],[d[2],0],[d[1],0],[d[0],0]].forEach((function(o,e){var r=t[o[0]][o[1]];r.type.push("typeNumber"),r.color="1"==u[e]?i:n}))}(this),this.isMaked=!0,this.drawModules=[]},C.prototype.getDrawModules=function(){if(this.drawModules&&this.drawModules.length>0)return this.drawModules;var o=this.drawModules=[],e=this.modules,t=this.moduleCount,r=this.dynamicSize,n=this.areaColor,i=this.backgroundImageSrc,a=this.backgroundImageX,u=this.backgroundImageY,d=this.backgroundImageWidth,s=this.backgroundImageHeight,g=this.backgroundImageAlpha,l=this.backgroundImageBorderRadius,h=this.foregroundImageSrc,c=this.foregroundImageX,f=this.foregroundImageY,m=this.foregroundImageWidth,v=this.foregroundImageHeight,p=this.foregroundImagePadding,C=this.foregroundImageBackgroundColor,b=this.foregroundImageBorderRadius,k=this.foregroundImageShadowOffsetX,y=this.foregroundImageShadowOffsetY,w=this.foregroundImageShadowBlur,I=this.foregroundImageShadowColor;n&&o.push({name:"area",type:"area",color:n,x:0,y:0,width:r,height:r}),i&&o.push({name:"backgroundImage",type:"image",imageSrc:i,mappingName:"backgroundImageSrc",x:a,y:u,width:d,height:s,alpha:g,borderRadius:l});for(var B=0;B<t;B++)for(var S=0;S<t;S++){var P=e[B][S];P.isDrawn||(P.type.includes("foreground")?o.push({name:"foreground",type:"tile",color:P.color,destX:P.destX,destY:P.destY,destWidth:P.destWidth,destHeight:P.destHeight,x:P.x,y:P.y,width:P.width,height:P.height,paddingTop:P.paddingTop,paddingRight:P.paddingRight,paddingBottom:P.paddingBottom,paddingLeft:P.paddingLeft,rowIndex:B,colIndex:S}):o.push({name:"background",type:"tile",color:P.color,destX:P.destX,destY:P.destY,destWidth:P.destWidth,destHeight:P.destHeight,x:P.x,y:P.y,width:P.width,height:P.height,paddingTop:P.paddingTop,paddingRight:P.paddingRight,paddingBottom:P.paddingBottom,paddingLeft:P.paddingLeft,rowIndex:B,colIndex:S}),P.isDrawn=!0)}return h&&o.push({name:"foregroundImage",type:"image",imageSrc:h,mappingName:"foregroundImageSrc",x:c,y:f,width:m,height:v,padding:p,backgroundColor:C,borderRadius:b,shadowOffsetX:k,shadowOffsetY:y,shadowBlur:w,shadowColor:I}),o},C.prototype.isBlack=function(o,e){var t=this.moduleCount;return!(0>o||0>e||o>=t||e>=t)&&this.modules[o][e].isBlack},C.prototype.drawCanvas=function(){var o=this,e=this.isMaked,t=this.canvasContext,r=(this.useDynamicSize,this.dynamicSize),a=(this.foregroundColor,this.foregroundPadding,this.backgroundColor,this.backgroundPadding,this.drawReserve);this.margin;if(!e)return console.error("[uQRCode]: please execute the make method first!"),Promise.reject(new C.Error("please execute the make method first!"));var u=this.getDrawModules(),d=function(){var e=(0,i.default)((0,n.default)().mark((function e(i,d){var s,g,l,h,c,f,m,v,p,b,k,y,w,I;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.prev=0,t.clearRect(0,0,r,r),t.draw(!1),s=0;case 3:if(!(s<u.length)){e.next=48;break}g=u[s],e.t0=(t.save(),g.type),e.next="area"===e.t0?8:"tile"===e.t0?10:"image"===e.t0?13:44;break;case 8:return t.setFillStyle(g.color),t.fillRect(g.x,g.y,g.width,g.height),e.abrupt("break",44);case 10:return l=g.x,h=g.y,c=g.width,f=g.height,t.setFillStyle(g.color),t.fillRect(l,h,c,f),e.abrupt("break",44);case 13:if("backgroundImage"!==g.name){e.next=28;break}return l=Math.round(g.x),h=Math.round(g.y),c=Math.round(g.width),f=Math.round(g.height),c<2*(v=Math.round(g.borderRadius))&&(v=c/2),f<2*v&&(v=f/2),t.setGlobalAlpha(g.alpha),v>0&&(t.beginPath(),t.moveTo(l+v,h),t.arcTo(l+c,h,l+c,h+f,v),t.arcTo(l+c,h+f,l,h+f,v),t.arcTo(l,h+f,l,h,v),t.arcTo(l,h,l+c,h,v),t.closePath(),t.setStrokeStyle("rgba(0,0,0,0)"),t.stroke(),t.clip()),e.prev=16,e.next=19,o.loadImage(g.imageSrc);case 19:m=e.sent,t.drawImage(m,l,h,c,f),e.next=26;break;case 23:throw e.prev=23,e.t1=e["catch"](16),console.error("[uQRCode]: ".concat(g.mappingName," invalid!")),new C.Error("".concat(g.mappingName," invalid!"));case 26:e.next=44;break;case 28:if("foregroundImage"!==g.name){e.next=44;break}return l=Math.round(g.x),h=Math.round(g.y),c=Math.round(g.width),f=Math.round(g.height),p=Math.round(g.padding),c<2*(v=Math.round(g.borderRadius))&&(v=c/2),f<2*v&&(v=f/2),b=l-p,k=h-p,y=c+2*p,w=f+2*p,I=Math.round(y/c*v),y<2*I&&(I=y/2),w<2*I&&(I=w/2),t.save(),t.setShadow(g.shadowOffsetX,g.shadowOffsetY,g.shadowBlur,g.shadowColor),I>0?(t.beginPath(),t.moveTo(b+I,k),t.arcTo(b+y,k,b+y,k+w,I),t.arcTo(b+y,k+w,b,k+w,I),t.arcTo(b,k+w,b,k,I),t.arcTo(b,k,b+y,k,I),t.closePath(),t.setFillStyle(g.backgroundColor),t.fill()):(t.setFillStyle(g.backgroundColor),t.fillRect(b,k,y,w)),t.restore(),t.save(),I>0?(t.beginPath(),t.moveTo(b+I,k),t.arcTo(b+y,k,b+y,k+w,I),t.arcTo(b+y,k+w,b,k+w,I),t.arcTo(b,k+w,b,k,I),t.arcTo(b,k,b+y,k,I),t.closePath(),t.setFillStyle(p>0?g.backgroundColor:"rgba(0,0,0,0)"),t.fill()):(t.setFillStyle(p>0?g.backgroundColor:"rgba(0,0,0,0)"),t.fillRect(b,k,y,w)),t.restore(),v>0&&(t.beginPath(),t.moveTo(l+v,h),t.arcTo(l+c,h,l+c,h+f,v),t.arcTo(l+c,h+f,l,h+f,v),t.arcTo(l,h+f,l,h,v),t.arcTo(l,h,l+c,h,v),t.closePath(),t.setStrokeStyle("rgba(0,0,0,0)"),t.stroke(),t.clip()),e.prev=34,e.next=37,o.loadImage(g.imageSrc);case 37:m=e.sent,t.drawImage(m,l,h,c,f),e.next=44;break;case 41:throw e.prev=41,e.t2=e["catch"](34),console.error("[uQRCode]: ".concat(g.mappingName," invalid!")),new C.Error("".concat(g.mappingName," invalid!"));case 44:a&&t.draw(!0),t.restore();case 45:s++,e.next=3;break;case 48:t.draw(!0),setTimeout(i,150),e.next=56;break;case 51:if(e.prev=51,e.t3=e["catch"](0),e.t3 instanceof C.Error){e.next=55;break}throw e.t3;case 55:d(e.t3);case 56:case"end":return e.stop()}}),e,null,[[0,51],[16,23],[34,41]])})));return function(o,t){return e.apply(this,arguments)}}();return new Promise((function(o,e){d(o,e)}))},C.prototype.draw=function(){return this.drawCanvas()},C.prototype.register=function(o){o&&o(C,this,!0)}}}]);