/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[129],{881:function(t,r,e){t.exports=function(){"use strict";function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function r(t,r){return t(r={exports:{}},r.exports),r.exports}var e=r(function(r,e){var n;n=function(){return function(){function r(e,n,o){function f(i,h){if(!n[i]){if(!e[i]){var c="function"==typeof t&&t;if(!h&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(t){return f(e[i][1][t]||t)},p,p.exports,r,e,n,o)}return n[i].exports}for(var u="function"==typeof t&&t,i=0;i>>7-t%8&1)},put:function(t,r){for(var i=0;i>>r-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},r.exports=n},{}],5:[function(t,r,e){var n=t("../utils/buffer");function o(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=n.alloc(t*t),this.reservedBit=n.alloc(t*t)}o.prototype.set=function(t,col,r,e){var n=t*this.size+col;this.data[n]=r,e&&(this.reservedBit[n]=!0)},o.prototype.get=function(t,col){return this.data[t*this.size+col]},o.prototype.xor=function(t,col,r){this.data[t*this.size+col]^=r},o.prototype.isReserved=function(t,col){return this.reservedBit[t*this.size+col]},r.exports=o},{"../utils/buffer":28}],6:[function(t,r,e){var n=t("../utils/buffer"),o=t("./mode");function f(data){this.mode=o.BYTE,this.data=n.from(data)}f.getBitsLength=function(t){return 8*t},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(t){for(var i=0,r=this.data.length;i=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{return n(t)}catch(t){return r}}},{}],9:[function(t,r,e){var n=t("./utils").getSymbolSize,o=7;e.getPositions=function(t){var r=n(t);return[[0,0],[r-o,0],[0,r-o]]}},{"./utils":21}],10:[function(t,r,e){var n=t("./utils"),o=1335,f=21522,h=n.getBCHDigit(o);e.getEncodedBits=function(t,mask){for(var data=t.bit<<3|mask,r=data<<10;n.getBCHDigit(r)-h>=0;)r^=o<=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},r.exports=f},{"./mode":14,"./utils":21}],13:[function(t,r,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n={N1:3,N2:3,N3:40,N4:10};function o(t,i,r){switch(t){case e.Patterns.PATTERN000:return(i+r)%2==0;case e.Patterns.PATTERN001:return i%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(i+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return i*r%2+i*r%3==0;case e.Patterns.PATTERN110:return(i*r%2+i*r%3)%2==0;case e.Patterns.PATTERN111:return(i*r%3+(i+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(mask){return null!=mask&&""!==mask&&!isNaN(mask)&&mask>=0&&mask<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(data){for(var t=data.size,r=0,e=0,o=0,f=null,h=null,c=0;c=5&&(r+=n.N1+(e-5)),f=l,e=1),(l=data.get(col,c))===h?o++:(o>=5&&(r+=n.N1+(o-5)),h=l,o=1)}e>=5&&(r+=n.N1+(e-5)),o>=5&&(r+=n.N1+(o-5))}return r},e.getPenaltyN2=function(data){for(var t=data.size,r=0,e=0;e=10&&(1488===e||93===e)&&r++,o=o<<1&2047|data.get(col,f),col>=10&&(1488===o||93===o)&&r++}return r*n.N3},e.getPenaltyN4=function(data){for(var t=0,r=data.data.length,i=0;i=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return o.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{return f(t)}catch(t){return r}}},{"./regex":19,"./version-check":22}],15:[function(t,r,e){var n=t("./mode");function o(data){this.mode=n.NUMERIC,this.data=data.toString()}o.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var i,r,e;for(i=0;i+3<=this.data.length;i+=3)r=this.data.substr(i,3),e=parseInt(r,10),t.put(e,10);var n=this.data.length-i;n>0&&(r=this.data.substr(i),e=parseInt(r,10),t.put(e,3*n+1))},r.exports=o},{"./mode":14}],16:[function(t,r,e){var n=t("../utils/buffer"),o=t("./galois-field");e.mul=function(t,r){for(var e=n.alloc(t.length+r.length-1),i=0;i=0;){for(var f=e[0],i=0;i=0&&f<=6&&(0===h||6===h)||h>=0&&h<=6&&(0===f||6===f)||f>=2&&f<=4&&h>=2&&h<=4?t.set(o+f,col+h,!0,!0):t.set(o+f,col+h,!1,!0))}function C(t){for(var r=t.size,e=8;e>i&1),t.set(e,col,n,!0),t.set(col,e,n,!0)}function M(t,r,e){var i,n,o=t.size,f=E.getEncodedBits(r,e);for(i=0;i<15;i++)n=1==(f>>i&1),i<6?t.set(i,8,n,!0):i<8?t.set(i+1,8,n,!0):t.set(o-15+i,8,n,!0),i<8?t.set(8,o-i-1,n,!0):i<9?t.set(8,15-i-1+1,n,!0):t.set(8,15-i-1,n,!0);t.set(o-8,8,1,!0)}function U(t,data){for(var r=t.size,e=-1,n=r-1,o=7,f=0,col=r-1;col>0;col-=2)for(6===col&&col--;;){for(var h=0;h<2;h++)if(!t.isReserved(n,col-h)){var c=!1;f>>o&1)),t.set(n,col-h,c),-1===--o&&(f++,o=7)}if((n+=e)<0||r<=n){n-=e,e=-e;break}}}function S(t,r,e){var n=new h;e.forEach(function(data){n.put(data.mode.bit,4),n.put(data.getLength(),A.getCharCountIndicator(data.mode,t)),data.write(n)});var f=8*(o.getSymbolTotalCodewords(t)-v.getTotalCodewordsCount(t,r));for(n.getLengthInBits()+4<=f&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);for(var c=(f-n.getLengthInBits())/8,i=0;i=7&&I(w,t),U(w,d),isNaN(e)&&(e=y.getBestMask(w,M.bind(null,w,r))),y.applyMask(e,w),M(w,r,e),{modules:w,version:t,errorCorrectionLevel:r,maskPattern:e,segments:n}}e.create=function(data,t){if(void 0===data||""===data)throw new Error("No input text");var r,mask,e=f.M;return void 0!==t&&(e=f.from(t.errorCorrectionLevel,f.M),r=m.from(t.version),mask=y.from(t.maskPattern),t.toSJISFunc&&o.setToSJISFunction(t.toSJISFunc)),L(data,r,e,mask)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(t,r,e){var n=t("../utils/buffer"),o=t("./polynomial"),f=t("buffer").Buffer;function h(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}h.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},h.prototype.encode=function(data){if(!this.genPoly)throw new Error("Encoder not initialized");var t=n.alloc(this.degree),r=f.concat([data,t],data.length+this.degree),e=o.mod(r,this.genPoly),h=this.degree-e.length;if(h>0){var c=n.alloc(this.degree);return e.copy(c,h),c}return e},r.exports=h},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(t,r,e){var n="[0-9]+",o="[A-Z $%*+\\-./:]+",f="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",h="(?:(?![A-Z0-9 $%*+\\-./:]|"+(f=f.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=new RegExp(f,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(h,"g"),e.NUMERIC=new RegExp(n,"g"),e.ALPHANUMERIC=new RegExp(o,"g");var c=new RegExp("^"+f+"$"),l=new RegExp("^"+n+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return c.test(t)},e.testNumeric=function(t){return l.test(t)},e.testAlphanumeric=function(t){return d.test(t)}},{}],20:[function(t,r,e){var n=t("./mode"),o=t("./numeric-data"),f=t("./alphanumeric-data"),h=t("./byte-data"),c=t("./kanji-data"),l=t("./regex"),d=t("./utils"),y=t("dijkstrajs");function v(t){return unescape(encodeURIComponent(t)).length}function w(t,r,e){for(var n,o=[];null!==(n=t.exec(e));)o.push({data:n[0],index:n.index,mode:r,length:n[0].length});return o}function m(t){var r,e,o=w(l.NUMERIC,n.NUMERIC,t),f=w(l.ALPHANUMERIC,n.ALPHANUMERIC,t);return d.isKanjiModeEnabled()?(r=w(l.BYTE,n.BYTE,t),e=w(l.KANJI,n.KANJI,t)):(r=w(l.BYTE_KANJI,n.BYTE,t),e=[]),o.concat(f,r,e).sort(function(t,r){return t.index-r.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function E(t,r){switch(r){case n.NUMERIC:return o.getBitsLength(t);case n.ALPHANUMERIC:return f.getBitsLength(t);case n.KANJI:return c.getBitsLength(t);case n.BYTE:return h.getBitsLength(t)}}function A(t){return t.reduce(function(t,r){var e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function B(t){for(var r=[],i=0;i40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return o[t]},e.getBCHDigit=function(data){for(var t=0;0!==data;)t++,data>>>=1;return t},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},{}],22:[function(t,r,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},{}],23:[function(t,r,e){var n=t("./utils"),o=t("./error-correction-code"),f=t("./error-correction-level"),h=t("./mode"),c=t("./version-check"),l=t("isarray"),d=7973,y=n.getBCHDigit(d);function v(t,r,n){for(var o=1;o<=40;o++)if(r<=e.getCapacity(o,n,t))return o}function w(t,r){return h.getCharCountIndicator(t,r)+4}function m(t,r){var e=0;return t.forEach(function(data){var t=w(data.mode,r);e+=t+data.getBitsLength()}),e}function E(t,r){for(var n=1;n<=40;n++)if(m(t,n)<=e.getCapacity(n,r,h.MIXED))return n}e.from=function(t,r){return c.isValid(t)?parseInt(t,10):r},e.getCapacity=function(t,r,e){if(!c.isValid(t))throw new Error("Invalid QR Code version");void 0===e&&(e=h.BYTE);var f=8*(n.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,r));if(e===h.MIXED)return f;var l=f-w(e,t);switch(e){case h.NUMERIC:return Math.floor(l/10*3);case h.ALPHANUMERIC:return Math.floor(l/11*2);case h.KANJI:return Math.floor(l/13);case h.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(data,t){var r,e=f.from(t,f.M);if(l(data)){if(data.length>1)return E(data,e);if(0===data.length)return 1;r=data[0]}else r=data;return v(r.mode,r.getLength(),e)},e.getEncodedBits=function(t){if(!c.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var r=t<<12;n.getBCHDigit(r)-y>=0;)r^=d<0&&col>0&&data[i-1]||(path+=n?f("M",col+r,.5+h+r):f("m",e,0),e=0,n=!1),col+1':"",path="',y='viewBox="0 0 '+l+" "+l+'"',v=''+d+path+"\n";return"function"==typeof e&&e(null,v),v}},{"./utils":27}],27:[function(t,r,e){function n(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var r=t.slice().replace("#","").split("");if(r.length<3||5===r.length||r.length>8)throw new Error("Invalid hex color: "+t);3!==r.length&&4!==r.length||(r=Array.prototype.concat.apply([],r.map(function(t){return[t,t]}))),6===r.length&&r.push("F","F");var e=parseInt(r.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var r=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,e=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:e,scale:e?4:o,margin:r,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,r){return r.width&&r.width>=t+2*r.margin?r.width/(t+2*r.margin):r.scale},e.getImageWidth=function(t,r){var n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){for(var o=r.modules.size,data=r.modules.data,f=e.getScale(o,n),h=Math.floor((o+2*n.margin)*f),c=n.margin*f,l=[n.color.light,n.color.dark],i=0;i=c&&d>=c&&i=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|t}function l(t){return t!=t}function d(t,r){var e;return h.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r)).__proto__=h.prototype:(null===(e=t)&&(e=new h(r)),e.length=r),e}function y(t,r){var e=d(t,r<0?0:0|c(r));if(!h.TYPED_ARRAY_SUPPORT)for(var i=0;i55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&f.push(239,191,189);continue}if(i+1===n){(r-=3)>-1&&f.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&f.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&f.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;f.push(e)}else if(e<2048){if((r-=2)<0)break;f.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;f.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;f.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return f}function B(t){return h.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:A(t).length)}function T(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function R(t,r,e,n){return T(A(r,t.length-e),t,e,n)}function C(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?m(t,r,e,n):"string"==typeof r?v(t,r):E(t,r)}h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),h.prototype.write=function(t,r,e){void 0===r||void 0===e&&"string"==typeof r?(e=this.length,r=0):isFinite(r)&&(r|=0,isFinite(e)?e|=0:e=void 0);var n=this.length-r;if((void 0===e||e>n)&&(e=n),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return R(this,t,r,e)},h.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(i=r;i0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");return-1===e&&(e=r),[e,e===r?0:4-e%4]}function l(t){var r=c(t),e=r[0],n=r[1];return 3*(e+n)/4-n}function d(t,r,e){return 3*(r+e)/4-e}function y(t){var r,i,e=c(t),n=e[0],h=e[1],l=new f(d(t,n,h)),y=0,v=h>0?n-4:n;for(i=0;i>16&255,l[y++]=r>>8&255,l[y++]=255&r;return 2===h&&(r=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,l[y++]=255&r),1===h&&(r=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,l[y++]=r>>8&255,l[y++]=255&r),l}function v(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function w(t,r,e){for(var n,output=[],i=r;ic?c:i+h));return 1===o?(r=t[e-1],f.push(n[r>>2]+n[r<<4&63]+"==")):2===o&&(r=(t[e-2]<<8)+t[e-1],f.push(n[r>>10]+n[r>>4&63]+n[r<<2&63]+"=")),f.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],30:[function(t,r,e){var n=t("base64-js"),o=t("ieee754"),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=d,e.SlowBuffer=C,e.INSPECT_MAX_BYTES=50;var h=2147483647;function c(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}function l(t){if(t>h)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,d.prototype),r}function d(t,r,e){if("number"==typeof t){if("string"==typeof r)throw new TypeError('The "string" argument must be of type string. Received type number');return m(t)}return y(t,r,e)}function y(t,r,e){if("string"==typeof t)return E(t,r);if(ArrayBuffer.isView(t))return A(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ut(t,ArrayBuffer)||t&&ut(t.buffer,ArrayBuffer))return B(t,r,e);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return d.from(n,r,e);var b=T(t);if(b)return b;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return d.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function v(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function w(t,r,e){return v(t),t<=0?l(t):void 0!==r?"string"==typeof e?l(t).fill(r,e):l(t).fill(r):l(t)}function m(t){return v(t),l(t<0?0:0|R(t))}function E(t,r){if("string"==typeof r&&""!==r||(r="utf8"),!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=0|P(t,r),n=l(e),o=n.write(t,r);return o!==e&&(n=n.slice(0,o)),n}function A(t){for(var r=t.length<0?0:0|R(t.length),e=l(r),i=0;i=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|t}function C(t){return+t!=t&&(t=0),d.alloc(+t)}function P(t,r){if(d.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ut(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return tt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return ot(t).length;default:if(o)return n?-1:tt(t).length;r=(""+r).toLowerCase(),o=!0}}function I(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return J(this,r,e);case"utf8":case"utf-8":return D(this,r,e);case"ascii":return z(this,r,e);case"latin1":case"binary":return H(this,r,e);case"base64":return Y(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function M(b,t,r){var i=b[t];b[t]=b[r],b[r]=i}function U(t,r,e,n,o){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),at(e=+e)&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return-1;e=t.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof r&&(r=d.from(r,n)),d.isBuffer(r))return 0===r.length?-1:S(t,r,e,n,o);if("number"==typeof r)return r&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):S(t,[r],e,n,o);throw new TypeError("val must be string, number or Buffer")}function S(t,r,e,n,o){var i,f=1,h=t.length,c=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;f=2,h/=2,c/=2,e/=2}function l(t,i){return 1===f?t[i]:t.readUInt16BE(i*f)}if(o){var d=-1;for(i=e;ih&&(e=h-c),i=e;i>=0;i--){for(var y=!0,v=0;vo&&(n=o):n=o;var f=r.length;n>f/2&&(n=f/2);for(var i=0;i239?4:l>223?3:l>191?2:1;if(i+y<=e)switch(y){case 1:l<128&&(d=l);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&l)<<6|63&o)>127&&(d=c);break;case 3:o=t[i+1],f=t[i+2],128==(192&o)&&128==(192&f)&&(c=(15&l)<<12|(63&o)<<6|63&f)>2047&&(c<55296||c>57343)&&(d=c);break;case 4:o=t[i+1],f=t[i+2],h=t[i+3],128==(192&o)&&128==(192&f)&&128==(192&h)&&(c=(15&l)<<18|(63&o)<<12|(63&f)<<6|63&h)>65535&&c<1114112&&(d=c)}null===d?(d=65533,y=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),i+=y}return F(n)}e.kMaxLength=h,d.TYPED_ARRAY_SUPPORT=c(),d.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),d.poolSize=8192,d.from=function(t,r,e){return y(t,r,e)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(t,r,e){return w(t,r,e)},d.allocUnsafe=function(t){return m(t)},d.allocUnsafeSlow=function(t){return m(t)},d.isBuffer=function(b){return null!=b&&!0===b._isBuffer&&b!==d.prototype},d.compare=function(a,b){if(ut(a,Uint8Array)&&(a=d.from(a,a.offset,a.byteLength)),ut(b,Uint8Array)&&(b=d.from(b,b.offset,b.byteLength)),!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;for(var t=a.length,r=b.length,i=0,e=Math.min(t,r);ir&&(t+=" ... "),""},f&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(t,r,e,n,o){if(ut(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return-1;if(r>=e)return 1;if(this===t)return 0;for(var f=(o>>>=0)-(n>>>=0),h=(e>>>=0)-(r>>>=0),c=Math.min(f,h),l=this.slice(n,o),y=t.slice(r,e),i=0;i>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var o=this.length-r;if((void 0===e||e>o)&&(e=o),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return N(this,t,r,e);case"utf8":case"utf-8":return L(this,t,r,e);case"ascii":return x(this,t,r,e);case"latin1":case"binary":return _(this,t,r,e);case"base64":return k(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r,e);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function F(t){var r=t.length;if(r<=j)return String.fromCharCode.apply(String,t);for(var e="",i=0;in)&&(e=n);for(var o="",i=r;ie)throw new RangeError("Trying to access beyond buffer length")}function $(t,r,e,n,o,f){if(!d.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||rt.length)throw new RangeError("Index out of range")}function Q(t,r,e,n,o,f){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function X(t,r,e,n,f){return r=+r,e>>>=0,f||Q(t,r,e,4),o.write(t,r,e,n,23,4),e+4}function Z(t,r,e,n,f){return r=+r,e>>>=0,f||Q(t,r,e,8),o.write(t,r,e,n,52,8),e+8}d.prototype.slice=function(t,r){var e=this.length;(t=~~t)<0?(t+=e)<0&&(t=0):t>e&&(t=e),(r=void 0===r?e:~~r)<0?(r+=e)<0&&(r=0):r>e&&(r=e),r>>=0,r>>>=0,e||V(t,r,this.length);for(var n=this[t],o=1,i=0;++i>>=0,r>>>=0,e||V(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},d.prototype.readUInt8=function(t,r){return t>>>=0,r||V(t,1,this.length),this[t]},d.prototype.readUInt16LE=function(t,r){return t>>>=0,r||V(t,2,this.length),this[t]|this[t+1]<<8},d.prototype.readUInt16BE=function(t,r){return t>>>=0,r||V(t,2,this.length),this[t]<<8|this[t+1]},d.prototype.readUInt32LE=function(t,r){return t>>>=0,r||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},d.prototype.readUInt32BE=function(t,r){return t>>>=0,r||V(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},d.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||V(t,r,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*r)),n},d.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||V(t,r,this.length);for(var i=r,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*r)),o},d.prototype.readInt8=function(t,r){return t>>>=0,r||V(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,r){t>>>=0,r||V(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},d.prototype.readInt16BE=function(t,r){t>>>=0,r||V(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},d.prototype.readInt32LE=function(t,r){return t>>>=0,r||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},d.prototype.readInt32BE=function(t,r){return t>>>=0,r||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},d.prototype.readFloatLE=function(t,r){return t>>>=0,r||V(t,4,this.length),o.read(this,t,!0,23,4)},d.prototype.readFloatBE=function(t,r){return t>>>=0,r||V(t,4,this.length),o.read(this,t,!1,23,4)},d.prototype.readDoubleLE=function(t,r){return t>>>=0,r||V(t,8,this.length),o.read(this,t,!0,52,8)},d.prototype.readDoubleBE=function(t,r){return t>>>=0,r||V(t,8,this.length),o.read(this,t,!1,52,8)},d.prototype.writeUIntLE=function(t,r,e,n){t=+t,r>>>=0,e>>>=0,n||$(this,t,r,e,Math.pow(2,8*e)-1,0);var o=1,i=0;for(this[r]=255&t;++i>>=0,e>>>=0,n||$(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},d.prototype.writeUInt8=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,1,255,0),this[r]=255&t,r+1},d.prototype.writeUInt16LE=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},d.prototype.writeUInt16BE=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},d.prototype.writeUInt32LE=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},d.prototype.writeUInt32BE=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},d.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var o=Math.pow(2,8*e-1);$(this,t,r,e,o-1,-o)}var i=0,f=1,sub=0;for(this[r]=255&t;++i>>=0,!n){var o=Math.pow(2,8*e-1);$(this,t,r,e,o-1,-o)}var i=e-1,f=1,sub=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===sub&&0!==this[r+i+1]&&(sub=1),this[r+i]=(t/f|0)-sub&255;return r+e},d.prototype.writeInt8=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},d.prototype.writeInt16LE=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},d.prototype.writeInt16BE=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},d.prototype.writeInt32LE=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},d.prototype.writeInt32BE=function(t,r,e){return t=+t,r>>>=0,e||$(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},d.prototype.writeFloatLE=function(t,r,e){return X(this,t,r,!0,e)},d.prototype.writeFloatBE=function(t,r,e){return X(this,t,r,!1,e)},d.prototype.writeDoubleLE=function(t,r,e){return Z(this,t,r,!0,e)},d.prototype.writeDoubleBE=function(t,r,e){return Z(this,t,r,!1,e)},d.prototype.copy=function(t,r,e,n){if(!d.isBuffer(t))throw new TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},d.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!d.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var code=t.charCodeAt(0);("utf8"===n&&code<128||"latin1"===n)&&(t=code)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(i=r;i55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&f.push(239,191,189);continue}if(i+1===n){(r-=3)>-1&&f.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&f.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&f.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;f.push(e)}else if(e<2048){if((r-=2)<0)break;f.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;f.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;f.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return f}function et(t){for(var r=[],i=0;i>8,o=e%256,f.push(o),f.push(n);return f}function ot(t){return n.toByteArray(G(t))}function it(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function ut(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}function at(t){return t!=t}var ft=function(){for(var t="0123456789abcdef",table=new Array(256),i=0;i<16;++i)for(var r=16*i,e=0;e<16;++e)table[r+e]=t[i]+t[e];return table}()},{"base64-js":29,ieee754:32}],31:[function(t,r,e){var n={single_source_shortest_paths:function(t,s,r){var e={},o={};o[s]=0;var f,u,h,c,l,d,y,v=n.PriorityQueue.make();for(v.push(s,0);!v.empty();)for(h in u=(f=v.pop()).value,c=f.cost,l=t[u]||{})l.hasOwnProperty(h)&&(d=c+l[h],y=o[h],(void 0===o[h]||y>d)&&(o[h]=d,v.push(h,d),e[h]=u));if(void 0!==r&&void 0===o[r]){var w=["Could not find a path from ",s," to ",r,"."].join("");throw new Error(w)}return e},extract_shortest_path_from_predecessor_list:function(t,r){for(var e=[],u=r;u;)e.push(u),t[u],u=t[u];return e.reverse(),e},find_path:function(t,s,r){var e=n.single_source_shortest_paths(t,s,r);return n.extract_shortest_path_from_predecessor_list(e,r)},PriorityQueue:{make:function(t){var r,e=n.PriorityQueue,o={};for(r in t=t||{},e)e.hasOwnProperty(r)&&(o[r]=e[r]);return o.queue=[],o.sorter=t.sorter||e.default_sorter,o},default_sorter:function(a,b){return a.cost-b.cost},push:function(t,r){var e={value:t,cost:r};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==r&&(r.exports=n)},{}],32:[function(t,r,e){e.read=function(t,r,e,n,o){var f,h,c=8*o-n-1,l=(1<>1,y=-7,i=e?o-1:0,v=e?-1:1,s=t[r+i];for(i+=v,f=s&(1<<-y)-1,s>>=-y,y+=c;y>0;f=256*f+t[r+i],i+=v,y-=8);for(h=f&(1<<-y)-1,f>>=-y,y+=n;y>0;h=256*h+t[r+i],i+=v,y-=8);if(0===f)f=1-d;else{if(f===l)return h?NaN:1/0*(s?-1:1);h+=Math.pow(2,n),f-=d}return(s?-1:1)*h*Math.pow(2,f-n)},e.write=function(t,r,e,n,o,f){var h,c,l,d=8*f-o-1,y=(1<>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=n?0:f-1,w=n?1:-1,s=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,h=y):(h=Math.floor(Math.log(r)/Math.LN2),r*(l=Math.pow(2,-h))<1&&(h--,l*=2),(r+=h+v>=1?rt/l:rt*Math.pow(2,1-v))*l>=2&&(h++,l/=2),h+v>=y?(c=0,h=y):h+v>=1?(c=(r*l-1)*Math.pow(2,o),h+=v):(c=r*Math.pow(2,v-1)*Math.pow(2,o),h=0));o>=8;t[e+i]=255&c,i+=w,c/=256,o-=8);for(h=h<0;t[e+i]=255&h,i+=w,h/=256,d-=8);t[e+i-w]|=128*s}},{}],33:[function(t,r,e){var n={}.toString;r.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}]},{},[24])(24)},r.exports=n()});return{name:"qrcode",props:{value:null,options:Object,tag:{type:String,default:"canvas"}},render:function(t){return t(this.tag,this.$slots.default)},watch:{$props:{deep:!0,immediate:!0,handler:function(){this.$el&&this.generate()}}},methods:{generate:function(){var t=this,r=this.options,n=this.tag,o=String(this.value);"canvas"===n?e.toCanvas(this.$el,o,r,function(t){if(t)throw t}):"img"===n?e.toDataURL(o,r,function(r,e){if(r)throw r;t.$el.src=e}):e.toString(o,r,function(r,e){if(r)throw r;t.$el.innerHTML=e})}},mounted:function(){this.generate()}}}()}}]);