diff --git a/.gitignore b/.gitignore index 7efd4b3..748b458 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ # Project exclude paths -/dist/ /node_modules/ \ No newline at end of file diff --git a/dist/icons/qr32.png b/dist/icons/qr32.png new file mode 100644 index 0000000..1ce3a07 Binary files /dev/null and b/dist/icons/qr32.png differ diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..dc383ee --- /dev/null +++ b/dist/index.html @@ -0,0 +1,9 @@ + + + + Getting Started + + + + + \ No newline at end of file diff --git a/dist/insert_url.html b/dist/insert_url.html new file mode 100644 index 0000000..9e41689 --- /dev/null +++ b/dist/insert_url.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dist/main.js b/dist/main.js new file mode 100644 index 0000000..63d42bd --- /dev/null +++ b/dist/main.js @@ -0,0 +1,16 @@ +!function(t){var n={};function r(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)r.d(e,i,function(n){return t[n]}.bind(null,i));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=12)}([function(t,n){var r,e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];n.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},n.getSymbolTotalCodewords=function(t){return e[t]},n.getBCHDigit=function(t){for(var n=0;0!==t;)n++,t>>>=1;return n},n.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},n.isKanjiModeEnabled=function(){return void 0!==r},n.toSJIS=function(t){return r(t)}},function(t,n,r){var e=r(8),i=r(9);n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},n.getBestModeForData=function(t){return i.testNumeric(t)?n.NUMERIC:i.testAlphanumeric(t)?n.ALPHANUMERIC:i.testKanji(t)?n.KANJI:n.BYTE},n.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},n.isValid=function(t){return t&&t.bit&&t.ccBits},n.from=function(t,r){if(n.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return r}}},function(t,n,r){"use strict";var e=r(3);o.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}();var i=o.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function o(t,n,r){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof t?f(this,t):function(t,n,r,e){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer)return function(t,n,r,e){if(r<0||n.byteLength=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function a(t,n){var r;return o.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(n)).__proto__=o.prototype:(null===(r=t)&&(r=new o(n)),r.length=n),r}function f(t,n){var r=a(t,n<0?0:0|u(n));if(!o.TYPED_ARRAY_SUPPORT)for(var e=0;e55295&&r<57344){if(!i){if(r>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(u+1===e){(n-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(n-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((n-=1)<0)break;o.push(r)}else if(r<2048){if((n-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((n-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function l(t){return o.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:s(t).length)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(t,n,r){void 0===n||void 0===r&&"string"==typeof n?(r=this.length,n=0):isFinite(n)&&(n|=0,isFinite(r)?r|=0:r=void 0);var e=this.length-n;if((void 0===r||r>e)&&(r=e),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,n,r,e){return function(t,n,r,e){for(var i=0;i=n.length||i>=t.length);++i)n[i+r]=t[i];return i}(s(n,t.length-r),t,r,e)}(this,t,n,r)},o.prototype.slice=function(t,n){var r,e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):t>e&&(t=e),(n=void 0===n?e:~~n)<0?(n+=e)<0&&(n=0):n>e&&(n=e),n=t.length&&(n=t.length),n||(n=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-n=0;--i)t[i+n]=this[i+r];else if(u<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=n;i=0&&t.bit<4},n.from=function(t,r){if(n.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return r}}},function(t,n,r){var e=r(14),i=r(15),o=r(36),u=r(37);function a(t,n,r,o,u){var a=[].slice.call(arguments,1),f=a.length,c="function"==typeof a[f-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(f<1)throw new Error("Too few arguments provided");return 1===f?(r=n,n=o=void 0):2!==f||n.getContext||(o=r,r=n,n=void 0),new Promise((function(e,u){try{var a=i.create(r,o);e(t(a,n,o))}catch(t){u(t)}}))}if(f<2)throw new Error("Too few arguments provided");2===f?(u=r,r=n,n=o=void 0):3===f&&(n.getContext&&void 0===u?(u=o,o=void 0):(u=o,o=r,r=n,n=void 0));try{var s=i.create(r,o);u(null,t(s,n,o))}catch(t){u(t)}}n.create=i.create,n.toCanvas=a.bind(null,o.render),n.toDataURL=a.bind(null,o.renderToDataURL),n.toString=a.bind(null,(function(t,n,r){return u.render(t,r)}))},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(4),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];n.getBlocksCount=function(t,n){switch(n){case e.L:return i[4*(t-1)+0];case e.M:return i[4*(t-1)+1];case e.Q:return i[4*(t-1)+2];case e.H:return i[4*(t-1)+3];default:return}},n.getTotalCodewordsCount=function(t,n){switch(n){case e.L:return o[4*(t-1)+0];case e.M:return o[4*(t-1)+1];case e.Q:return o[4*(t-1)+2];case e.H:return o[4*(t-1)+3];default:return}}},function(t,n){n.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},function(t,n){var r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",e="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";n.KANJI=new RegExp(r,"g"),n.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=new RegExp(e,"g"),n.NUMERIC=new RegExp("[0-9]+","g"),n.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+r+"$"),o=new RegExp("^[0-9]+$"),u=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(t){return i.test(t)},n.testNumeric=function(t){return o.test(t)},n.testAlphanumeric=function(t){return u.test(t)}},function(t,n){function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var n=t.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw new Error("Invalid hex color: "+t);3!==n.length&&4!==n.length||(n=Array.prototype.concat.apply([],n.map((function(t){return[t,t]})))),6===n.length&&n.push("F","F");var r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+n.slice(0,6).join("")}}n.getOptions=function(t){t||(t={}),t.color||(t.color={});var n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,e=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:e,scale:e?4:i,margin:n,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,n){return n.width&&n.width>=t+2*n.margin?n.width/(t+2*n.margin):n.scale},n.getImageWidth=function(t,r){var e=n.getScale(t,r);return Math.floor((t+2*r.margin)*e)},n.qrToImageData=function(t,r,e){for(var i=r.modules.size,o=r.modules.data,u=n.getScale(i,e),a=Math.floor((i+2*e.margin)*u),f=e.margin*u,c=[e.color.light,e.color.dark],s=0;s=f&&l>=f&&s + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var o="Expected a function",u="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",c="[object Array]",s="[object Boolean]",l="[object Date]",h="[object Error]",v="[object Function]",p="[object GeneratorFunction]",d="[object Map]",g="[object Number]",y="[object Object]",_="[object RegExp]",w="[object Set]",m="[object String]",b="[object Symbol]",A="[object WeakMap]",E="[object ArrayBuffer]",R="[object DataView]",x="[object Float32Array]",B="[object Float64Array]",P="[object Int8Array]",T="[object Int16Array]",I="[object Int32Array]",S="[object Uint8Array]",C="[object Uint16Array]",U="[object Uint32Array]",M=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,O=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,k=RegExp(O.source),Y=RegExp(N.source),D=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,F=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,K=RegExp(H.source),J=/^\s+|\s+$/g,V=/^\s+/,Z=/\s+$/,Q=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,X=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",vt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",dt="["+vt+"]",gt="["+ht+"]",yt="\\d+",_t="[\\u2700-\\u27bf]",wt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+vt+yt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bt="\\ud83c[\\udffb-\\udfff]",At="[^\\ud800-\\udfff]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Rt="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Bt="(?:"+wt+"|"+mt+")",Pt="(?:"+xt+"|"+mt+")",Tt="(?:"+gt+"|"+bt+")"+"?",It="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[At,Et,Rt].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),St="(?:"+[_t,Et,Rt].join("|")+")"+It,Ct="(?:"+[At+gt+"?",gt,Et,Rt,pt].join("|")+")",Ut=RegExp("['’]","g"),Mt=RegExp(gt,"g"),Lt=RegExp(bt+"(?="+bt+")|"+Ct+It,"g"),jt=RegExp([xt+"?"+wt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[dt,xt,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[dt,xt+Bt,"$"].join("|")+")",xt+"?"+Bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yt,St].join("|"),"g"),Ot=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yt=-1,Dt={};Dt[x]=Dt[B]=Dt[P]=Dt[T]=Dt[I]=Dt[S]=Dt["[object Uint8ClampedArray]"]=Dt[C]=Dt[U]=!0,Dt[f]=Dt[c]=Dt[E]=Dt[s]=Dt[R]=Dt[l]=Dt[h]=Dt[v]=Dt[d]=Dt[g]=Dt[y]=Dt[_]=Dt[w]=Dt[m]=Dt[A]=!1;var zt={};zt[f]=zt[c]=zt[E]=zt[R]=zt[s]=zt[l]=zt[x]=zt[B]=zt[P]=zt[T]=zt[I]=zt[d]=zt[g]=zt[y]=zt[_]=zt[w]=zt[m]=zt[b]=zt[S]=zt["[object Uint8ClampedArray]"]=zt[C]=zt[U]=!0,zt[h]=zt[v]=zt[A]=!1;var Ft={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,$t=parseInt,qt="object"==typeof t&&t&&t.Object===Object&&t,Ht="object"==typeof self&&self&&self.Object===Object&&self,Kt=qt||Ht||Function("return this")(),Jt=n&&!n.nodeType&&n,Vt=Jt&&"object"==typeof e&&e&&!e.nodeType&&e,Zt=Vt&&Vt.exports===Jt,Qt=Zt&&qt.process,Gt=function(){try{var t=Vt&&Vt.require&&Vt.require("util").types;return t||Qt&&Qt.binding&&Qt.binding("util")}catch(t){}}(),Xt=Gt&&Gt.isArrayBuffer,tn=Gt&&Gt.isDate,nn=Gt&&Gt.isMap,rn=Gt&&Gt.isRegExp,en=Gt&&Gt.isSet,on=Gt&&Gt.isTypedArray;function un(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function an(t,n,r,e){for(var i=-1,o=null==t?0:t.length;++i-1}function vn(t,n,r){for(var e=-1,i=null==t?0:t.length;++e-1;);return r}function jn(t,n){for(var r=t.length;r--&&An(n,t[r],0)>-1;);return r}function On(t,n){for(var r=t.length,e=0;r--;)t[r]===n&&++e;return e}var Nn=Pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=Pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yn(t){return"\\"+Ft[t]}function Dn(t){return Ot.test(t)}function zn(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r}function Fn(t,n){return function(r){return t(n(r))}}function Wn(t,n){for(var r=-1,e=t.length,i=0,o=[];++r",""":'"',"'":"'"});var Vn=function t(n){var r,e=(n=null==n?Kt:Vn.defaults(Kt.Object(),n,Vn.pick(Kt,kt))).Array,i=n.Date,ht=n.Error,vt=n.Function,pt=n.Math,dt=n.Object,gt=n.RegExp,yt=n.String,_t=n.TypeError,wt=e.prototype,mt=vt.prototype,bt=dt.prototype,At=n["__core-js_shared__"],Et=mt.toString,Rt=bt.hasOwnProperty,xt=0,Bt=(r=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Pt=bt.toString,Tt=Et.call(dt),It=Kt._,St=gt("^"+Et.call(Rt).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ct=Zt?n.Buffer:void 0,Lt=n.Symbol,Ot=n.Uint8Array,Ft=Ct?Ct.allocUnsafe:void 0,qt=Fn(dt.getPrototypeOf,dt),Ht=dt.create,Jt=bt.propertyIsEnumerable,Vt=wt.splice,Qt=Lt?Lt.isConcatSpreadable:void 0,Gt=Lt?Lt.iterator:void 0,wn=Lt?Lt.toStringTag:void 0,Pn=function(){try{var t=Xi(dt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Zn=n.clearTimeout!==Kt.clearTimeout&&n.clearTimeout,Qn=i&&i.now!==Kt.Date.now&&i.now,Gn=n.setTimeout!==Kt.setTimeout&&n.setTimeout,Xn=pt.ceil,tr=pt.floor,nr=dt.getOwnPropertySymbols,rr=Ct?Ct.isBuffer:void 0,er=n.isFinite,ir=wt.join,or=Fn(dt.keys,dt),ur=pt.max,ar=pt.min,fr=i.now,cr=n.parseInt,sr=pt.random,lr=wt.reverse,hr=Xi(n,"DataView"),vr=Xi(n,"Map"),pr=Xi(n,"Promise"),dr=Xi(n,"Set"),gr=Xi(n,"WeakMap"),yr=Xi(dt,"create"),_r=gr&&new gr,wr={},mr=Po(hr),br=Po(vr),Ar=Po(pr),Er=Po(dr),Rr=Po(gr),xr=Lt?Lt.prototype:void 0,Br=xr?xr.valueOf:void 0,Pr=xr?xr.toString:void 0;function Tr(t){if($u(t)&&!Mu(t)&&!(t instanceof Ur)){if(t instanceof Cr)return t;if(Rt.call(t,"__wrapped__"))return To(t)}return new Cr(t)}var Ir=function(){function t(){}return function(n){if(!Wu(n))return{};if(Ht)return Ht(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();function Sr(){}function Cr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=void 0}function Ur(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Mr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Zr(t,n,r,e,i,o){var u,a=1&n,c=2&n,h=4&n;if(r&&(u=i?r(t,e,i,o):r(t)),void 0!==u)return u;if(!Wu(t))return t;var A=Mu(t);if(A){if(u=function(t){var n=t.length,r=new t.constructor(n);n&&"string"==typeof t[0]&&Rt.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!a)return yi(t,u)}else{var M=ro(t),L=M==v||M==p;if(Nu(t))return li(t,a);if(M==y||M==f||L&&!i){if(u=c||L?{}:io(t),!a)return c?function(t,n){return _i(t,no(t),n)}(t,function(t,n){return t&&_i(n,ba(n),t)}(u,t)):function(t,n){return _i(t,to(t),n)}(t,Hr(u,t))}else{if(!zt[M])return i?t:{};u=function(t,n,r){var e=t.constructor;switch(n){case E:return hi(t);case s:case l:return new e(+t);case R:return function(t,n){var r=n?hi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case x:case B:case P:case T:case I:case S:case"[object Uint8ClampedArray]":case C:case U:return vi(t,r);case d:return new e;case g:case m:return new e(t);case _:return function(t){var n=new t.constructor(t.source,et.exec(t));return n.lastIndex=t.lastIndex,n}(t);case w:return new e;case b:return i=t,Br?dt(Br.call(i)):{}}var i}(t,M,a)}}o||(o=new Nr);var j=o.get(t);if(j)return j;o.set(t,u),Vu(t)?t.forEach((function(e){u.add(Zr(e,n,r,e,t,o))})):qu(t)&&t.forEach((function(e,i){u.set(i,Zr(e,n,r,i,t,o))}));var O=A?void 0:(h?c?Hi:qi:c?ba:ma)(t);return fn(O||t,(function(e,i){O&&(e=t[i=e]),Wr(u,i,Zr(e,n,r,i,t,o))})),u}function Qr(t,n,r){var e=r.length;if(null==t)return!e;for(t=dt(t);e--;){var i=r[e],o=n[i],u=t[i];if(void 0===u&&!(i in t)||!o(u))return!1}return!0}function Gr(t,n,r){if("function"!=typeof t)throw new _t(o);return mo((function(){t.apply(void 0,r)}),n)}function Xr(t,n,r,e){var i=-1,o=hn,u=!0,a=t.length,f=[],c=n.length;if(!a)return f;r&&(n=pn(n,Cn(r))),e?(o=vn,u=!1):n.length>=200&&(o=Mn,u=!1,n=new Or(n));t:for(;++i-1},Lr.prototype.set=function(t,n){var r=this.__data__,e=$r(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},jr.prototype.clear=function(){this.size=0,this.__data__={hash:new Mr,map:new(vr||Lr),string:new Mr}},jr.prototype.delete=function(t){var n=Qi(this,t).delete(t);return this.size-=n?1:0,n},jr.prototype.get=function(t){return Qi(this,t).get(t)},jr.prototype.has=function(t){return Qi(this,t).has(t)},jr.prototype.set=function(t,n){var r=Qi(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},Or.prototype.add=Or.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Or.prototype.has=function(t){return this.__data__.has(t)},Nr.prototype.clear=function(){this.__data__=new Lr,this.size=0},Nr.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Nr.prototype.get=function(t){return this.__data__.get(t)},Nr.prototype.has=function(t){return this.__data__.has(t)},Nr.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Lr){var e=r.__data__;if(!vr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new jr(e)}return r.set(t,n),this.size=r.size,this};var te=bi(fe),ne=bi(ce,!0);function re(t,n){var r=!0;return te(t,(function(t,e,i){return r=!!n(t,e,i)})),r}function ee(t,n,r){for(var e=-1,i=t.length;++e0&&r(a)?n>1?oe(a,n-1,r,e,i):dn(i,a):e||(i[i.length]=a)}return i}var ue=Ai(),ae=Ai(!0);function fe(t,n){return t&&ue(t,n,ma)}function ce(t,n){return t&&ae(t,n,ma)}function se(t,n){return ln(n,(function(n){return Du(t[n])}))}function le(t,n){for(var r=0,e=(n=ai(n,t)).length;null!=t&&rn}function de(t,n){return null!=t&&Rt.call(t,n)}function ge(t,n){return null!=t&&n in dt(t)}function ye(t,n,r){for(var i=r?vn:hn,o=t[0].length,u=t.length,a=u,f=e(u),c=1/0,s=[];a--;){var l=t[a];a&&n&&(l=pn(l,Cn(n))),c=ar(l.length,c),f[a]=!r&&(n||o>=120&&l.length>=120)?new Or(a&&l):void 0}l=t[0];var h=-1,v=f[0];t:for(;++h=a)return f;var c=r[e];return f*("desc"==c?-1:1)}}return t.index-n.index}(t,n,r)}))}function Me(t,n,r){for(var e=-1,i=n.length,o={};++e-1;)a!==t&&Vt.call(a,f,1),Vt.call(t,f,1);return t}function je(t,n){for(var r=t?n.length:0,e=r-1;r--;){var i=n[r];if(r==e||i!==o){var o=i;uo(i)?Vt.call(t,i,1):Xe(t,i)}}return t}function Oe(t,n){return t+tr(sr()*(n-t+1))}function Ne(t,n){var r="";if(!t||n<1||n>9007199254740991)return r;do{n%2&&(r+=t),(n=tr(n/2))&&(t+=t)}while(n);return r}function ke(t,n){return bo(po(t,n,Ha),t+"")}function Ye(t){return Yr(Ia(t))}function De(t,n){var r=Ia(t);return Ro(r,Vr(n,0,r.length))}function ze(t,n,r,e){if(!Wu(t))return t;for(var i=-1,o=(n=ai(n,t)).length,u=o-1,a=t;null!=a&&++io?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var u=e(o);++i>>1,u=t[o];null!==u&&!Qu(u)&&(r?u<=n:u=200){var c=n?null:Ni(t);if(c)return $n(c);u=!1,i=Mn,f=new Or}else f=n?[]:a;t:for(;++e=e?t:qe(t,n,r)}var si=Zn||function(t){return Kt.clearTimeout(t)};function li(t,n){if(n)return t.slice();var r=t.length,e=Ft?Ft(r):new t.constructor(r);return t.copy(e),e}function hi(t){var n=new t.constructor(t.byteLength);return new Ot(n).set(new Ot(t)),n}function vi(t,n){var r=n?hi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function pi(t,n){if(t!==n){var r=void 0!==t,e=null===t,i=t==t,o=Qu(t),u=void 0!==n,a=null===n,f=n==n,c=Qu(n);if(!a&&!c&&!o&&t>n||o&&u&&f&&!a&&!c||e&&u&&f||!r&&f||!i)return 1;if(!e&&!o&&!c&&t1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&ao(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=dt(n);++e-1?i[o?n[u]:u]:void 0}}function Pi(t){return $i((function(n){var r=n.length,e=r,i=Cr.prototype.thru;for(t&&n.reverse();e--;){var u=n[e];if("function"!=typeof u)throw new _t(o);if(i&&!a&&"wrapper"==Ji(u))var a=new Cr([],!0)}for(e=a?e:r;++e1&&w.reverse(),l&&c<_&&(w.length=c),this&&this!==Kt&&this instanceof y&&(x=g||xi(x)),x.apply(R,w)}}function Ii(t,n){return function(r,e){return function(t,n,r,e){return fe(t,(function(t,i,o){n(e,r(t),i,o)})),e}(r,t,n(e),{})}}function Si(t,n){return function(r,e){var i;if(void 0===r&&void 0===e)return n;if(void 0!==r&&(i=r),void 0!==e){if(void 0===i)return e;"string"==typeof r||"string"==typeof e?(r=Qe(r),e=Qe(e)):(r=Ze(r),e=Ze(e)),i=t(r,e)}return i}}function Ci(t){return $i((function(n){return n=pn(n,Cn(Zi())),ke((function(r){var e=this;return t(n,(function(t){return un(t,e,r)}))}))}))}function Ui(t,n){var r=(n=void 0===n?" ":Qe(n)).length;if(r<2)return r?Ne(n,t):n;var e=Ne(n,Xn(t/Hn(n)));return Dn(n)?ci(Kn(e),0,t).join(""):e.slice(0,t)}function Mi(t){return function(n,r,i){return i&&"number"!=typeof i&&ao(n,r,i)&&(r=i=void 0),n=ra(n),void 0===r?(r=n,n=0):r=ra(r),function(t,n,r,i){for(var o=-1,u=ur(Xn((n-t)/(r||1)),0),a=e(u);u--;)a[i?u:++o]=t,t+=r;return a}(n,r,i=void 0===i?na))return!1;var c=o.get(t),s=o.get(n);if(c&&s)return c==n&&s==t;var l=-1,h=!0,v=2&r?new Or:void 0;for(o.set(t,n),o.set(n,t);++l-1&&t%1==0&&t1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace(Q,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return fn(a,(function(r){var e="_."+r[0];n&r[1]&&!hn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(G);return n?n[1].split(X):[]}(e),r)))}function Eo(t){var n=0,r=0;return function(){var e=fr(),i=16-(e-r);if(r=e,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function Ro(t,n){var r=-1,e=t.length,i=e-1;for(n=void 0===n?e:n;++r1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Jo(t,r)}));function nu(t){var n=Tr(t);return n.__chain__=!0,n}function ru(t,n){return n(t)}var eu=$i((function(t){var n=t.length,r=n?t[0]:0,e=this.__wrapped__,i=function(n){return Jr(n,t)};return!(n>1||this.__actions__.length)&&e instanceof Ur&&uo(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ru,args:[i],thisArg:void 0}),new Cr(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var iu=wi((function(t,n,r){Rt.call(t,r)?++t[r]:Kr(t,r,1)}));var ou=Bi(Uo),uu=Bi(Mo);function au(t,n){return(Mu(t)?fn:te)(t,Zi(n,3))}function fu(t,n){return(Mu(t)?cn:ne)(t,Zi(n,3))}var cu=wi((function(t,n,r){Rt.call(t,r)?t[r].push(n):Kr(t,r,[n])}));var su=ke((function(t,n,r){var i=-1,o="function"==typeof n,u=ju(t)?e(t.length):[];return te(t,(function(t){u[++i]=o?un(n,t,r):_e(t,n,r)})),u})),lu=wi((function(t,n,r){Kr(t,r,n)}));function hu(t,n){return(Mu(t)?pn:Pe)(t,Zi(n,3))}var vu=wi((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]}));var pu=ke((function(t,n){if(null==t)return[];var r=n.length;return r>1&&ao(t,n[0],n[1])?n=[]:r>2&&ao(n[0],n[1],n[2])&&(n=[n[0]]),Ue(t,oe(n,1),[])})),du=Qn||function(){return Kt.Date.now()};function gu(t,n,r){return n=r?void 0:n,Yi(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n)}function yu(t,n){var r;if("function"!=typeof n)throw new _t(o);return t=ea(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var _u=ke((function(t,n,r){var e=1;if(r.length){var i=Wn(r,Vi(_u));e|=32}return Yi(t,e,n,r,i)})),wu=ke((function(t,n,r){var e=3;if(r.length){var i=Wn(r,Vi(wu));e|=32}return Yi(n,e,t,r,i)}));function mu(t,n,r){var e,i,u,a,f,c,s=0,l=!1,h=!1,v=!0;if("function"!=typeof t)throw new _t(o);function p(n){var r=e,o=i;return e=i=void 0,s=n,a=t.apply(o,r)}function d(t){return s=t,f=mo(y,n),l?p(t):a}function g(t){var r=t-c;return void 0===c||r>=n||r<0||h&&t-s>=u}function y(){var t=du();if(g(t))return _(t);f=mo(y,function(t){var r=n-(t-c);return h?ar(r,u-(t-s)):r}(t))}function _(t){return f=void 0,v&&e?p(t):(e=i=void 0,a)}function w(){var t=du(),r=g(t);if(e=arguments,i=this,c=t,r){if(void 0===f)return d(c);if(h)return si(f),f=mo(y,n),p(c)}return void 0===f&&(f=mo(y,n)),a}return n=oa(n)||0,Wu(r)&&(l=!!r.leading,u=(h="maxWait"in r)?ur(oa(r.maxWait)||0,n):u,v="trailing"in r?!!r.trailing:v),w.cancel=function(){void 0!==f&&si(f),s=0,e=c=i=f=void 0},w.flush=function(){return void 0===f?a:_(du())},w}var bu=ke((function(t,n){return Gr(t,1,n)})),Au=ke((function(t,n,r){return Gr(t,oa(n)||0,r)}));function Eu(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new _t(o);var r=function(){var e=arguments,i=n?n.apply(this,e):e[0],o=r.cache;if(o.has(i))return o.get(i);var u=t.apply(this,e);return r.cache=o.set(i,u)||o,u};return r.cache=new(Eu.Cache||jr),r}function Ru(t){if("function"!=typeof t)throw new _t(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Eu.Cache=jr;var xu=fi((function(t,n){var r=(n=1==n.length&&Mu(n[0])?pn(n[0],Cn(Zi())):pn(oe(n,1),Cn(Zi()))).length;return ke((function(e){for(var i=-1,o=ar(e.length,r);++i=n})),Uu=we(function(){return arguments}())?we:function(t){return $u(t)&&Rt.call(t,"callee")&&!Jt.call(t,"callee")},Mu=e.isArray,Lu=Xt?Cn(Xt):function(t){return $u(t)&&ve(t)==E};function ju(t){return null!=t&&Fu(t.length)&&!Du(t)}function Ou(t){return $u(t)&&ju(t)}var Nu=rr||uf,ku=tn?Cn(tn):function(t){return $u(t)&&ve(t)==l};function Yu(t){if(!$u(t))return!1;var n=ve(t);return n==h||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Ku(t)}function Du(t){if(!Wu(t))return!1;var n=ve(t);return n==v||n==p||"[object AsyncFunction]"==n||"[object Proxy]"==n}function zu(t){return"number"==typeof t&&t==ea(t)}function Fu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wu(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function $u(t){return null!=t&&"object"==typeof t}var qu=nn?Cn(nn):function(t){return $u(t)&&ro(t)==d};function Hu(t){return"number"==typeof t||$u(t)&&ve(t)==g}function Ku(t){if(!$u(t)||ve(t)!=y)return!1;var n=qt(t);if(null===n)return!0;var r=Rt.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&Et.call(r)==Tt}var Ju=rn?Cn(rn):function(t){return $u(t)&&ve(t)==_};var Vu=en?Cn(en):function(t){return $u(t)&&ro(t)==w};function Zu(t){return"string"==typeof t||!Mu(t)&&$u(t)&&ve(t)==m}function Qu(t){return"symbol"==typeof t||$u(t)&&ve(t)==b}var Gu=on?Cn(on):function(t){return $u(t)&&Fu(t.length)&&!!Dt[ve(t)]};var Xu=Li(Be),ta=Li((function(t,n){return t<=n}));function na(t){if(!t)return[];if(ju(t))return Zu(t)?Kn(t):yi(t);if(Gt&&t[Gt])return function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}(t[Gt]());var n=ro(t);return(n==d?zn:n==w?$n:Ia)(t)}function ra(t){return t?(t=oa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ea(t){var n=ra(t),r=n%1;return n==n?r?n-r:n:0}function ia(t){return t?Vr(ea(t),0,4294967295):0}function oa(t){if("number"==typeof t)return t;if(Qu(t))return NaN;if(Wu(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Wu(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(J,"");var r=ot.test(t);return r||at.test(t)?$t(t.slice(2),r?2:8):it.test(t)?NaN:+t}function ua(t){return _i(t,ba(t))}function aa(t){return null==t?"":Qe(t)}var fa=mi((function(t,n){if(lo(n)||ju(n))_i(n,ma(n),t);else for(var r in n)Rt.call(n,r)&&Wr(t,r,n[r])})),ca=mi((function(t,n){_i(n,ba(n),t)})),sa=mi((function(t,n,r,e){_i(n,ba(n),t,e)})),la=mi((function(t,n,r,e){_i(n,ma(n),t,e)})),ha=$i(Jr);var va=ke((function(t,n){t=dt(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&ao(n[0],n[1],i)&&(e=1);++r1),n})),_i(t,Hi(t),r),e&&(r=Zr(r,7,Fi));for(var i=n.length;i--;)Xe(r,n[i]);return r}));var xa=$i((function(t,n){return null==t?{}:function(t,n){return Me(t,n,(function(n,r){return ga(t,r)}))}(t,n)}));function Ba(t,n){if(null==t)return{};var r=pn(Hi(t),(function(t){return[t]}));return n=Zi(n),Me(t,r,(function(t,r){return n(t,r[0])}))}var Pa=ki(ma),Ta=ki(ba);function Ia(t){return null==t?[]:Un(t,ma(t))}var Sa=Ri((function(t,n,r){return n=n.toLowerCase(),t+(r?Ca(n):n)}));function Ca(t){return Ya(aa(t).toLowerCase())}function Ua(t){return(t=aa(t))&&t.replace(ct,Nn).replace(Mt,"")}var Ma=Ri((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()})),La=Ri((function(t,n,r){return t+(r?" ":"")+n.toLowerCase()})),ja=Ei("toLowerCase");var Oa=Ri((function(t,n,r){return t+(r?"_":"")+n.toLowerCase()}));var Na=Ri((function(t,n,r){return t+(r?" ":"")+Ya(n)}));var ka=Ri((function(t,n,r){return t+(r?" ":"")+n.toUpperCase()})),Ya=Ei("toUpperCase");function Da(t,n,r){return t=aa(t),void 0===(n=r?void 0:n)?function(t){return Nt.test(t)}(t)?function(t){return t.match(jt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(n)||[]}var za=ke((function(t,n){try{return un(t,void 0,n)}catch(t){return Yu(t)?t:new ht(t)}})),Fa=$i((function(t,n){return fn(n,(function(n){n=Bo(n),Kr(t,n,_u(t[n],t))})),t}));function Wa(t){return function(){return t}}var $a=Pi(),qa=Pi(!0);function Ha(t){return t}function Ka(t){return Ee("function"==typeof t?t:Zr(t,1))}var Ja=ke((function(t,n){return function(r){return _e(r,t,n)}})),Va=ke((function(t,n){return function(r){return _e(t,r,n)}}));function Za(t,n,r){var e=ma(n),i=se(n,e);null!=r||Wu(n)&&(i.length||!e.length)||(r=n,n=t,t=this,i=se(n,ma(n)));var o=!(Wu(r)&&"chain"in r&&!r.chain),u=Du(t);return fn(i,(function(r){var e=n[r];t[r]=e,u&&(t.prototype[r]=function(){var n=this.__chain__;if(o||n){var r=t(this.__wrapped__),i=r.__actions__=yi(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,dn([this.value()],arguments))})})),t}function Qa(){}var Ga=Ci(pn),Xa=Ci(sn),tf=Ci(_n);function nf(t){return fo(t)?Bn(Bo(t)):function(t){return function(n){return le(n,t)}}(t)}var rf=Mi(),ef=Mi(!0);function of(){return[]}function uf(){return!1}var af=Si((function(t,n){return t+n}),0),ff=Oi("ceil"),cf=Si((function(t,n){return t/n}),1),sf=Oi("floor");var lf,hf=Si((function(t,n){return t*n}),1),vf=Oi("round"),pf=Si((function(t,n){return t-n}),0);return Tr.after=function(t,n){if("function"!=typeof n)throw new _t(o);return t=ea(t),function(){if(--t<1)return n.apply(this,arguments)}},Tr.ary=gu,Tr.assign=fa,Tr.assignIn=ca,Tr.assignInWith=sa,Tr.assignWith=la,Tr.at=ha,Tr.before=yu,Tr.bind=_u,Tr.bindAll=Fa,Tr.bindKey=wu,Tr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Mu(t)?t:[t]},Tr.chain=nu,Tr.chunk=function(t,n,r){n=(r?ao(t,n,r):void 0===n)?1:ur(ea(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,u=0,a=e(Xn(i/n));oi?0:i+r),(e=void 0===e||e>i?i:ea(e))<0&&(e+=i),e=r>e?0:ia(e);r>>0)?(t=aa(t))&&("string"==typeof n||null!=n&&!Ju(n))&&!(n=Qe(n))&&Dn(t)?ci(Kn(t),0,r):t.split(n,r):[]},Tr.spread=function(t,n){if("function"!=typeof t)throw new _t(o);return n=null==n?0:ur(ea(n),0),ke((function(r){var e=r[n],i=ci(r,0,n);return e&&dn(i,e),un(t,this,i)}))},Tr.tail=function(t){var n=null==t?0:t.length;return n?qe(t,1,n):[]},Tr.take=function(t,n,r){return t&&t.length?qe(t,0,(n=r||void 0===n?1:ea(n))<0?0:n):[]},Tr.takeRight=function(t,n,r){var e=null==t?0:t.length;return e?qe(t,(n=e-(n=r||void 0===n?1:ea(n)))<0?0:n,e):[]},Tr.takeRightWhile=function(t,n){return t&&t.length?ni(t,Zi(n,3),!1,!0):[]},Tr.takeWhile=function(t,n){return t&&t.length?ni(t,Zi(n,3)):[]},Tr.tap=function(t,n){return n(t),t},Tr.throttle=function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new _t(o);return Wu(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),mu(t,n,{leading:e,maxWait:n,trailing:i})},Tr.thru=ru,Tr.toArray=na,Tr.toPairs=Pa,Tr.toPairsIn=Ta,Tr.toPath=function(t){return Mu(t)?pn(t,Bo):Qu(t)?[t]:yi(xo(aa(t)))},Tr.toPlainObject=ua,Tr.transform=function(t,n,r){var e=Mu(t),i=e||Nu(t)||Gu(t);if(n=Zi(n,4),null==r){var o=t&&t.constructor;r=i?e?new o:[]:Wu(t)&&Du(o)?Ir(qt(t)):{}}return(i?fn:fe)(t,(function(t,e,i){return n(r,t,e,i)})),r},Tr.unary=function(t){return gu(t,1)},Tr.union=$o,Tr.unionBy=qo,Tr.unionWith=Ho,Tr.uniq=function(t){return t&&t.length?Ge(t):[]},Tr.uniqBy=function(t,n){return t&&t.length?Ge(t,Zi(n,2)):[]},Tr.uniqWith=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?Ge(t,void 0,n):[]},Tr.unset=function(t,n){return null==t||Xe(t,n)},Tr.unzip=Ko,Tr.unzipWith=Jo,Tr.update=function(t,n,r){return null==t?t:ti(t,n,ui(r))},Tr.updateWith=function(t,n,r,e){return e="function"==typeof e?e:void 0,null==t?t:ti(t,n,ui(r),e)},Tr.values=Ia,Tr.valuesIn=function(t){return null==t?[]:Un(t,ba(t))},Tr.without=Vo,Tr.words=Da,Tr.wrap=function(t,n){return Bu(ui(n),t)},Tr.xor=Zo,Tr.xorBy=Qo,Tr.xorWith=Go,Tr.zip=Xo,Tr.zipObject=function(t,n){return ii(t||[],n||[],Wr)},Tr.zipObjectDeep=function(t,n){return ii(t||[],n||[],ze)},Tr.zipWith=tu,Tr.entries=Pa,Tr.entriesIn=Ta,Tr.extend=ca,Tr.extendWith=sa,Za(Tr,Tr),Tr.add=af,Tr.attempt=za,Tr.camelCase=Sa,Tr.capitalize=Ca,Tr.ceil=ff,Tr.clamp=function(t,n,r){return void 0===r&&(r=n,n=void 0),void 0!==r&&(r=(r=oa(r))==r?r:0),void 0!==n&&(n=(n=oa(n))==n?n:0),Vr(oa(t),n,r)},Tr.clone=function(t){return Zr(t,4)},Tr.cloneDeep=function(t){return Zr(t,5)},Tr.cloneDeepWith=function(t,n){return Zr(t,5,n="function"==typeof n?n:void 0)},Tr.cloneWith=function(t,n){return Zr(t,4,n="function"==typeof n?n:void 0)},Tr.conformsTo=function(t,n){return null==n||Qr(t,n,ma(n))},Tr.deburr=Ua,Tr.defaultTo=function(t,n){return null==t||t!=t?n:t},Tr.divide=cf,Tr.endsWith=function(t,n,r){t=aa(t),n=Qe(n);var e=t.length,i=r=void 0===r?e:Vr(ea(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},Tr.eq=Iu,Tr.escape=function(t){return(t=aa(t))&&Y.test(t)?t.replace(N,kn):t},Tr.escapeRegExp=function(t){return(t=aa(t))&&K.test(t)?t.replace(H,"\\$&"):t},Tr.every=function(t,n,r){var e=Mu(t)?sn:re;return r&&ao(t,n,r)&&(n=void 0),e(t,Zi(n,3))},Tr.find=ou,Tr.findIndex=Uo,Tr.findKey=function(t,n){return mn(t,Zi(n,3),fe)},Tr.findLast=uu,Tr.findLastIndex=Mo,Tr.findLastKey=function(t,n){return mn(t,Zi(n,3),ce)},Tr.floor=sf,Tr.forEach=au,Tr.forEachRight=fu,Tr.forIn=function(t,n){return null==t?t:ue(t,Zi(n,3),ba)},Tr.forInRight=function(t,n){return null==t?t:ae(t,Zi(n,3),ba)},Tr.forOwn=function(t,n){return t&&fe(t,Zi(n,3))},Tr.forOwnRight=function(t,n){return t&&ce(t,Zi(n,3))},Tr.get=da,Tr.gt=Su,Tr.gte=Cu,Tr.has=function(t,n){return null!=t&&eo(t,n,de)},Tr.hasIn=ga,Tr.head=jo,Tr.identity=Ha,Tr.includes=function(t,n,r,e){t=ju(t)?t:Ia(t),r=r&&!e?ea(r):0;var i=t.length;return r<0&&(r=ur(i+r,0)),Zu(t)?r<=i&&t.indexOf(n,r)>-1:!!i&&An(t,n,r)>-1},Tr.indexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:ea(r);return i<0&&(i=ur(e+i,0)),An(t,n,i)},Tr.inRange=function(t,n,r){return n=ra(n),void 0===r?(r=n,n=0):r=ra(r),function(t,n,r){return t>=ar(n,r)&&t=-9007199254740991&&t<=9007199254740991},Tr.isSet=Vu,Tr.isString=Zu,Tr.isSymbol=Qu,Tr.isTypedArray=Gu,Tr.isUndefined=function(t){return void 0===t},Tr.isWeakMap=function(t){return $u(t)&&ro(t)==A},Tr.isWeakSet=function(t){return $u(t)&&"[object WeakSet]"==ve(t)},Tr.join=function(t,n){return null==t?"":ir.call(t,n)},Tr.kebabCase=Ma,Tr.last=Yo,Tr.lastIndexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e;return void 0!==r&&(i=(i=ea(r))<0?ur(e+i,0):ar(i,e-1)),n==n?function(t,n,r){for(var e=r+1;e--;)if(t[e]===n)return e;return e}(t,n,i):bn(t,Rn,i,!0)},Tr.lowerCase=La,Tr.lowerFirst=ja,Tr.lt=Xu,Tr.lte=ta,Tr.max=function(t){return t&&t.length?ee(t,Ha,pe):void 0},Tr.maxBy=function(t,n){return t&&t.length?ee(t,Zi(n,2),pe):void 0},Tr.mean=function(t){return xn(t,Ha)},Tr.meanBy=function(t,n){return xn(t,Zi(n,2))},Tr.min=function(t){return t&&t.length?ee(t,Ha,Be):void 0},Tr.minBy=function(t,n){return t&&t.length?ee(t,Zi(n,2),Be):void 0},Tr.stubArray=of,Tr.stubFalse=uf,Tr.stubObject=function(){return{}},Tr.stubString=function(){return""},Tr.stubTrue=function(){return!0},Tr.multiply=hf,Tr.nth=function(t,n){return t&&t.length?Ce(t,ea(n)):void 0},Tr.noConflict=function(){return Kt._===this&&(Kt._=It),this},Tr.noop=Qa,Tr.now=du,Tr.pad=function(t,n,r){t=aa(t);var e=(n=ea(n))?Hn(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return Ui(tr(i),r)+t+Ui(Xn(i),r)},Tr.padEnd=function(t,n,r){t=aa(t);var e=(n=ea(n))?Hn(t):0;return n&&en){var e=t;t=n,n=e}if(r||t%1||n%1){var i=sr();return ar(t+i*(n-t+Wt("1e-"+((i+"").length-1))),n)}return Oe(t,n)},Tr.reduce=function(t,n,r){var e=Mu(t)?gn:Tn,i=arguments.length<3;return e(t,Zi(n,4),r,i,te)},Tr.reduceRight=function(t,n,r){var e=Mu(t)?yn:Tn,i=arguments.length<3;return e(t,Zi(n,4),r,i,ne)},Tr.repeat=function(t,n,r){return n=(r?ao(t,n,r):void 0===n)?1:ea(n),Ne(aa(t),n)},Tr.replace=function(){var t=arguments,n=aa(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Tr.result=function(t,n,r){var e=-1,i=(n=ai(n,t)).length;for(i||(i=1,t=void 0);++e9007199254740991)return[];var r=4294967295,e=ar(t,4294967295);t-=4294967295;for(var i=Sn(e,n=Zi(n));++r=o)return t;var a=r-Hn(e);if(a<1)return e;var f=u?ci(u,0,a).join(""):t.slice(0,a);if(void 0===i)return f+e;if(u&&(a+=f.length-a),Ju(i)){if(t.slice(a).search(i)){var c,s=f;for(i.global||(i=gt(i.source,aa(et.exec(i))+"g")),i.lastIndex=0;c=i.exec(s);)var l=c.index;f=f.slice(0,void 0===l?a:l)}}else if(t.indexOf(Qe(i),a)!=a){var h=f.lastIndexOf(i);h>-1&&(f=f.slice(0,h))}return f+e},Tr.unescape=function(t){return(t=aa(t))&&k.test(t)?t.replace(O,Jn):t},Tr.uniqueId=function(t){var n=++xt;return aa(t)+n},Tr.upperCase=ka,Tr.upperFirst=Ya,Tr.each=au,Tr.eachRight=fu,Tr.first=jo,Za(Tr,(lf={},fe(Tr,(function(t,n){Rt.call(Tr.prototype,n)||(lf[n]=t)})),lf),{chain:!1}),Tr.VERSION="4.17.20",fn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tr[t].placeholder=Tr})),fn(["drop","take"],(function(t,n){Ur.prototype[t]=function(r){r=void 0===r?1:ur(ea(r),0);var e=this.__filtered__&&!n?new Ur(this):this.clone();return e.__filtered__?e.__takeCount__=ar(r,e.__takeCount__):e.__views__.push({size:ar(r,4294967295),type:t+(e.__dir__<0?"Right":"")}),e},Ur.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),fn(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;Ur.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Zi(t,3),type:r}),n.__filtered__=n.__filtered__||e,n}})),fn(["head","last"],(function(t,n){var r="take"+(n?"Right":"");Ur.prototype[t]=function(){return this[r](1).value()[0]}})),fn(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");Ur.prototype[t]=function(){return this.__filtered__?new Ur(this):this[r](1)}})),Ur.prototype.compact=function(){return this.filter(Ha)},Ur.prototype.find=function(t){return this.filter(t).head()},Ur.prototype.findLast=function(t){return this.reverse().find(t)},Ur.prototype.invokeMap=ke((function(t,n){return"function"==typeof t?new Ur(this):this.map((function(r){return _e(r,t,n)}))})),Ur.prototype.reject=function(t){return this.filter(Ru(Zi(t)))},Ur.prototype.slice=function(t,n){t=ea(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Ur(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=ea(n))<0?r.dropRight(-n):r.take(n-t)),r)},Ur.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ur.prototype.toArray=function(){return this.take(4294967295)},fe(Ur.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Tr[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Tr.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof Ur,f=u[0],c=a||Mu(n),s=function(t){var n=i.apply(Tr,dn([t],u));return e&&l?n[0]:n};c&&r&&"function"==typeof f&&1!=f.length&&(a=c=!1);var l=this.__chain__,h=!!this.__actions__.length,v=o&&!l,p=a&&!h;if(!o&&c){n=p?n:new Ur(this);var d=t.apply(n,u);return d.__actions__.push({func:ru,args:[s],thisArg:void 0}),new Cr(d,l)}return v&&p?t.apply(this,u):(d=this.thru(s),v?e?d.value()[0]:d.value():d)})})),fn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=wt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Tr.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(Mu(i)?i:[],t)}return this[r]((function(r){return n.apply(Mu(r)?r:[],t)}))}})),fe(Ur.prototype,(function(t,n){var r=Tr[n];if(r){var e=r.name+"";Rt.call(wr,e)||(wr[e]=[]),wr[e].push({name:n,func:r})}})),wr[Ti(void 0,2).name]=[{name:"wrapper",func:void 0}],Ur.prototype.clone=function(){var t=new Ur(this.__wrapped__);return t.__actions__=yi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=yi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=yi(this.__views__),t},Ur.prototype.reverse=function(){if(this.__filtered__){var t=new Ur(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ur.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=Mu(t),e=n<0,i=r?t.length:0,o=function(t,n,r){var e=-1,i=r.length;for(;++e=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tr.prototype.plant=function(t){for(var n,r=this;r instanceof Sr;){var e=To(r);e.__index__=0,e.__values__=void 0,n?i.__wrapped__=e:n=e;var i=e;r=r.__wrapped__}return i.__wrapped__=t,n},Tr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ur){var n=t;return this.__actions__.length&&(n=new Ur(this)),(n=n.reverse()).__actions__.push({func:ru,args:[Wo],thisArg:void 0}),new Cr(n,this.__chain__)}return this.thru(Wo)},Tr.prototype.toJSON=Tr.prototype.valueOf=Tr.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},Tr.prototype.first=Tr.prototype.head,Gt&&(Tr.prototype[Gt]=function(){return this}),Tr}();Kt._=Vn,void 0===(i=function(){return Vn}.call(n,r,n,e))||(e.exports=i)}).call(this)}).call(this,r(6),r(13)(t))},function(t,n,r){"use strict";r.r(n);var e=r(11),i=r.n(e),o=r(5),u=r.n(o),a=null;if(window.hasRun)console.log("nope");else{console.log(u.a);let t=async t=>{a&&a.parentNode.removeChild(a),(a=document.createElement("canvas")).style.position="fixed",a.style.bottom="20px",a.style.left="20px",document.body.appendChild(a),await u.a.toCanvas(a,t,t=>{t&&console.error(t)}),a.style.width="200px",a.style.height="200px"};window.hasRun=!0,browser.runtime.onMessage.addListener(n=>{"dispqr"===n.command?t(n.qrText):"reset"===n.command&&removeExistingBeasts()})}console.log((function(){const t=document.createElement("div");return t.innerHTML=i.a.join(["Hello","webpack"]," "),t}))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},function(t,n,r){var e=r(2),i=r(0),o=r(4),u=r(16),a=r(17),f=r(18),c=r(19),s=r(20),l=r(7),h=r(21),v=r(28),p=r(29),d=r(1),g=r(30),y=r(3);function _(t,n,r){var e,i,o=t.size,u=p.getEncodedBits(n,r);for(e=0;e<15;e++)i=1==(u>>e&1),e<6?t.set(e,8,i,!0):e<8?t.set(e+1,8,i,!0):t.set(o-15+e,8,i,!0),e<8?t.set(8,o-e-1,i,!0):e<9?t.set(8,15-e-1+1,i,!0):t.set(8,15-e-1,i,!0);t.set(o-8,8,1,!0)}function w(t,n,r){var o=new u;r.forEach((function(n){o.put(n.mode.bit,4),o.put(n.getLength(),d.getCharCountIndicator(n.mode,t)),n.write(o)}));var a=8*(i.getSymbolTotalCodewords(t)-l.getTotalCodewordsCount(t,n));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);for(var f=(a-o.getLengthInBits())/8,c=0;c=0&&a<=6&&(0===f||6===f)||f>=0&&f<=6&&(0===a||6===a)||a>=2&&a<=4&&f>=2&&f<=4?t.set(o+a,u+f,!0,!0):t.set(o+a,u+f,!1,!0))}(m,n),function(t){for(var n=t.size,r=8;r=7&&function(t,n){for(var r,e,i,o=t.size,u=v.getEncodedBits(n),a=0;a<18;a++)r=Math.floor(a/3),e=a%3+o-8-3,i=1==(u>>a&1),t.set(r,e,i,!0),t.set(e,r,i,!0)}(m,n),function(t,n){for(var r=t.size,e=-1,i=r-1,o=7,u=0,a=r-1;a>0;a-=2)for(6===a&&a--;;){for(var f=0;f<2;f++)if(!t.isReserved(i,a-f)){var c=!1;u>>o&1)),t.set(i,a-f,c),-1===--o&&(u++,o=7)}if((i+=e)<0||r<=i){i-=e,e=-e;break}}}(m,p),isNaN(e)&&(e=s.getBestMask(m,_.bind(null,m,r))),s.applyMask(e,m),_(m,r,e),{modules:m,version:n,errorCorrectionLevel:r,maskPattern:e,segments:o}}n.create=function(t,n){if(void 0===t||""===t)throw new Error("No input text");var r,e,u=o.M;return void 0!==n&&(u=o.from(n.errorCorrectionLevel,o.M),r=v.from(n.version),e=s.from(n.maskPattern),n.toSJISFunc&&i.setToSJISFunction(n.toSJISFunc)),m(t,r,u,e)}},function(t,n){function r(){this.buffer=[],this.length=0}r.prototype={get:function(t){var n=Math.floor(t/8);return 1==(this.buffer[n]>>>7-t%8&1)},put:function(t,n){for(var r=0;r>>n-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},t.exports=r},function(t,n,r){var e=r(2);function i(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=e.alloc(t*t),this.reservedBit=e.alloc(t*t)}i.prototype.set=function(t,n,r,e){var i=t*this.size+n;this.data[i]=r,e&&(this.reservedBit[i]=!0)},i.prototype.get=function(t,n){return this.data[t*this.size+n]},i.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},i.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},t.exports=i},function(t,n,r){var e=r(0).getSymbolSize;n.getRowColCoords=function(t){if(1===t)return[];for(var n=Math.floor(t/7)+2,r=e(t),i=145===r?26:2*Math.ceil((r-13)/(2*n-2)),o=[r-7],u=1;u=0&&t<=7},n.from=function(t){return n.isValid(t)?parseInt(t,10):void 0},n.getPenaltyN1=function(t){for(var n=t.size,e=0,i=0,o=0,u=null,a=null,f=0;f=5&&(e+=r+(i-5)),u=s,i=1),(s=t.get(c,f))===a?o++:(o>=5&&(e+=r+(o-5)),a=s,o=1)}i>=5&&(e+=r+(i-5)),o>=5&&(e+=r+(o-5))}return e},n.getPenaltyN2=function(t){for(var n=t.size,r=0,i=0;i=10&&(1488===e||93===e)&&r++,o=o<<1&2047|t.get(a,u),a>=10&&(1488===o||93===o)&&r++}return r*i},n.getPenaltyN4=function(t){for(var n=0,r=t.data.length,e=0;e0){var f=e.alloc(this.degree);return u.copy(f,a),f}return u},t.exports=u},function(t,n,r){var e=r(2),i=r(23);n.mul=function(t,n){for(var r=e.alloc(t.length+n.length-1),o=0;o=0;){for(var o=r[0],u=0;u + * @license MIT + */ +var e=r(25),i=r(26),o=r(27);function u(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,n){if(u()=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|t}function p(t,n){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var e=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(e)return D(t).length;n=(""+n).toLowerCase(),e=!0}}function d(t,n,r){var e=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(n>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,n,r);case"utf8":case"utf-8":return B(this,n,r);case"ascii":return P(this,n,r);case"latin1":case"binary":return T(this,n,r);case"base64":return x(this,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,n,r);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function g(t,n,r){var e=t[n];t[n]=t[r],t[r]=e}function y(t,n,r,e,i){if(0===t.length)return-1;if("string"==typeof r?(e=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof n&&(n=f.from(n,e)),f.isBuffer(n))return 0===n.length?-1:_(t,n,r,e,i);if("number"==typeof n)return n&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,n,r):Uint8Array.prototype.lastIndexOf.call(t,n,r):_(t,[n],r,e,i);throw new TypeError("val must be string, number or Buffer")}function _(t,n,r,e,i){var o,u=1,a=t.length,f=n.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||n.length<2)return-1;u=2,a/=2,f/=2,r/=2}function c(t,n){return 1===u?t[n]:t.readUInt16BE(n*u)}if(i){var s=-1;for(o=r;oa&&(r=a-f),o=r;o>=0;o--){for(var l=!0,h=0;hi&&(e=i):e=i;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var u=0;u>8,i=r%256,o.push(i),o.push(e);return o}(n,t.length-r),t,r,e)}function x(t,n,r){return 0===n&&r===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(n,r))}function B(t,n,r){r=Math.min(t.length,r);for(var e=[],i=n;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(s=c);break;case 2:128==(192&(o=t[i+1]))&&(f=(31&c)<<6|63&o)>127&&(s=f);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(f=(15&c)<<12|(63&o)<<6|63&u)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:o=t[i+1],u=t[i+2],a=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&a)&&(f=(15&c)<<18|(63&o)<<12|(63&u)<<6|63&a)>65535&&f<1114112&&(s=f)}null===s?(s=65533,l=1):s>65535&&(s-=65536,e.push(s>>>10&1023|55296),s=56320|1023&s),e.push(s),i+=l}return function(t){var n=t.length;if(n<=4096)return String.fromCharCode.apply(String,t);var r="",e=0;for(;e0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},f.prototype.compare=function(t,n,r,e,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),n<0||r>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&n>=r)return 0;if(e>=i)return-1;if(n>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(e>>>=0),u=(r>>>=0)-(n>>>=0),a=Math.min(o,u),c=this.slice(e,i),s=t.slice(n,r),l=0;li)&&(r=i),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var o=!1;;)switch(e){case"hex":return w(this,t,n,r);case"utf8":case"utf-8":return m(this,t,n,r);case"ascii":return b(this,t,n,r);case"latin1":case"binary":return A(this,t,n,r);case"base64":return E(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(t,n,r){var e="";r=Math.min(t.length,r);for(var i=n;ie)&&(r=e);for(var i="",o=n;or)throw new RangeError("Trying to access beyond buffer length")}function U(t,n,r,e,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||nt.length)throw new RangeError("Index out of range")}function M(t,n,r,e){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(e?i:1-i)}function L(t,n,r,e){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(e?i:3-i)&255}function j(t,n,r,e,i,o){if(r+e>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(t,n,r,e,o){return o||j(t,0,r,4),i.write(t,n,r,e,23,4),r+4}function N(t,n,r,e,o){return o||j(t,0,r,8),i.write(t,n,r,e,52,8),r+8}f.prototype.slice=function(t,n){var r,e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):t>e&&(t=e),(n=void 0===n?e:~~n)<0?(n+=e)<0&&(n=0):n>e&&(n=e),n0&&(i*=256);)e+=this[t+--n]*i;return e},f.prototype.readUInt8=function(t,n){return n||C(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,n){return n||C(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,n){return n||C(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,n){return n||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,n){return n||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,n,r){t|=0,n|=0,r||C(t,n,this.length);for(var e=this[t],i=1,o=0;++o=(i*=128)&&(e-=Math.pow(2,8*n)),e},f.prototype.readIntBE=function(t,n,r){t|=0,n|=0,r||C(t,n,this.length);for(var e=n,i=1,o=this[t+--e];e>0&&(i*=256);)o+=this[t+--e]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*n)),o},f.prototype.readInt8=function(t,n){return n||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,n){n||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(t,n){n||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(t,n){return n||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,n){return n||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,n){return n||C(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,n){return n||C(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,n){return n||C(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,n){return n||C(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,n,r,e){(t=+t,n|=0,r|=0,e)||U(this,t,n,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[n]=255&t;++o=0&&(o*=256);)this[n+i]=t/o&255;return n+r},f.prototype.writeUInt8=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},f.prototype.writeUInt16LE=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):M(this,t,n,!0),n+2},f.prototype.writeUInt16BE=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):M(this,t,n,!1),n+2},f.prototype.writeUInt32LE=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):L(this,t,n,!0),n+4},f.prototype.writeUInt32BE=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):L(this,t,n,!1),n+4},f.prototype.writeIntLE=function(t,n,r,e){if(t=+t,n|=0,!e){var i=Math.pow(2,8*r-1);U(this,t,n,r,i-1,-i)}var o=0,u=1,a=0;for(this[n]=255&t;++o>0)-a&255;return n+r},f.prototype.writeIntBE=function(t,n,r,e){if(t=+t,n|=0,!e){var i=Math.pow(2,8*r-1);U(this,t,n,r,i-1,-i)}var o=r-1,u=1,a=0;for(this[n+o]=255&t;--o>=0&&(u*=256);)t<0&&0===a&&0!==this[n+o+1]&&(a=1),this[n+o]=(t/u>>0)-a&255;return n+r},f.prototype.writeInt8=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},f.prototype.writeInt16LE=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):M(this,t,n,!0),n+2},f.prototype.writeInt16BE=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):M(this,t,n,!1),n+2},f.prototype.writeInt32LE=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):L(this,t,n,!0),n+4},f.prototype.writeInt32BE=function(t,n,r){return t=+t,n|=0,r||U(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):L(this,t,n,!1),n+4},f.prototype.writeFloatLE=function(t,n,r){return O(this,t,n,!0,r)},f.prototype.writeFloatBE=function(t,n,r){return O(this,t,n,!1,r)},f.prototype.writeDoubleLE=function(t,n,r){return N(this,t,n,!0,r)},f.prototype.writeDoubleBE=function(t,n,r){return N(this,t,n,!1,r)},f.prototype.copy=function(t,n,r,e){if(r||(r=0),e||0===e||(e=this.length),n>=t.length&&(n=t.length),n||(n=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-n=0;--i)t[i+n]=this[i+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=n;o55295&&r<57344){if(!i){if(r>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(u+1===e){(n-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(n-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((n-=1)<0)break;o.push(r)}else if(r<2048){if((n-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((n-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function z(t){return e.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,n,r,e){for(var i=0;i=n.length||i>=t.length);++i)n[i+r]=t[i];return i}}).call(this,r(6))},function(t,n,r){"use strict";n.byteLength=function(t){var n=c(t),r=n[0],e=n[1];return 3*(r+e)/4-e},n.toByteArray=function(t){var n,r,e=c(t),u=e[0],a=e[1],f=new o(function(t,n,r){return 3*(n+r)/4-r}(0,u,a)),s=0,l=a>0?u-4:u;for(r=0;r>16&255,f[s++]=n>>8&255,f[s++]=255&n;2===a&&(n=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,f[s++]=255&n);1===a&&(n=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,f[s++]=n>>8&255,f[s++]=255&n);return f},n.fromByteArray=function(t){for(var n,r=t.length,i=r%3,o=[],u=0,a=r-i;ua?a:u+16383));1===i?(n=t[r-1],o.push(e[n>>2]+e[n<<4&63]+"==")):2===i&&(n=(t[r-2]<<8)+t[r-1],o.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"="));return o.join("")};for(var e=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=u.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=n),[r,r===n?0:4-r%4]}function s(t,n,r){for(var i,o,u=[],a=n;a>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return u.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,n){n.read=function(t,n,r,e,i){var o,u,a=8*i-e-1,f=(1<>1,s=-7,l=r?i-1:0,h=r?-1:1,v=t[n+l];for(l+=h,o=v&(1<<-s)-1,v>>=-s,s+=a;s>0;o=256*o+t[n+l],l+=h,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=e;s>0;u=256*u+t[n+l],l+=h,s-=8);if(0===o)o=1-c;else{if(o===f)return u?NaN:1/0*(v?-1:1);u+=Math.pow(2,e),o-=c}return(v?-1:1)*u*Math.pow(2,o-e)},n.write=function(t,n,r,e,i,o){var u,a,f,c=8*o-i-1,s=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,v=e?0:o-1,p=e?1:-1,d=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,u=s):(u=Math.floor(Math.log(n)/Math.LN2),n*(f=Math.pow(2,-u))<1&&(u--,f*=2),(n+=u+l>=1?h/f:h*Math.pow(2,1-l))*f>=2&&(u++,f/=2),u+l>=s?(a=0,u=s):u+l>=1?(a=(n*f-1)*Math.pow(2,i),u+=l):(a=n*Math.pow(2,l-1)*Math.pow(2,i),u=0));i>=8;t[r+v]=255&a,v+=p,a/=256,i-=8);for(u=u<0;t[r+v]=255&u,v+=p,u/=256,c-=8);t[r+v-p]|=128*d}},function(t,n){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,n,r){var e=r(0),i=r(7),o=r(4),u=r(1),a=r(8),f=r(3),c=e.getBCHDigit(7973);function s(t,n){return u.getCharCountIndicator(t,n)+4}function l(t,n){var r=0;return t.forEach((function(t){var e=s(t.mode,n);r+=e+t.getBitsLength()})),r}n.from=function(t,n){return a.isValid(t)?parseInt(t,10):n},n.getCapacity=function(t,n,r){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===r&&(r=u.BYTE);var o=8*(e.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,n));if(r===u.MIXED)return o;var f=o-s(r,t);switch(r){case u.NUMERIC:return Math.floor(f/10*3);case u.ALPHANUMERIC:return Math.floor(f/11*2);case u.KANJI:return Math.floor(f/13);case u.BYTE:default:return Math.floor(f/8)}},n.getBestVersionForData=function(t,r){var e,i=o.from(r,o.M);if(f(t)){if(t.length>1)return function(t,r){for(var e=1;e<=40;e++){if(l(t,e)<=n.getCapacity(e,r,u.MIXED))return e}}(t,i);if(0===t.length)return 1;e=t[0]}else e=t;return function(t,r,e){for(var i=1;i<=40;i++)if(r<=n.getCapacity(i,e,t))return i}(e.mode,e.getLength(),i)},n.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var n=t<<12;e.getBCHDigit(n)-c>=0;)n^=7973<=0;)o^=1335<=0?t[t.length-1]:null;return r&&r.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)}),[])}(u))},n.rawSplit=function(t){return n.fromArray(v(t,c.isKanjiModeEnabled()))}},function(t,n,r){var e=r(1);function i(t){this.mode=e.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){var n,r,e;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),e=parseInt(r,10),t.put(e,10);var i=this.data.length-n;i>0&&(r=this.data.substr(n),e=parseInt(r,10),t.put(e,3*i+1))},t.exports=i},function(t,n,r){var e=r(1),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=e.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var n;for(n=0;n+2<=this.data.length;n+=2){var r=45*i.indexOf(this.data[n]);r+=i.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(i.indexOf(this.data[n]),6)},t.exports=o},function(t,n,r){var e=r(2),i=r(1);function o(t){this.mode=i.BYTE,this.data=e.from(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var n=0,r=this.data.length;n=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=o},function(t,n,r){"use strict";var e={single_source_shortest_paths:function(t,n,r){var i={},o={};o[n]=0;var u,a,f,c,s,l,h,v=e.PriorityQueue.make();for(v.push(n,0);!v.empty();)for(f in a=(u=v.pop()).value,c=u.cost,s=t[a]||{})s.hasOwnProperty(f)&&(l=c+s[f],h=o[f],(void 0===o[f]||h>l)&&(o[f]=l,v.push(f,l),i[f]=a));if(void 0!==r&&void 0===o[r]){var p=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(p)}return i},extract_shortest_path_from_predecessor_list:function(t,n){for(var r=[],e=n;e;)r.push(e),t[e],e=t[e];return r.reverse(),r},find_path:function(t,n,r){var i=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,i={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=t.sorter||r.default_sorter,i},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var r={value:t,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},function(t,n,r){var e=r(10);n.render=function(t,n,r){var i=r,o=n;void 0!==i||n&&n.getContext||(i=n,n=void 0),n||(o=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),i=e.getOptions(i);var u=e.getImageWidth(t.modules.size,i),a=o.getContext("2d"),f=a.createImageData(u,u);return e.qrToImageData(f.data,t,i),function(t,n,r){t.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=r,n.width=r,n.style.height=r+"px",n.style.width=r+"px"}(a,o,u),a.putImageData(f,0,0),o},n.renderToDataURL=function(t,r,e){var i=e;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});var o=n.render(t,r,i),u=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(u,a.quality)}},function(t,n,r){var e=r(10);function i(t,n){var r=t.a/255,e=n+'="'+t.hex+'"';return r<1?e+" "+n+'-opacity="'+r.toFixed(2).slice(1)+'"':e}function o(t,n,r){var e=t+n;return void 0!==r&&(e+=" "+r),e}n.render=function(t,n,r){var u=e.getOptions(n),a=t.modules.size,f=t.modules.data,c=a+2*u.margin,s=u.color.light.a?"':"",l="0&&c>0&&t[f-1]||(e+=u?o("M",c+r,.5+s+r):o("m",i,0),i=0,u=!1),c+1',h='viewBox="0 0 '+c+" "+c+'"',v=''+s+l+"\n";return"function"==typeof r&&r(null,v),v}}]); \ No newline at end of file diff --git a/dist/manifest.json b/dist/manifest.json new file mode 100644 index 0000000..972db5d --- /dev/null +++ b/dist/manifest.json @@ -0,0 +1,25 @@ +{ + "manifest_version": 2, + "name": "EmbedQR", + "version": "1.0", + + "description": "Adds a QR code to the webpage.", + + "permissions": [ + "activeTab" + ], + + "browser_action": { + "default_icon": "icons/qr32.png", + "default_title": "EmbedQR", + "default_popup": "insert_url.html" + }, + + "content_scripts": [ + { + "matches": [""], + "js": ["main.js"] + } + ] + +} \ No newline at end of file diff --git a/dist/popup.js b/dist/popup.js new file mode 100644 index 0000000..ed87bd7 --- /dev/null +++ b/dist/popup.js @@ -0,0 +1,83 @@ + + +/** + * Listen for clicks on the buttons, and send the appropriate message to + * the content script in the page. + */ +function listenForClicks() { + document.addEventListener("click", (e) => { + + + /** + * Insert the page-hiding CSS into the active tab, + * then get the beast URL and + * send a "beastify" message to the content script in the active tab. + */ + function create(tabs) { + txt_qr = document.getElementById('qr_text'); + console.log(txt_qr.value); + browser.tabs.sendMessage(tabs[0].id, { + command: "dispqr", + qrText: txt_qr.value + }); + // browser.tabs.insertCSS({code: hidePage}).then(() => { + // let url = beastNameToURL(e.target.textContent); + // browser.tabs.sendMessage(tabs[0].id, { + // command: "beastify", + // beastURL: url + // }); + // }); + } + + /** + * Remove the page-hiding CSS from the active tab, + * send a "reset" message to the content script in the active tab. + */ + function reset(tabs) { + browser.tabs.sendMessage(tabs[0].id, { + command: "reset", + }); + } + + /** + * Just log the error to the console. + */ + function reportError(error) { + console.error(`Could not beastify: ${error}`); + } + + /** + * Get the active tab, + * then call "beastify()" or "reset()" as appropriate. + */ + if (e.target.classList.contains("create")) { + browser.tabs.query({active: true, currentWindow: true}) + .then(create) + .catch(reportError); + } + else if (e.target.classList.contains("reset")) { + browser.tabs.query({active: true, currentWindow: true}) + .then(reset) + .catch(reportError); + } + }); +} + +/** + * There was an error executing the script. + * Display the popup's error message, and hide the normal UI. + */ +function reportExecuteScriptError(error) { + document.querySelector("#popup-content").classList.add("hidden"); + document.querySelector("#error-content").classList.remove("hidden"); + console.error(`Failed to execute qr content script: ${error.message}`); +} + +/** + * When the popup loads, inject a content script into the active tab, + * and add a click handler. + * If we couldn't inject the script, handle the error. + */ +browser.tabs.executeScript({file: "main.js"}) + .then(listenForClicks) + .catch(reportExecuteScriptError); \ No newline at end of file diff --git a/dist/url.css b/dist/url.css new file mode 100644 index 0000000..4bbc0cc --- /dev/null +++ b/dist/url.css @@ -0,0 +1,31 @@ +html, body { + width: 100px; +} + +.hidden { + display: none; +} + +.button { + margin: 3% auto; + padding: 4px; + text-align: center; + font-size: 1.5em; + cursor: pointer; +} + +.create:hover { + background-color: #CFF2F2; +} + +.create { + background-color: #E5F2F2; +} + +.reset { + background-color: #FBFBC9; +} + +.reset:hover { + background-color: #EAEA9D; +} \ No newline at end of file