(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7cc1079b"],{"0880":function(t,e,r){"use strict";(function(t){function n(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),o=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(o),e&&(n.href=e),o.href=t,o.href}r.d(e,"g",(function(){return n})),r.d(e,"i",(function(){return o})),r.d(e,"h",(function(){return i})),r.d(e,"d",(function(){return l})),r.d(e,"e",(function(){return s})),r.d(e,"b",(function(){return h})),r.d(e,"a",(function(){return g})),r.d(e,"c",(function(){return d})),r.d(e,"f",(function(){return w}));const o=(()=>{let t=0;const e=()=>("0000"+(Math.random()*36**4<<0).toString(36)).slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function i(t){const e=[];for(let r=0,n=t.length;rf||t.height>f)&&(t.width>f&&t.height>f?t.width>t.height?(t.height*=f/t.width,t.width=f):(t.width*=f/t.height,t.height=f):t.width>f?(t.height*=f/t.width,t.width=f):(t.width*=f/t.height,t.height=f))}function g(t,e={}){return t.toBlob?new Promise(r=>{t.toBlob(r,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(r=>{const n=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),o=n.length,i=new Uint8Array(o);for(let t=0;t{const n=new Image;n.onload=()=>e(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="sync",n.src=t})}async function v(t){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(t)).then(encodeURIComponent).then(t=>"data:image/svg+xml;charset=utf-8,"+t)}async function w(t,e,r){const n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return o.setAttribute("width",""+e),o.setAttribute("height",""+r),o.setAttribute("viewBox",`0 0 ${e} ${r}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(t),v(o)}}).call(this,r("4362"))},e0d33:function(t,e,r){var n,o,i,a=function(){var t=function(t,e){var n=236,i=17,g=t,d=r[e],v=null,w=0,y=null,m=[],b={},C=function(t,e){w=4*g+17,v=function(t){for(var e=new Array(t),r=0;r=7&&T(t),null==y&&(y=D(g,d,m)),B(y,e)},A=function(t,e){for(var r=-1;r<=7;r+=1)if(!(t+r<=-1||w<=t+r))for(var n=-1;n<=7;n+=1)e+n<=-1||w<=e+n||(v[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},x=function(){for(var t=0,e=0,r=0;r<8;r+=1){C(!0,r);var n=o.getLostPoint(b);(0==r||t>n)&&(t=n,e=r)}return e},E=function(){for(var t=8;t>r&1);v[Math.floor(r/3)][r%3+w-8-3]=n}for(r=0;r<18;r+=1){n=!t&&1==(e>>r&1);v[r%3+w-8-3][Math.floor(r/3)]=n}},M=function(t,e){for(var r=d<<3|e,n=o.getBCHTypeInfo(r),i=0;i<15;i+=1){var a=!t&&1==(n>>i&1);i<6?v[i][8]=a:i<8?v[i+1][8]=a:v[w-15+i][8]=a}for(i=0;i<15;i+=1){a=!t&&1==(n>>i&1);i<8?v[8][w-i-1]=a:i<9?v[8][15-i-1+1]=a:v[8][15-i-1]=a}v[w-8][8]=!t},B=function(t,e){for(var r=-1,n=w-1,i=7,a=0,u=o.getMaskFunction(e),c=w-1;c>0;c-=2){6==c&&(c-=1);while(1){for(var l=0;l<2;l+=1)if(null==v[n][c-l]){var s=!1;a>>i&1));var f=u(n,c-l);f&&(s=!s),v[n][c-l]=s,i-=1,-1==i&&(a+=1,i=7)}if(n+=r,n<0||w<=n){n-=r,r=-r;break}}}},k=function(t,e){for(var r=0,n=0,i=0,u=new Array(e.length),c=new Array(e.length),l=0;l=0?v.getAt(w):0}}var p=0;for(h=0;h8*h)throw"code length overflow. ("+l.getLengthInBits()+">"+8*h+")";l.getLengthInBits()+4<=8*h&&l.put(0,4);while(l.getLengthInBits()%8!=0)l.putBit(!1);while(1){if(l.getLengthInBits()>=8*h)break;if(l.put(n,8),l.getLengthInBits()>=8*h)break;l.put(i,8)}return k(l,a)};b.addData=function(t,e){e=e||"Byte";var r=null;switch(e){case"Numeric":r=l(t);break;case"Alphanumeric":r=s(t);break;case"Byte":r=f(t);break;case"Kanji":r=h(t);break;default:throw"mode:"+e}m.push(r),y=null},b.isDark=function(t,e){if(t<0||w<=t||e<0||w<=e)throw t+","+e;return v[t][e]},b.getModuleCount=function(){return w},b.make=function(){if(g<1){for(var t=1;t<40;t++){for(var e=u.getRSBlocks(t,d),r=c(),n=0;n";for(var o=0;o';r+=""}return r+="",r+="",r},b.createSvgTag=function(t,e,r,n){var o={};"object"==typeof arguments[0]&&(o=arguments[0],t=o.cellSize,e=o.margin,r=o.alt,n=o.title),t=t||2,e="undefined"==typeof e?4*t:e,r="string"===typeof r?{text:r}:r||{},r.text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,n="string"===typeof n?{text:n}:n||{},n.text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var i,a,u,c,l,s=b.getModuleCount()*t+2*e,f="";for(l="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",f+=''+P(n.text)+"":"",f+=r.text?''+P(r.text)+"":"",f+='',f+='":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=n;break}}return e},L=function(t){var e=1;t="undefined"==typeof t?2*e:t;var r,n,o,i,a,u=b.getModuleCount()*e+2*t,c=t,l=u-t,s={"██":"█","█ ":"▀"," █":"▄"," ":" "},f={"██":"▀","█ ":"▀"," █":" "," ":" "},h="";for(r=0;r=l?f[a]:s[a];h+="\n"}return u%2&&t>0?h.substring(0,h.length-u-1)+Array(u+1).join("▀"):h.substring(0,h.length-1)};return b.createASCII=function(t,e){if(t=t||1,t<2)return L(e);t-=1,e="undefined"==typeof e?2*t:e;var r,n,o,i,a=b.getModuleCount()*t+2*e,u=e,c=a-e,l=Array(t+1).join("██"),s=Array(t+1).join(" "),f="",h="";for(r=0;r>>8),e.push(255&a)):e.push(n)}}return e}};var e={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},r={L:1,M:0,Q:3,H:2},n={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o=function(){var t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,o=7973,u=21522,c={},l=function(t){var e=0;while(0!=t)e+=1,t>>>=1;return e};return c.getBCHTypeInfo=function(t){var e=t<<10;while(l(e)-l(r)>=0)e^=r<=0)e^=o<5&&(r+=3+i-5)}for(n=0;n=256)e-=255;return t[e]}};return n}();function a(t,e){if("undefined"==typeof t.length)throw t.length+"/"+e;var r=function(){var r=0;while(r>>7-e%8&1)},put:function(t,e){for(var n=0;n>>e-n-1&1))},getLengthInBits:function(){return e},putBit:function(r){var n=Math.floor(e/8);t.length<=n&&t.push(0),r&&(t[n]|=128>>>e%8),e+=1}};return r},l=function(t){var r=e.MODE_NUMBER,n=t,o={getMode:function(){return r},getLength:function(t){return n.length},write:function(t){var e=n,r=0;while(r+2>>8&255)+(255&n),t.put(n,13),r+=2}if(r>>8)},writeBytes:function(t,r,n){r=r||0,n=n||t.length;for(var o=0;o0&&(e+=","),e+=t[r];return e+="]",e}};return e},d=function(){var t=0,e=0,r=0,n="",o={},i=function(t){n+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return o.writeByte=function(n){t=t<<8|255&n,e+=8,r+=1;while(e>=6)i(t>>>e-6),e-=6},o.flush=function(){if(e>0&&(i(t<<6-e),t=0,e=0),r%3!=0)for(var o=3-r%3,a=0;a=e.length){if(0==o)return-1;throw"unexpected end of file./"+o}var t=e.charAt(r);if(r+=1,"="==t)return o=0,-1;t.match(/^\s$/)||(n=n<<6|a(t.charCodeAt(0)),o+=6)}var i=n>>>o-8&255;return o-=8,i}},a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return i},w=function(t,e){var r=t,n=e,o=new Array(t*e),i={setPixel:function(t,e,n){o[e*r+t]=n},write:function(t){t.writeString("GIF87a"),t.writeShort(r),t.writeShort(n),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(r),t.writeShort(n),t.writeByte(0);var e=2,o=u(e);t.writeByte(e);var i=0;while(o.length-i>255)t.writeByte(255),t.writeBytes(o,i,255),i+=255;t.writeByte(o.length-i),t.writeBytes(o,i,o.length-i),t.writeByte(0),t.writeString(";")}},a=function(t){var e=t,r=0,n=0,o={write:function(t,o){if(t>>>o!=0)throw"length over";while(r+o>=8)e.writeByte(255&(t<>>=8-r,n=0,r=0;n|=t<0&&e.writeByte(n)}};return o},u=function(t){for(var e=1<>6,128|63&n):n<55296||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&t.charCodeAt(r)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return e}return e(t)}}(),function(r){o=[],n=r,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)}((function(){return a}))},e774:function(t,e,r){"use strict";const n="application/font-woff",o="image/jpeg",i={woff:n,woff2:n,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:o,jpeg:o,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function a(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function u(t){const e=a(t).toLowerCase();return i[e]||""}function c(t){return t.split(/,/)[1]}function l(t){return-1!==t.search(/^(data:)/)}function s(t,e){return`data:${e};base64,${t}`}async function f(t,e,r){const n=await fetch(t,e);if(404===n.status)throw new Error(`Resource "${n.url}" not found`);const o=await n.blob();return new Promise((t,e)=>{const i=new FileReader;i.onerror=e,i.onloadend=()=>{try{t(r({res:n,result:i.result}))}catch(o){e(o)}},i.readAsDataURL(o)})}const h={};function g(t,e,r){let n=t.replace(/\?.*/,"");return r&&(n=t),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function d(t,e,r){const n=g(t,e,r.includeQueryParams);if(null!=h[n])return h[n];let o;r.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());try{const n=await f(t,r.fetchRequestInit,({res:t,result:r})=>(e||(e=t.headers.get("Content-Type")||""),c(r)));o=s(n,e)}catch(i){o=r.imagePlaceholder||"";let e="Failed to fetch resource: "+t;i&&(e="string"===typeof i?i:i.message),e&&console.warn(e)}return h[n]=o,o}var v=r("0880");function w(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function p(t){return Object(v["h"])(t).map(e=>{const r=t.getPropertyValue(e),n=t.getPropertyPriority(e);return`${e}: ${r}${n?" !important":""};`}).join(" ")}function y(t,e,r){const n=`.${t}:${e}`,o=r.cssText?w(r):p(r);return document.createTextNode(`${n}{${o}}`)}function m(t,e,r){const n=window.getComputedStyle(t,r),o=n.getPropertyValue("content");if(""===o||"none"===o)return;const i=Object(v["i"])();try{e.className=`${e.className} ${i}`}catch(u){return}const a=document.createElement("style");a.appendChild(y(i,r,n)),e.appendChild(a)}function b(t,e){m(t,e,":before"),m(t,e,":after")}async function C(t){const e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):Object(v["c"])(e)}async function A(t,e){const r=t.poster,n=u(r),o=await d(r,n,e);return Object(v["c"])(o)}async function x(t,e){return t instanceof HTMLCanvasElement?C(t):t instanceof HTMLVideoElement&&t.poster?A(t,e):t.cloneNode(!1)}const E=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();async function S(t,e,r){var n;const o=E(t)&&t.assignedNodes?Object(v["h"])(t.assignedNodes()):Object(v["h"])((null!==(n=t.shadowRoot)&&void 0!==n?n:t).childNodes);return 0===o.length||t instanceof HTMLVideoElement||await o.reduce((t,n)=>t.then(()=>D(n,r)).then(t=>{t&&e.appendChild(t)}),Promise.resolve()),e}function T(t,e){const r=e.style;if(!r)return;const n=window.getComputedStyle(t);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):Object(v["h"])(n).forEach(t=>{let e=n.getPropertyValue(t);if("font-size"===t&&e.endsWith("px")){const t=Math.floor(parseFloat(e.substring(0,e.length-2)))-.1;e=t+"px"}r.setProperty(t,e,n.getPropertyPriority(t))})}function M(t,e){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function B(t,e){if(t instanceof HTMLSelectElement){const r=e,n=Array.from(r.children).find(e=>t.value===e.getAttribute("value"));n&&n.setAttribute("selected","")}}function k(t,e){return e instanceof Element&&(T(t,e),b(t,e),M(t,e),B(t,e)),e}async function D(t,e,r){return r||!e.filter||e.filter(t)?Promise.resolve(t).then(t=>x(t,e)).then(r=>S(t,r,e)).then(e=>k(t,e)):null}const P=/url\((['"]?)([^'"]+?)\1\)/g,L=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,R=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function O(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function N(t){const e=[];return t.replace(P,(t,r,n)=>(e.push(n),t)),e.filter(t=>!l(t))}async function I(t,e,r,n,o){try{const i=r?Object(v["g"])(e,r):e,a=u(e);let c;if(o){const t=await o(i);c=s(t,a)}else c=await d(i,a,n);return t.replace(O(e),`$1${c}$3`)}catch(i){}return t}function j(t,{preferredFontFormat:e}){return e?t.replace(R,t=>{while(1){const[r,,n]=L.exec(t)||[];if(!n)return"";if(n===e)return`src: ${r};`}}):t}function _(t){return-1!==t.search(P)}async function z(t,e,r){if(!_(t))return t;const n=j(t,r),o=N(n);return o.reduce((t,n)=>t.then(t=>I(t,n,e,r)),Promise.resolve(n))}async function $(t,e){var r;const n=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue("background");if(n){const r=await z(n,null,e);t.style.setProperty("background",r,t.style.getPropertyPriority("background"))}}async function H(t,e){if((!(t instanceof HTMLImageElement)||l(t.src))&&(!(t instanceof SVGImageElement)||l(t.href.baseVal)))return;const r=t instanceof HTMLImageElement?t.src:t.href.baseVal,n=await d(r,u(r),e);await new Promise((e,r)=>{t.onload=e,t.onerror=r,t instanceof HTMLImageElement?(t.srcset="",t.src=n):t.href.baseVal=n})}async function U(t,e){const r=Object(v["h"])(t.childNodes),n=r.map(t=>F(t,e));await Promise.all(n).then(()=>t)}async function F(t,e){t instanceof Element&&(await $(t,e),await H(t,e),await U(t,e))}function V(t,e){const{style:r}=t;e.backgroundColor&&(r.backgroundColor=e.backgroundColor),e.width&&(r.width=e.width+"px"),e.height&&(r.height=e.height+"px");const n=e.style;return null!=n&&Object.keys(n).forEach(t=>{r[t]=n[t]}),t}const q={};async function J(t){let e=q[t];if(null!=e)return e;const r=await fetch(t),n=await r.text();return e={url:t,cssText:n},q[t]=e,e}async function K(t,e){let r=t.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,o=r.match(/url\([^)]+\)/g)||[],i=o.map(async o=>{let i=o.replace(n,"$1");return i.startsWith("https://")||(i=new URL(i,t.url).href),f(i,e.fetchRequestInit,({result:t})=>(r=r.replace(o,`url(${t})`),[o,t]))});return Promise.all(i).then(()=>r)}function Y(t){if(null==t)return[];const e=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=t.replace(r,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");while(1){const t=o.exec(n);if(null===t)break;e.push(t[0])}n=n.replace(o,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",u=new RegExp(a,"gi");while(1){let t=i.exec(n);if(null===t){if(t=u.exec(n),null===t)break;i.lastIndex=u.lastIndex}else u.lastIndex=i.lastIndex;e.push(t[0])}return e}async function W(t,e){const r=[],n=[];return t.forEach(r=>{if("cssRules"in r)try{Object(v["h"])(r.cssRules||[]).forEach((t,o)=>{if(t.type===CSSRule.IMPORT_RULE){let i=o+1;const a=t.href,u=J(a).then(t=>K(t,e)).then(t=>Y(t).forEach(t=>{try{r.insertRule(t,t.startsWith("@import")?i+=1:r.cssRules.length)}catch(e){console.error("Error inserting rule from remote css",{rule:t,error:e})}})).catch(t=>{console.error("Error loading remote css",t.toString())});n.push(u)}})}catch(o){const i=t.find(t=>null==t.href)||document.styleSheets[0];null!=r.href&&n.push(J(r.href).then(t=>K(t,e)).then(t=>Y(t).forEach(t=>{i.insertRule(t,r.cssRules.length)})).catch(t=>{console.error("Error loading remote stylesheet",t.toString())})),console.error("Error inlining remote css file",o.toString())}}),Promise.all(n).then(()=>(t.forEach(t=>{if("cssRules"in t)try{Object(v["h"])(t.cssRules||[]).forEach(t=>{r.push(t)})}catch(e){console.error("Error while reading CSS rules from "+t.href,e.toString())}}),r))}function Q(t){return t.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>_(t.style.getPropertyValue("src")))}async function G(t,e){if(null==t.ownerDocument)throw new Error("Provided element is not within a Document");const r=Object(v["h"])(t.ownerDocument.styleSheets),n=await W(r,e);return Q(n)}async function X(t,e){const r=await G(t,e),n=await Promise.all(r.map(t=>{const r=t.parentStyleSheet?t.parentStyleSheet.href:null;return z(t.cssText,r,e)}));return n.join("\n")}async function Z(t,e){const r=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:await X(t,e);if(r){const e=document.createElement("style"),n=document.createTextNode(r);e.appendChild(n),t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}async function tt(t,e={}){const{width:r,height:n}=Object(v["d"])(t,e),o=await D(t,e,!0);await Z(o,e),await F(o,e),V(o,e);const i=await Object(v["f"])(o,r,n);return i}async function et(t,e={}){const{width:r,height:n}=Object(v["d"])(t,e),o=await tt(t,e),i=await Object(v["c"])(o),a=document.createElement("canvas"),u=a.getContext("2d"),c=e.pixelRatio||Object(v["e"])(),l=e.canvasWidth||r,s=e.canvasHeight||n;return a.width=l*c,a.height=s*c,e.skipAutoScale||Object(v["b"])(a),a.style.width=""+l,a.style.height=""+s,e.backgroundColor&&(u.fillStyle=e.backgroundColor,u.fillRect(0,0,a.width,a.height)),u.drawImage(i,0,0,a.width,a.height),a}async function rt(t,e={}){const r=await et(t,e);return r.toDataURL()}r.d(e,"a",(function(){return rt}))},f2e5:function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}var o=r("c31d"),i=r("e0d33"),a=r.n(i);r.d(e,"a",(function(){return M})); /*! qrcanvas v3.1.2 | ISC License */ var u="#000",c="#fff",l={createCanvas:s,isCanvas:f,isDrawable:h,getCanvas:g,updateCanvas:d,drawCanvas:v,drawText:w};function s(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function f(t){return t instanceof HTMLCanvasElement}function h(t){return f(t)||t instanceof HTMLImageElement}function g(t,e){return l.createCanvas(t,null==e?t:e)}function d(t,e,r){return t?(t.width=e,t.height=null==r?e:r,t):g(e,r)}function v(t,e,r){void 0===r&&(r={});var n=r,o=n.cellSize,i=n.context,a=n.clear,u=void 0===a||a,c=t.width,s=t.height,f=[e],h=i||t.getContext("2d");u&&h.clearRect(0,0,c,s),h.globalCompositeOperation="source-over";while(f.length){var g=f.shift();if(Array.isArray(g))f=g.concat(f);else if(g){var d=void 0;d=l.isDrawable(g)?{image:g}:"string"===typeof g?{style:g}:g;var v=(null==d.col?d.x:d.col*o)||0,w=(null==d.row?d.y:d.row*o)||0;v<0&&(v+=c),w<0&&(w+=c);var p=("cols"in d?d.cols*o:d.w)||c,y=("rows"in d?d.rows*o:d.h)||c;d.image?h.drawImage(d.image,v,w,p,y):(h.fillStyle=d.style||"black",h.fillRect(v,w,p,y))}}return t}function w(t,e){var r,n=e||{},o=n.fontSize,i=void 0===o?64:o,a=n.fontStyle,l=void 0===a?"":a,s=n.fontFamily,f=void 0===s?"Cursive":s,h=n.color,d=void 0===h?null:h,v=n.pad,w=void 0===v?8:v,p=n.padColor,y=void 0===p?c:p,m=n.mode,b=void 0===m?1:m,C=g(1),A=C.getContext("2d");if(y){A.fillStyle=y,A.fillRect(0,0,1,1);var x=A.getImageData(0,0,1,1);r=x.data,r[3]||(r=null)}var E=i+2*w,S=[l,i+"px",f].filter(Boolean).join(" "),T=function(){A.textAlign="center",A.textBaseline="middle",A.font=S};T();var M=Math.ceil(A.measureText(t).width)+2*w;C.width=M,C.height=E,T();var B=function(){A.fillStyle=d||u,A.fillText(t,M/2,E/2)};return 1===b?(A.fillStyle=y,A.fillRect(0,0,M,E),B()):(B(),r&&function(){for(var t=A.getImageData(0,0,M,E),e=t.data,n=M*E,o=[],i=0,a=function(t){var a=[],u={};o[i]=a,i=1-i;var c=o[i];if(!c){c=[];for(var l=0;l=0&&r<=e.length&&!u[t]&&(u[t]=1,a.push(t))}))})),a.forEach((function(t){var n=4*t;if(!e[n+3])for(var o=0;o<4;o+=1)e[n+o]=r[o]}))},u=0;u=i&&a+5<=i&&a+9>=i||7===r||7===a?1-.1*g:.25;var s=(1-l)/2;w.fillRect(u+s*n,c+s*n,l*n,l*n)}})),s(p,t.foreground,{cellSize:n,context:m}),m.globalCompositeOperation="destination-in",m.drawImage(h,0,0),s(y,p,{cellSize:n,clear:!1})})),y}function A(t,e){for(var r=t.cellSize,n=t.count,o=0;o=i||r<0||r>=i)&&o.isDark(t,r)},this.setOptions(t)}var e=t.prototype;return e.render=function(t,e){void 0===e&&(e={});var r,n,i,a=this.options,u=a.background,c=a.foreground,s=a.padding,f=a.effect,h=a.logo,g=a.resize,d=p[f.type]||p["default"],v=this.cache.count,w=l.drawCanvas,y=e,m=y.size,b=e,C=b.cellSize;t||C||m||(C=6),C&&(m=v*C+s+s),m?r=g||!t?l.updateCanvas(t,m):t:(m=t.width,r=t);var A=m-s-s,x=Math.ceil(A/v),E=x*v;if(n=l.getCanvas(x*v),w(n,u,{cellSize:x}),i=d(Object(o["a"])({foreground:c,cellSize:x,isDark:this.isDark},this.cache),this.options.effect),h){var S=Object(o["a"])({},h);if(!h.w&&!h.h&&!h.cols&&!h.rows){var T=h.image,M=T.width,B=T.height,k=M/B,D=Math.min((v-18)/v,.38),P=Math.min(B,E*D,E*D/k),L=P*k,R=(E-L)/2,O=(E-P)/2;S.w=L,S.h=P,S.x=R,S.y=O}w(i,S,{clear:!1})}return w(r,[{image:n},{image:i,x:s,y:s,w:A,h:A}]),r},e.setOptions=function(t){this.options=Object(o["a"])({},this.options,t),this.normalizeEffect(),this.normalizeLogo();var e=this.options,r=e.typeNumber,n=e.data,i=e.logo,u=this.options.correctLevel;i&&["Q","H"].indexOf(u)<0&&(u="H");var c=a()(r,u);c.addData(n||""),c.make();var l=c.getModuleCount();this.cache={qr:c,count:l}},e.normalizeEffect=function(){var t=this.options.effect;"string"===typeof t&&(t={type:t}),this.options.effect=t||{}},e.normalizeLogo=function(){var t=l.isDrawable,e=l.drawText,r=this.options.logo;r&&(t(r)?r={image:r}:t(r.image)||("string"===typeof r&&(r={text:r}),r="string"===typeof r.text?{image:e(r.text,r.options)}:null)),this.options.logo=r},t}();function M(t){var e=t.canvas,r=t.size,o=t.cellSize,i=n(t,["canvas","size","cellSize"]),a=new T(i);return a.render(e,{size:r,cellSize:o})}}}]);