PageSourceSearch

https://www.sportision.de/_next/static/chunks/582c77193755c254.js

js sportision.de collected 2026-10-02 11:07:29 UTC 48,918 bytes, 6 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="96895982-38be-7722-c023-cb82f3329ee3")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,949125,(t,e,i)=>{var r=t.r(190835);e.exports=function(t,e){return r(t,e)}},575423,t=>{"use strict";var e=t.i(191788),i=t.i(486779);t.s(["default",0,(t,r)=>{let n=(0,e.useRef)(r);(0,e.useEffect)(()=>{n.current=r},[r]),(0,e.useEffect)(()=>{if(!t)return;let e=!1,r=!1,o=null,s=()=>{r||(r=!0,(0,i.releasePusher)())};return(0,i.acquirePusher)().then(i=>{!i||e?s():(o=i,i.subscribe(t).bind_global((t,e)=>{t.startsWith("pusher:")||t.startsWith("pusher_internal:")||n.current(t,e)}))}),()=>{e=!0,o&&(o.unsubscribe(t),s())}},[t])}])},146583,(t,e,i)=>{var r=t.i(221168);t.e,e.exports=(()=>{var t={873:(t,e)=>{var i,r,n=function(){var t,e,i=function(t,e){var i=t,r=s[e],n=null,o=0,h=null,p=[],_={},m=function(t,e){n=function(t){for(var e=Array(t),i=0;i<t;i+=1){e[i]=Array(t);for(var r=0;r<t;r+=1)e[i][r]=null}return e}(o=4*i+17),b(0,0),b(o-7,0),b(0,o-7),x(),y(),C(t,e),i>=7&&S(t),null==h&&(h=O(i,r,p)),A(h,e)},b=function(t,e){for(var i=-1;i<=7;i+=1)if(!(t+i<=-1||o<=t+i))for(var r=-1;r<=7;r+=1)e+r<=-1||o<=e+r||(n[t+i][e+r]=0<=i&&i<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=r&&r<=4)},y=function(){for(var t=8;t<o-8;t+=1)null==n[t][6]&&(n[t][6]=t%2==0);for(var e=8;e<o-8;e+=1)null==n[6][e]&&(n[6][e]=e%2==0)},x=function(){for(var t=a.getPatternPosition(i),e=0;e<t.length;e+=1)for(var r=0;r<t.length;r+=1){var o=t[e],s=t[r];if(null==n[o][s])for(var h=-2;h<=2;h+=1)for(var u=-2;u<=2;u+=1)n[o+h][s+u]=-2==h||2==h||-2==u||2==u||0==h&&0==u}},S=function(t){for(var e=a.getBCHTypeNumber(i),r=0;r<18;r+=1){var s=!t&&1==(e>>r&1);n[Math.floor(r/3)][r%3+o-8-3]=s}for(r=0;r<18;r+=1)s=!t&&1==(e>>r&1),n[r%3+o-8-3][Math.floor(r/3)]=s},C=function(t,e){for(var i=r<<3|e,s=a.getBCHTypeInfo(i),h=0;h<15;h+=1){var u=!t&&1==(s>>h&1);h<6?n[h][8]=u:h<8?n[h+1][8]=u:n[o-15+h][8]=u}for(h=0;h<15;h+=1)u=!t&&1==(s>>h&1),h<8?n[8][o-h-1]=u:h<9?n[8][15-h-1+1]=u:n[8][15-h-1]=u;n[o-8][8]=!t},A=function(t,e){for(var i=-1,r=o-1,s=7,h=0,u=a.getMaskFunction(e),d=o-1;d>0;d-=2)for(6==d&&(d-=1);;){for(var l=0;l<2;l+=1)if(null==n[r][d-l]){var g=!1;h<t.length&&(g=1==(t[h]>>>s&1)),u(r,d-l)&&(g=!g),n[r][d-l]=g,-1==(s-=1)&&(h+=1,s=7)}if((r+=i)<0||o<=r){r-=i,i=-i;break}}},O=function(t,e,i){for(var r=d.getRSBlocks(t,e),n=l(),o=0;o<i.length;o+=1){var s=i[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var h=0;for(o=0;o<r.length;o+=1)h+=r[o].dataCount;if(n.getLengthInBits()>8*h)throw"code length overflow. ("+n.getLengthInBits()+">"+8*h+")";for(n.getLengthInBits()+4<=8*h&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*h||(n.put(236,8),n.getLengthInBits()>=8*h));)n.put(17,8);return function(t,e){for(var i=0,r=0,n=0,o=Array(e.length),s=Array(e.length),h=0;h<e.length;h+=1){var d=e[h].dataCount,l=e[h].totalCount-d;r=Math.max(r,d),n=Math.max(n,l),o[h]=Array(d);for(var g=0;g<o[h].length;g+=1)o[h][g]=255&t.getBuffer()[g+i];i+=d;var c=a.getErrorCorrectPolynomial(l),f=u(o[h],c.getLength()-1).mod(c);for(s[h]=Array(c.getLength()-1),g=0;g<s[h].length;g+=1){var w=g+f.getLength()-s[h].length;s[h][g]=w>=0?f.getAt(w):0}}var p=0;for(g=0;g<e.length;g+=1)p+=e[g].totalCount;var _=Array(p),v=0;for(g=0;g<r;g+=1)for(h=0;h<e.length;h+=1)g<o[h].length&&(_[v]=o[h][g],v+=1);for(g=0;g<n;g+=1)for(h=0;h<e.length;h+=1)g<s[h].length&&(_[v]=s[h][g],v+=1);return _}(n,r)};_.addData=function(t,e){var i=null;switch(e=e||"Byte"){case"Numeric":i=g(t);break;case"Alphanumeric":i=c(t);break;case"Byte":i=f(t);break;case"Kanji":i=w(t);break;default:throw"mode:"+e}p.push(i),h=null},_.isDark=function(t,e){if(t<0||o<=t||e<0||o<=e)throw t+","+e;return n[t][e]},_.getModuleCount=function(){return o},_.make=function(){if(i<1){for(var t=1;t<40;t++){for(var e=d.getRSBlocks(t,r),n=l(),o=0;o<p.length;o++){var s=p[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var h=0;for(o=0;o<e.length;o++)h+=e[o].dataCount;if(n.getLengthInBits()<=8*h)break}i=t}m(!1,function(){for(var t=0,e=0,i=0;i<8;i+=1){m(!0,i);var r=a.getLostPoint(_);(0==i||t>r)&&(t=r,e=i)}return e}())},_.createTableTag=function(t,e){t=t||2;var i="";i+='<table style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: '+(e=void 0===e?4*t:e)+'px;"><tbody>';for(var r=0;r<_.getModuleCount();r+=1){i+="<tr>";for(var n=0;n<_.getModuleCount();n+=1)i+='<td style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: 0px; width: '+t+"px; height: "+t+"px; background-color: "+(_.isDark(r,n)?"#000000":"#ffffff")+';"/>';i+="</tr>"}return(i+="</tbody>")+"</table>"}
vendor: 5,050 bytes, line 2
2,_.createSvgTag=function(t,e,i,r){var n={};"object"==typeof arguments[0]&&(t=(n=arguments[0]).cellSize,e=n.margin,i=n.alt,r=n.title),t=t||2,e=void 0===e?4*t:e,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,s,a,h,u=_.getModuleCount()*t+2*e,d="";for(h="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=n.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||i.text?' role="img" aria-labelledby="'+M([r.id,i.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+M(r.id)+'">'+M(r.text)+"</title>":"",d+=i.text?'<description id="'+M(i.id)+'">'+M(i.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',s=0;s<_.getModuleCount();s+=1)for(a=s*t+e,o=0;o<_.getModuleCount();o+=1)_.isDark(s,o)&&(d+="M"+(o*t+e)+","+a+h);return(d+='" stroke="transparent" fill="black"/>')+"</svg>"},_.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var i=_.getModuleCount()*t+2*e,r=e,n=i-e;return v(i,i,function(e,i){if(r<=e&&e<n&&r<=i&&i<n){var o=Math.floor((e-r)/t),s=Math.floor((i-r)/t);return+!_.isDark(s,o)}return 1})},_.createImgTag=function(t,e,i){t=t||2,e=void 0===e?4*t:e;var r=_.getModuleCount()*t+2*e,n="";return n+="<img",n+=' src="',n+=_.createDataURL(t,e),n+='"',n+=' width="',n+=r,n+='"',n+=' height="',n+=r,n+='"',i&&(n+=' alt="',n+=M(i),n+='"'),n+"/>"};var M=function(t){for(var e="",i=0;i<t.length;i+=1){var r=t.charAt(i);switch(r){case"<":e+="&lt;";break;case">":e+="&gt;";break;case"&":e+="&amp;";break;case'"':e+="&quot;";break;default:e+=r}}return e};return _.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,i,r,n,o,s=+_.getModuleCount()+2*t,a=t,h=s-t,u={"██":"█","█ ":"▀"," █":"▄","  ":" "},d={"██":"▀","█ ":"▀"," █":" ","  ":" "},l="";for(e=0;e<s;e+=2){for(r=Math.floor((e-a)/1),n=Math.floor((e+1-a)/1),i=0;i<s;i+=1)o="█",a<=i&&i<h&&a<=e&&e<h&&_.isDark(r,Math.floor((i-a)/1))&&(o=" "),a<=i&&i<h&&a<=e+1&&e+1<h&&_.isDark(n,Math.floor((i-a)/1))?o+=" ":o+="█",l+=t<1&&e+1>=h?d[o]:u[o];l+="\n"}return s%2&&t>0?l.substring(0,l.length-s-1)+Array(s+1).join("▀"):l.substring(0,l.length-1)}(e);t-=1,e=void 0===e?2*t:e;var i,r,n,o,s=_.getModuleCount()*t+2*e,a=e,h=s-e,u=Array(t+1).join("██"),d=Array(t+1).join("  "),l="",g="";for(i=0;i<s;i+=1){for(n=Math.floor((i-a)/t),g="",r=0;r<s;r+=1)o=1,a<=r&&r<h&&a<=i&&i<h&&_.isDark(n,Math.floor((r-a)/t))&&(o=0),g+=o?u:d;for(n=0;n<t;n+=1)l+=g+"\n"}return l.substring(0,l.length-1)},_.renderTo2dContext=function(t,e){e=e||2;for(var i=_.getModuleCount(),r=0;r<i;r++)for(var n=0;n<i;n++)t.fillStyle=_.isDark(r,n)?"black":"white",t.fillRect(r*e,n*e,e,e)},_};i.stringToBytes=(i.stringToBytesFuncs={default:function(t){for(var e=[],i=0;i<t.length;i+=1){var r=t.charCodeAt(i);e.push(255&r)}return e}}).default,i.createStringToBytes=function(t,e){var i=function(){for(var i=_(t),r=function(){var t=i.read();if(-1==t)throw"eof";return t},n=0,o={};;){var s=i.read();if(-1==s)break;var a=r(),h=r()<<8|r();o[String.fromCharCode(s<<8|a)]=h,n+=1}if(n!=e)throw n+" != "+e;return o}();return function(t){for(var e=[],r=0;r<t.length;r+=1){var n=t.charCodeAt(r);if(n<128)e.push(n);else{var o=i[t.charAt(r)];"number"==typeof o?(255&o)==o?e.push(o):(e.push(o>>>8),e.push(255&o)):e.push(63)}}return e}};var r,n,o,s={L:1,M:0,Q:3,H:2},a=(r=[[],[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]],o=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(n={}).getBCHTypeInfo=function(t){for(var e=t<<10;o(e)-o(1335)>=0;)e^=1335<<o(e)-o(1335);return 21522^(t<<10|e)},n.getBCHTypeNumber=function(t){for(var e=t<<12;o(e)-o(7973)>=0;)e^=7973<<o(e)-o(7973);return t<<12|e},n.getPatternPosition=function(t){return r[t-1]},n.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},n.getErrorCorrectPolynomial=function(t){for(var e=u([1],0),i=0;i<t;
2i+=1)e=e.multiply(u([1,h.gexp(i)],0));return e},n.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}},n.getLostPoint=function(t){for(var e=t.getModuleCount(),i=0,r=0;r<e;r+=1)for(var n=0;n<e;n+=1){for(var o=0,s=t.isDark(r,n),a=-1;a<=1;a+=1)if(!(r+a<0||e<=r+a))for(var h=-1;h<=1;h+=1)n+h<0||e<=n+h||0==a&&0==h||s==t.isDark(r+a,n+h)&&(o+=1);o>5&&(i+=3+o-5)}for(r=0;r<e-1;r+=1)for(n=0;n<e-1;n+=1){var u=0;t.isDark(r,n)&&(u+=1),t.isDark(r+1,n)&&(u+=1),t.isDark(r,n+1)&&(u+=1),t.isDark(r+1,n+1)&&(u+=1),0!=u&&4!=u||(i+=3)}for(r=0;r<e;r+=1)for(n=0;n<e-6;n+=1)t.isDark(r,n)&&!t.isDark(r,n+1)&&t.isDark(r,n+2)&&t.isDark(r,n+3)&&t.isDark(r,n+4)&&!t.isDark(r,n+5)&&t.isDark(r,n+6)&&(i+=40);for(n=0;n<e;n+=1)for(r=0;r<e-6;r+=1)t.isDark(r,n)&&!t.isDark(r+1,n)&&t.isDark(r+2,n)&&t.isDark(r+3,n)&&t.isDark(r+4,n)&&!t.isDark(r+5,n)&&t.isDark(r+6,n)&&(i+=40);var d=0;for(n=0;n<e;n+=1)for(r=0;r<e;r+=1)t.isDark(r,n)&&(d+=1);return i+Math.abs(100*d/e/e-50)/5*10},n),h=function(){for(var t=Array(256),e=Array(256),i=0;i<8;i+=1)t[i]=1<<i;for(i=8;i<256;i+=1)t[i]=t[i-4]^t[i-5]^t[i-6]^t[i-8];for(i=0;i<255;i+=1)e[t[i]]=i;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}}}();function u(t,e){if(void 0===t.length)throw t.length+"/"+e;var i=function(){for(var i=0;i<t.length&&0==t[i];)i+=1;for(var r=Array(t.length-i+e),n=0;n<t.length-i;n+=1)r[n]=t[n+i];return r}(),r={getAt:function(t){return i[t]},getLength:function(){return i.length},multiply:function(t){for(var e=Array(r.getLength()+t.getLength()-1),i=0;i<r.getLength();i+=1)for(var n=0;n<t.getLength();n+=1)e[i+n]^=h.gexp(h.glog(r.getAt(i))+h.glog(t.getAt(n)));return u(e,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var e=h.glog(r.getAt(0))-h.glog(t.getAt(0)),i=Array(r.getLength()),n=0;n<r.getLength();n+=1)i[n]=r.getAt(n);for(n=0;n<t.getLength();n+=1)i[n]^=h.gexp(h.glog(t.getAt(n))+e);return u(i,0).mod(t)}};return r}var d=(t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var i={};return i.totalCount=t,i.dataCount=e,i},{getRSBlocks:function(i,r){var n=function(e,i){switch(i){case s.L:return t[4*(e-1)+0];case s.M:return t[4*(e-1)+1];case s.Q:return t[4*(e-1)+2];case s.H:return t[4*(e-1)+3];default:return}}(i,r);if(void 0===n)throw"bad rs block @ typeNumber:"+i+"/errorCorrectionLevel:"+r;for(var o=n.length/3,a=[],h=0;h<o;h+=1)for(var u=n[3*h+0],d=n[3*h+1],l=n[3*h+2],g=0;g<u;g+=1)a.push(e(d,l));return a}}),l=function(){var t=[],e=0,i={getBuffer:function(){return t},getAt:function(e){return 1==(t[Math.floor(e/8)]>>>7-e%8&1)},put:function(t,e){for(var r=0;r<e;r+=1)i.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return e},putBit:function(i){var r=Math.floor(e/8);t.length<=r&&t.push(0),i&&(t[r]|=128>>>e%8),e+=1}};return i},g=function(t){var e=function(t){for(var e=0,r=0;r<t.length;r+=1)e=10*e+i(t.charAt(r));return e},i=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-48;throw"illegal char :"+t};return{getMode:function(){return 1},getLength:function(e){return t.length},write:function(i){for(var r=0;r+2<t.length;)i.put(e(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?i.put(e(t.substring(r,r+1)),4):t.length-r==2&&i.put(e(t.substring(r,r+2)),7))}}},c=function(t){var e=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-48;if("A"<=t&&t<="Z")return t.charCodeAt(0)-65+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return{getMode:function(){return 2},getLength:function(e){return t.length},write:function(i){for(var r=0;r+1<t.length;)i.put(45*e(t.charAt(r))+e(t.charAt(r+1)),11),r+=2;r<t.length&&i.put(e(t.charAt(r)),6)}}},f=function(t){var e=i.stringToBytes(t);return{getMode:function(){return 4},getLength:function(t){return e.length},write:function(t){for(var i=0;i<e.length;i+=1)t.put(e[i],8)}}},w=function(t){var e=i.stringToBytesFuncs.SJIS;if(!e)throw"sjis not supported.";var r=e("友");
2if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported.";var n=e(t);return{getMode:function(){return 8},getLength:function(t){return~~(n.length/2)},write:function(t){for(var e=0;e+1<n.length;){var i=(255&n[e])<<8|255&n[e+1];if(33088<=i&&i<=40956)i-=33088;else{if(!(57408<=i&&i<=60351))throw"illegal char at "+(e+1)+"/"+i;i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13),e+=2}if(e<n.length)throw"illegal char at "+(e+1)}}},p=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,i,r){i=i||0,r=r||t.length;for(var n=0;n<r;n+=1)e.writeByte(t[n+i])},writeString:function(t){for(var i=0;i<t.length;i+=1)e.writeByte(t.charCodeAt(i))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var i=0;i<t.length;i+=1)i>0&&(e+=","),e+=t[i];return e+"]"}};return e},_=function(t){var e=0,i=0,r=0,n=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{read:function(){for(;r<8;){if(e>=t.length){if(0==r)return -1;throw"unexpected end of file./"+r}var o=t.charAt(e);if(e+=1,"="==o)return r=0,-1;o.match(/^\s$/)||(i=i<<6|n(o.charCodeAt(0)),r+=6)}var s=i>>>r-8&255;return r-=8,s}}},v=function(t,e,i){for(var r,n,o,s,a,h,u,d,l,g,c=(r=Array(t*e),n=function(t){for(var e=1<<t,i=1+(1<<t),n=t+1,s=o(),a=0;a<e;a+=1)s.add(String.fromCharCode(a));s.add(String.fromCharCode(e)),s.add(String.fromCharCode(i));var h,u,d=p(),l=(h=0,u=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;h+e>=8;)d.writeByte(255&(t<<h|u)),e-=8-h,t>>>=8-h,u=0,h=0;u|=t<<h,h+=e},flush:function(){h>0&&d.writeByte(u)}});l.write(e,n);var g=0,c=String.fromCharCode(r[0]);for(g+=1;g<r.length;){var f=String.fromCharCode(r[g]);g+=1,s.contains(c+f)?c+=f:(l.write(s.indexOf(c),n),4095>s.size()&&(s.size()==1<<n&&(n+=1),s.add(c+f)),c=f)}return l.write(s.indexOf(c),n),l.write(i,n),l.flush(),d.toByteArray()},o=function(){var t={},e=0,i={add:function(r){if(i.contains(r))throw"dup key:"+r;t[r]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return i},{setPixel:function(e,i,n){r[i*t+e]=n},write:function(i){i.writeString("GIF87a"),i.writeShort(t),i.writeShort(e),i.writeByte(128),i.writeByte(0),i.writeByte(0),i.writeByte(0),i.writeByte(0),i.writeByte(0),i.writeByte(255),i.writeByte(255),i.writeByte(255),i.writeString(","),i.writeShort(0),i.writeShort(0),i.writeShort(t),i.writeShort(e),i.writeByte(0);var r=n(2);i.writeByte(2);for(var o=0;r.length-o>255;)i.writeByte(255),i.writeBytes(r,o,255),o+=255;i.writeByte(r.length-o),i.writeBytes(r,o,r.length-o),i.writeByte(0),i.writeString(";")}}),f=0;f<e;f+=1)for(var w=0;w<t;w+=1)c.setPixel(w,f,i(w,f));var _=p();c.write(_);for(var v=(s=0,a=0,h=0,u="",d={},l=function(t){u+=String.fromCharCode(g(63&t))},g=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},d.writeByte=function(t){for(s=s<<8|255&t,a+=8,h+=1;a>=6;)l(s>>>a-6),a-=6},d.flush=function(){if(a>0&&(l(s<<6-a),s=0,a=0),h%3!=0)for(var t=3-h%3,e=0;e<t;e+=1)u+="="},d.toString=function(){return u},d),m=_.toByteArray(),b=0;b<m.length;b+=1)v.writeByte(m[b]);return v.flush(),"data:image/gif;base64,"+v};return i}();n.stringToBytesFuncs["UTF-8"]=function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||r>=57344?e.push(224|r>>12,128|r>>6&63,128|63&r):(i++,r=65536+((1023&r)<<10|1023&t.charCodeAt(i)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e},void 0===(r="function"==typeof(i=function(){return n})?i.apply(e,[]):i)||(t.exports=r)}},e={};function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{"use strict";i.d(n,{default:()=>M});let t=t=>!!t&&"object"==typeof t&&!Array.isArray(t);function e(i,...r){if(!r.length)return i;let n=r.shift();return void 0!==n&&t(i)&&t(n)?(i=Object.assign({}
2,i),Object.keys(n).forEach(r=>{let o=i[r],s=n[r];Array.isArray(o)&&Array.isArray(s)?i[r]=s:t(o)&&t(s)?i[r]=e(Object.assign({},o),s):i[r]=s}),e(i,...r)):i}function o(t,e){let i=document.createElement("a");i.download=e,i.href=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}let s={L:.07,M:.15,Q:.25,H:.3};class a{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;switch(this._type){case"dots":n=this._drawDot;break;case"classy":n=this._drawClassy;break;case"classy-rounded":n=this._drawClassyRounded;break;case"rounded":n=this._drawRounded;break;case"extra-rounded":n=this._drawExtraRounded;break;default:n=this._drawSquare}n.call(this,{x:t,y:e,size:i,getNeighbor:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;n(),null==(o=this._element)||o.setAttribute("transform",`rotate(${180*r/Math.PI},${t+i/2},${e+i/2})`)}_basicDot(t){let{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(i+e/2)),this._element.setAttribute("cy",String(r+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){let{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(i)),this._element.setAttribute("y",String(r)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_basicSideRounded(t){let{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, 0 ${-e}`)}}))}_basicCornerRounded(t){let{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}v `+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_basicCornerExtraRounded(t){let{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}a ${e} ${e}, 0, 0, 0, ${-e} ${-e}`)}}))}_basicCornersRounded(t){let{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${e/2} ${e/2}h `+e/2+"v "+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_drawDot({x:t,y:e,size:i}){this._basicDot({x:t,y:e,size:i,rotation:0})}_drawSquare({x:t,y:e,size:i}){this._basicSquare({x:t,y:e,size:i,rotation:0})}_drawRounded({x:t,y:e,size:i,getNeighbor:r}){let n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0,h=n+o+s+a;if(0!==h)if(h>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:i,rotation:0});else{if(2===h){let r=0;return n&&s?r=Math.PI/2:s&&o?r=Math.PI:o&&a&&(r=-Math.PI/2),void this._basicCornerRounded({x:t,y:e,size:i,rotation:r})}if(1===h){let r=0;return s?r=Math.PI/2:o?r=Math.PI:a&&(r=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:i,rotation:r})}}else this._basicDot({x:t,y:e,size:i,rotation:0})}_drawExtraRounded({x:t,y:e,size:i,getNeighbor:r}){let n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0,h=n+o+s+a;if(0!==h)if(h>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:i,rotation:0});else{if(2===h){let r=0;return n&&s?r=Math.PI/2:s&&o?r=Math.PI:o&&a&&(r=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:r})}if(1===h){let r=0;return s?r=Math.PI/2:o?r=Math.PI:a&&(r=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:i,rotation:r})}}else this._basicDot({x:t,y:e,size:i,rotation:0})}_drawClassy({x:t,y:e,size:i,getNeighbor:r}){let n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:i,rotation:0}):this._basicCornerRounded({x:t,y:e,size:i,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:e,size:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:i,rotation:Math.PI/2})}_drawClassyRounded({x:t,y:e,size:i,getNeighbor:r}){let n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:i,rotation:0}):this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:i,rotation:Math.PI/2})}}let h={dot:"dot",square:"square",extraRounded:"extra-rounded"},u=Object.values(h);class d{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;switch(this._type){case h.square:n=this._drawSquare;break;case h.extraRounded:n=this._drawExtraRounded;break;default:n=this._drawDot}n.call(this,{x:t,y:e,size:i,rotation:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;n(),null==(o=this._element)||o.setAttribute("transform",`rotate(${180*r/Math.PI},${t+i/2},${e+i/2})`)}_basicDot(t){let{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i+e/2} ${r}a ${e/2} ${e/2} 0 1 0 0.1 0zm 0 ${n}a ${e/2-n} ${e/2-n} 0 1 1 -0.1 0Z`)}}))}_basicSquare(t){let{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}v `+-e+"z"+`M ${i+n} ${r+n}h `+(e-2*n)+"v "+(e-2*n)+"h "+(2*n-e)+"z")}}))}_basicExtraRounded(t){let{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i} ${r+2.5*n}v `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${2.5*n}h `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${-(2.5*n)}v `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${-(2.5*n)} ${-(2.5*n)}h `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${-(2.5*n)} ${2.5*n}`+`M ${i+2.5*n} ${r+n}h `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${1.5*n}v `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${-(1.5*n)} ${1.5*n}h `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${-(1.5*n)} ${-(1.5*n)}v `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${-(1.5*n)}`)}}))}_drawDot({x:t,y:e,size:i,rotation:r}){this._basicDot({x:t,y:e,size:i,rotation:r})}_drawSquare({x:t,y:e,size:i,rotation:r}){this._basicSquare({x:t,y:e,size:i,rotation:r})}_drawExtraRounded({x:t,y:e,size:i,rotation:r}){this._basicExtraRounded({x:t,y:e,size:i,rotation:r})}}let l={dot:"dot",square:"square"},g=Object.values(l);class c{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){(this._type===l.square?this._drawSquare:this._drawDot).call(this,{x:t,y:e,size:i,rotation:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;n(),null==(o=this._element)||o.setAttribute("transform",`rotate(${180*r/Math.PI},${t+i/2},${e+i/2})`)}_basicDot(t){let{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(i+e/2)),this._element.setAttribute("cy",String(r+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){let{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(i)),this._element.setAttribute("y",String(r)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_drawDot({x:t,y:e,size:i,rotation:r}){this._basicDot({x:t,y:e,size:i,rotation:r})}_drawSquare({x:t,y:e,size:i,rotation:r}){this._basicSquare({x:t,y:e,size:i,rotation:r})}}let f="circle",w=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],p=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class _{constructor(t,e){this._roundSize=t=>this._options.dotsOptions.roundSize?Math.floor(t):t,this._window=e,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),t.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${t.width} ${t.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=t.image,this._instanceId=_.instanceCount++,this._options=t}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(t){let e=t.getModuleCount(),i=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===f?i/Math.sqrt(2):i,n=this._roundSize(r/e),o={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=t,this._options.image){if(await this.loadImage(),!this._image)return;let{imageOptions:t,qrOptions:i}=this._options,r=Math.floor(t.imageSize*s[i.errorCorrectionLevel]*e*e);o=function({originalHeight:t,originalWidth:e,maxHiddenDots:i,maxHiddenAxisDots:r,dotSize:n}){let o={x:0,y:0},s={x:0,y:0};if(t<=0||e<=0||i<=0||n<=0)return{height:0,width:0,hideYDots:0,hideXDots:0}
2;let a=t/e;return o.x=Math.floor(Math.sqrt(i/a)),o.x<=0&&(o.x=1),r&&r<o.x&&(o.x=r),o.x%2==0&&o.x--,s.x=o.x*n,o.y=1+2*Math.ceil((o.x*a-1)/2),s.y=Math.round(s.x*a),(o.y*o.x>i||r&&r<o.y)&&(r&&r<o.y?(o.y=r,o.y%2==0&&o.x--):o.y-=2,s.y=o.y*n,o.x=1+2*Math.ceil((o.y/a-1)/2),s.x=Math.round(s.y/a)),{height:s.y,width:s.x,hideYDots:o.y,hideXDots:o.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:r,maxHiddenAxisDots:e-14,dotSize:n})}this.drawBackground(),this.drawDots((t,i)=>{var r,n,s,a,h,u;return!(this._options.imageOptions.hideBackgroundDots&&t>=(e-o.hideYDots)/2&&t<(e+o.hideYDots)/2&&i>=(e-o.hideXDots)/2&&i<(e+o.hideXDots)/2||(null==(r=w[t])?void 0:r[i])||(null==(n=w[t-e+7])?void 0:n[i])||(null==(s=w[t])?void 0:s[i-e+7])||(null==(a=p[t])?void 0:a[i])||(null==(h=p[t-e+7])?void 0:h[i])||(null==(u=p[t])?void 0:u[i-e+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:o.width,height:o.height,count:e,dotSize:n})}drawBackground(){var t,e,i;let r=this._element,n=this._options;if(r){let r=null==(t=n.backgroundOptions)?void 0:t.gradient,o=null==(e=n.backgroundOptions)?void 0:e.color,s=n.height,a=n.width;if(r||o){let t=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),(null==(i=n.backgroundOptions)?void 0:i.round)&&(s=a=Math.min(n.width,n.height),t.setAttribute("rx",String(s/2*n.backgroundOptions.round))),t.setAttribute("x",String(this._roundSize((n.width-a)/2))),t.setAttribute("y",String(this._roundSize((n.height-s)/2))),t.setAttribute("width",String(a)),t.setAttribute("height",String(s)),this._backgroundClipPath.appendChild(t),this._createColor({options:r,color:o,additionalRotation:0,x:0,y:0,height:n.height,width:n.width,name:`background-color-${this._instanceId}`})}}}drawDots(t){var e,i;if(!this._qr)throw"QR code is not defined";let r=this._options,n=this._qr.getModuleCount();if(n>r.width||n>r.height)throw"The canvas is too small.";let o=Math.min(r.width,r.height)-2*r.margin,s=r.shape===f?o/Math.sqrt(2):o,h=this._roundSize(s/n),u=this._roundSize((r.width-n*h)/2),d=this._roundSize((r.height-n*h)/2),l=new a({svg:this._element,type:r.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null==(e=r.dotsOptions)?void 0:e.gradient,color:r.dotsOptions.color,additionalRotation:0,x:0,y:0,height:r.height,width:r.width,name:`dot-color-${this._instanceId}`});for(let e=0;e<n;e++)for(let r=0;r<n;r++)t&&!t(e,r)||(null==(i=this._qr)?void 0:i.isDark(e,r))&&(l.draw(u+r*h,d+e*h,h,(i,o)=>!(r+i<0||e+o<0||r+i>=n||e+o>=n)&&!(t&&!t(e+o,r+i))&&!!this._qr&&this._qr.isDark(e+o,r+i)),l._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(l._element));if(r.shape===f){let t=this._roundSize((o/h-n)/2),e=n+2*t,i=u-t*h,r=d-t*h,s=[],a=this._roundSize(e/2);for(let i=0;i<e;i++){s[i]=[];for(let r=0;r<e;r++)i>=t-1&&i<=e-t&&r>=t-1&&r<=e-t||Math.sqrt((i-a)*(i-a)+(r-a)*(r-a))>a?s[i][r]=0:s[i][r]=+!!this._qr.isDark(r-2*t<0?r:r>=n?r-2*t:r-t,i-2*t<0?i:i>=n?i-2*t:i-t)}for(let t=0;t<e;t++)for(let n=0;n<e;n++)s[t][n]&&(l.draw(i+n*h,r+t*h,h,(e,i)=>{var r;return!!(null==(r=s[t+i])?void 0:r[n+e])}),l._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(l._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";let t=this._element,e=this._options;if(!t)throw"Element code is not defined";let i=this._qr.getModuleCount(),r=Math.min(e.width,e.height)-2*e.margin,n=e.shape===f?r/Math.sqrt(2):r,o=this._roundSize(n/i),s=7*o,h=3*o,l=this._roundSize((e.width-i*o)/2),_=this._roundSize((e.height-i*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([t,r,n])=>{var f,v,m,b,y,x,S,C,A,O,M,$,D,k;let z=l+t*o*(i-7),B=_+r*o*(i-7),P=this._dotsClipPath,q=this._dotsClipPath;if(((null==(f=e.cornersSquareOptions)?void 0:f.gradient)||(null==(v=e.cornersSquareOptions)?void 0:v.color))&&((P=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id",`clip-path-corners-square-color-${t}-${r}-${this._instanceId}`),this._defs.appendChild(P),this._cornersSquareClipPath=this._cornersDotClipPath=q=P,this._createColor({options:null==(m=e.cornersSquareOptions)?void 0:m.gradient,color:null==(b=e.cornersSquareOptions)?void 0:b.color,additionalRotation:n,x:z,y:B,height:s,width:s,name:`corners-square-color-${t}-${r}-${this._instanceId}`})),(null==(y=e.cornersSquareOptions)?void 0:y.type)&&u.includes(e.cornersSquareOptions.type)){let t=new d({svg:this._element,type:e.cornersSquareOptions.type,window:this._window});t.draw(z,B,s,n),t._element&&P&&P.appendChild(t._element)}else{let t=new a({svg:this._element,type:(null==(x=e.cornersSquareOptions)?void 0:x.type)||e.dotsOptions.type,window:this._window});for(let e=0;e<w.length;e++)for(let i=0;i<w[e].length;i++)(null==(S=w[e])?void 0:S[i])&&(t.draw(z+i*o,B+e*o,o,(t,r)=>{var n;return!!(null==(n=w[e+r])?void 0:n[i+t])}),t._element&&P&&P.appendChild(t._element))}if(((null==(C=e.cornersDotOptions)?void 0:C.gradient)||(null==(A=e.cornersDotOptions)?void 0:A.color))&&((q=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id",`clip-path-corners-dot-color-${t}-${r}-${this._instanceId}`),this._defs.appendChild(q),this._cornersDotClipPath=q,this._createColor({options:null==(O=e.cornersDotOptions)?void 0:O.gradient,color:null==(M=e.cornersDotOptions)?void 0:M.color,additionalRotation:n,x:z+2*o,y:B+2*o,height:h,width:h,name:`corners-dot-color-${t}-${r}-${this._instanceId}`})),(null==($=e.cornersDotOptions)?void 0:$.type)&&g.includes(e.cornersDotOptions.type)){let t=new c({svg:this._element,type:e.cornersDotOptions.type,window:this._window});t.draw(z+2*o,B+2*o,h,n),t._element&&q&&q.appendChild(t._element)}else{let t=new a({svg:this._element,type:(null==(D=e.cornersDotOptions)?void 0:D.type)||e.dotsOptions.type,window:this._window});for(let e=0;e<p.length;e++)for(let i=0;i<p[e].length;i++)(null==(k=p[e])?void 0:k[i])&&(t.draw(z+i*o,B+e*o,o,(t,r)=>{var n;return!!(null==(n=p[e+r])?void 0:n[i+t])}),t._element&&q&&q.appendChild(t._element))}})}loadImage(){return new Promise((t,e)=>{var i;let r=this._options;if(!r.image)return e("Image is not defined");
2if(null==(i=r.nodeCanvas)?void 0:i.loadImage)r.nodeCanvas.loadImage(r.image).then(e=>{var i,n;if(this._image=e,this._options.imageOptions.saveAsBlob){let t=null==(i=r.nodeCanvas)?void 0:i.createCanvas(this._image.width,this._image.height);null==(n=null==t?void 0:t.getContext("2d"))||n.drawImage(e,0,0),this._imageUri=null==t?void 0:t.toDataURL()}t()}).catch(e);else{let e=new this._window.Image;"string"==typeof r.imageOptions.crossOrigin&&(e.crossOrigin=r.imageOptions.crossOrigin),this._image=e,e.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(t,e){return new Promise(i=>{let r=new e.XMLHttpRequest;r.onload=function(){let t=new e.FileReader;t.onloadend=function(){i(t.result)},t.readAsDataURL(r.response)},r.open("GET",t),r.responseType="blob",r.send()})}(r.image||"",this._window)),t()},e.src=r.image}})}async drawImage({width:t,height:e,count:i,dotSize:r}){let n=this._options,o=this._roundSize((n.width-i*r)/2),s=this._roundSize((n.height-i*r)/2),a=o+this._roundSize(n.imageOptions.margin+(i*r-t)/2),h=s+this._roundSize(n.imageOptions.margin+(i*r-e)/2),u=t-2*n.imageOptions.margin,d=e-2*n.imageOptions.margin,l=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");l.setAttribute("href",this._imageUri||""),l.setAttribute("xlink:href",this._imageUri||""),l.setAttribute("x",String(a)),l.setAttribute("y",String(h)),l.setAttribute("width",`${u}px`),l.setAttribute("height",`${d}px`),this._element.appendChild(l)}_createColor({options:t,color:e,additionalRotation:i,x:r,y:n,height:o,width:s,name:a}){let h=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(h.setAttribute("x",String(r)),h.setAttribute("y",String(n)),h.setAttribute("height",String(o)),h.setAttribute("width",String(s)),h.setAttribute("clip-path",`url('#clip-path-${a}')`),t){let e;if("radial"===t.type)(e=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("fx",String(r+s/2)),e.setAttribute("fy",String(n+o/2)),e.setAttribute("cx",String(r+s/2)),e.setAttribute("cy",String(n+o/2)),e.setAttribute("r",String((s>o?s:o)/2));else{let h=((t.rotation||0)+i)%(2*Math.PI),u=(h+2*Math.PI)%(2*Math.PI),d=r+s/2,l=n+o/2,g=r+s/2,c=n+o/2;u>=0&&u<=.25*Math.PI||u>1.75*Math.PI&&u<=2*Math.PI?(d-=s/2,l-=o/2*Math.tan(h),g+=s/2,c+=o/2*Math.tan(h)):u>.25*Math.PI&&u<=.75*Math.PI?(l-=o/2,d-=s/2/Math.tan(h),c+=o/2,g+=s/2/Math.tan(h)):u>.75*Math.PI&&u<=1.25*Math.PI?(d+=s/2,l+=o/2*Math.tan(h),g-=s/2,c-=o/2*Math.tan(h)):u>1.25*Math.PI&&u<=1.75*Math.PI&&(l+=o/2,d+=s/2/Math.tan(h),c-=o/2,g-=s/2/Math.tan(h)),(e=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("x1",String(Math.round(d))),e.setAttribute("y1",String(Math.round(l))),e.setAttribute("x2",String(Math.round(g))),e.setAttribute("y2",String(Math.round(c)))}t.colorStops.forEach(({offset:t,color:i})=>{let r=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",i),e.appendChild(r)}),h.setAttribute("fill",`url('#${a}')`),this._defs.appendChild(e)}else e&&h.setAttribute("fill",e);this._element.appendChild(h)}}_.instanceCount=0;let v="canvas",m={};for(let t=0;t<=40;t++)m[t]=t;let b={type:v,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:m[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function y(t){let e=Object.assign({},t);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map(t=>Object.assign(Object.assign({},t),{offset:Number(t.offset)})),e}function x(t){let e=Object.assign({},t);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=Object.assign(Object.assign({}
2,e.imageOptions),{hideBackgroundDots:!!e.imageOptions.hideBackgroundDots,imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=Object.assign({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=y(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=Object.assign({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=y(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=Object.assign({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=y(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=Object.assign({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=y(e.backgroundOptions.gradient))),e}var S=i(873),C=i.n(S);function A(t){if(!t)throw Error("Extension must be defined");"."===t[0]&&(t=t.substring(1));let e={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[t.toLowerCase()];if(!e)throw Error(`Extension "${t}" is not supported`);return e}class O{constructor(t){(null==t?void 0:t.jsdom)?this._window=new t.jsdom("",{resources:"usable"}).window:this._window=window,this._options=t?x(e(b,t)):b,this.update()}static _clearContainer(t){t&&(t.innerHTML="")}_setupSvg(){if(!this._qr)return;let t=new _(this._options,this._window);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then(()=>{var e;this._svg&&(null==(e=this._extension)||e.call(this,t.getElement(),this._options))})}_setupCanvas(){var t,e;this._qr&&((null==(t=this._options.nodeCanvas)?void 0:t.createCanvas)?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=null==(e=this._svgDrawingPromise)?void 0:e.then(()=>{var t;if(!this._svg)return;let e=this._svg,i=btoa((new this._window.XMLSerializer).serializeToString(e)),r=`data:${A("svg")};base64,${i}`;if(null==(t=this._options.nodeCanvas)?void 0:t.loadImage)return this._options.nodeCanvas.loadImage(r).then(t=>{var e,i;t.width=this._options.width,t.height=this._options.height,null==(i=null==(e=this._nodeCanvas)?void 0:e.getContext("2d"))||i.drawImage(t,0,0)});{let t=new this._window.Image;return new Promise(e=>{t.onload=()=>{var i,r;null==(r=null==(i=this._domCanvas)?void 0:i.getContext("2d"))||r.drawImage(t,0,0),e()},t.src=r})}}))}async _getElement(t="png"){if(!this._qr)throw"QR code is empty";return"svg"===t.toLowerCase()?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(t){O._clearContainer(this._container),this._options=t?x(e(this._options,t)):this._options,this._options.data&&(this._qr=C()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===v?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===v?this._domCanvas&&t.appendChild(this._domCanvas):this._svg&&t.appendChild(this._svg),this._container=t}}applyExtension(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(t="png"){if(!this._qr)throw"QR code is empty";let e=await this._getElement(t),i=A(t);if(!e)return null;if("svg"===t.toLowerCase()){let t=`<?xml version="1.0" standalone="no"?>\r
3${(new this._window.XMLSerializer).serializeToString(e)}`;return"undefined"==typeof Blob||this._options.jsdom?r.Buffer.from(t):new Blob([t],{type:i})}return new Promise(t=>{if("toBuffer"in e)if("image/png"===i)t(e.toBuffer(i));else if("image/jpeg"===i)t(e.toBuffer(i));else{if("application/pdf"!==i)throw Error("Unsupported extension");t(e.toBuffer(i))}else"toBlob"in e&&e.toBlob(t,i,1)})}async download(t){if(!this._qr)throw"QR code is empty";if("undefined"==typeof Blob)throw"Cannot download in Node.js, call getRawData instead.";let e="png",i="qr";"string"==typeof t?(e=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(i=t.name),t.extension&&(e=t.extension));let r=await this._getElement(e);
3if(r)if("svg"===e.toLowerCase()){let t=(new XMLSerializer).serializeToString(r);t='<?xml version="1.0" standalone="no"?>\r\n'+t,o(`data:${A(e)};charset=utf-8,${encodeURIComponent(t)}`,`${i}.svg`)}else o(r.toDataURL(A(e)),`${i}.${e}`)}}let M=O})(),n.default})()},36622,t=>{"use strict";var e=t.i(949125),i=t.i(191788);let r={width:1028,height:1028,type:"svg",shape:"square",image:"/app_logo.webp",imageOptions:{crossOrigin:"anonymous",margin:12,imageSize:.3},dotsOptions:{color:"#11181C",type:"rounded"},cornersSquareOptions:{type:"extra-rounded"},backgroundOptions:{color:"#ffffff"},qrOptions:{errorCorrectionLevel:"H",typeNumber:0}};t.s(["default",0,(n,o,s)=>{let a=(0,i.useRef)(null),h=(0,i.useMemo)(()=>({...r,...s,data:n}),[n,s]),u=(0,i.useRef)(h),d=(0,i.useCallback)(()=>{a.current&&(0,e.default)(u.current,h)||(u.current=h,a.current=new(t.r(146583))(h))},[h]),l=(0,i.useCallback)(t=>{d(),a.current?.download({name:t,extension:"png"})},[]);return(0,i.useEffect)(()=>{o?.current&&(d(),o.current.childNodes.forEach(t=>t.remove()),a.current.append(o.current))},[h]),{download:l}}])},477666,t=>{"use strict";var e=t.i(391398),i=t.i(36622),r=t.i(588080),n=t.i(648684);t.s(["default",0,({value:t,containerClassName:o,...s})=>{let[a,{width:h,height:u}]=(0,r.default)();return(0,i.default)(t,a,{width:h,height:u}),(0,e.jsx)("div",{ref:a,className:(0,n.cx)(o)})}])}]);
4
5//# debugId=96895982-38be-7722-c023-cb82f3329ee3
6//# sourceMappingURL=fd5b6e8e8ca382e8.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.