From adb6599a7cc5e885a54ae58889c31aeeb2a3707f Mon Sep 17 00:00:00 2001 From: RedDotz20 <RedDotz20@users.noreply.github.com> Date: Sat, 2 Mar 2024 02:31:17 +0000 Subject: [PATCH] deploy: 188c35848cdb4f26717d2e2422affb3a11707357 --- assets/{index-f4402zhk.js => index-Cyth0j3_.js} | 4 ++-- index.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename assets/{index-f4402zhk.js => index-Cyth0j3_.js} (95%) diff --git a/assets/index-f4402zhk.js b/assets/index-Cyth0j3_.js similarity index 95% rename from assets/index-f4402zhk.js rename to assets/index-Cyth0j3_.js index 4fcfa43..ed25d69 100644 --- a/assets/index-f4402zhk.js +++ b/assets/index-Cyth0j3_.js @@ -368,7 +368,7 @@ PERFORMANCE OF THIS SOFTWARE. }`,_Z=function(e){IZ(e,"."+UB+UZ+FS+` .`+TB+TZ+FS)},IZ=function(e,t){var A=e.ownerDocument;if(A){var r=A.createElement("style");r.textContent=t,e.appendChild(r)}},EI=function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),HZ=function(){function e(t,A){this.context=t,this._options=A,this._cache={}}return e.prototype.addImage=function(t){var A=Promise.resolve();return this.has(t)||(yv(t)||OZ(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),A},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return rA(this,void 0,void 0,function(){var A,r,n,i,o=this;return Xt(this,function(a){switch(a.label){case 0:return A=EI.isSameOrigin(t),r=!Bv(t)&&this._options.useCORS===!0&&Ot.SUPPORT_CORS_IMAGES&&!A,n=!Bv(t)&&!A&&!yv(t)&&typeof this._options.proxy=="string"&&Ot.SUPPORT_CORS_XHR&&!r,!A&&this._options.allowTaint===!1&&!Bv(t)&&!yv(t)&&!n&&!r?[2]:(i=t,n?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(RZ(i)||r)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return s(u)},500),o._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var A=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise(function(i,o){var a=Ot.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(a==="text")i(s.response);else{var c=new FileReader;c.addEventListener("load",function(){return i(c.result)},!1),c.addEventListener("error",function(f){return o(f)},!1),c.readAsDataURL(s.response)}else o("Failed to proxy resource "+n+" with status code "+s.status)},s.onerror=o;var l=r.indexOf("?")>-1?"&":"?";if(s.open("GET",""+r+l+"url="+encodeURIComponent(t)+"&responseType="+a),a!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=a),A._options.imageTimeout){var u=A._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+n)}}s.send()})},e}(),kZ=/^data:image\/svg\+xml/i,PZ=/^data:image\/.*;base64,/i,LZ=/^data:image\/.*/i,OZ=function(e){return Ot.SUPPORT_SVG_DRAWING||!DZ(e)},Bv=function(e){return LZ.test(e)},RZ=function(e){return PZ.test(e)},yv=function(e){return e.substr(0,4)==="blob"},DZ=function(e){return e.substr(-3).toLowerCase()==="svg"||kZ.test(e)},re=function(){function e(t,A){this.type=0,this.x=t,this.y=A}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e}(),qo=function(e,t,A){return new re(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},Mf=function(){function e(t,A,r,n){this.type=1,this.start=t,this.startControl=A,this.endControl=r,this.end=n}return e.prototype.subdivide=function(t,A){var r=qo(this.start,this.startControl,t),n=qo(this.startControl,this.endControl,t),i=qo(this.endControl,this.end,t),o=qo(r,n,t),a=qo(n,i,t),s=qo(o,a,t);return A?new e(this.start,r,o,s):new e(s,a,i,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),tr=function(e){return e.type===1},MZ=function(){function e(t){var A=t.styles,r=t.bounds,n=Hl(A.borderTopLeftRadius,r.width,r.height),i=n[0],o=n[1],a=Hl(A.borderTopRightRadius,r.width,r.height),s=a[0],l=a[1],u=Hl(A.borderBottomRightRadius,r.width,r.height),c=u[0],f=u[1],d=Hl(A.borderBottomLeftRadius,r.width,r.height),h=d[0],p=d[1],y=[];y.push((i+s)/r.width),y.push((h+c)/r.width),y.push((o+p)/r.height),y.push((l+f)/r.height);var v=Math.max.apply(Math,y);v>1&&(i/=v,o/=v,s/=v,l/=v,c/=v,f/=v,h/=v,p/=v);var g=r.width-s,B=r.height-f,x=r.width-c,b=r.height-p,C=A.borderTopWidth,w=A.borderRightWidth,E=A.borderBottomWidth,Q=A.borderLeftWidth,_=Ge(A.paddingTop,t.bounds.width),H=Ge(A.paddingRight,t.bounds.width),I=Ge(A.paddingBottom,t.bounds.width),R=Ge(A.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?At(r.left+Q/3,r.top+C/3,i-Q/3,o-C/3,Me.TOP_LEFT):new re(r.left+Q/3,r.top+C/3),this.topRightBorderDoubleOuterBox=i>0||o>0?At(r.left+g,r.top+C/3,s-w/3,l-C/3,Me.TOP_RIGHT):new re(r.left+r.width-w/3,r.top+C/3),this.bottomRightBorderDoubleOuterBox=c>0||f>0?At(r.left+x,r.top+B,c-w/3,f-E/3,Me.BOTTOM_RIGHT):new re(r.left+r.width-w/3,r.top+r.height-E/3),this.bottomLeftBorderDoubleOuterBox=h>0||p>0?At(r.left+Q/3,r.top+b,h-Q/3,p-E/3,Me.BOTTOM_LEFT):new re(r.left+Q/3,r.top+r.height-E/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?At(r.left+Q*2/3,r.top+C*2/3,i-Q*2/3,o-C*2/3,Me.TOP_LEFT):new re(r.left+Q*2/3,r.top+C*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?At(r.left+g,r.top+C*2/3,s-w*2/3,l-C*2/3,Me.TOP_RIGHT):new re(r.left+r.width-w*2/3,r.top+C*2/3),this.bottomRightBorderDoubleInnerBox=c>0||f>0?At(r.left+x,r.top+B,c-w*2/3,f-E*2/3,Me.BOTTOM_RIGHT):new re(r.left+r.width-w*2/3,r.top+r.height-E*2/3),this.bottomLeftBorderDoubleInnerBox=h>0||p>0?At(r.left+Q*2/3,r.top+b,h-Q*2/3,p-E*2/3,Me.BOTTOM_LEFT):new re(r.left+Q*2/3,r.top+r.height-E*2/3),this.topLeftBorderStroke=i>0||o>0?At(r.left+Q/2,r.top+C/2,i-Q/2,o-C/2,Me.TOP_LEFT):new re(r.left+Q/2,r.top+C/2),this.topRightBorderStroke=i>0||o>0?At(r.left+g,r.top+C/2,s-w/2,l-C/2,Me.TOP_RIGHT):new re(r.left+r.width-w/2,r.top+C/2),this.bottomRightBorderStroke=c>0||f>0?At(r.left+x,r.top+B,c-w/2,f-E/2,Me.BOTTOM_RIGHT):new re(r.left+r.width-w/2,r.top+r.height-E/2),this.bottomLeftBorderStroke=h>0||p>0?At(r.left+Q/2,r.top+b,h-Q/2,p-E/2,Me.BOTTOM_LEFT):new re(r.left+Q/2,r.top+r.height-E/2),this.topLeftBorderBox=i>0||o>0?At(r.left,r.top,i,o,Me.TOP_LEFT):new re(r.left,r.top),this.topRightBorderBox=s>0||l>0?At(r.left+g,r.top,s,l,Me.TOP_RIGHT):new re(r.left+r.width,r.top),this.bottomRightBorderBox=c>0||f>0?At(r.left+x,r.top+B,c,f,Me.BOTTOM_RIGHT):new re(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=h>0||p>0?At(r.left,r.top+b,h,p,Me.BOTTOM_LEFT):new re(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||o>0?At(r.left+Q,r.top+C,Math.max(0,i-Q),Math.max(0,o-C),Me.TOP_LEFT):new re(r.left+Q,r.top+C),this.topRightPaddingBox=s>0||l>0?At(r.left+Math.min(g,r.width-w),r.top+C,g>r.width+w?0:Math.max(0,s-w),Math.max(0,l-C),Me.TOP_RIGHT):new re(r.left+r.width-w,r.top+C),this.bottomRightPaddingBox=c>0||f>0?At(r.left+Math.min(x,r.width-Q),r.top+Math.min(B,r.height-E),Math.max(0,c-w),Math.max(0,f-E),Me.BOTTOM_RIGHT):new re(r.left+r.width-w,r.top+r.height-E),this.bottomLeftPaddingBox=h>0||p>0?At(r.left+Q,r.top+Math.min(b,r.height-E),Math.max(0,h-Q),Math.max(0,p-E),Me.BOTTOM_LEFT):new re(r.left+Q,r.top+r.height-E),this.topLeftContentBox=i>0||o>0?At(r.left+Q+R,r.top+C+_,Math.max(0,i-(Q+R)),Math.max(0,o-(C+_)),Me.TOP_LEFT):new re(r.left+Q+R,r.top+C+_),this.topRightContentBox=s>0||l>0?At(r.left+Math.min(g,r.width+Q+R),r.top+C+_,g>r.width+Q+R?0:s-Q+R,l-(C+_),Me.TOP_RIGHT):new re(r.left+r.width-(w+H),r.top+C+_),this.bottomRightContentBox=c>0||f>0?At(r.left+Math.min(x,r.width-(Q+R)),r.top+Math.min(B,r.height+C+_),Math.max(0,c-(w+H)),f-(E+I),Me.BOTTOM_RIGHT):new re(r.left+r.width-(w+H),r.top+r.height-(E+I)),this.bottomLeftContentBox=h>0||p>0?At(r.left+Q+R,r.top+b,Math.max(0,h-(Q+R)),p-(E+I),Me.BOTTOM_LEFT):new re(r.left+Q+R,r.top+r.height-(E+I))}return e}(),Me;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Me||(Me={}));var At=function(e,t,A,r,n){var i=4*((Math.sqrt(2)-1)/3),o=A*i,a=r*i,s=e+A,l=t+r;switch(n){case Me.TOP_LEFT:return new Mf(new re(e,l),new re(e,l-a),new re(s-o,t),new re(s,t));case Me.TOP_RIGHT:return new Mf(new re(e,t),new re(e+o,t),new re(s,l-a),new re(s,l));case Me.BOTTOM_RIGHT:return new Mf(new re(s,t),new re(s,t+a),new re(e+o,l),new re(e,l));case Me.BOTTOM_LEFT:default:return new Mf(new re(s,l),new re(s-o,l),new re(e,t+a),new re(e,t))}},Eh=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},$Z=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Uh=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},NZ=function(){function e(t,A,r){this.offsetX=t,this.offsetY=A,this.matrix=r,this.type=0,this.target=6}return e}(),$f=function(){function e(t,A){this.path=t,this.target=A,this.type=1}return e}(),KZ=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),VZ=function(e){return e.type===0},UI=function(e){return e.type===1},jZ=function(e){return e.type===2},SS=function(e,t){return e.length===t.length?e.some(function(A,r){return A===t[r]}):!1},zZ=function(e,t,A,r,n){return e.map(function(i,o){switch(o){case 0:return i.add(t,A);case 1:return i.add(t+r,A);case 2:return i.add(t+r,A+n);case 3:return i.add(t,A+n)}return i})},TI=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),_I=function(){function e(t,A){if(this.container=t,this.parent=A,this.effects=[],this.curves=new MZ(this.container),this.container.styles.opacity<1&&this.effects.push(new KZ(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new NZ(r,n,i))}if(this.container.styles.overflowX!==0){var o=Eh(this.curves),a=Uh(this.curves);SS(o,a)?this.effects.push(new $f(o,6)):(this.effects.push(new $f(o,2)),this.effects.push(new $f(a,4)))}}return e.prototype.getEffects=function(t){for(var A=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(s){return!UI(s)});if(A||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),A=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var o=Eh(r.curves),a=Uh(r.curves);SS(o,a)||n.unshift(new $f(a,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(s){return St(s.target,t)})},e}(),_B=function(e,t,A,r){e.container.elements.forEach(function(n){var i=St(n.flags,4),o=St(n.flags,2),a=new _I(n,e);St(n.styles.display,2048)&&r.push(a);var s=St(n.flags,8)?[]:r;if(i||o){var l=i||n.styles.isPositioned()?A:t,u=new TI(a);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var c=n.styles.zIndex.order;if(c<0){var f=0;l.negativeZIndex.some(function(h,p){return c>h.element.container.styles.zIndex.order?(f=p,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(c>0){var d=0;l.positiveZIndex.some(function(h,p){return c>=h.element.container.styles.zIndex.order?(d=p+1,!1):d>0}),l.positiveZIndex.splice(d,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);_B(a,u,i?u:A,s)}else n.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),_B(a,t,A,s);St(n.flags,8)&&II(n,s)})},II=function(e,t){for(var A=e instanceof SB?e.start:1,r=e instanceof SB?e.reversed:!1,n=0;n<t.length;n++){var i=t[n];i.container instanceof pI&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=Gu(A,i.container.styles.listStyleType,!0),A+=r?-1:1}},GZ=function(e){var t=new _I(e,null),A=new TI(t),r=[];return _B(t,A,A,r),II(t.container,r),A},QS=function(e,t){switch(t){case 0:return ir(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return ir(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return ir(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return ir(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},WZ=function(e,t){switch(t){case 0:return ir(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return ir(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return ir(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return ir(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},XZ=function(e,t){switch(t){case 0:return ir(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return ir(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return ir(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return ir(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},YZ=function(e,t){switch(t){case 0:return Nf(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Nf(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Nf(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Nf(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Nf=function(e,t){var A=[];return tr(e)?A.push(e.subdivide(.5,!1)):A.push(e),tr(t)?A.push(t.subdivide(.5,!0)):A.push(t),A},ir=function(e,t,A,r){var n=[];return tr(e)?n.push(e.subdivide(.5,!1)):n.push(e),tr(A)?n.push(A.subdivide(.5,!0)):n.push(A),tr(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),tr(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},HI=function(e){var t=e.bounds,A=e.styles;return t.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},Th=function(e){var t=e.styles,A=e.bounds,r=Ge(t.paddingLeft,A.width),n=Ge(t.paddingRight,A.width),i=Ge(t.paddingTop,A.width),o=Ge(t.paddingBottom,A.width);return A.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+n),-(t.borderTopWidth+t.borderBottomWidth+i+o))},JZ=function(e,t){return e===0?t.bounds:e===2?Th(t):HI(t)},ZZ=function(e,t){return e===0?t.bounds:e===2?Th(t):HI(t)},wv=function(e,t,A){var r=JZ(Aa(e.styles.backgroundOrigin,t),e),n=ZZ(Aa(e.styles.backgroundClip,t),e),i=qZ(Aa(e.styles.backgroundSize,t),A,r),o=i[0],a=i[1],s=Hl(Aa(e.styles.backgroundPosition,t),r.width-o,r.height-a),l=eq(Aa(e.styles.backgroundRepeat,t),s,i,r,n),u=Math.round(r.left+s[0]),c=Math.round(r.top+s[1]);return[l,u,c,o,a]},ea=function(e){return je(e)&&e.value===ts.AUTO},Kf=function(e){return typeof e=="number"},qZ=function(e,t,A){var r=t[0],n=t[1],i=t[2],o=e[0],a=e[1];if(!o)return[0,0];if(wt(o)&&a&&wt(a))return[Ge(o,A.width),Ge(a,A.height)];var s=Kf(i);if(je(o)&&(o.value===ts.CONTAIN||o.value===ts.COVER)){if(Kf(i)){var l=A.width/A.height;return l<i!=(o.value===ts.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var u=Kf(r),c=Kf(n),f=u||c;if(ea(o)&&(!a||ea(a))){if(u&&c)return[r,n];if(!s&&!f)return[A.width,A.height];if(f&&s){var d=u?r:n*i,h=c?n:r/i;return[d,h]}var p=u?r:A.width,y=c?n:A.height;return[p,y]}if(s){var v=0,g=0;return wt(o)?v=Ge(o,A.width):wt(a)&&(g=Ge(a,A.height)),ea(o)?v=g*i:(!a||ea(a))&&(g=v/i),[v,g]}var B=null,x=null;if(wt(o)?B=Ge(o,A.width):a&&wt(a)&&(x=Ge(a,A.height)),B!==null&&(!a||ea(a))&&(x=u&&c?B/r*n:A.height),x!==null&&ea(o)&&(B=u&&c?x/n*r:A.width),B!==null&&x!==null)return[B,x];throw new Error("Unable to calculate background-size for element")},Aa=function(e,t){var A=e[t];return typeof A>"u"?e[0]:A},eq=function(e,t,A,r,n){var i=t[0],o=t[1],a=A[0],s=A[1];switch(e){case 2:return[new re(Math.round(r.left),Math.round(r.top+o)),new re(Math.round(r.left+r.width),Math.round(r.top+o)),new re(Math.round(r.left+r.width),Math.round(s+r.top+o)),new re(Math.round(r.left),Math.round(s+r.top+o))];case 3:return[new re(Math.round(r.left+i),Math.round(r.top)),new re(Math.round(r.left+i+a),Math.round(r.top)),new re(Math.round(r.left+i+a),Math.round(r.height+r.top)),new re(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new re(Math.round(r.left+i),Math.round(r.top+o)),new re(Math.round(r.left+i+a),Math.round(r.top+o)),new re(Math.round(r.left+i+a),Math.round(r.top+o+s)),new re(Math.round(r.left+i),Math.round(r.top+o+s))];default:return[new re(Math.round(n.left),Math.round(n.top)),new re(Math.round(n.left+n.width),Math.round(n.top)),new re(Math.round(n.left+n.width),Math.round(n.height+n.top)),new re(Math.round(n.left),Math.round(n.height+n.top))]}},tq="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ES="Hidden Text",Aq=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,A){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=A,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),n.src=tq,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(ES)),r.appendChild(i),r.appendChild(n);var a=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(ES)),r.style.lineHeight="normal",n.style.verticalAlign="super";var s=n.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:a,middle:s}},e.prototype.getMetrics=function(t,A){var r=t+" "+A;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,A)),this._data[r]},e}(),kI=function(){function e(t,A){this.context=t,this.options=A}return e}(),rq=1e4,nq=function(e){Hr(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new Aq(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return t.prototype.applyEffects=function(A){for(var r=this;this._activeEffects.length;)this.popEffect();A.forEach(function(n){return r.applyEffect(n)})},t.prototype.applyEffect=function(A){this.ctx.save(),jZ(A)&&(this.ctx.globalAlpha=A.opacity),VZ(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),UI(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return rA(this,void 0,void 0,function(){var r;return Xt(this,function(n){switch(n.label){case 0:return r=A.element.container.styles,r.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(A){return rA(this,void 0,void 0,function(){return Xt(this,function(r){switch(r.label){case 0:if(St(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(A)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(A,r,n){var i=this;if(r===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+n);else{var o=zw(A.text);o.reduce(function(a,s){return i.ctx.fillText(s,a,A.bounds.top+n),a+i.ctx.measureText(s).width},A.bounds.left)}},t.prototype.createFontStyle=function(A){var r=A.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),n=lq(A.fontFamily).join(", "),i=gc(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,r,A.fontWeight,i,n].join(" "),n,i]},t.prototype.renderTextNode=function(A,r){return rA(this,void 0,void 0,function(){var n,i,o,a,s,l,u,c,f=this;return Xt(this,function(d){return n=this.createFontStyle(r),i=n[0],o=n[1],a=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(o,a),l=s.baseline,u=s.middle,c=r.paintOrder,A.textBounds.forEach(function(h){c.forEach(function(p){switch(p){case 0:f.ctx.fillStyle=Tt(r.color),f.renderTextWithLetterSpacing(h,r.letterSpacing,l);var y=r.textShadow;y.length&&h.text.trim().length&&(y.slice(0).reverse().forEach(function(v){f.ctx.shadowColor=Tt(v.color),f.ctx.shadowOffsetX=v.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=v.offsetY.number*f.options.scale,f.ctx.shadowBlur=v.blur.number,f.renderTextWithLetterSpacing(h,r.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=Tt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(v){switch(v){case 1:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top+l),h.bounds.width,1);break;case 2:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top),h.bounds.width,1);break;case 3:f.ctx.fillRect(h.bounds.left,Math.ceil(h.bounds.top+u),h.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&h.text.trim().length&&(f.ctx.strokeStyle=Tt(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(h.text,h.bounds.left,h.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(A,r,n){if(n&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=Th(A),o=Uh(r);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return rA(this,void 0,void 0,function(){var r,n,i,o,a,s,g,g,l,u,c,f,x,d,h,b,p,y,v,g,B,x,b;return Xt(this,function(C){switch(C.label){case 0:this.applyEffects(A.getEffects(4)),r=A.container,n=A.curves,i=r.styles,o=0,a=r.textNodes,C.label=1;case 1:return o<a.length?(s=a[o],[4,this.renderTextNode(s,i)]):[3,4];case 2:C.sent(),C.label=3;case 3:return o++,[3,1];case 4:if(!(r instanceof fI))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return g=C.sent(),this.renderReplacedElement(r,n,g),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof dI&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof hI))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return g=C.sent(),this.renderReplacedElement(r,n,g),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof mI&&r.tree?(l=new t(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,l.render(r.tree)]):[3,14];case 13:u=C.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),C.label=14;case 14:if(r instanceof Gw&&(c=Math.min(r.bounds.width,r.bounds.height),r.type===xh?r.checked&&(this.ctx.save(),this.path([new re(r.bounds.left+c*.39363,r.bounds.top+c*.79),new re(r.bounds.left+c*.16,r.bounds.top+c*.5549),new re(r.bounds.left+c*.27347,r.bounds.top+c*.44071),new re(r.bounds.left+c*.39694,r.bounds.top+c*.5649),new re(r.bounds.left+c*.72983,r.bounds.top+c*.23),new re(r.bounds.left+c*.84,r.bounds.top+c*.34085),new re(r.bounds.left+c*.39363,r.bounds.top+c*.79)]),this.ctx.fillStyle=Tt(pS),this.ctx.fill(),this.ctx.restore()):r.type===Fh&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+c/2,r.bounds.top+c/2,c/4,0,Math.PI*2,!0),this.ctx.fillStyle=Tt(pS),this.ctx.fill(),this.ctx.restore())),iq(r)&&r.value.length){switch(f=this.createFontStyle(i),x=f[0],d=f[1],h=this.fontMetrics.getMetrics(x,d).baseline,this.ctx.font=x,this.ctx.fillStyle=Tt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=aq(r.styles.textAlign),b=Th(r),p=0,r.styles.textAlign){case 1:p+=b.width/2;break;case 2:p+=b.width;break}y=b.add(p,0,0,-b.height/2+1),this.ctx.save(),this.path([new re(b.left,b.top),new re(b.left+b.width,b.top),new re(b.left+b.width,b.top+b.height),new re(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new cu(r.value,y),i.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!St(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(v=r.styles.listStyleImage,v.type!==0)return[3,18];g=void 0,B=v.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(B)];case 16:return g=C.sent(),this.ctx.drawImage(g,r.bounds.left-(g.width+10),r.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+B),[3,18];case 18:return[3,20];case 19:A.listValue&&r.styles.listStyleType!==-1&&(x=this.createFontStyle(i)[0],this.ctx.font=x,this.ctx.fillStyle=Tt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new Rn(r.bounds.left,r.bounds.top+Ge(r.styles.paddingTop,r.bounds.width),r.bounds.width,ZF(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new cu(A.listValue,b),i.letterSpacing,ZF(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(A){return rA(this,void 0,void 0,function(){var r,n,v,i,o,v,a,s,v,l,u,v,c,f,v,d,h,v,p,y,v;return Xt(this,function(g){switch(g.label){case 0:if(St(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:g.sent(),r=0,n=A.negativeZIndex,g.label=2;case 2:return r<n.length?(v=n[r],[4,this.renderStack(v)]):[3,5];case 3:g.sent(),g.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:g.sent(),i=0,o=A.nonInlineLevel,g.label=7;case 7:return i<o.length?(v=o[i],[4,this.renderNode(v)]):[3,10];case 8:g.sent(),g.label=9;case 9:return i++,[3,7];case 10:a=0,s=A.nonPositionedFloats,g.label=11;case 11:return a<s.length?(v=s[a],[4,this.renderStack(v)]):[3,14];case 12:g.sent(),g.label=13;case 13:return a++,[3,11];case 14:l=0,u=A.nonPositionedInlineLevel,g.label=15;case 15:return l<u.length?(v=u[l],[4,this.renderStack(v)]):[3,18];case 16:g.sent(),g.label=17;case 17:return l++,[3,15];case 18:c=0,f=A.inlineLevel,g.label=19;case 19:return c<f.length?(v=f[c],[4,this.renderNode(v)]):[3,22];case 20:g.sent(),g.label=21;case 21:return c++,[3,19];case 22:d=0,h=A.zeroOrAutoZIndexOrTransformedOrOpacity,g.label=23;case 23:return d<h.length?(v=h[d],[4,this.renderStack(v)]):[3,26];case 24:g.sent(),g.label=25;case 25:return d++,[3,23];case 26:p=0,y=A.positiveZIndex,g.label=27;case 27:return p<y.length?(v=y[p],[4,this.renderStack(v)]):[3,30];case 28:g.sent(),g.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},t.prototype.formatPath=function(A){var r=this;A.forEach(function(n,i){var o=tr(n)?n.start:n;i===0?r.ctx.moveTo(o.x,o.y):r.ctx.lineTo(o.x,o.y),tr(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},t.prototype.renderRepeat=function(A,r,n,i){this.path(A),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},t.prototype.resizeImage=function(A,r,n){var i;if(A.width===r&&A.height===n)return A;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=o.createElement("canvas");a.width=Math.max(1,r),a.height=Math.max(1,n);var s=a.getContext("2d");return s.drawImage(A,0,0,A.width,A.height,0,0,r,n),a},t.prototype.renderBackgroundImage=function(A){return rA(this,void 0,void 0,function(){var r,n,i,o,a,s;return Xt(this,function(l){switch(l.label){case 0:r=A.styles.backgroundImage.length-1,n=function(u){var c,f,d,_,G,J,R,D,E,h,_,G,J,R,D,p,y,v,g,B,x,b,C,w,E,Q,_,H,I,R,D,N,G,J,z,W,Y,q,ue,ne,pe,te;return Xt(this,function(ge){switch(ge.label){case 0:if(u.type!==0)return[3,5];c=void 0,f=u.url,ge.label=1;case 1:return ge.trys.push([1,3,,4]),[4,i.context.cache.match(f)];case 2:return c=ge.sent(),[3,4];case 3:return ge.sent(),i.context.logger.error("Error loading background-image "+f),[3,4];case 4:return c&&(d=wv(A,r,[c.width,c.height,c.width/c.height]),_=d[0],G=d[1],J=d[2],R=d[3],D=d[4],E=i.ctx.createPattern(i.resizeImage(c,R,D),"repeat"),i.renderRepeat(_,E,G,J)),[3,6];case 5:VX(u)?(h=wv(A,r,[null,null,null]),_=h[0],G=h[1],J=h[2],R=h[3],D=h[4],p=DX(u.angle,R,D),y=p[0],v=p[1],g=p[2],B=p[3],x=p[4],b=document.createElement("canvas"),b.width=R,b.height=D,C=b.getContext("2d"),w=C.createLinearGradient(v,B,g,x),YF(u.stops,y).forEach(function(Ee){return w.addColorStop(Ee.stop,Tt(Ee.color))}),C.fillStyle=w,C.fillRect(0,0,R,D),R>0&&D>0&&(E=i.ctx.createPattern(b,"repeat"),i.renderRepeat(_,E,G,J))):jX(u)&&(Q=wv(A,r,[null,null,null]),_=Q[0],H=Q[1],I=Q[2],R=Q[3],D=Q[4],N=u.position.length===0?[Kw]:u.position,G=Ge(N[0],R),J=Ge(N[N.length-1],D),z=MX(u,G,J,R,D),W=z[0],Y=z[1],W>0&&Y>0&&(q=i.ctx.createRadialGradient(H+G,I+J,0,H+G,I+J,W),YF(u.stops,W*2).forEach(function(Ee){return q.addColorStop(Ee.stop,Tt(Ee.color))}),i.path(_),i.ctx.fillStyle=q,W!==Y?(ue=A.bounds.left+.5*A.bounds.width,ne=A.bounds.top+.5*A.bounds.height,pe=Y/W,te=1/pe,i.ctx.save(),i.ctx.translate(ue,ne),i.ctx.transform(1,0,0,pe,0,0),i.ctx.translate(-ue,-ne),i.ctx.fillRect(H,te*(I-ne)+ne,R,D*te),i.ctx.restore()):i.ctx.fill())),ge.label=6;case 6:return r--,[2]}})},i=this,o=0,a=A.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o<a.length?(s=a[o],[5,n(s)]):[3,4];case 2:l.sent(),l.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(A,r,n){return rA(this,void 0,void 0,function(){return Xt(this,function(i){return this.path(QS(n,r)),this.ctx.fillStyle=Tt(A),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(A,r,n,i){return rA(this,void 0,void 0,function(){var o,a;return Xt(this,function(s){switch(s.label){case 0:return r<3?[4,this.renderSolidBorder(A,n,i)]:[3,2];case 1:return s.sent(),[2];case 2:return o=WZ(i,n),this.path(o),this.ctx.fillStyle=Tt(A),this.ctx.fill(),a=XZ(i,n),this.path(a),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(A){return rA(this,void 0,void 0,function(){var r,n,i,o,a,s,l,u,c=this;return Xt(this,function(f){switch(f.label){case 0:return this.applyEffects(A.getEffects(2)),r=A.container.styles,n=!Ci(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],o=oq(Aa(r.backgroundClip,0),A.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Ci(r.backgroundColor)||(this.ctx.fillStyle=Tt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(d){c.ctx.save();var h=Eh(A.curves),p=d.inset?0:rq,y=zZ(h,-p+(d.inset?1:-1)*d.spread.number,(d.inset?1:-1)*d.spread.number,d.spread.number*(d.inset?-2:2),d.spread.number*(d.inset?-2:2));d.inset?(c.path(h),c.ctx.clip(),c.mask(y)):(c.mask(h),c.ctx.clip(),c.path(y)),c.ctx.shadowOffsetX=d.offsetX.number+p,c.ctx.shadowOffsetY=d.offsetY.number,c.ctx.shadowColor=Tt(d.color),c.ctx.shadowBlur=d.blur.number,c.ctx.fillStyle=d.inset?Tt(d.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),f.label=2;case 2:a=0,s=0,l=i,f.label=3;case 3:return s<l.length?(u=l[s],u.style!==0&&!Ci(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,a,A.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,a,A.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,a,A.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,a,A.curves)];case 10:f.sent(),f.label=11;case 11:a++,f.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,r,n,i,o){return rA(this,void 0,void 0,function(){var a,s,l,u,c,f,d,h,p,y,v,g,B,x,b,C,b,C;return Xt(this,function(w){return this.ctx.save(),a=YZ(i,n),s=QS(i,n),o===2&&(this.path(s),this.ctx.clip()),tr(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),tr(s[1])?(c=s[1].end.x,f=s[1].end.y):(c=s[1].x,f=s[1].y),n===0||n===2?d=Math.abs(l-c):d=Math.abs(u-f),this.ctx.beginPath(),o===3?this.formatPath(a):this.formatPath(s.slice(0,2)),h=r<3?r*3:r*2,p=r<3?r*2:r,o===3&&(h=r,p=r),y=!0,d<=h*2?y=!1:d<=h*2+p?(v=d/(2*h+p),h*=v,p*=v):(g=Math.floor((d+p)/(h+p)),B=(d-g*h)/(g-1),x=(d-(g+1)*h)/g,p=x<=0||Math.abs(p-B)<Math.abs(p-x)?B:x),y&&(o===3?this.ctx.setLineDash([0,h+p]):this.ctx.setLineDash([h,p])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Tt(A),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(tr(s[0])&&(b=s[3],C=s[0],this.ctx.beginPath(),this.formatPath([new re(b.end.x,b.end.y),new re(C.start.x,C.start.y)]),this.ctx.stroke()),tr(s[1])&&(b=s[1],C=s[2],this.ctx.beginPath(),this.formatPath([new re(b.end.x,b.end.y),new re(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(A){return rA(this,void 0,void 0,function(){var r;return Xt(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Tt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=GZ(A),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(kI),iq=function(e){return e instanceof vI||e instanceof gI?!0:e instanceof Gw&&e.type!==Fh&&e.type!==xh},oq=function(e,t){switch(e){case 0:return Eh(t);case 2:return $Z(t);case 1:default:return Uh(t)}},aq=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},sq=["-apple-system","system-ui"],lq=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return sq.indexOf(t)===-1}):e},uq=function(e){Hr(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return t.prototype.render=function(A){return rA(this,void 0,void 0,function(){var r,n;return Xt(this,function(i){switch(i.label){case 0:return r=FB(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,cq(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Tt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(kI),cq=function(e){return new Promise(function(t,A){var r=new Image;r.onload=function(){t(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},fq=function(){function e(t){var A=t.id,r=t.enabled;this.id=A,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,wf([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,wf([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,wf([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,wf([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),dq=function(){function e(t,A){var r;this.windowBounds=A,this.instanceName="#"+e.instanceCount++,this.logger=new fq({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new HZ(this,t)}return e.instanceCount=1,e}(),hq=function(e,t){return t===void 0&&(t={}),pq(e,t)};typeof window<"u"&&EI.setContext(window);var pq=function(e,t){return rA(void 0,void 0,void 0,function(){var A,r,n,i,o,a,s,l,u,c,f,d,h,p,y,v,g,B,x,b,w,C,w,E,Q,_,H,I,R,D,N,G,J,z,W,Y,q,ue,ne,pe;return Xt(this,function(te){switch(te.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=e.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(r=A.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(E=t.allowTaint)!==null&&E!==void 0?E:!1,imageTimeout:(Q=t.imageTimeout)!==null&&Q!==void 0?Q:15e3,proxy:t.proxy,useCORS:(_=t.useCORS)!==null&&_!==void 0?_:!1},i=uB({logging:(H=t.logging)!==null&&H!==void 0?H:!0,cache:t.cache},n),o={windowWidth:(I=t.windowWidth)!==null&&I!==void 0?I:r.innerWidth,windowHeight:(R=t.windowHeight)!==null&&R!==void 0?R:r.innerHeight,scrollX:(D=t.scrollX)!==null&&D!==void 0?D:r.pageXOffset,scrollY:(N=t.scrollY)!==null&&N!==void 0?N:r.pageYOffset},a=new Rn(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),s=new dq(i,a),l=(G=t.foreignObjectRendering)!==null&&G!==void 0?G:!1,u={allowTaint:(J=t.allowTaint)!==null&&J!==void 0?J:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:l,copyStyles:l},s.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),c=new xS(s,e,u),f=c.clonedReferenceElement,f?[4,c.toIFrame(A,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return d=te.sent(),h=Ww(f)||gZ(f)?zG(f.ownerDocument):Rp(s,f),p=h.width,y=h.height,v=h.left,g=h.top,B=gq(s,f,t.backgroundColor),x={canvas:t.canvas,backgroundColor:B,scale:(W=(z=t.scale)!==null&&z!==void 0?z:r.devicePixelRatio)!==null&&W!==void 0?W:1,x:((Y=t.x)!==null&&Y!==void 0?Y:0)+v,y:((q=t.y)!==null&&q!==void 0?q:0)+g,width:(ue=t.width)!==null&&ue!==void 0?ue:Math.ceil(p),height:(ne=t.height)!==null&&ne!==void 0?ne:Math.ceil(y)},l?(s.logger.debug("Document cloned, using foreign object rendering"),w=new uq(s,x),[4,w.render(f)]):[3,3];case 2:return b=te.sent(),[3,5];case 3:return s.logger.debug("Document cloned, element located at "+v+","+g+" with size "+p+"x"+y+" using computed rendering"),s.logger.debug("Starting DOM parsing"),C=yI(s,f),B===C.styles.backgroundColor&&(C.styles.backgroundColor=Tn.TRANSPARENT),s.logger.debug("Starting renderer for element at "+x.x+","+x.y+" with size "+x.width+"x"+x.height),w=new nq(s,x),[4,w.render(C)];case 4:b=te.sent(),te.label=5;case 5:return(!((pe=t.removeContainer)!==null&&pe!==void 0)||pe)&&(xS.destroy(d)||s.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),s.logger.debug("Finished rendering"),[2,b]}})})},gq=function(e,t,A){var r=t.ownerDocument,n=r.documentElement?lu(e,getComputedStyle(r.documentElement).backgroundColor):Tn.TRANSPARENT,i=r.body?lu(e,getComputedStyle(r.body).backgroundColor):Tn.TRANSPARENT,o=typeof A=="string"?lu(e,A):A===null?Tn.TRANSPARENT:4294967295;return t===r.documentElement?Ci(n)?Ci(i)?o:i:n:o},Xw={},_h={exports:{}};_h.exports;(function(e,t){var A=200,r="__lodash_hash_undefined__",n=1,i=2,o=9007199254740991,a="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Function]",h="[object GeneratorFunction]",p="[object Map]",y="[object Number]",v="[object Null]",g="[object Object]",B="[object Promise]",x="[object Proxy]",b="[object RegExp]",C="[object Set]",w="[object String]",E="[object Symbol]",Q="[object Undefined]",_="[object WeakMap]",H="[object ArrayBuffer]",I="[object DataView]",R="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",G="[object Int16Array]",J="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",Y="[object Uint16Array]",q="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,pe=/^(?:0|[1-9]\d*)$/,te={};te[R]=te[D]=te[N]=te[G]=te[J]=te[z]=te[W]=te[Y]=te[q]=!0,te[a]=te[s]=te[H]=te[u]=te[I]=te[c]=te[f]=te[d]=te[p]=te[y]=te[g]=te[b]=te[C]=te[w]=te[_]=!1;var ge=typeof pA=="object"&&pA&&pA.Object===Object&&pA,Ee=typeof self=="object"&&self&&self.Object===Object&&self,$=ge||Ee||Function("return this")(),j=t&&!t.nodeType&&t,M=j&&!0&&e&&!e.nodeType&&e,V=M&&M.exports===j,K=V&&ge.process,ee=function(){try{return K&&K.binding&&K.binding("util")}catch{}}(),ae=ee&&ee.isTypedArray;function oe(S,L){for(var m=-1,U=S==null?0:S.length,O=0,X=[];++m<U;){var de=S[m];L(de,m,S)&&(X[O++]=de)}return X}function Ue(S,L){for(var m=-1,U=L.length,O=S.length;++m<U;)S[O+m]=L[m];return S}function Ne(S,L){for(var m=-1,U=S==null?0:S.length;++m<U;)if(L(S[m],m,S))return!0;return!1}function he(S,L){for(var m=-1,U=Array(S);++m<S;)U[m]=L(m);return U}function ct(S){return function(L){return S(L)}}function Re(S,L){return S.has(L)}function Kt(S,L){return S==null?void 0:S[L]}function eA(S){var L=-1,m=Array(S.size);return S.forEach(function(U,O){m[++L]=[O,U]}),m}function vt(S,L){return function(m){return S(L(m))}}function tA(S){var L=-1,m=Array(S.size);return S.forEach(function(U){m[++L]=U}),m}var uA=Array.prototype,Kn=Function.prototype,hr=Object.prototype,SA=$["__core-js_shared__"],Oi=Kn.toString,AA=hr.hasOwnProperty,Lo=function(){var S=/[^.]+$/.exec(SA&&SA.keys&&SA.keys.IE_PROTO||"");return S?"Symbol(src)_1."+S:""}(),se=hr.toString,Ce=RegExp("^"+Oi.call(AA).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lr=V?$.Buffer:void 0,mt=$.Symbol,Bt=$.Uint8Array,pr=hr.propertyIsEnumerable,Ds=uA.splice,jA=mt?mt.toStringTag:void 0,Oo=Object.getOwnPropertySymbols,Vn=Lr?Lr.isBuffer:void 0,QA=vt(Object.keys,Object),Ms=cn($,"DataView"),EA=cn($,"Map"),$s=cn($,"Promise"),Ns=cn($,"Set"),Ks=cn($,"WeakMap"),Ri=cn(Object,"create"),cg=vr(Ms),gr=vr(EA),fg=vr($s),dg=vr(Ns),hg=vr(Ks),Sc=mt?mt.prototype:void 0,Vs=Sc?Sc.valueOf:void 0;function cA(S){var L=-1,m=S==null?0:S.length;for(this.clear();++L<m;){var U=S[L];this.set(U[0],U[1])}}function pg(){this.__data__=Ri?Ri(null):{},this.size=0}function gg(S){var L=this.has(S)&&delete this.__data__[S];return this.size-=L?1:0,L}function vg(S){var L=this.__data__;if(Ri){var m=L[S];return m===r?void 0:m}return AA.call(L,S)?L[S]:void 0}function mg(S){var L=this.__data__;return Ri?L[S]!==void 0:AA.call(L,S)}function Bg(S,L){var m=this.__data__;return this.size+=this.has(S)?0:1,m[S]=Ri&&L===void 0?r:L,this}cA.prototype.clear=pg,cA.prototype.delete=gg,cA.prototype.get=vg,cA.prototype.has=mg,cA.prototype.set=Bg;function Vt(S){var L=-1,m=S==null?0:S.length;for(this.clear();++L<m;){var U=S[L];this.set(U[0],U[1])}}function yg(){this.__data__=[],this.size=0}function wg(S){var L=this.__data__,m=Do(L,S);if(m<0)return!1;var U=L.length-1;return m==U?L.pop():Ds.call(L,m,1),--this.size,!0}function Cg(S){var L=this.__data__,m=Do(L,S);return m<0?void 0:L[m][1]}function bg(S){return Do(this.__data__,S)>-1}function xg(S,L){var m=this.__data__,U=Do(m,S);return U<0?(++this.size,m.push([S,L])):m[U][1]=L,this}Vt.prototype.clear=yg,Vt.prototype.delete=wg,Vt.prototype.get=Cg,Vt.prototype.has=bg,Vt.prototype.set=xg;function ln(S){var L=-1,m=S==null?0:S.length;for(this.clear();++L<m;){var U=S[L];this.set(U[0],U[1])}}function js(){this.size=0,this.__data__={hash:new cA,map:new(EA||Vt),string:new cA}}function Fg(S){var L=$o(this,S).delete(S);return this.size-=L?1:0,L}function Ro(S){return $o(this,S).get(S)}function zs(S){return $o(this,S).has(S)}function Sg(S,L){var m=$o(this,S),U=m.size;return m.set(S,L),this.size+=m.size==U?0:1,this}ln.prototype.clear=js,ln.prototype.delete=Fg,ln.prototype.get=Ro,ln.prototype.has=zs,ln.prototype.set=Sg;function un(S){var L=-1,m=S==null?0:S.length;for(this.__data__=new ln;++L<m;)this.add(S[L])}function Qc(S){return this.__data__.set(S,r),this}function Qg(S){return this.__data__.has(S)}un.prototype.add=un.prototype.push=Qc,un.prototype.has=Qg;function Or(S){var L=this.__data__=new Vt(S);this.size=L.size}function Eg(){this.__data__=new Vt,this.size=0}function Ec(S){var L=this.__data__,m=L.delete(S);return this.size=L.size,m}function Ug(S){return this.__data__.get(S)}function Tg(S){return this.__data__.has(S)}function _g(S,L){var m=this.__data__;if(m instanceof Vt){var U=m.__data__;if(!EA||U.length<A-1)return U.push([S,L]),this.size=++m.size,this;m=this.__data__=new ln(U)}return m.set(S,L),this.size=m.size,this}Or.prototype.clear=Eg,Or.prototype.delete=Ec,Or.prototype.get=Ug,Or.prototype.has=Tg,Or.prototype.set=_g;function Ig(S,L){var m=Vo(S),U=!m&&Xs(S),O=!m&&!U&&Mi(S),X=!m&&!U&&!O&&Oc(S),de=m||U||O||X,ye=de?he(S.length,String):[],be=ye.length;for(var fe in S)(L||AA.call(S,fe))&&!(de&&(fe=="length"||O&&(fe=="offset"||fe=="parent")||X&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||Ws(fe,be)))&&ye.push(fe);return ye}function Do(S,L){for(var m=S.length;m--;)if(Ko(S[m][0],L))return m;return-1}function Hg(S,L,m){var U=L(S);return Vo(S)?U:Ue(U,m(S))}function Di(S){return S==null?S===void 0?Q:v:jA&&jA in Object(S)?Og(S):No(S)}function Uc(S){return zn(S)&&Di(S)==a}function Tc(S,L,m,U,O){return S===L?!0:S==null||L==null||!zn(S)&&!zn(L)?S!==S&&L!==L:kg(S,L,m,U,Tc,O)}function kg(S,L,m,U,O,X){var de=Vo(S),ye=Vo(L),be=de?s:Rr(S),fe=ye?s:Rr(L);be=be==a?g:be,fe=fe==a?g:fe;var Fe=be==g,tt=fe==g,De=be==fe;if(De&&Mi(S)){if(!Mi(L))return!1;de=!0,Fe=!1}if(De&&!Fe)return X||(X=new Or),de||Oc(S)?_c(S,L,m,U,O,X):Ic(S,L,be,m,U,O,X);if(!(m&n)){var Ut=Fe&&AA.call(S,"__wrapped__"),jt=tt&&AA.call(L,"__wrapped__");if(Ut||jt){var zA=Ut?S.value():S,GA=jt?L.value():L;return X||(X=new Or),O(zA,GA,m,U,X)}}return De?(X||(X=new Or),Lg(S,L,m,U,O,X)):!1}function Mo(S){if(!Lc(S)||Mg(S))return!1;var L=Dr(S)?Ce:ne;return L.test(vr(S))}function Gs(S){return zn(S)&&jn(S.length)&&!!te[Di(S)]}function Pg(S){if(!$g(S))return QA(S);var L=[];for(var m in Object(S))AA.call(S,m)&&m!="constructor"&&L.push(m);return L}function _c(S,L,m,U,O,X){var de=m&n,ye=S.length,be=L.length;if(ye!=be&&!(de&&be>ye))return!1;var fe=X.get(S);if(fe&&X.get(L))return fe==L;var Fe=-1,tt=!0,De=m&i?new un:void 0;for(X.set(S,L),X.set(L,S);++Fe<ye;){var Ut=S[Fe],jt=L[Fe];if(U)var zA=de?U(jt,Ut,Fe,L,S,X):U(Ut,jt,Fe,S,L,X);if(zA!==void 0){if(zA)continue;tt=!1;break}if(De){if(!Ne(L,function(GA,$i){if(!Re(De,$i)&&(Ut===GA||O(Ut,GA,m,U,X)))return De.push($i)})){tt=!1;break}}else if(!(Ut===jt||O(Ut,jt,m,U,X))){tt=!1;break}}return X.delete(S),X.delete(L),tt}function Ic(S,L,m,U,O,X,de){switch(m){case I:if(S.byteLength!=L.byteLength||S.byteOffset!=L.byteOffset)return!1;S=S.buffer,L=L.buffer;case H:return!(S.byteLength!=L.byteLength||!X(new Bt(S),new Bt(L)));case u:case c:case y:return Ko(+S,+L);case f:return S.name==L.name&&S.message==L.message;case b:case w:return S==L+"";case p:var ye=eA;case C:var be=U&n;if(ye||(ye=tA),S.size!=L.size&&!be)return!1;var fe=de.get(S);if(fe)return fe==L;U|=i,de.set(S,L);var Fe=_c(ye(S),ye(L),U,O,X,de);return de.delete(S),Fe;case E:if(Vs)return Vs.call(S)==Vs.call(L)}return!1}function Lg(S,L,m,U,O,X){var de=m&n,ye=Hc(S),be=ye.length,fe=Hc(L),Fe=fe.length;if(be!=Fe&&!de)return!1;for(var tt=be;tt--;){var De=ye[tt];if(!(de?De in L:AA.call(L,De)))return!1}var Ut=X.get(S);if(Ut&&X.get(L))return Ut==L;var jt=!0;X.set(S,L),X.set(L,S);for(var zA=de;++tt<be;){De=ye[tt];var GA=S[De],$i=L[De];if(U)var K1=de?U($i,GA,De,L,S,X):U(GA,$i,De,S,L,X);if(!(K1===void 0?GA===$i||O(GA,$i,m,U,X):K1)){jt=!1;break}zA||(zA=De=="constructor")}if(jt&&!zA){var Dc=S.constructor,Mc=L.constructor;Dc!=Mc&&"constructor"in S&&"constructor"in L&&!(typeof Dc=="function"&&Dc instanceof Dc&&typeof Mc=="function"&&Mc instanceof Mc)&&(jt=!1)}return X.delete(S),X.delete(L),jt}function Hc(S){return Hg(S,Rc,Rg)}function $o(S,L){var m=S.__data__;return Dg(L)?m[typeof L=="string"?"string":"hash"]:m.map}function cn(S,L){var m=Kt(S,L);return Mo(m)?m:void 0}function Og(S){var L=AA.call(S,jA),m=S[jA];try{S[jA]=void 0;var U=!0}catch{}var O=se.call(S);return U&&(L?S[jA]=m:delete S[jA]),O}var Rg=Oo?function(S){return S==null?[]:(S=Object(S),oe(Oo(S),function(L){return pr.call(S,L)}))}:Ng,Rr=Di;(Ms&&Rr(new Ms(new ArrayBuffer(1)))!=I||EA&&Rr(new EA)!=p||$s&&Rr($s.resolve())!=B||Ns&&Rr(new Ns)!=C||Ks&&Rr(new Ks)!=_)&&(Rr=function(S){var L=Di(S),m=L==g?S.constructor:void 0,U=m?vr(m):"";if(U)switch(U){case cg:return I;case gr:return p;case fg:return B;case dg:return C;case hg:return _}return L});function Ws(S,L){return L=L??o,!!L&&(typeof S=="number"||pe.test(S))&&S>-1&&S%1==0&&S<L}function Dg(S){var L=typeof S;return L=="string"||L=="number"||L=="symbol"||L=="boolean"?S!=="__proto__":S===null}function Mg(S){return!!Lo&&Lo in S}function $g(S){var L=S&&S.constructor,m=typeof L=="function"&&L.prototype||hr;return S===m}function No(S){return se.call(S)}function vr(S){if(S!=null){try{return Oi.call(S)}catch{}try{return S+""}catch{}}return""}function Ko(S,L){return S===L||S!==S&&L!==L}var Xs=Uc(function(){return arguments}())?Uc:function(S){return zn(S)&&AA.call(S,"callee")&&!pr.call(S,"callee")},Vo=Array.isArray;function kc(S){return S!=null&&jn(S.length)&&!Dr(S)}var Mi=Vn||Kg;function Pc(S,L){return Tc(S,L)}function Dr(S){if(!Lc(S))return!1;var L=Di(S);return L==d||L==h||L==l||L==x}function jn(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=o}function Lc(S){var L=typeof S;return S!=null&&(L=="object"||L=="function")}function zn(S){return S!=null&&typeof S=="object"}var Oc=ae?ct(ae):Gs;function Rc(S){return kc(S)?Ig(S):Pg(S)}function Ng(){return[]}function Kg(){return!1}e.exports=Pc})(_h,_h.exports);var vq=_h.exports,PI={exports:{}};(function(e,t){var A=function(){var r=function(b,C){var w=236,E=17,Q=b,_=i[C],H=null,I=0,R=null,D=[],N={},G=function($,j){I=Q*4+17,H=function(M){for(var V=new Array(M),K=0;K<M;K+=1){V[K]=new Array(M);for(var ee=0;ee<M;ee+=1)V[K][ee]=null}return V}(I),J(0,0),J(I-7,0),J(0,I-7),Y(),W(),ue($,j),Q>=7&&q($),R==null&&(R=te(Q,_,D)),ne(R,j)},J=function($,j){for(var M=-1;M<=7;M+=1)if(!($+M<=-1||I<=$+M))for(var V=-1;V<=7;V+=1)j+V<=-1||I<=j+V||(0<=M&&M<=6&&(V==0||V==6)||0<=V&&V<=6&&(M==0||M==6)||2<=M&&M<=4&&2<=V&&V<=4?H[$+M][j+V]=!0:H[$+M][j+V]=!1)},z=function(){for(var $=0,j=0,M=0;M<8;M+=1){G(!0,M);var V=a.getLostPoint(N);(M==0||$>V)&&($=V,j=M)}return j},W=function(){for(var $=8;$<I-8;$+=1)H[$][6]==null&&(H[$][6]=$%2==0);for(var j=8;j<I-8;j+=1)H[6][j]==null&&(H[6][j]=j%2==0)},Y=function(){for(var $=a.getPatternPosition(Q),j=0;j<$.length;j+=1)for(var M=0;M<$.length;M+=1){var V=$[j],K=$[M];if(H[V][K]==null)for(var ee=-2;ee<=2;ee+=1)for(var ae=-2;ae<=2;ae+=1)ee==-2||ee==2||ae==-2||ae==2||ee==0&&ae==0?H[V+ee][K+ae]=!0:H[V+ee][K+ae]=!1}},q=function($){for(var j=a.getBCHTypeNumber(Q),M=0;M<18;M+=1){var V=!$&&(j>>M&1)==1;H[Math.floor(M/3)][M%3+I-8-3]=V}for(var M=0;M<18;M+=1){var V=!$&&(j>>M&1)==1;H[M%3+I-8-3][Math.floor(M/3)]=V}},ue=function($,j){for(var M=_<<3|j,V=a.getBCHTypeInfo(M),K=0;K<15;K+=1){var ee=!$&&(V>>K&1)==1;K<6?H[K][8]=ee:K<8?H[K+1][8]=ee:H[I-15+K][8]=ee}for(var K=0;K<15;K+=1){var ee=!$&&(V>>K&1)==1;K<8?H[8][I-K-1]=ee:K<9?H[8][15-K-1+1]=ee:H[8][15-K-1]=ee}H[I-8][8]=!$},ne=function($,j){for(var M=-1,V=I-1,K=7,ee=0,ae=a.getMaskFunction(j),oe=I-1;oe>0;oe-=2)for(oe==6&&(oe-=1);;){for(var Ue=0;Ue<2;Ue+=1)if(H[V][oe-Ue]==null){var Ne=!1;ee<$.length&&(Ne=($[ee]>>>K&1)==1);var he=ae(V,oe-Ue);he&&(Ne=!Ne),H[V][oe-Ue]=Ne,K-=1,K==-1&&(ee+=1,K=7)}if(V+=M,V<0||I<=V){V-=M,M=-M;break}}},pe=function($,j){for(var M=0,V=0,K=0,ee=new Array(j.length),ae=new Array(j.length),oe=0;oe<j.length;oe+=1){var Ue=j[oe].dataCount,Ne=j[oe].totalCount-Ue;V=Math.max(V,Ue),K=Math.max(K,Ne),ee[oe]=new Array(Ue);for(var he=0;he<ee[oe].length;he+=1)ee[oe][he]=255&$.getBuffer()[he+M];M+=Ue;var ct=a.getErrorCorrectPolynomial(Ne),Re=l(ee[oe],ct.getLength()-1),Kt=Re.mod(ct);ae[oe]=new Array(ct.getLength()-1);for(var he=0;he<ae[oe].length;he+=1){var eA=he+Kt.getLength()-ae[oe].length;ae[oe][he]=eA>=0?Kt.getAt(eA):0}}for(var vt=0,he=0;he<j.length;he+=1)vt+=j[he].totalCount;for(var tA=new Array(vt),uA=0,he=0;he<V;he+=1)for(var oe=0;oe<j.length;oe+=1)he<ee[oe].length&&(tA[uA]=ee[oe][he],uA+=1);for(var he=0;he<K;he+=1)for(var oe=0;oe<j.length;oe+=1)he<ae[oe].length&&(tA[uA]=ae[oe][he],uA+=1);return tA},te=function($,j,M){for(var V=u.getRSBlocks($,j),K=c(),ee=0;ee<M.length;ee+=1){var ae=M[ee];K.put(ae.getMode(),4),K.put(ae.getLength(),a.getLengthInBits(ae.getMode(),$)),ae.write(K)}for(var oe=0,ee=0;ee<V.length;ee+=1)oe+=V[ee].dataCount;if(K.getLengthInBits()>oe*8)throw"code length overflow. ("+K.getLengthInBits()+">"+oe*8+")";for(K.getLengthInBits()+4<=oe*8&&K.put(0,4);K.getLengthInBits()%8!=0;)K.putBit(!1);for(;!(K.getLengthInBits()>=oe*8||(K.put(w,8),K.getLengthInBits()>=oe*8));)K.put(E,8);return pe(K,V)};N.addData=function($,j){j=j||"Byte";var M=null;switch(j){case"Numeric":M=f($);break;case"Alphanumeric":M=d($);break;case"Byte":M=h($);break;case"Kanji":M=p($);break;default:throw"mode:"+j}D.push(M),R=null},N.isDark=function($,j){if($<0||I<=$||j<0||I<=j)throw $+","+j;return H[$][j]},N.getModuleCount=function(){return I},N.make=function(){if(Q<1){for(var $=1;$<40;$++){for(var j=u.getRSBlocks($,_),M=c(),V=0;V<D.length;V++){var K=D[V];M.put(K.getMode(),4),M.put(K.getLength(),a.getLengthInBits(K.getMode(),$)),K.write(M)}for(var ee=0,V=0;V<j.length;V++)ee+=j[V].dataCount;if(M.getLengthInBits()<=ee*8)break}Q=$}G(!1,z())},N.createTableTag=function($,j){$=$||2,j=typeof j>"u"?$*4:j;var M="";M+='<table style="',M+=" border-width: 0px; border-style: none;",M+=" border-collapse: collapse;",M+=" padding: 0px; margin: "+j+"px;",M+='">',M+="<tbody>";for(var V=0;V<N.getModuleCount();V+=1){M+="<tr>";for(var K=0;K<N.getModuleCount();K+=1)M+='<td style="',M+=" border-width: 0px; border-style: none;",M+=" border-collapse: collapse;",M+=" padding: 0px; margin: 0px;",M+=" width: "+$+"px;",M+=" height: "+$+"px;",M+=" background-color: ",M+=N.isDark(V,K)?"#000000":"#ffffff",M+=";",M+='"/>';M+="</tr>"}return M+="</tbody>",M+="</table>",M},N.createSvgTag=function($,j,M,V){var K={};typeof arguments[0]=="object"&&(K=arguments[0],$=K.cellSize,j=K.margin,M=K.alt,V=K.title),$=$||2,j=typeof j>"u"?$*4:j,M=typeof M=="string"?{text:M}:M||{},M.text=M.text||null,M.id=M.text?M.id||"qrcode-description":null,V=typeof V=="string"?{text:V}:V||{},V.text=V.text||null,V.id=V.text?V.id||"qrcode-title":null;var ee=N.getModuleCount()*$+j*2,ae,oe,Ue,Ne,he="",ct;for(ct="l"+$+",0 0,"+$+" -"+$+",0 0,-"+$+"z ",he+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',he+=K.scalable?"":' width="'+ee+'px" height="'+ee+'px"',he+=' viewBox="0 0 '+ee+" "+ee+'" ',he+=' preserveAspectRatio="xMinYMin meet"',he+=V.text||M.text?' role="img" aria-labelledby="'+ge([V.id,M.id].join(" ").trim())+'"':"",he+=">",he+=V.text?'<title id="'+ge(V.id)+'">'+ge(V.text)+"</title>":"",he+=M.text?'<description id="'+ge(M.id)+'">'+ge(M.text)+"</description>":"",he+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',he+='<path d="',Ue=0;Ue<N.getModuleCount();Ue+=1)for(Ne=Ue*$+j,ae=0;ae<N.getModuleCount();ae+=1)N.isDark(Ue,ae)&&(oe=ae*$+j,he+="M"+oe+","+Ne+ct);return he+='" stroke="transparent" fill="black"/>',he+="</svg>",he},N.createDataURL=function($,j){$=$||2,j=typeof j>"u"?$*4:j;var M=N.getModuleCount()*$+j*2,V=j,K=M-j;return x(M,M,function(ee,ae){if(V<=ee&&ee<K&&V<=ae&&ae<K){var oe=Math.floor((ee-V)/$),Ue=Math.floor((ae-V)/$);return N.isDark(Ue,oe)?0:1}else return 1})},N.createImgTag=function($,j,M){$=$||2,j=typeof j>"u"?$*4:j;var V=N.getModuleCount()*$+j*2,K="";return K+="<img",K+=' src="',K+=N.createDataURL($,j),K+='"',K+=' width="',K+=V,K+='"',K+=' height="',K+=V,K+='"',M&&(K+=' alt="',K+=ge(M),K+='"'),K+="/>",K};var ge=function($){for(var j="",M=0;M<$.length;M+=1){var V=$.charAt(M);switch(V){case"<":j+="<";break;case">":j+=">";break;case"&":j+="&";break;case'"':j+=""";break;default:j+=V;break}}return j},Ee=function($){var j=1;$=typeof $>"u"?j*2:$;var M=N.getModuleCount()*j+$*2,V=$,K=M-$,ee,ae,oe,Ue,Ne,he={"██":"█","█ ":"▀"," █":"▄"," ":" "},ct={"██":"▀","█ ":"▀"," █":" "," ":" "},Re="";for(ee=0;ee<M;ee+=2){for(oe=Math.floor((ee-V)/j),Ue=Math.floor((ee+1-V)/j),ae=0;ae<M;ae+=1)Ne="█",V<=ae&&ae<K&&V<=ee&&ee<K&&N.isDark(oe,Math.floor((ae-V)/j))&&(Ne=" "),V<=ae&&ae<K&&V<=ee+1&&ee+1<K&&N.isDark(Ue,Math.floor((ae-V)/j))?Ne+=" ":Ne+="█",Re+=$<1&&ee+1>=K?ct[Ne]:he[Ne];Re+=` `}return M%2&&$>0?Re.substring(0,Re.length-M-1)+Array(M+1).join("▀"):Re.substring(0,Re.length-1)};return N.createASCII=function($,j){if($=$||1,$<2)return Ee(j);$-=1,j=typeof j>"u"?$*2:j;var M=N.getModuleCount()*$+j*2,V=j,K=M-j,ee,ae,oe,Ue,Ne=Array($+1).join("██"),he=Array($+1).join(" "),ct="",Re="";for(ee=0;ee<M;ee+=1){for(oe=Math.floor((ee-V)/$),Re="",ae=0;ae<M;ae+=1)Ue=1,V<=ae&&ae<K&&V<=ee&&ee<K&&N.isDark(oe,Math.floor((ae-V)/$))&&(Ue=0),Re+=Ue?Ne:he;for(oe=0;oe<$;oe+=1)ct+=Re+` -`}return ct.substring(0,ct.length-1)},N.renderTo2dContext=function($,j){j=j||2;for(var M=N.getModuleCount(),V=0;V<M;V++)for(var K=0;K<M;K++)$.fillStyle=N.isDark(V,K)?"black":"white",$.fillRect(V*j,K*j,j,j)},N};r.stringToBytesFuncs={default:function(b){for(var C=[],w=0;w<b.length;w+=1){var E=b.charCodeAt(w);C.push(E&255)}return C}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,C){var w=function(){for(var Q=g(b),_=function(){var W=Q.read();if(W==-1)throw"eof";return W},H=0,I={};;){var R=Q.read();if(R==-1)break;var D=_(),N=_(),G=_(),J=String.fromCharCode(R<<8|D),z=N<<8|G;I[J]=z,H+=1}if(H!=C)throw H+" != "+C;return I}(),E=63;return function(Q){for(var _=[],H=0;H<Q.length;H+=1){var I=Q.charCodeAt(H);if(I<128)_.push(I);else{var R=w[Q.charAt(H)];typeof R=="number"?(R&255)==R?_.push(R):(_.push(R>>>8),_.push(R&255)):_.push(E)}}return _}};var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a=function(){var b=[[],[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]],C=1335,w=7973,E=21522,Q={},_=function(H){for(var I=0;H!=0;)I+=1,H>>>=1;return I};return Q.getBCHTypeInfo=function(H){for(var I=H<<10;_(I)-_(C)>=0;)I^=C<<_(I)-_(C);return(H<<10|I)^E},Q.getBCHTypeNumber=function(H){for(var I=H<<12;_(I)-_(w)>=0;)I^=w<<_(I)-_(w);return H<<12|I},Q.getPatternPosition=function(H){return b[H-1]},Q.getMaskFunction=function(H){switch(H){case o.PATTERN000:return function(I,R){return(I+R)%2==0};case o.PATTERN001:return function(I,R){return I%2==0};case o.PATTERN010:return function(I,R){return R%3==0};case o.PATTERN011:return function(I,R){return(I+R)%3==0};case o.PATTERN100:return function(I,R){return(Math.floor(I/2)+Math.floor(R/3))%2==0};case o.PATTERN101:return function(I,R){return I*R%2+I*R%3==0};case o.PATTERN110:return function(I,R){return(I*R%2+I*R%3)%2==0};case o.PATTERN111:return function(I,R){return(I*R%3+(I+R)%2)%2==0};default:throw"bad maskPattern:"+H}},Q.getErrorCorrectPolynomial=function(H){for(var I=l([1],0),R=0;R<H;R+=1)I=I.multiply(l([1,s.gexp(R)],0));return I},Q.getLengthInBits=function(H,I){if(1<=I&&I<10)switch(H){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:return 8;case n.MODE_KANJI:return 8;default:throw"mode:"+H}else if(I<27)switch(H){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw"mode:"+H}else if(I<41)switch(H){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw"mode:"+H}else throw"type:"+I},Q.getLostPoint=function(H){for(var I=H.getModuleCount(),R=0,D=0;D<I;D+=1)for(var N=0;N<I;N+=1){for(var G=0,J=H.isDark(D,N),z=-1;z<=1;z+=1)if(!(D+z<0||I<=D+z))for(var W=-1;W<=1;W+=1)N+W<0||I<=N+W||z==0&&W==0||J==H.isDark(D+z,N+W)&&(G+=1);G>5&&(R+=3+G-5)}for(var D=0;D<I-1;D+=1)for(var N=0;N<I-1;N+=1){var Y=0;H.isDark(D,N)&&(Y+=1),H.isDark(D+1,N)&&(Y+=1),H.isDark(D,N+1)&&(Y+=1),H.isDark(D+1,N+1)&&(Y+=1),(Y==0||Y==4)&&(R+=3)}for(var D=0;D<I;D+=1)for(var N=0;N<I-6;N+=1)H.isDark(D,N)&&!H.isDark(D,N+1)&&H.isDark(D,N+2)&&H.isDark(D,N+3)&&H.isDark(D,N+4)&&!H.isDark(D,N+5)&&H.isDark(D,N+6)&&(R+=40);for(var N=0;N<I;N+=1)for(var D=0;D<I-6;D+=1)H.isDark(D,N)&&!H.isDark(D+1,N)&&H.isDark(D+2,N)&&H.isDark(D+3,N)&&H.isDark(D+4,N)&&!H.isDark(D+5,N)&&H.isDark(D+6,N)&&(R+=40);for(var q=0,N=0;N<I;N+=1)for(var D=0;D<I;D+=1)H.isDark(D,N)&&(q+=1);var ue=Math.abs(100*q/I/I-50)/5;return R+=ue*10,R},Q}(),s=function(){for(var b=new Array(256),C=new Array(256),w=0;w<8;w+=1)b[w]=1<<w;for(var w=8;w<256;w+=1)b[w]=b[w-4]^b[w-5]^b[w-6]^b[w-8];for(var w=0;w<255;w+=1)C[b[w]]=w;var E={};return E.glog=function(Q){if(Q<1)throw"glog("+Q+")";return C[Q]},E.gexp=function(Q){for(;Q<0;)Q+=255;for(;Q>=256;)Q-=255;return b[Q]},E}();function l(b,C){if(typeof b.length>"u")throw b.length+"/"+C;var w=function(){for(var Q=0;Q<b.length&&b[Q]==0;)Q+=1;for(var _=new Array(b.length-Q+C),H=0;H<b.length-Q;H+=1)_[H]=b[H+Q];return _}(),E={};return E.getAt=function(Q){return w[Q]},E.getLength=function(){return w.length},E.multiply=function(Q){for(var _=new Array(E.getLength()+Q.getLength()-1),H=0;H<E.getLength();H+=1)for(var I=0;I<Q.getLength();I+=1)_[H+I]^=s.gexp(s.glog(E.getAt(H))+s.glog(Q.getAt(I)));return l(_,0)},E.mod=function(Q){if(E.getLength()-Q.getLength()<0)return E;for(var _=s.glog(E.getAt(0))-s.glog(Q.getAt(0)),H=new Array(E.getLength()),I=0;I<E.getLength();I+=1)H[I]=E.getAt(I);for(var I=0;I<Q.getLength();I+=1)H[I]^=s.gexp(s.glog(Q.getAt(I))+_);return l(H,0).mod(Q)},E}var u=function(){var b=[[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]],C=function(Q,_){var H={};return H.totalCount=Q,H.dataCount=_,H},w={},E=function(Q,_){switch(_){case i.L:return b[(Q-1)*4+0];case i.M:return b[(Q-1)*4+1];case i.Q:return b[(Q-1)*4+2];case i.H:return b[(Q-1)*4+3];default:return}};return w.getRSBlocks=function(Q,_){var H=E(Q,_);if(typeof H>"u")throw"bad rs block @ typeNumber:"+Q+"/errorCorrectionLevel:"+_;for(var I=H.length/3,R=[],D=0;D<I;D+=1)for(var N=H[D*3+0],G=H[D*3+1],J=H[D*3+2],z=0;z<N;z+=1)R.push(C(G,J));return R},w}(),c=function(){var b=[],C=0,w={};return w.getBuffer=function(){return b},w.getAt=function(E){var Q=Math.floor(E/8);return(b[Q]>>>7-E%8&1)==1},w.put=function(E,Q){for(var _=0;_<Q;_+=1)w.putBit((E>>>Q-_-1&1)==1)},w.getLengthInBits=function(){return C},w.putBit=function(E){var Q=Math.floor(C/8);b.length<=Q&&b.push(0),E&&(b[Q]|=128>>>C%8),C+=1},w},f=function(b){var C=n.MODE_NUMBER,w=b,E={};E.getMode=function(){return C},E.getLength=function(H){return w.length},E.write=function(H){for(var I=w,R=0;R+2<I.length;)H.put(Q(I.substring(R,R+3)),10),R+=3;R<I.length&&(I.length-R==1?H.put(Q(I.substring(R,R+1)),4):I.length-R==2&&H.put(Q(I.substring(R,R+2)),7))};var Q=function(H){for(var I=0,R=0;R<H.length;R+=1)I=I*10+_(H.charAt(R));return I},_=function(H){if("0"<=H&&H<="9")return H.charCodeAt(0)-48;throw"illegal char :"+H};return E},d=function(b){var C=n.MODE_ALPHA_NUM,w=b,E={};E.getMode=function(){return C},E.getLength=function(_){return w.length},E.write=function(_){for(var H=w,I=0;I+1<H.length;)_.put(Q(H.charAt(I))*45+Q(H.charAt(I+1)),11),I+=2;I<H.length&&_.put(Q(H.charAt(I)),6)};var Q=function(_){if("0"<=_&&_<="9")return _.charCodeAt(0)-48;if("A"<=_&&_<="Z")return _.charCodeAt(0)-65+10;switch(_){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 :"+_}};return E},h=function(b){var C=n.MODE_8BIT_BYTE,w=r.stringToBytes(b),E={};return E.getMode=function(){return C},E.getLength=function(Q){return w.length},E.write=function(Q){for(var _=0;_<w.length;_+=1)Q.put(w[_],8)},E},p=function(b){var C=n.MODE_KANJI,w=r.stringToBytesFuncs.SJIS;if(!w)throw"sjis not supported.";(function(_,H){var I=w(_);if(I.length!=2||(I[0]<<8|I[1])!=H)throw"sjis not supported."})("友",38726);var E=w(b),Q={};return Q.getMode=function(){return C},Q.getLength=function(_){return~~(E.length/2)},Q.write=function(_){for(var H=E,I=0;I+1<H.length;){var R=(255&H[I])<<8|255&H[I+1];if(33088<=R&&R<=40956)R-=33088;else if(57408<=R&&R<=60351)R-=49472;else throw"illegal char at "+(I+1)+"/"+R;R=(R>>>8&255)*192+(R&255),_.put(R,13),I+=2}if(I<H.length)throw"illegal char at "+(I+1)},Q},y=function(){var b=[],C={};return C.writeByte=function(w){b.push(w&255)},C.writeShort=function(w){C.writeByte(w),C.writeByte(w>>>8)},C.writeBytes=function(w,E,Q){E=E||0,Q=Q||w.length;for(var _=0;_<Q;_+=1)C.writeByte(w[_+E])},C.writeString=function(w){for(var E=0;E<w.length;E+=1)C.writeByte(w.charCodeAt(E))},C.toByteArray=function(){return b},C.toString=function(){var w="";w+="[";for(var E=0;E<b.length;E+=1)E>0&&(w+=","),w+=b[E];return w+="]",w},C},v=function(){var b=0,C=0,w=0,E="",Q={},_=function(I){E+=String.fromCharCode(H(I&63))},H=function(I){if(!(I<0)){if(I<26)return 65+I;if(I<52)return 97+(I-26);if(I<62)return 48+(I-52);if(I==62)return 43;if(I==63)return 47}throw"n:"+I};return Q.writeByte=function(I){for(b=b<<8|I&255,C+=8,w+=1;C>=6;)_(b>>>C-6),C-=6},Q.flush=function(){if(C>0&&(_(b<<6-C),b=0,C=0),w%3!=0)for(var I=3-w%3,R=0;R<I;R+=1)E+="="},Q.toString=function(){return E},Q},g=function(b){var C=b,w=0,E=0,Q=0,_={};_.read=function(){for(;Q<8;){if(w>=C.length){if(Q==0)return-1;throw"unexpected end of file./"+Q}var I=C.charAt(w);if(w+=1,I=="=")return Q=0,-1;if(I.match(/^\s$/))continue;E=E<<6|H(I.charCodeAt(0)),Q+=6}var R=E>>>Q-8&255;return Q-=8,R};var H=function(I){if(65<=I&&I<=90)return I-65;if(97<=I&&I<=122)return I-97+26;if(48<=I&&I<=57)return I-48+52;if(I==43)return 62;if(I==47)return 63;throw"c:"+I};return _},B=function(b,C){var w=b,E=C,Q=new Array(b*C),_={};_.setPixel=function(D,N,G){Q[N*w+D]=G},_.write=function(D){D.writeString("GIF87a"),D.writeShort(w),D.writeShort(E),D.writeByte(128),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(255),D.writeByte(255),D.writeByte(255),D.writeString(","),D.writeShort(0),D.writeShort(0),D.writeShort(w),D.writeShort(E),D.writeByte(0);var N=2,G=I(N);D.writeByte(N);for(var J=0;G.length-J>255;)D.writeByte(255),D.writeBytes(G,J,255),J+=255;D.writeByte(G.length-J),D.writeBytes(G,J,G.length-J),D.writeByte(0),D.writeString(";")};var H=function(D){var N=D,G=0,J=0,z={};return z.write=function(W,Y){if(W>>>Y)throw"length over";for(;G+Y>=8;)N.writeByte(255&(W<<G|J)),Y-=8-G,W>>>=8-G,J=0,G=0;J=W<<G|J,G=G+Y},z.flush=function(){G>0&&N.writeByte(J)},z},I=function(D){for(var N=1<<D,G=(1<<D)+1,J=D+1,z=R(),W=0;W<N;W+=1)z.add(String.fromCharCode(W));z.add(String.fromCharCode(N)),z.add(String.fromCharCode(G));var Y=y(),q=H(Y);q.write(N,J);var ue=0,ne=String.fromCharCode(Q[ue]);for(ue+=1;ue<Q.length;){var pe=String.fromCharCode(Q[ue]);ue+=1,z.contains(ne+pe)?ne=ne+pe:(q.write(z.indexOf(ne),J),z.size()<4095&&(z.size()==1<<J&&(J+=1),z.add(ne+pe)),ne=pe)}return q.write(z.indexOf(ne),J),q.write(G,J),q.flush(),Y.toByteArray()},R=function(){var D={},N=0,G={};return G.add=function(J){if(G.contains(J))throw"dup key:"+J;D[J]=N,N+=1},G.size=function(){return N},G.indexOf=function(J){return D[J]},G.contains=function(J){return typeof D[J]<"u"},G};return _},x=function(b,C,w){for(var E=B(b,C),Q=0;Q<C;Q+=1)for(var _=0;_<b;_+=1)E.setPixel(_,Q,w(_,Q));var H=y();E.write(H);for(var I=v(),R=H.toByteArray(),D=0;D<R.length;D+=1)I.writeByte(R[D]);return I.flush(),"data:image/gif;base64,"+I};return r}();(function(){A.stringToBytesFuncs["UTF-8"]=function(r){function n(i){for(var o=[],a=0;a<i.length;a++){var s=i.charCodeAt(a);s<128?o.push(s):s<2048?o.push(192|s>>6,128|s&63):s<55296||s>=57344?o.push(224|s>>12,128|s>>6&63,128|s&63):(a++,s=65536+((s&1023)<<10|i.charCodeAt(a)&1023),o.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|s&63))}return o}return n(r)}})(),function(r){e.exports=r()}(function(){return A})})(PI);var mq=PI.exports,Bq=pA&&pA.__extends||function(){var e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},e(t,A)};return function(t,A){e(t,A);function r(){this.constructor=t}t.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}}();Object.defineProperty(Xw,"__esModule",{value:!0});var LI=Xw.QRCode=void 0,yq=vq,wq=mq,Cv=T,Cq=op,bq=function(e){Bq(t,e);function t(A){var r=e.call(this,A)||this;return r.canvas=Cv.createRef(),r}return t.utf16to8=function(A){var r="",n,i,o=A.length;for(n=0;n<o;n++)i=A.charCodeAt(n),i>=1&&i<=127?r+=A.charAt(n):i>2047?(r+=String.fromCharCode(224|i>>12&15),r+=String.fromCharCode(128|i>>6&63),r+=String.fromCharCode(128|i>>0&63)):(r+=String.fromCharCode(192|i>>6&31),r+=String.fromCharCode(128|i>>0&63));return r},t.prototype.drawRoundedSquare=function(A,r,n,i,o,a,s,l){l.lineWidth=A,l.fillStyle=o,l.strokeStyle=o,n+=A/2,r+=A/2,i-=A,Array.isArray(a)||(a=[a,a,a,a]),a=a.map(function(h){return h=Math.min(h,i/2),h<0?0:h});var u=a[0]||0,c=a[1]||0,f=a[2]||0,d=a[3]||0;l.beginPath(),l.moveTo(r+u,n),l.lineTo(r+i-c,n),c&&l.quadraticCurveTo(r+i,n,r+i,n+c),l.lineTo(r+i,n+i-f),f&&l.quadraticCurveTo(r+i,n+i,r+i-f,n+i),l.lineTo(r+d,n+i),d&&l.quadraticCurveTo(r,n+i,r,n+i-d),l.lineTo(r,n+u),u&&l.quadraticCurveTo(r,n,r+u,n),l.closePath(),l.stroke(),s&&l.fill()},t.prototype.drawPositioningPattern=function(A,r,n,i,o,a,s){s===void 0&&(s=[0,0,0,0]);var l=Math.ceil(r),u,c;typeof s!="number"&&!Array.isArray(s)?(u=s.outer||0,c=s.inner||0):(u=s,c=u);var f,d;typeof a!="string"?(f=a.outer,d=a.inner):(f=a,d=a);var h=i*r+n,p=o*r+n,y=r*7;this.drawRoundedSquare(l,p,h,y,f,u,!1,A),y=r*3,h+=r*2,p+=r*2,this.drawRoundedSquare(l,p,h,y,d,c,!0,A)},t.prototype.isInPositioninZone=function(A,r,n){return n.some(function(i){return r>=i.row&&r<=i.row+7&&A>=i.col&&A<=i.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(A,r){return A/r},t.prototype.isCoordinateInImage=function(A,r,n,i,o,a,s,l){if(l){var u=2,c=this.transformPixelLengthIntoNumberOfCells(o,s),f=this.transformPixelLengthIntoNumberOfCells(a,s),d=this.transformPixelLengthIntoNumberOfCells(n,s)-1,h=this.transformPixelLengthIntoNumberOfCells(i,s)-1;return r>=c-u&&r<=c+d+u&&A>=f-u&&A<=f+h+u}else return!1},t.prototype.shouldComponentUpdate=function(A){return!yq(this.props,A)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var A=this.props,r=A.value,n=A.ecLevel,i=A.enableCORS,o=A.bgColor,a=A.fgColor,s=A.logoImage,l=A.logoOpacity,u=A.logoOnLoad,c=A.removeQrCodeBehindLogo,f=A.qrStyle,d=A.eyeRadius,h=A.eyeColor,p=A.logoPaddingStyle,y=+this.props.size,v=+this.props.quietZone,g=this.props.logoWidth?+this.props.logoWidth:0,B=this.props.logoHeight?+this.props.logoHeight:0,x=this.props.logoPadding?+this.props.logoPadding:0,b=wq(0,n);b.addData(t.utf16to8(r)),b.make();var C=Cq.findDOMNode(this.canvas.current),w=C.getContext("2d"),E=y+2*v,Q=b.getModuleCount(),_=y/Q,H=window.devicePixelRatio||1;C.height=C.width=E*H,w.scale(H,H),w.fillStyle=o,w.fillRect(0,0,E,E);var I=v,R=[{row:0,col:0},{row:0,col:Q-7},{row:Q-7,col:0}];if(w.strokeStyle=a,f==="dots"){w.fillStyle=a;for(var D=_/2,N=0;N<Q;N++)for(var G=0;G<Q;G++)b.isDark(N,G)&&!this.isInPositioninZone(N,G,R)&&(w.beginPath(),w.arc(Math.round(G*_)+D+I,Math.round(N*_)+D+I,D/100*75,0,2*Math.PI,!1),w.closePath(),w.fill())}else for(var N=0;N<Q;N++)for(var G=0;G<Q;G++)if(b.isDark(N,G)&&!this.isInPositioninZone(N,G,R)){w.fillStyle=a;var J=Math.ceil((G+1)*_)-Math.floor(G*_),z=Math.ceil((N+1)*_)-Math.floor(N*_);w.fillRect(Math.round(G*_)+I,Math.round(N*_)+I,J,z)}for(var W=0;W<3;W++){var Y=R[W],N=Y.row,G=Y.col,q=d,ue=void 0;Array.isArray(q)&&(q=q[W]),typeof q=="number"&&(q=[q,q,q,q]),h?Array.isArray(h)?ue=h[W]:ue=h:ue=a,this.drawPositioningPattern(w,_,I,N,G,ue,q)}if(s){var ne=new Image;i&&(ne.crossOrigin="Anonymous"),ne.onload=function(){w.save();var pe=g||y*.2,te=B||pe,ge=(y-pe)/2,Ee=(y-te)/2;if(c||x){w.beginPath(),w.strokeStyle=o,w.fillStyle=o;var $=pe+2*x,j=te+2*x,M=ge+I-x,V=Ee+I-x;if(p==="circle"){var K=M+$/2,ee=V+j/2;w.ellipse(K,ee,$/2,j/2,0,0,2*Math.PI),w.stroke(),w.fill()}else w.fillRect(M,V,$,j)}w.globalAlpha=l,w.drawImage(ne,ge+I,Ee+I,pe,te),w.restore(),u&&u()},ne.src=s}},t.prototype.render=function(){var A,r=+this.props.size+2*+this.props.quietZone;return Cv.createElement("canvas",{id:(A=this.props.id)!==null&&A!==void 0?A:"react-qrcode-logo",height:r,width:r,style:{height:r+"px",width:r+"px"},ref:this.canvas})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(Cv.Component);LI=Xw.QRCode=bq;var OI={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},US=F.createContext&&F.createContext(OI),xq=["attr","size","title"];function Fq(e,t){if(e==null)return{};var A=Sq(e,t),r,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(A[r]=e[r])}return A}function Sq(e,t){if(e==null)return{};var A={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(A[n]=e[n]);return A}function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Ih.apply(this,arguments)}function TS(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),A.push.apply(A,r)}return A}function Hh(e){for(var t=1;t<arguments.length;t++){var A=arguments[t]!=null?arguments[t]:{};t%2?TS(Object(A),!0).forEach(function(r){Qq(e,r,A[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):TS(Object(A)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(A,r))})}return e}function Qq(e,t,A){return t=Eq(t),t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}function Eq(e){var t=Uq(e,"string");return typeof t=="symbol"?t:String(t)}function Uq(e,t){if(typeof e!="object"||e===null)return e;var A=e[Symbol.toPrimitive];if(A!==void 0){var r=A.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RI(e){return e&&e.map((t,A)=>F.createElement(t.tag,Hh({key:A},t.attr),RI(t.child)))}function Pi(e){return t=>F.createElement(Tq,Ih({attr:Hh({},e.attr)},t),RI(e.child))}function Tq(e){var t=A=>{var{attr:r,size:n,title:i}=e,o=Fq(e,xq),a=n||A.size||"1em",s;return A.className&&(s=A.className),e.className&&(s=(s?s+" ":"")+e.className),F.createElement("svg",Ih({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},A.attr,r,o,{className:s,style:Hh(Hh({color:e.color||A.color},A.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&F.createElement("title",null,i),e.children)};return US!==void 0?F.createElement(US.Consumer,null,A=>t(A)):t(OI)}function _q(e){return Pi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"63.03",height:"378.2",x:"280.48",y:"122.9",fill:"none",strokeMiterlimit:"10",strokeWidth:"32",rx:"31.52",transform:"rotate(-45 312.002 311.994)"},child:[]},{tag:"path",attr:{d:"M178.38 178.38a31.64 31.64 0 0 0 0 44.75L223.25 268 268 223.25l-44.87-44.87a31.64 31.64 0 0 0-44.75 0z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M48 192h48M90.18 90.18l33.94 33.94M192 48v48m101.82-5.82-33.94 33.94M124.12 259.88l-33.94 33.94"},child:[]}]})(e)}function Iq(e){return Pi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m133.441 200.647 67.197-67.196 78.142 78.142-67.196 67.196zM301.41 234.21l-67.19 67.2L412 480l68-68-178.59-177.79zM32 176h80v32H32zm35.624-85.75 22.627-22.628 56.569 56.569-22.627 22.627zM176 32h32v80h-32zm61.32 92.195 56.569-56.569 22.627 22.627-56.569 56.569zM67.62 293.887l56.569-56.569 22.627 22.627-56.569 56.569z"},child:[]}]})(e)}function Hq(e){return Pi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M96 208H48c-8.8 0-16-7.2-16-16s7.2-16 16-16h48c8.8 0 16 7.2 16 16s-7.2 16-16 16zm28.1-67.9c-4.2 0-8.3-1.7-11.3-4.7l-33.9-33.9c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l33.9 33.9c6.3 6.2 6.3 16.4 0 22.6-3 3-7 4.7-11.3 4.7zM192 112c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16s16 7.2 16 16v48c0 8.8-7.2 16-16 16zm67.9 28.1c-8.8 0-16-7.2-16-16 0-4.2 1.7-8.3 4.7-11.3l33.9-33.9c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6l-33.9 33.9c-3 3-7.1 4.7-11.3 4.7zM90.2 309.8c-8.8 0-16-7.2-16-16 0-4.2 1.7-8.3 4.7-11.3l33.9-33.9c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-33.9 33.9c-3 3-7.1 4.7-11.3 4.7zm144-142.8c-18.4-18.7-48.5-19-67.2-.7s-19 48.5-.7 67.2l.7.7 39.5 39.5c3.1 3.1 8.2 3.1 11.3 0l55.9-55.9c3.1-3.1 3.1-8.2 0-11.3L234.2 167zM457 389.8 307.6 240.4c-3.1-3.1-8.2-3.1-11.3 0l-55.9 55.9c-3.1 3.1-3.1 8.2 0 11.3L389.8 457c18.4 18.7 48.5 19 67.2.7 18.7-18.4 19-48.5.7-67.2-.2-.2-.4-.5-.7-.7z"},child:[]}]})(e)}function kq(e){return Pi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64 63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z"},child:[]}]})(e)}function Pq(e){return Pi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"},child:[]}]})(e)}var Lq={BASE_URL:"/qrcode-generator/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _S=e=>{let t;const A=new Set,r=(u,c)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const d=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),A.forEach(h=>h(t,d))}},n=()=>t,s={setState:r,getState:n,getInitialState:()=>l,subscribe:u=>(A.add(u),()=>A.delete(u)),destroy:()=>{(Lq?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),A.clear()}},l=t=e(r,n,s);return s},Oq=e=>e?_S(e):_S;var DI={exports:{}},MI={},$I={exports:{}},NI={};/** +`}return ct.substring(0,ct.length-1)},N.renderTo2dContext=function($,j){j=j||2;for(var M=N.getModuleCount(),V=0;V<M;V++)for(var K=0;K<M;K++)$.fillStyle=N.isDark(V,K)?"black":"white",$.fillRect(V*j,K*j,j,j)},N};r.stringToBytesFuncs={default:function(b){for(var C=[],w=0;w<b.length;w+=1){var E=b.charCodeAt(w);C.push(E&255)}return C}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,C){var w=function(){for(var Q=g(b),_=function(){var W=Q.read();if(W==-1)throw"eof";return W},H=0,I={};;){var R=Q.read();if(R==-1)break;var D=_(),N=_(),G=_(),J=String.fromCharCode(R<<8|D),z=N<<8|G;I[J]=z,H+=1}if(H!=C)throw H+" != "+C;return I}(),E=63;return function(Q){for(var _=[],H=0;H<Q.length;H+=1){var I=Q.charCodeAt(H);if(I<128)_.push(I);else{var R=w[Q.charAt(H)];typeof R=="number"?(R&255)==R?_.push(R):(_.push(R>>>8),_.push(R&255)):_.push(E)}}return _}};var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a=function(){var b=[[],[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]],C=1335,w=7973,E=21522,Q={},_=function(H){for(var I=0;H!=0;)I+=1,H>>>=1;return I};return Q.getBCHTypeInfo=function(H){for(var I=H<<10;_(I)-_(C)>=0;)I^=C<<_(I)-_(C);return(H<<10|I)^E},Q.getBCHTypeNumber=function(H){for(var I=H<<12;_(I)-_(w)>=0;)I^=w<<_(I)-_(w);return H<<12|I},Q.getPatternPosition=function(H){return b[H-1]},Q.getMaskFunction=function(H){switch(H){case o.PATTERN000:return function(I,R){return(I+R)%2==0};case o.PATTERN001:return function(I,R){return I%2==0};case o.PATTERN010:return function(I,R){return R%3==0};case o.PATTERN011:return function(I,R){return(I+R)%3==0};case o.PATTERN100:return function(I,R){return(Math.floor(I/2)+Math.floor(R/3))%2==0};case o.PATTERN101:return function(I,R){return I*R%2+I*R%3==0};case o.PATTERN110:return function(I,R){return(I*R%2+I*R%3)%2==0};case o.PATTERN111:return function(I,R){return(I*R%3+(I+R)%2)%2==0};default:throw"bad maskPattern:"+H}},Q.getErrorCorrectPolynomial=function(H){for(var I=l([1],0),R=0;R<H;R+=1)I=I.multiply(l([1,s.gexp(R)],0));return I},Q.getLengthInBits=function(H,I){if(1<=I&&I<10)switch(H){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:return 8;case n.MODE_KANJI:return 8;default:throw"mode:"+H}else if(I<27)switch(H){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw"mode:"+H}else if(I<41)switch(H){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw"mode:"+H}else throw"type:"+I},Q.getLostPoint=function(H){for(var I=H.getModuleCount(),R=0,D=0;D<I;D+=1)for(var N=0;N<I;N+=1){for(var G=0,J=H.isDark(D,N),z=-1;z<=1;z+=1)if(!(D+z<0||I<=D+z))for(var W=-1;W<=1;W+=1)N+W<0||I<=N+W||z==0&&W==0||J==H.isDark(D+z,N+W)&&(G+=1);G>5&&(R+=3+G-5)}for(var D=0;D<I-1;D+=1)for(var N=0;N<I-1;N+=1){var Y=0;H.isDark(D,N)&&(Y+=1),H.isDark(D+1,N)&&(Y+=1),H.isDark(D,N+1)&&(Y+=1),H.isDark(D+1,N+1)&&(Y+=1),(Y==0||Y==4)&&(R+=3)}for(var D=0;D<I;D+=1)for(var N=0;N<I-6;N+=1)H.isDark(D,N)&&!H.isDark(D,N+1)&&H.isDark(D,N+2)&&H.isDark(D,N+3)&&H.isDark(D,N+4)&&!H.isDark(D,N+5)&&H.isDark(D,N+6)&&(R+=40);for(var N=0;N<I;N+=1)for(var D=0;D<I-6;D+=1)H.isDark(D,N)&&!H.isDark(D+1,N)&&H.isDark(D+2,N)&&H.isDark(D+3,N)&&H.isDark(D+4,N)&&!H.isDark(D+5,N)&&H.isDark(D+6,N)&&(R+=40);for(var q=0,N=0;N<I;N+=1)for(var D=0;D<I;D+=1)H.isDark(D,N)&&(q+=1);var ue=Math.abs(100*q/I/I-50)/5;return R+=ue*10,R},Q}(),s=function(){for(var b=new Array(256),C=new Array(256),w=0;w<8;w+=1)b[w]=1<<w;for(var w=8;w<256;w+=1)b[w]=b[w-4]^b[w-5]^b[w-6]^b[w-8];for(var w=0;w<255;w+=1)C[b[w]]=w;var E={};return E.glog=function(Q){if(Q<1)throw"glog("+Q+")";return C[Q]},E.gexp=function(Q){for(;Q<0;)Q+=255;for(;Q>=256;)Q-=255;return b[Q]},E}();function l(b,C){if(typeof b.length>"u")throw b.length+"/"+C;var w=function(){for(var Q=0;Q<b.length&&b[Q]==0;)Q+=1;for(var _=new Array(b.length-Q+C),H=0;H<b.length-Q;H+=1)_[H]=b[H+Q];return _}(),E={};return E.getAt=function(Q){return w[Q]},E.getLength=function(){return w.length},E.multiply=function(Q){for(var _=new Array(E.getLength()+Q.getLength()-1),H=0;H<E.getLength();H+=1)for(var I=0;I<Q.getLength();I+=1)_[H+I]^=s.gexp(s.glog(E.getAt(H))+s.glog(Q.getAt(I)));return l(_,0)},E.mod=function(Q){if(E.getLength()-Q.getLength()<0)return E;for(var _=s.glog(E.getAt(0))-s.glog(Q.getAt(0)),H=new Array(E.getLength()),I=0;I<E.getLength();I+=1)H[I]=E.getAt(I);for(var I=0;I<Q.getLength();I+=1)H[I]^=s.gexp(s.glog(Q.getAt(I))+_);return l(H,0).mod(Q)},E}var u=function(){var b=[[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]],C=function(Q,_){var H={};return H.totalCount=Q,H.dataCount=_,H},w={},E=function(Q,_){switch(_){case i.L:return b[(Q-1)*4+0];case i.M:return b[(Q-1)*4+1];case i.Q:return b[(Q-1)*4+2];case i.H:return b[(Q-1)*4+3];default:return}};return w.getRSBlocks=function(Q,_){var H=E(Q,_);if(typeof H>"u")throw"bad rs block @ typeNumber:"+Q+"/errorCorrectionLevel:"+_;for(var I=H.length/3,R=[],D=0;D<I;D+=1)for(var N=H[D*3+0],G=H[D*3+1],J=H[D*3+2],z=0;z<N;z+=1)R.push(C(G,J));return R},w}(),c=function(){var b=[],C=0,w={};return w.getBuffer=function(){return b},w.getAt=function(E){var Q=Math.floor(E/8);return(b[Q]>>>7-E%8&1)==1},w.put=function(E,Q){for(var _=0;_<Q;_+=1)w.putBit((E>>>Q-_-1&1)==1)},w.getLengthInBits=function(){return C},w.putBit=function(E){var Q=Math.floor(C/8);b.length<=Q&&b.push(0),E&&(b[Q]|=128>>>C%8),C+=1},w},f=function(b){var C=n.MODE_NUMBER,w=b,E={};E.getMode=function(){return C},E.getLength=function(H){return w.length},E.write=function(H){for(var I=w,R=0;R+2<I.length;)H.put(Q(I.substring(R,R+3)),10),R+=3;R<I.length&&(I.length-R==1?H.put(Q(I.substring(R,R+1)),4):I.length-R==2&&H.put(Q(I.substring(R,R+2)),7))};var Q=function(H){for(var I=0,R=0;R<H.length;R+=1)I=I*10+_(H.charAt(R));return I},_=function(H){if("0"<=H&&H<="9")return H.charCodeAt(0)-48;throw"illegal char :"+H};return E},d=function(b){var C=n.MODE_ALPHA_NUM,w=b,E={};E.getMode=function(){return C},E.getLength=function(_){return w.length},E.write=function(_){for(var H=w,I=0;I+1<H.length;)_.put(Q(H.charAt(I))*45+Q(H.charAt(I+1)),11),I+=2;I<H.length&&_.put(Q(H.charAt(I)),6)};var Q=function(_){if("0"<=_&&_<="9")return _.charCodeAt(0)-48;if("A"<=_&&_<="Z")return _.charCodeAt(0)-65+10;switch(_){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 :"+_}};return E},h=function(b){var C=n.MODE_8BIT_BYTE,w=r.stringToBytes(b),E={};return E.getMode=function(){return C},E.getLength=function(Q){return w.length},E.write=function(Q){for(var _=0;_<w.length;_+=1)Q.put(w[_],8)},E},p=function(b){var C=n.MODE_KANJI,w=r.stringToBytesFuncs.SJIS;if(!w)throw"sjis not supported.";(function(_,H){var I=w(_);if(I.length!=2||(I[0]<<8|I[1])!=H)throw"sjis not supported."})("友",38726);var E=w(b),Q={};return Q.getMode=function(){return C},Q.getLength=function(_){return~~(E.length/2)},Q.write=function(_){for(var H=E,I=0;I+1<H.length;){var R=(255&H[I])<<8|255&H[I+1];if(33088<=R&&R<=40956)R-=33088;else if(57408<=R&&R<=60351)R-=49472;else throw"illegal char at "+(I+1)+"/"+R;R=(R>>>8&255)*192+(R&255),_.put(R,13),I+=2}if(I<H.length)throw"illegal char at "+(I+1)},Q},y=function(){var b=[],C={};return C.writeByte=function(w){b.push(w&255)},C.writeShort=function(w){C.writeByte(w),C.writeByte(w>>>8)},C.writeBytes=function(w,E,Q){E=E||0,Q=Q||w.length;for(var _=0;_<Q;_+=1)C.writeByte(w[_+E])},C.writeString=function(w){for(var E=0;E<w.length;E+=1)C.writeByte(w.charCodeAt(E))},C.toByteArray=function(){return b},C.toString=function(){var w="";w+="[";for(var E=0;E<b.length;E+=1)E>0&&(w+=","),w+=b[E];return w+="]",w},C},v=function(){var b=0,C=0,w=0,E="",Q={},_=function(I){E+=String.fromCharCode(H(I&63))},H=function(I){if(!(I<0)){if(I<26)return 65+I;if(I<52)return 97+(I-26);if(I<62)return 48+(I-52);if(I==62)return 43;if(I==63)return 47}throw"n:"+I};return Q.writeByte=function(I){for(b=b<<8|I&255,C+=8,w+=1;C>=6;)_(b>>>C-6),C-=6},Q.flush=function(){if(C>0&&(_(b<<6-C),b=0,C=0),w%3!=0)for(var I=3-w%3,R=0;R<I;R+=1)E+="="},Q.toString=function(){return E},Q},g=function(b){var C=b,w=0,E=0,Q=0,_={};_.read=function(){for(;Q<8;){if(w>=C.length){if(Q==0)return-1;throw"unexpected end of file./"+Q}var I=C.charAt(w);if(w+=1,I=="=")return Q=0,-1;if(I.match(/^\s$/))continue;E=E<<6|H(I.charCodeAt(0)),Q+=6}var R=E>>>Q-8&255;return Q-=8,R};var H=function(I){if(65<=I&&I<=90)return I-65;if(97<=I&&I<=122)return I-97+26;if(48<=I&&I<=57)return I-48+52;if(I==43)return 62;if(I==47)return 63;throw"c:"+I};return _},B=function(b,C){var w=b,E=C,Q=new Array(b*C),_={};_.setPixel=function(D,N,G){Q[N*w+D]=G},_.write=function(D){D.writeString("GIF87a"),D.writeShort(w),D.writeShort(E),D.writeByte(128),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(255),D.writeByte(255),D.writeByte(255),D.writeString(","),D.writeShort(0),D.writeShort(0),D.writeShort(w),D.writeShort(E),D.writeByte(0);var N=2,G=I(N);D.writeByte(N);for(var J=0;G.length-J>255;)D.writeByte(255),D.writeBytes(G,J,255),J+=255;D.writeByte(G.length-J),D.writeBytes(G,J,G.length-J),D.writeByte(0),D.writeString(";")};var H=function(D){var N=D,G=0,J=0,z={};return z.write=function(W,Y){if(W>>>Y)throw"length over";for(;G+Y>=8;)N.writeByte(255&(W<<G|J)),Y-=8-G,W>>>=8-G,J=0,G=0;J=W<<G|J,G=G+Y},z.flush=function(){G>0&&N.writeByte(J)},z},I=function(D){for(var N=1<<D,G=(1<<D)+1,J=D+1,z=R(),W=0;W<N;W+=1)z.add(String.fromCharCode(W));z.add(String.fromCharCode(N)),z.add(String.fromCharCode(G));var Y=y(),q=H(Y);q.write(N,J);var ue=0,ne=String.fromCharCode(Q[ue]);for(ue+=1;ue<Q.length;){var pe=String.fromCharCode(Q[ue]);ue+=1,z.contains(ne+pe)?ne=ne+pe:(q.write(z.indexOf(ne),J),z.size()<4095&&(z.size()==1<<J&&(J+=1),z.add(ne+pe)),ne=pe)}return q.write(z.indexOf(ne),J),q.write(G,J),q.flush(),Y.toByteArray()},R=function(){var D={},N=0,G={};return G.add=function(J){if(G.contains(J))throw"dup key:"+J;D[J]=N,N+=1},G.size=function(){return N},G.indexOf=function(J){return D[J]},G.contains=function(J){return typeof D[J]<"u"},G};return _},x=function(b,C,w){for(var E=B(b,C),Q=0;Q<C;Q+=1)for(var _=0;_<b;_+=1)E.setPixel(_,Q,w(_,Q));var H=y();E.write(H);for(var I=v(),R=H.toByteArray(),D=0;D<R.length;D+=1)I.writeByte(R[D]);return I.flush(),"data:image/gif;base64,"+I};return r}();(function(){A.stringToBytesFuncs["UTF-8"]=function(r){function n(i){for(var o=[],a=0;a<i.length;a++){var s=i.charCodeAt(a);s<128?o.push(s):s<2048?o.push(192|s>>6,128|s&63):s<55296||s>=57344?o.push(224|s>>12,128|s>>6&63,128|s&63):(a++,s=65536+((s&1023)<<10|i.charCodeAt(a)&1023),o.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|s&63))}return o}return n(r)}})(),function(r){e.exports=r()}(function(){return A})})(PI);var mq=PI.exports,Bq=pA&&pA.__extends||function(){var e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},e(t,A)};return function(t,A){e(t,A);function r(){this.constructor=t}t.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}}();Object.defineProperty(Xw,"__esModule",{value:!0});var LI=Xw.QRCode=void 0,yq=vq,wq=mq,Cv=T,Cq=op,bq=function(e){Bq(t,e);function t(A){var r=e.call(this,A)||this;return r.canvas=Cv.createRef(),r}return t.utf16to8=function(A){var r="",n,i,o=A.length;for(n=0;n<o;n++)i=A.charCodeAt(n),i>=1&&i<=127?r+=A.charAt(n):i>2047?(r+=String.fromCharCode(224|i>>12&15),r+=String.fromCharCode(128|i>>6&63),r+=String.fromCharCode(128|i>>0&63)):(r+=String.fromCharCode(192|i>>6&31),r+=String.fromCharCode(128|i>>0&63));return r},t.prototype.drawRoundedSquare=function(A,r,n,i,o,a,s,l){l.lineWidth=A,l.fillStyle=o,l.strokeStyle=o,n+=A/2,r+=A/2,i-=A,Array.isArray(a)||(a=[a,a,a,a]),a=a.map(function(h){return h=Math.min(h,i/2),h<0?0:h});var u=a[0]||0,c=a[1]||0,f=a[2]||0,d=a[3]||0;l.beginPath(),l.moveTo(r+u,n),l.lineTo(r+i-c,n),c&&l.quadraticCurveTo(r+i,n,r+i,n+c),l.lineTo(r+i,n+i-f),f&&l.quadraticCurveTo(r+i,n+i,r+i-f,n+i),l.lineTo(r+d,n+i),d&&l.quadraticCurveTo(r,n+i,r,n+i-d),l.lineTo(r,n+u),u&&l.quadraticCurveTo(r,n,r+u,n),l.closePath(),l.stroke(),s&&l.fill()},t.prototype.drawPositioningPattern=function(A,r,n,i,o,a,s){s===void 0&&(s=[0,0,0,0]);var l=Math.ceil(r),u,c;typeof s!="number"&&!Array.isArray(s)?(u=s.outer||0,c=s.inner||0):(u=s,c=u);var f,d;typeof a!="string"?(f=a.outer,d=a.inner):(f=a,d=a);var h=i*r+n,p=o*r+n,y=r*7;this.drawRoundedSquare(l,p,h,y,f,u,!1,A),y=r*3,h+=r*2,p+=r*2,this.drawRoundedSquare(l,p,h,y,d,c,!0,A)},t.prototype.isInPositioninZone=function(A,r,n){return n.some(function(i){return r>=i.row&&r<=i.row+7&&A>=i.col&&A<=i.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(A,r){return A/r},t.prototype.isCoordinateInImage=function(A,r,n,i,o,a,s,l){if(l){var u=2,c=this.transformPixelLengthIntoNumberOfCells(o,s),f=this.transformPixelLengthIntoNumberOfCells(a,s),d=this.transformPixelLengthIntoNumberOfCells(n,s)-1,h=this.transformPixelLengthIntoNumberOfCells(i,s)-1;return r>=c-u&&r<=c+d+u&&A>=f-u&&A<=f+h+u}else return!1},t.prototype.shouldComponentUpdate=function(A){return!yq(this.props,A)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var A=this.props,r=A.value,n=A.ecLevel,i=A.enableCORS,o=A.bgColor,a=A.fgColor,s=A.logoImage,l=A.logoOpacity,u=A.logoOnLoad,c=A.removeQrCodeBehindLogo,f=A.qrStyle,d=A.eyeRadius,h=A.eyeColor,p=A.logoPaddingStyle,y=+this.props.size,v=+this.props.quietZone,g=this.props.logoWidth?+this.props.logoWidth:0,B=this.props.logoHeight?+this.props.logoHeight:0,x=this.props.logoPadding?+this.props.logoPadding:0,b=wq(0,n);b.addData(t.utf16to8(r)),b.make();var C=Cq.findDOMNode(this.canvas.current),w=C.getContext("2d"),E=y+2*v,Q=b.getModuleCount(),_=y/Q,H=window.devicePixelRatio||1;C.height=C.width=E*H,w.scale(H,H),w.fillStyle=o,w.fillRect(0,0,E,E);var I=v,R=[{row:0,col:0},{row:0,col:Q-7},{row:Q-7,col:0}];if(w.strokeStyle=a,f==="dots"){w.fillStyle=a;for(var D=_/2,N=0;N<Q;N++)for(var G=0;G<Q;G++)b.isDark(N,G)&&!this.isInPositioninZone(N,G,R)&&(w.beginPath(),w.arc(Math.round(G*_)+D+I,Math.round(N*_)+D+I,D/100*75,0,2*Math.PI,!1),w.closePath(),w.fill())}else for(var N=0;N<Q;N++)for(var G=0;G<Q;G++)if(b.isDark(N,G)&&!this.isInPositioninZone(N,G,R)){w.fillStyle=a;var J=Math.ceil((G+1)*_)-Math.floor(G*_),z=Math.ceil((N+1)*_)-Math.floor(N*_);w.fillRect(Math.round(G*_)+I,Math.round(N*_)+I,J,z)}for(var W=0;W<3;W++){var Y=R[W],N=Y.row,G=Y.col,q=d,ue=void 0;Array.isArray(q)&&(q=q[W]),typeof q=="number"&&(q=[q,q,q,q]),h?Array.isArray(h)?ue=h[W]:ue=h:ue=a,this.drawPositioningPattern(w,_,I,N,G,ue,q)}if(s){var ne=new Image;i&&(ne.crossOrigin="Anonymous"),ne.onload=function(){w.save();var pe=g||y*.2,te=B||pe,ge=(y-pe)/2,Ee=(y-te)/2;if(c||x){w.beginPath(),w.strokeStyle=o,w.fillStyle=o;var $=pe+2*x,j=te+2*x,M=ge+I-x,V=Ee+I-x;if(p==="circle"){var K=M+$/2,ee=V+j/2;w.ellipse(K,ee,$/2,j/2,0,0,2*Math.PI),w.stroke(),w.fill()}else w.fillRect(M,V,$,j)}w.globalAlpha=l,w.drawImage(ne,ge+I,Ee+I,pe,te),w.restore(),u&&u()},ne.src=s}},t.prototype.render=function(){var A,r=+this.props.size+2*+this.props.quietZone;return Cv.createElement("canvas",{id:(A=this.props.id)!==null&&A!==void 0?A:"react-qrcode-logo",height:r,width:r,style:{height:r+"px",width:r+"px"},ref:this.canvas})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(Cv.Component);LI=Xw.QRCode=bq;var OI={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},US=F.createContext&&F.createContext(OI),xq=["attr","size","title"];function Fq(e,t){if(e==null)return{};var A=Sq(e,t),r,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(A[r]=e[r])}return A}function Sq(e,t){if(e==null)return{};var A={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(A[n]=e[n]);return A}function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Ih.apply(this,arguments)}function TS(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),A.push.apply(A,r)}return A}function Hh(e){for(var t=1;t<arguments.length;t++){var A=arguments[t]!=null?arguments[t]:{};t%2?TS(Object(A),!0).forEach(function(r){Qq(e,r,A[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):TS(Object(A)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(A,r))})}return e}function Qq(e,t,A){return t=Eq(t),t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}function Eq(e){var t=Uq(e,"string");return typeof t=="symbol"?t:String(t)}function Uq(e,t){if(typeof e!="object"||e===null)return e;var A=e[Symbol.toPrimitive];if(A!==void 0){var r=A.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RI(e){return e&&e.map((t,A)=>F.createElement(t.tag,Hh({key:A},t.attr),RI(t.child)))}function Pi(e){return t=>F.createElement(Tq,Ih({attr:Hh({},e.attr)},t),RI(e.child))}function Tq(e){var t=A=>{var{attr:r,size:n,title:i}=e,o=Fq(e,xq),a=n||A.size||"1em",s;return A.className&&(s=A.className),e.className&&(s=(s?s+" ":"")+e.className),F.createElement("svg",Ih({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},A.attr,r,o,{className:s,style:Hh(Hh({color:e.color||A.color},A.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&F.createElement("title",null,i),e.children)};return US!==void 0?F.createElement(US.Consumer,null,A=>t(A)):t(OI)}function _q(e){return Pi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"63.03",height:"378.2",x:"280.48",y:"122.9",fill:"none",strokeMiterlimit:"10",strokeWidth:"32",rx:"31.52",transform:"rotate(-45 312.002 311.994)"},child:[]},{tag:"path",attr:{d:"M178.38 178.38a31.64 31.64 0 0 0 0 44.75L223.25 268 268 223.25l-44.87-44.87a31.64 31.64 0 0 0-44.75 0z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M48 192h48M90.18 90.18l33.94 33.94M192 48v48m101.82-5.82-33.94 33.94M124.12 259.88l-33.94 33.94"},child:[]}]})(e)}function Iq(e){return Pi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m133.441 200.647 67.197-67.196 78.142 78.142-67.196 67.196zM301.41 234.21l-67.19 67.2L412 480l68-68-178.59-177.79zM32 176h80v32H32zm35.624-85.75 22.627-22.628 56.569 56.569-22.627 22.627zM176 32h32v80h-32zm61.32 92.195 56.569-56.569 22.627 22.627-56.569 56.569zM67.62 293.887l56.569-56.569 22.627 22.627-56.569 56.569z"},child:[]}]})(e)}function Hq(e){return Pi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M96 208H48c-8.8 0-16-7.2-16-16s7.2-16 16-16h48c8.8 0 16 7.2 16 16s-7.2 16-16 16zm28.1-67.9c-4.2 0-8.3-1.7-11.3-4.7l-33.9-33.9c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l33.9 33.9c6.3 6.2 6.3 16.4 0 22.6-3 3-7 4.7-11.3 4.7zM192 112c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16s16 7.2 16 16v48c0 8.8-7.2 16-16 16zm67.9 28.1c-8.8 0-16-7.2-16-16 0-4.2 1.7-8.3 4.7-11.3l33.9-33.9c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6l-33.9 33.9c-3 3-7.1 4.7-11.3 4.7zM90.2 309.8c-8.8 0-16-7.2-16-16 0-4.2 1.7-8.3 4.7-11.3l33.9-33.9c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-33.9 33.9c-3 3-7.1 4.7-11.3 4.7zm144-142.8c-18.4-18.7-48.5-19-67.2-.7s-19 48.5-.7 67.2l.7.7 39.5 39.5c3.1 3.1 8.2 3.1 11.3 0l55.9-55.9c3.1-3.1 3.1-8.2 0-11.3L234.2 167zM457 389.8 307.6 240.4c-3.1-3.1-8.2-3.1-11.3 0l-55.9 55.9c-3.1 3.1-3.1 8.2 0 11.3L389.8 457c18.4 18.7 48.5 19 67.2.7 18.7-18.4 19-48.5.7-67.2-.2-.2-.4-.5-.7-.7z"},child:[]}]})(e)}function kq(e){return Pi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64 63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z"},child:[]}]})(e)}function Pq(e){return Pi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"},child:[]}]})(e)}var Lq={BASE_URL:"/qr-code-generator/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _S=e=>{let t;const A=new Set,r=(u,c)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const d=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),A.forEach(h=>h(t,d))}},n=()=>t,s={setState:r,getState:n,getInitialState:()=>l,subscribe:u=>(A.add(u),()=>A.delete(u)),destroy:()=>{(Lq?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),A.clear()}},l=t=e(r,n,s);return s},Oq=e=>e?_S(e):_S;var DI={exports:{}},MI={},$I={exports:{}},NI={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -384,7 +384,7 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Wp=T,Wq=Gq;function Xq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yq=typeof Object.is=="function"?Object.is:Xq,Jq=Wq.useSyncExternalStore,Zq=Wp.useRef,qq=Wp.useEffect,eee=Wp.useMemo,tee=Wp.useDebugValue;MI.useSyncExternalStoreWithSelector=function(e,t,A,r,n){var i=Zq(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=eee(function(){function s(d){if(!l){if(l=!0,u=d,d=r(d),n!==void 0&&o.hasValue){var h=o.value;if(n(h,d))return c=h}return c=d}if(h=c,Yq(u,d))return h;var p=r(d);return n!==void 0&&n(h,p)?h:(u=d,c=p)}var l=!1,u,c,f=A===void 0?null:A;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,A,r,n]);var a=Jq(e,i[0],i[1]);return qq(function(){o.hasValue=!0,o.value=a},[a]),tee(a),a};DI.exports=MI;var Aee=DI.exports;const ree=Yu(Aee);var KI={BASE_URL:"/qrcode-generator/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:nee}=F,{useSyncExternalStoreWithSelector:iee}=ree;let IS=!1;const oee=e=>e;function aee(e,t=oee,A){(KI?"production":void 0)!=="production"&&A&&!IS&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),IS=!0);const r=iee(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,A);return nee(r),r}const HS=e=>{(KI?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Oq(e):e,A=(r,n)=>aee(t,r,n);return Object.assign(A,t),A},Yw=e=>e?HS(e):HS,VI=Yw(e=>({currentImage:null,imageName:null,setImage:t=>e({currentImage:t}),setImageName:t=>e({imageName:t}),removeImage:()=>e({currentImage:null,imageName:null}),handleImageChange:t=>{var r;const A=(r=t.target.files)==null?void 0:r[0];if(A){const n=new FileReader;n.onloadend=()=>{e({currentImage:n.result}),e({imageName:A.name})},n.readAsDataURL(A)}}})),Jw=Yw(e=>({qrOptions:{width:30,height:30,eyeRadius:2,logoPadding:.8,qrStyle:"squares",ecLevel:"M",logoPaddingStyle:"circle"},setQrOption:(t,A)=>{e(r=>({qrOptions:{...r.qrOptions,[t]:A}}))}})),jI=Yw(e=>({bgColor:"#FFFFFF",fgColor:"#080808",eyeColor:"#000000",setColor:t=>e(A=>({...A,...t})),changeBgColor:t=>e(A=>({...A,bgColor:t})),changeFgColor:t=>e(A=>({...A,fgColor:t})),changeEyeColor:t=>e(A=>({...A,eyeColor:t}))})),see=e=>{const[t,A]=T.useState("");return T.useEffect(()=>{const r=setTimeout(()=>{A(e)},400);return()=>clearTimeout(r)},[e]),[t]},lee=()=>{const[e,t]=T.useState(""),[A]=see(e);return{value:A,handleQrChange:n=>{t(n.target.value)}}};function uee(e){return Pi({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"8.5",r:"1.5"},child:[]},{tag:"polyline",attr:{points:"21 15 16 10 5 21"},child:[]}]})(e)}function cee(e){return Pi({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"17 8 12 3 7 8"},child:[]},{tag:"line",attr:{x1:"12",y1:"3",x2:"12",y2:"15"},child:[]}]})(e)}function fee(e){return Pi({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function dee({name:e,acceptedFileTypes:t,children:A,isRequired:r=!1,imageName:n,onImageChange:i,removeImage:o,currentImage:a}){const s=T.useRef(null),l=()=>{var c;return(c=s.current)==null?void 0:c.click()},u=!a;return P.jsxs(n_,{isRequired:r,display:"flex",flexDirection:"column",children:[P.jsx(_w,{htmlFor:e,children:A}),P.jsxs(Iw,{children:[P.jsxs(t_,{maxWidth:234,spacing:1,isAttached:!!n,variant:"solid",flex:"1",children:[P.jsx(cc,{onClick:l,colorScheme:"blue",color:"black",fontSize:n?"xs":"md",leftIcon:P.jsx(Ss,{as:a?uee:cee}),flex:"1",children:n||"Upload Image"}),P.jsx($w,{hasArrow:!0,placement:"top",label:"Remove Image",bg:"red.500",children:P.jsx(A_,{isDisabled:u,colorScheme:"red",variant:"solid",color:"black",icon:P.jsx(fee,{}),"aria-label":"Remove Image",onClick:o})})]}),P.jsx(kp,{type:"file",className:"hidden",name:e,ref:s,onChange:i,accept:t})]})]})}function hee({option:e,min:t,max:A,step:r=1,isDisabled:n=!1,children:i}){const[o,a]=T.useState(!1),{qrOptions:s,setQrOption:l}=Jw(),u=s[e],c={mt:"2",ml:"-2.5",fontSize:"sm"};return P.jsxs(Qs,{flexDirection:"column",alignItems:"start",p:4,children:[i,P.jsxs(E_,{size:"md",isDisabled:n,"aria-label":`${e} slider`,step:r,min:t,max:A,defaultValue:u,onChange:f=>l(e,f),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[P.jsx(aB,{value:t,...c,children:t}),P.jsx(aB,{value:A,...c,children:A}),P.jsx(T_,{children:P.jsx(__,{})}),P.jsx($w,{hasArrow:!0,bg:"blue.500",color:"white",placement:"top",isOpen:o,label:u,children:P.jsx(U_,{})})]})]})}var Ar={},vc={},pee=typeof pA=="object"&&pA&&pA.Object===Object&&pA,zI=pee,gee=zI,vee=typeof self=="object"&&self&&self.Object===Object&&self,mee=gee||vee||Function("return this")(),sn=mee,Bee=sn,yee=Bee.Symbol,mc=yee,kS=mc,GI=Object.prototype,wee=GI.hasOwnProperty,Cee=GI.toString,pl=kS?kS.toStringTag:void 0;function bee(e){var t=wee.call(e,pl),A=e[pl];try{e[pl]=void 0;var r=!0}catch{}var n=Cee.call(e);return r&&(t?e[pl]=A:delete e[pl]),n}var xee=bee,Fee=Object.prototype,See=Fee.toString;function Qee(e){return See.call(e)}var Eee=Qee,PS=mc,Uee=xee,Tee=Eee,_ee="[object Null]",Iee="[object Undefined]",LS=PS?PS.toStringTag:void 0;function Hee(e){return e==null?e===void 0?Iee:_ee:LS&&LS in Object(e)?Uee(e):Tee(e)}var Uo=Hee,kee=Array.isArray,kr=kee;function Pee(e){return e!=null&&typeof e=="object"}var Mn=Pee,Lee=Uo,Oee=kr,Ree=Mn,Dee="[object String]";function Mee(e){return typeof e=="string"||!Oee(e)&&Ree(e)&&Lee(e)==Dee}var $ee=Mee;function Nee(e){return function(t,A,r){for(var n=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[e?a:++n];if(A(i[s],s,i)===!1)break}return t}}var Kee=Nee,Vee=Kee,jee=Vee(),zee=jee;function Gee(e,t){for(var A=-1,r=Array(e);++A<e;)r[A]=t(A);return r}var Wee=Gee,Xee=Uo,Yee=Mn,Jee="[object Arguments]";function Zee(e){return Yee(e)&&Xee(e)==Jee}var qee=Zee,OS=qee,ete=Mn,WI=Object.prototype,tte=WI.hasOwnProperty,Ate=WI.propertyIsEnumerable,rte=OS(function(){return arguments}())?OS:function(e){return ete(e)&&tte.call(e,"callee")&&!Ate.call(e,"callee")},XI=rte,kh={exports:{}};function nte(){return!1}var ite=nte;kh.exports;(function(e,t){var A=sn,r=ite,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?A.Buffer:void 0,s=a?a.isBuffer:void 0,l=s||r;e.exports=l})(kh,kh.exports);var Zw=kh.exports,ote=9007199254740991,ate=/^(?:0|[1-9]\d*)$/;function ste(e,t){var A=typeof e;return t=t??ote,!!t&&(A=="number"||A!="symbol"&&ate.test(e))&&e>-1&&e%1==0&&e<t}var YI=ste,lte=9007199254740991;function ute(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lte}var qw=ute,cte=Uo,fte=qw,dte=Mn,hte="[object Arguments]",pte="[object Array]",gte="[object Boolean]",vte="[object Date]",mte="[object Error]",Bte="[object Function]",yte="[object Map]",wte="[object Number]",Cte="[object Object]",bte="[object RegExp]",xte="[object Set]",Fte="[object String]",Ste="[object WeakMap]",Qte="[object ArrayBuffer]",Ete="[object DataView]",Ute="[object Float32Array]",Tte="[object Float64Array]",_te="[object Int8Array]",Ite="[object Int16Array]",Hte="[object Int32Array]",kte="[object Uint8Array]",Pte="[object Uint8ClampedArray]",Lte="[object Uint16Array]",Ote="[object Uint32Array]",Ze={};Ze[Ute]=Ze[Tte]=Ze[_te]=Ze[Ite]=Ze[Hte]=Ze[kte]=Ze[Pte]=Ze[Lte]=Ze[Ote]=!0;Ze[hte]=Ze[pte]=Ze[Qte]=Ze[gte]=Ze[Ete]=Ze[vte]=Ze[mte]=Ze[Bte]=Ze[yte]=Ze[wte]=Ze[Cte]=Ze[bte]=Ze[xte]=Ze[Fte]=Ze[Ste]=!1;function Rte(e){return dte(e)&&fte(e.length)&&!!Ze[cte(e)]}var Dte=Rte;function Mte(e){return function(t){return e(t)}}var e1=Mte,Ph={exports:{}};Ph.exports;(function(e,t){var A=zI,r=t&&!t.nodeType&&t,n=r&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===r,o=i&&A.process,a=function(){try{var s=n&&n.require&&n.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Ph,Ph.exports);var t1=Ph.exports,$te=Dte,Nte=e1,RS=t1,DS=RS&&RS.isTypedArray,Kte=DS?Nte(DS):$te,JI=Kte,Vte=Wee,jte=XI,zte=kr,Gte=Zw,Wte=YI,Xte=JI,Yte=Object.prototype,Jte=Yte.hasOwnProperty;function Zte(e,t){var A=zte(e),r=!A&&jte(e),n=!A&&!r&&Gte(e),i=!A&&!r&&!n&&Xte(e),o=A||r||n||i,a=o?Vte(e.length,String):[],s=a.length;for(var l in e)(t||Jte.call(e,l))&&!(o&&(l=="length"||n&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Wte(l,s)))&&a.push(l);return a}var ZI=Zte,qte=Object.prototype;function eAe(e){var t=e&&e.constructor,A=typeof t=="function"&&t.prototype||qte;return e===A}var A1=eAe;function tAe(e,t){return function(A){return e(t(A))}}var qI=tAe,AAe=qI,rAe=AAe(Object.keys,Object),nAe=rAe,iAe=A1,oAe=nAe,aAe=Object.prototype,sAe=aAe.hasOwnProperty;function lAe(e){if(!iAe(e))return oAe(e);var t=[];for(var A in Object(e))sAe.call(e,A)&&A!="constructor"&&t.push(A);return t}var uAe=lAe;function cAe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Us=cAe,fAe=Uo,dAe=Us,hAe="[object AsyncFunction]",pAe="[object Function]",gAe="[object GeneratorFunction]",vAe="[object Proxy]";function mAe(e){if(!dAe(e))return!1;var t=fAe(e);return t==pAe||t==gAe||t==hAe||t==vAe}var eH=mAe,BAe=eH,yAe=qw;function wAe(e){return e!=null&&yAe(e.length)&&!BAe(e)}var Xp=wAe,CAe=ZI,bAe=uAe,xAe=Xp;function FAe(e){return xAe(e)?CAe(e):bAe(e)}var Bc=FAe,SAe=zee,QAe=Bc;function EAe(e,t){return e&&SAe(e,t,QAe)}var tH=EAe;function UAe(e){return e}var AH=UAe,TAe=AH;function _Ae(e){return typeof e=="function"?e:TAe}var IAe=_Ae,HAe=tH,kAe=IAe;function PAe(e,t){return e&&HAe(e,kAe(t))}var r1=PAe,LAe=qI,OAe=LAe(Object.getPrototypeOf,Object),n1=OAe,RAe=Uo,DAe=n1,MAe=Mn,$Ae="[object Object]",NAe=Function.prototype,KAe=Object.prototype,rH=NAe.toString,VAe=KAe.hasOwnProperty,jAe=rH.call(Object);function zAe(e){if(!MAe(e)||RAe(e)!=$Ae)return!1;var t=DAe(e);if(t===null)return!0;var A=VAe.call(t,"constructor")&&t.constructor;return typeof A=="function"&&A instanceof A&&rH.call(A)==jAe}var GAe=zAe;function WAe(e,t){for(var A=-1,r=e==null?0:e.length,n=Array(r);++A<r;)n[A]=t(e[A],A,e);return n}var nH=WAe;function XAe(){this.__data__=[],this.size=0}var YAe=XAe;function JAe(e,t){return e===t||e!==e&&t!==t}var i1=JAe,ZAe=i1;function qAe(e,t){for(var A=e.length;A--;)if(ZAe(e[A][0],t))return A;return-1}var Yp=qAe,ere=Yp,tre=Array.prototype,Are=tre.splice;function rre(e){var t=this.__data__,A=ere(t,e);if(A<0)return!1;var r=t.length-1;return A==r?t.pop():Are.call(t,A,1),--this.size,!0}var nre=rre,ire=Yp;function ore(e){var t=this.__data__,A=ire(t,e);return A<0?void 0:t[A][1]}var are=ore,sre=Yp;function lre(e){return sre(this.__data__,e)>-1}var ure=lre,cre=Yp;function fre(e,t){var A=this.__data__,r=cre(A,e);return r<0?(++this.size,A.push([e,t])):A[r][1]=t,this}var dre=fre,hre=YAe,pre=nre,gre=are,vre=ure,mre=dre;function Ts(e){var t=-1,A=e==null?0:e.length;for(this.clear();++t<A;){var r=e[t];this.set(r[0],r[1])}}Ts.prototype.clear=hre;Ts.prototype.delete=pre;Ts.prototype.get=gre;Ts.prototype.has=vre;Ts.prototype.set=mre;var Jp=Ts,Bre=Jp;function yre(){this.__data__=new Bre,this.size=0}var wre=yre;function Cre(e){var t=this.__data__,A=t.delete(e);return this.size=t.size,A}var bre=Cre;function xre(e){return this.__data__.get(e)}var Fre=xre;function Sre(e){return this.__data__.has(e)}var Qre=Sre,Ere=sn,Ure=Ere["__core-js_shared__"],Tre=Ure,xv=Tre,MS=function(){var e=/[^.]+$/.exec(xv&&xv.keys&&xv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _re(e){return!!MS&&MS in e}var Ire=_re,Hre=Function.prototype,kre=Hre.toString;function Pre(e){if(e!=null){try{return kre.call(e)}catch{}try{return e+""}catch{}}return""}var iH=Pre,Lre=eH,Ore=Ire,Rre=Us,Dre=iH,Mre=/[\\^$.*+?()[\]{}|]/g,$re=/^\[object .+?Constructor\]$/,Nre=Function.prototype,Kre=Object.prototype,Vre=Nre.toString,jre=Kre.hasOwnProperty,zre=RegExp("^"+Vre.call(jre).replace(Mre,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gre(e){if(!Rre(e)||Ore(e))return!1;var t=Lre(e)?zre:$re;return t.test(Dre(e))}var Wre=Gre;function Xre(e,t){return e==null?void 0:e[t]}var Yre=Xre,Jre=Wre,Zre=Yre;function qre(e,t){var A=Zre(e,t);return Jre(A)?A:void 0}var To=qre,ene=To,tne=sn,Ane=ene(tne,"Map"),o1=Ane,rne=To,nne=rne(Object,"create"),Zp=nne,$S=Zp;function ine(){this.__data__=$S?$S(null):{},this.size=0}var one=ine;function ane(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sne=ane,lne=Zp,une="__lodash_hash_undefined__",cne=Object.prototype,fne=cne.hasOwnProperty;function dne(e){var t=this.__data__;if(lne){var A=t[e];return A===une?void 0:A}return fne.call(t,e)?t[e]:void 0}var hne=dne,pne=Zp,gne=Object.prototype,vne=gne.hasOwnProperty;function mne(e){var t=this.__data__;return pne?t[e]!==void 0:vne.call(t,e)}var Bne=mne,yne=Zp,wne="__lodash_hash_undefined__";function Cne(e,t){var A=this.__data__;return this.size+=this.has(e)?0:1,A[e]=yne&&t===void 0?wne:t,this}var bne=Cne,xne=one,Fne=sne,Sne=hne,Qne=Bne,Ene=bne;function _s(e){var t=-1,A=e==null?0:e.length;for(this.clear();++t<A;){var r=e[t];this.set(r[0],r[1])}}_s.prototype.clear=xne;_s.prototype.delete=Fne;_s.prototype.get=Sne;_s.prototype.has=Qne;_s.prototype.set=Ene;var Une=_s,NS=Une,Tne=Jp,_ne=o1;function Ine(){this.size=0,this.__data__={hash:new NS,map:new(_ne||Tne),string:new NS}}var Hne=Ine;function kne(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Pne=kne,Lne=Pne;function One(e,t){var A=e.__data__;return Lne(t)?A[typeof t=="string"?"string":"hash"]:A.map}var qp=One,Rne=qp;function Dne(e){var t=Rne(this,e).delete(e);return this.size-=t?1:0,t}var Mne=Dne,$ne=qp;function Nne(e){return $ne(this,e).get(e)}var Kne=Nne,Vne=qp;function jne(e){return Vne(this,e).has(e)}var zne=jne,Gne=qp;function Wne(e,t){var A=Gne(this,e),r=A.size;return A.set(e,t),this.size+=A.size==r?0:1,this}var Xne=Wne,Yne=Hne,Jne=Mne,Zne=Kne,qne=zne,eie=Xne;function Is(e){var t=-1,A=e==null?0:e.length;for(this.clear();++t<A;){var r=e[t];this.set(r[0],r[1])}}Is.prototype.clear=Yne;Is.prototype.delete=Jne;Is.prototype.get=Zne;Is.prototype.has=qne;Is.prototype.set=eie;var a1=Is,tie=Jp,Aie=o1,rie=a1,nie=200;function iie(e,t){var A=this.__data__;if(A instanceof tie){var r=A.__data__;if(!Aie||r.length<nie-1)return r.push([e,t]),this.size=++A.size,this;A=this.__data__=new rie(r)}return A.set(e,t),this.size=A.size,this}var oie=iie,aie=Jp,sie=wre,lie=bre,uie=Fre,cie=Qre,fie=oie;function Hs(e){var t=this.__data__=new aie(e);this.size=t.size}Hs.prototype.clear=sie;Hs.prototype.delete=lie;Hs.prototype.get=uie;Hs.prototype.has=cie;Hs.prototype.set=fie;var s1=Hs,die="__lodash_hash_undefined__";function hie(e){return this.__data__.set(e,die),this}var pie=hie;function gie(e){return this.__data__.has(e)}var vie=gie,mie=a1,Bie=pie,yie=vie;function Lh(e){var t=-1,A=e==null?0:e.length;for(this.__data__=new mie;++t<A;)this.add(e[t])}Lh.prototype.add=Lh.prototype.push=Bie;Lh.prototype.has=yie;var wie=Lh;function Cie(e,t){for(var A=-1,r=e==null?0:e.length;++A<r;)if(t(e[A],A,e))return!0;return!1}var bie=Cie;function xie(e,t){return e.has(t)}var Fie=xie,Sie=wie,Qie=bie,Eie=Fie,Uie=1,Tie=2;function _ie(e,t,A,r,n,i){var o=A&Uie,a=e.length,s=t.length;if(a!=s&&!(o&&s>a))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var c=-1,f=!0,d=A&Tie?new Sie:void 0;for(i.set(e,t),i.set(t,e);++c<a;){var h=e[c],p=t[c];if(r)var y=o?r(p,h,c,t,e,i):r(h,p,c,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(d){if(!Qie(t,function(v,g){if(!Eie(d,g)&&(h===v||n(h,v,A,r,i)))return d.push(g)})){f=!1;break}}else if(!(h===p||n(h,p,A,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var oH=_ie,Iie=sn,Hie=Iie.Uint8Array,aH=Hie;function kie(e){var t=-1,A=Array(e.size);return e.forEach(function(r,n){A[++t]=[n,r]}),A}var Pie=kie;function Lie(e){var t=-1,A=Array(e.size);return e.forEach(function(r){A[++t]=r}),A}var Oie=Lie,KS=mc,VS=aH,Rie=i1,Die=oH,Mie=Pie,$ie=Oie,Nie=1,Kie=2,Vie="[object Boolean]",jie="[object Date]",zie="[object Error]",Gie="[object Map]",Wie="[object Number]",Xie="[object RegExp]",Yie="[object Set]",Jie="[object String]",Zie="[object Symbol]",qie="[object ArrayBuffer]",eoe="[object DataView]",jS=KS?KS.prototype:void 0,Fv=jS?jS.valueOf:void 0;function toe(e,t,A,r,n,i,o){switch(A){case eoe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case qie:return!(e.byteLength!=t.byteLength||!i(new VS(e),new VS(t)));case Vie:case jie:case Wie:return Rie(+e,+t);case zie:return e.name==t.name&&e.message==t.message;case Xie:case Jie:return e==t+"";case Gie:var a=Mie;case Yie:var s=r&Nie;if(a||(a=$ie),e.size!=t.size&&!s)return!1;var l=o.get(e);if(l)return l==t;r|=Kie,o.set(e,t);var u=Die(a(e),a(t),r,n,i,o);return o.delete(e),u;case Zie:if(Fv)return Fv.call(e)==Fv.call(t)}return!1}var Aoe=toe;function roe(e,t){for(var A=-1,r=t.length,n=e.length;++A<r;)e[n+A]=t[A];return e}var sH=roe,noe=sH,ioe=kr;function ooe(e,t,A){var r=t(e);return ioe(e)?r:noe(r,A(e))}var lH=ooe;function aoe(e,t){for(var A=-1,r=e==null?0:e.length,n=0,i=[];++A<r;){var o=e[A];t(o,A,e)&&(i[n++]=o)}return i}var soe=aoe;function loe(){return[]}var uH=loe,uoe=soe,coe=uH,foe=Object.prototype,doe=foe.propertyIsEnumerable,zS=Object.getOwnPropertySymbols,hoe=zS?function(e){return e==null?[]:(e=Object(e),uoe(zS(e),function(t){return doe.call(e,t)}))}:coe,l1=hoe,poe=lH,goe=l1,voe=Bc;function moe(e){return poe(e,voe,goe)}var cH=moe,GS=cH,Boe=1,yoe=Object.prototype,woe=yoe.hasOwnProperty;function Coe(e,t,A,r,n,i){var o=A&Boe,a=GS(e),s=a.length,l=GS(t),u=l.length;if(s!=u&&!o)return!1;for(var c=s;c--;){var f=a[c];if(!(o?f in t:woe.call(t,f)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var p=!0;i.set(e,t),i.set(t,e);for(var y=o;++c<s;){f=a[c];var v=e[f],g=t[f];if(r)var B=o?r(g,v,f,t,e,i):r(v,g,f,e,t,i);if(!(B===void 0?v===g||n(v,g,A,r,i):B)){p=!1;break}y||(y=f=="constructor")}if(p&&!y){var x=e.constructor,b=t.constructor;x!=b&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof b=="function"&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p}var boe=Coe,xoe=To,Foe=sn,Soe=xoe(Foe,"DataView"),Qoe=Soe,Eoe=To,Uoe=sn,Toe=Eoe(Uoe,"Promise"),_oe=Toe,Ioe=To,Hoe=sn,koe=Ioe(Hoe,"Set"),Poe=koe,Loe=To,Ooe=sn,Roe=Loe(Ooe,"WeakMap"),Doe=Roe,IB=Qoe,HB=o1,kB=_oe,PB=Poe,LB=Doe,fH=Uo,ks=iH,WS="[object Map]",Moe="[object Object]",XS="[object Promise]",YS="[object Set]",JS="[object WeakMap]",ZS="[object DataView]",$oe=ks(IB),Noe=ks(HB),Koe=ks(kB),Voe=ks(PB),joe=ks(LB),Xi=fH;(IB&&Xi(new IB(new ArrayBuffer(1)))!=ZS||HB&&Xi(new HB)!=WS||kB&&Xi(kB.resolve())!=XS||PB&&Xi(new PB)!=YS||LB&&Xi(new LB)!=JS)&&(Xi=function(e){var t=fH(e),A=t==Moe?e.constructor:void 0,r=A?ks(A):"";if(r)switch(r){case $oe:return ZS;case Noe:return WS;case Koe:return XS;case Voe:return YS;case joe:return JS}return t});var eg=Xi,Sv=s1,zoe=oH,Goe=Aoe,Woe=boe,qS=eg,eQ=kr,tQ=Zw,Xoe=JI,Yoe=1,AQ="[object Arguments]",rQ="[object Array]",Vf="[object Object]",Joe=Object.prototype,nQ=Joe.hasOwnProperty;function Zoe(e,t,A,r,n,i){var o=eQ(e),a=eQ(t),s=o?rQ:qS(e),l=a?rQ:qS(t);s=s==AQ?Vf:s,l=l==AQ?Vf:l;var u=s==Vf,c=l==Vf,f=s==l;if(f&&tQ(e)){if(!tQ(t))return!1;o=!0,u=!1}if(f&&!u)return i||(i=new Sv),o||Xoe(e)?zoe(e,t,A,r,n,i):Goe(e,t,s,A,r,n,i);if(!(A&Yoe)){var d=u&&nQ.call(e,"__wrapped__"),h=c&&nQ.call(t,"__wrapped__");if(d||h){var p=d?e.value():e,y=h?t.value():t;return i||(i=new Sv),n(p,y,A,r,i)}}return f?(i||(i=new Sv),Woe(e,t,A,r,n,i)):!1}var qoe=Zoe,eae=qoe,iQ=Mn;function dH(e,t,A,r,n){return e===t?!0:e==null||t==null||!iQ(e)&&!iQ(t)?e!==e&&t!==t:eae(e,t,A,r,dH,n)}var hH=dH,tae=s1,Aae=hH,rae=1,nae=2;function iae(e,t,A,r){var n=A.length,i=n,o=!r;if(e==null)return!i;for(e=Object(e);n--;){var a=A[n];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++n<i;){a=A[n];var s=a[0],l=e[s],u=a[1];if(o&&a[2]){if(l===void 0&&!(s in e))return!1}else{var c=new tae;if(r)var f=r(l,u,s,e,t,c);if(!(f===void 0?Aae(u,l,rae|nae,r,c):f))return!1}}return!0}var oae=iae,aae=Us;function sae(e){return e===e&&!aae(e)}var pH=sae,lae=pH,uae=Bc;function cae(e){for(var t=uae(e),A=t.length;A--;){var r=t[A],n=e[r];t[A]=[r,n,lae(n)]}return t}var fae=cae;function dae(e,t){return function(A){return A==null?!1:A[e]===t&&(t!==void 0||e in Object(A))}}var gH=dae,hae=oae,pae=fae,gae=gH;function vae(e){var t=pae(e);return t.length==1&&t[0][2]?gae(t[0][0],t[0][1]):function(A){return A===e||hae(A,e,t)}}var mae=vae,Bae=Uo,yae=Mn,wae="[object Symbol]";function Cae(e){return typeof e=="symbol"||yae(e)&&Bae(e)==wae}var u1=Cae,bae=kr,xae=u1,Fae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sae=/^\w*$/;function Qae(e,t){if(bae(e))return!1;var A=typeof e;return A=="number"||A=="symbol"||A=="boolean"||e==null||xae(e)?!0:Sae.test(e)||!Fae.test(e)||t!=null&&e in Object(t)}var c1=Qae,vH=a1,Eae="Expected a function";function f1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Eae);var A=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=A.cache;if(i.has(n))return i.get(n);var o=e.apply(this,r);return A.cache=i.set(n,o)||i,o};return A.cache=new(f1.Cache||vH),A}f1.Cache=vH;var Uae=f1,Tae=Uae,_ae=500;function Iae(e){var t=Tae(e,function(r){return A.size===_ae&&A.clear(),r}),A=t.cache;return t}var Hae=Iae,kae=Hae,Pae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lae=/\\(\\)?/g,Oae=kae(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Pae,function(A,r,n,i){t.push(n?i.replace(Lae,"$1"):r||A)}),t}),Rae=Oae,oQ=mc,Dae=nH,Mae=kr,$ae=u1,Nae=1/0,aQ=oQ?oQ.prototype:void 0,sQ=aQ?aQ.toString:void 0;function mH(e){if(typeof e=="string")return e;if(Mae(e))return Dae(e,mH)+"";if($ae(e))return sQ?sQ.call(e):"";var t=e+"";return t=="0"&&1/e==-Nae?"-0":t}var Kae=mH,Vae=Kae;function jae(e){return e==null?"":Vae(e)}var zae=jae,Gae=kr,Wae=c1,Xae=Rae,Yae=zae;function Jae(e,t){return Gae(e)?e:Wae(e,t)?[e]:Xae(Yae(e))}var BH=Jae,Zae=u1,qae=1/0;function ese(e){if(typeof e=="string"||Zae(e))return e;var t=e+"";return t=="0"&&1/e==-qae?"-0":t}var tg=ese,tse=BH,Ase=tg;function rse(e,t){t=tse(t,e);for(var A=0,r=t.length;e!=null&&A<r;)e=e[Ase(t[A++])];return A&&A==r?e:void 0}var yH=rse,nse=yH;function ise(e,t,A){var r=e==null?void 0:nse(e,t);return r===void 0?A:r}var ose=ise;function ase(e,t){return e!=null&&t in Object(e)}var sse=ase,lse=BH,use=XI,cse=kr,fse=YI,dse=qw,hse=tg;function pse(e,t,A){t=lse(t,e);for(var r=-1,n=t.length,i=!1;++r<n;){var o=hse(t[r]);if(!(i=e!=null&&A(e,o)))break;e=e[o]}return i||++r!=n?i:(n=e==null?0:e.length,!!n&&dse(n)&&fse(o,n)&&(cse(e)||use(e)))}var gse=pse,vse=sse,mse=gse;function Bse(e,t){return e!=null&&mse(e,t,vse)}var yse=Bse,wse=hH,Cse=ose,bse=yse,xse=c1,Fse=pH,Sse=gH,Qse=tg,Ese=1,Use=2;function Tse(e,t){return xse(e)&&Fse(t)?Sse(Qse(e),t):function(A){var r=Cse(A,e);return r===void 0&&r===t?bse(A,e):wse(t,r,Ese|Use)}}var _se=Tse;function Ise(e){return function(t){return t==null?void 0:t[e]}}var Hse=Ise,kse=yH;function Pse(e){return function(t){return kse(t,e)}}var Lse=Pse,Ose=Hse,Rse=Lse,Dse=c1,Mse=tg;function $se(e){return Dse(e)?Ose(Mse(e)):Rse(e)}var Nse=$se,Kse=mae,Vse=_se,jse=AH,zse=kr,Gse=Nse;function Wse(e){return typeof e=="function"?e:e==null?jse:typeof e=="object"?zse(e)?Vse(e[0],e[1]):Kse(e):Gse(e)}var Xse=Wse,Yse=Xp;function Jse(e,t){return function(A,r){if(A==null)return A;if(!Yse(A))return e(A,r);for(var n=A.length,i=t?n:-1,o=Object(A);(t?i--:++i<n)&&r(o[i],i,o)!==!1;);return A}}var Zse=Jse,qse=tH,ele=Zse,tle=ele(qse),Ale=tle,rle=Ale,nle=Xp;function ile(e,t){var A=-1,r=nle(e)?Array(e.length):[];return rle(e,function(n,i,o){r[++A]=t(n,i,o)}),r}var ole=ile,ale=nH,sle=Xse,lle=ole,ule=kr;function cle(e,t){var A=ule(e)?ale:lle;return A(e,sle(t))}var fle=cle;Object.defineProperty(vc,"__esModule",{value:!0});vc.flattenNames=void 0;var dle=$ee,hle=Ag(dle),ple=r1,gle=Ag(ple),vle=GAe,mle=Ag(vle),Ble=fle,yle=Ag(Ble);function Ag(e){return e&&e.__esModule?e:{default:e}}var wle=vc.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=[];return(0,yle.default)(t,function(r){Array.isArray(r)?e(r).map(function(n){return A.push(n)}):(0,mle.default)(r)?(0,gle.default)(r,function(n,i){n===!0&&A.push(i),A.push(i+"-"+n)}):(0,hle.default)(r)&&A.push(r)}),A};vc.default=wle;var yc={};function Cle(e,t){for(var A=-1,r=e==null?0:e.length;++A<r&&t(e[A],A,e)!==!1;);return e}var ble=Cle,xle=To,Fle=function(){try{var e=xle(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Sle=Fle,lQ=Sle;function Qle(e,t,A){t=="__proto__"&&lQ?lQ(e,t,{configurable:!0,enumerable:!0,value:A,writable:!0}):e[t]=A}var wH=Qle,Ele=wH,Ule=i1,Tle=Object.prototype,_le=Tle.hasOwnProperty;function Ile(e,t,A){var r=e[t];(!(_le.call(e,t)&&Ule(r,A))||A===void 0&&!(t in e))&&Ele(e,t,A)}var CH=Ile,Hle=CH,kle=wH;function Ple(e,t,A,r){var n=!A;A||(A={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(A[a],e[a],a,A,e):void 0;s===void 0&&(s=e[a]),n?kle(A,a,s):Hle(A,a,s)}return A}var rg=Ple,Lle=rg,Ole=Bc;function Rle(e,t){return e&&Lle(t,Ole(t),e)}var Dle=Rle;function Mle(e){var t=[];if(e!=null)for(var A in Object(e))t.push(A);return t}var $le=Mle,Nle=Us,Kle=A1,Vle=$le,jle=Object.prototype,zle=jle.hasOwnProperty;function Gle(e){if(!Nle(e))return Vle(e);var t=Kle(e),A=[];for(var r in e)r=="constructor"&&(t||!zle.call(e,r))||A.push(r);return A}var Wle=Gle,Xle=ZI,Yle=Wle,Jle=Xp;function Zle(e){return Jle(e)?Xle(e,!0):Yle(e)}var d1=Zle,qle=rg,eue=d1;function tue(e,t){return e&&qle(t,eue(t),e)}var Aue=tue,Oh={exports:{}};Oh.exports;(function(e,t){var A=sn,r=t&&!t.nodeType&&t,n=r&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===r,o=i?A.Buffer:void 0,a=o?o.allocUnsafe:void 0;function s(l,u){if(u)return l.slice();var c=l.length,f=a?a(c):new l.constructor(c);return l.copy(f),f}e.exports=s})(Oh,Oh.exports);var rue=Oh.exports;function nue(e,t){var A=-1,r=e.length;for(t||(t=Array(r));++A<r;)t[A]=e[A];return t}var iue=nue,oue=rg,aue=l1;function sue(e,t){return oue(e,aue(e),t)}var lue=sue,uue=sH,cue=n1,fue=l1,due=uH,hue=Object.getOwnPropertySymbols,pue=hue?function(e){for(var t=[];e;)uue(t,fue(e)),e=cue(e);return t}:due,bH=pue,gue=rg,vue=bH;function mue(e,t){return gue(e,vue(e),t)}var Bue=mue,yue=lH,wue=bH,Cue=d1;function bue(e){return yue(e,Cue,wue)}var xue=bue,Fue=Object.prototype,Sue=Fue.hasOwnProperty;function Que(e){var t=e.length,A=new e.constructor(t);return t&&typeof e[0]=="string"&&Sue.call(e,"index")&&(A.index=e.index,A.input=e.input),A}var Eue=Que,uQ=aH;function Uue(e){var t=new e.constructor(e.byteLength);return new uQ(t).set(new uQ(e)),t}var h1=Uue,Tue=h1;function _ue(e,t){var A=t?Tue(e.buffer):e.buffer;return new e.constructor(A,e.byteOffset,e.byteLength)}var Iue=_ue,Hue=/\w*$/;function kue(e){var t=new e.constructor(e.source,Hue.exec(e));return t.lastIndex=e.lastIndex,t}var Pue=kue,cQ=mc,fQ=cQ?cQ.prototype:void 0,dQ=fQ?fQ.valueOf:void 0;function Lue(e){return dQ?Object(dQ.call(e)):{}}var Oue=Lue,Rue=h1;function Due(e,t){var A=t?Rue(e.buffer):e.buffer;return new e.constructor(A,e.byteOffset,e.length)}var Mue=Due,$ue=h1,Nue=Iue,Kue=Pue,Vue=Oue,jue=Mue,zue="[object Boolean]",Gue="[object Date]",Wue="[object Map]",Xue="[object Number]",Yue="[object RegExp]",Jue="[object Set]",Zue="[object String]",que="[object Symbol]",ece="[object ArrayBuffer]",tce="[object DataView]",Ace="[object Float32Array]",rce="[object Float64Array]",nce="[object Int8Array]",ice="[object Int16Array]",oce="[object Int32Array]",ace="[object Uint8Array]",sce="[object Uint8ClampedArray]",lce="[object Uint16Array]",uce="[object Uint32Array]";function cce(e,t,A){var r=e.constructor;switch(t){case ece:return $ue(e);case zue:case Gue:return new r(+e);case tce:return Nue(e,A);case Ace:case rce:case nce:case ice:case oce:case ace:case sce:case lce:case uce:return jue(e,A);case Wue:return new r;case Xue:case Zue:return new r(e);case Yue:return Kue(e);case Jue:return new r;case que:return Vue(e)}}var fce=cce,dce=Us,hQ=Object.create,hce=function(){function e(){}return function(t){if(!dce(t))return{};if(hQ)return hQ(t);e.prototype=t;var A=new e;return e.prototype=void 0,A}}(),pce=hce,gce=pce,vce=n1,mce=A1;function Bce(e){return typeof e.constructor=="function"&&!mce(e)?gce(vce(e)):{}}var yce=Bce,wce=eg,Cce=Mn,bce="[object Map]";function xce(e){return Cce(e)&&wce(e)==bce}var Fce=xce,Sce=Fce,Qce=e1,pQ=t1,gQ=pQ&&pQ.isMap,Ece=gQ?Qce(gQ):Sce,Uce=Ece,Tce=eg,_ce=Mn,Ice="[object Set]";function Hce(e){return _ce(e)&&Tce(e)==Ice}var kce=Hce,Pce=kce,Lce=e1,vQ=t1,mQ=vQ&&vQ.isSet,Oce=mQ?Lce(mQ):Pce,Rce=Oce,Dce=s1,Mce=ble,$ce=CH,Nce=Dle,Kce=Aue,Vce=rue,jce=iue,zce=lue,Gce=Bue,Wce=cH,Xce=xue,Yce=eg,Jce=Eue,Zce=fce,qce=yce,efe=kr,tfe=Zw,Afe=Uce,rfe=Us,nfe=Rce,ife=Bc,ofe=d1,afe=1,sfe=2,lfe=4,xH="[object Arguments]",ufe="[object Array]",cfe="[object Boolean]",ffe="[object Date]",dfe="[object Error]",FH="[object Function]",hfe="[object GeneratorFunction]",pfe="[object Map]",gfe="[object Number]",SH="[object Object]",vfe="[object RegExp]",mfe="[object Set]",Bfe="[object String]",yfe="[object Symbol]",wfe="[object WeakMap]",Cfe="[object ArrayBuffer]",bfe="[object DataView]",xfe="[object Float32Array]",Ffe="[object Float64Array]",Sfe="[object Int8Array]",Qfe="[object Int16Array]",Efe="[object Int32Array]",Ufe="[object Uint8Array]",Tfe="[object Uint8ClampedArray]",_fe="[object Uint16Array]",Ife="[object Uint32Array]",ze={};ze[xH]=ze[ufe]=ze[Cfe]=ze[bfe]=ze[cfe]=ze[ffe]=ze[xfe]=ze[Ffe]=ze[Sfe]=ze[Qfe]=ze[Efe]=ze[pfe]=ze[gfe]=ze[SH]=ze[vfe]=ze[mfe]=ze[Bfe]=ze[yfe]=ze[Ufe]=ze[Tfe]=ze[_fe]=ze[Ife]=!0;ze[dfe]=ze[FH]=ze[wfe]=!1;function _d(e,t,A,r,n,i){var o,a=t&afe,s=t&sfe,l=t&lfe;if(A&&(o=n?A(e,r,n,i):A(e)),o!==void 0)return o;if(!rfe(e))return e;var u=efe(e);if(u){if(o=Jce(e),!a)return jce(e,o)}else{var c=Yce(e),f=c==FH||c==hfe;if(tfe(e))return Vce(e,a);if(c==SH||c==xH||f&&!n){if(o=s||f?{}:qce(e),!a)return s?Gce(e,Kce(o,e)):zce(e,Nce(o,e))}else{if(!ze[c])return n?e:{};o=Zce(e,c,a)}}i||(i=new Dce);var d=i.get(e);if(d)return d;i.set(e,o),nfe(e)?e.forEach(function(y){o.add(_d(y,t,A,y,e,i))}):Afe(e)&&e.forEach(function(y,v){o.set(v,_d(y,t,A,v,e,i))});var h=l?s?Xce:Wce:s?ofe:ife,p=u?void 0:h(e);return Mce(p||e,function(y,v){p&&(v=y,y=e[v]),$ce(o,v,_d(y,t,A,v,e,i))}),o}var Hfe=_d,kfe=Hfe,Pfe=1,Lfe=4;function Ofe(e){return kfe(e,Pfe|Lfe)}var Rfe=Ofe;Object.defineProperty(yc,"__esModule",{value:!0});yc.mergeClasses=void 0;var Dfe=r1,Mfe=QH(Dfe),$fe=Rfe,Nfe=QH($fe),Kfe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e};function QH(e){return e&&e.__esModule?e:{default:e}}var Vfe=yc.mergeClasses=function(t){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,Nfe.default)(t.default)||{};return A.map(function(n){var i=t[n];return i&&(0,Mfe.default)(i,function(o,a){r[a]||(r[a]={}),r[a]=Kfe({},r[a],i[a])}),n}),r};yc.default=Vfe;var wc={};Object.defineProperty(wc,"__esModule",{value:!0});wc.autoprefix=void 0;var jfe=r1,BQ=Gfe(jfe),zfe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e};function Gfe(e){return e&&e.__esModule?e:{default:e}}var Wfe={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var A=t&&t.split(" ");return{position:"absolute",top:A&&A[0],right:A&&A[1],bottom:A&&A[2],left:A&&A[3]}},extend:function(t,A){var r=A[t];return r||{extend:t}}},Xfe=wc.autoprefix=function(t){var A={};return(0,BQ.default)(t,function(r,n){var i={};(0,BQ.default)(r,function(o,a){var s=Wfe[a];s?i=zfe({},i,s(o)):i[a]=o}),A[n]=i}),A};wc.default=Xfe;var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.hover=void 0;var Yfe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Jfe=T,Qv=Zfe(Jfe);function Zfe(e){return e&&e.__esModule?e:{default:e}}function qfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yQ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ede(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var tde=Cc.hover=function(t){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){ede(n,r);function n(){var i,o,a,s;qfe(this,n);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=(o=(a=yQ(this,(i=n.__proto__||Object.getPrototypeOf(n)).call.apply(i,[this].concat(u))),a),a.state={hover:!1},a.handleMouseOver=function(){return a.setState({hover:!0})},a.handleMouseOut=function(){return a.setState({hover:!1})},a.render=function(){return Qv.default.createElement(A,{onMouseOver:a.handleMouseOver,onMouseOut:a.handleMouseOut},Qv.default.createElement(t,Yfe({},a.props,a.state)))},o),yQ(a,s)}return n}(Qv.default.Component)};Cc.default=tde;var bc={};Object.defineProperty(bc,"__esModule",{value:!0});bc.active=void 0;var Ade=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},rde=T,Ev=nde(rde);function nde(e){return e&&e.__esModule?e:{default:e}}function ide(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wQ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ode(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ade=bc.active=function(t){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){ode(n,r);function n(){var i,o,a,s;ide(this,n);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=(o=(a=wQ(this,(i=n.__proto__||Object.getPrototypeOf(n)).call.apply(i,[this].concat(u))),a),a.state={active:!1},a.handleMouseDown=function(){return a.setState({active:!0})},a.handleMouseUp=function(){return a.setState({active:!1})},a.render=function(){return Ev.default.createElement(A,{onMouseDown:a.handleMouseDown,onMouseUp:a.handleMouseUp},Ev.default.createElement(t,Ade({},a.props,a.state)))},o),wQ(a,s)}return n}(Ev.default.Component)};bc.default=ade;var p1={};Object.defineProperty(p1,"__esModule",{value:!0});var sde=function(t,A){var r={},n=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r[o]=a};return t===0&&n("first-child"),t===A-1&&n("last-child"),(t===0||t%2===0)&&n("even"),Math.abs(t%2)===1&&n("odd"),n("nth-child",t),r};p1.default=sde;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.ReactCSS=Ar.loop=Ar.handleActive=g1=Ar.handleHover=Ar.hover=void 0;var lde=vc,ude=Ps(lde),cde=yc,fde=Ps(cde),dde=wc,hde=Ps(dde),pde=Cc,EH=Ps(pde),gde=bc,vde=Ps(gde),mde=p1,Bde=Ps(mde);function Ps(e){return e&&e.__esModule?e:{default:e}}Ar.hover=EH.default;var g1=Ar.handleHover=EH.default;Ar.handleActive=vde.default;Ar.loop=Bde.default;var yde=Ar.ReactCSS=function(t){for(var A=arguments.length,r=Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];var i=(0,ude.default)(r),o=(0,fde.default)(t,i);return(0,hde.default)(o)},we=Ar.default=yde,wde=function(t,A,r,n,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(i.getBoundingClientRect().left+window.pageXOffset),c=l-(i.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f=void 0;if(c<0?f=0:c>a?f=1:f=Math.round(c*100/a)/100,A.a!==f)return{h:A.h,s:A.s,l:A.l,a:f,source:"rgb"}}else{var d=void 0;if(u<0?d=0:u>o?d=1:d=Math.round(u*100/o)/100,n!==d)return{h:A.h,s:A.s,l:A.l,a:d,source:"rgb"}}return null},Uv={},Cde=function(t,A,r,n){if(typeof document>"u"&&!n)return null;var i=n?new n:document.createElement("canvas");i.width=r*2,i.height=r*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=A,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),i.toDataURL()):null},bde=function(t,A,r,n){var i=t+"-"+A+"-"+r+(n?"-server":"");if(Uv[i])return Uv[i];var o=Cde(t,A,r,n);return Uv[i]=o,o},CQ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Ls=function(t){var A=t.white,r=t.grey,n=t.size,i=t.renderers,o=t.borderRadius,a=t.boxShadow,s=t.children,l=we({default:{grid:{borderRadius:o,boxShadow:a,absolute:"0px 0px 0px 0px",background:"url("+bde(A,r,n,i.canvas)+") center left"}}});return T.isValidElement(s)?F.cloneElement(s,CQ({},s.props,{style:CQ({},s.props.style,l.grid)})):F.createElement("div",{style:l.grid})};Ls.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var xde=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Fde=function(){function e(t,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,A,r){return A&&e(t.prototype,A),r&&e(t,r),t}}();function Sde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bQ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Qde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v1=function(e){Qde(t,e);function t(){var A,r,n,i;Sde(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=(r=(n=bQ(this,(A=t.__proto__||Object.getPrototypeOf(t)).call.apply(A,[this].concat(a))),n),n.handleChange=function(l){var u=wde(l,n.props.hsl,n.props.direction,n.props.a,n.container);u&&typeof n.props.onChange=="function"&&n.props.onChange(u,l)},n.handleMouseDown=function(l){n.handleChange(l),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},r),bQ(n,i)}return Fde(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,n=this.props.rgb,i=we({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+n.r+","+n.g+","+n.b+`, 0) 0%, + */var Wp=T,Wq=Gq;function Xq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yq=typeof Object.is=="function"?Object.is:Xq,Jq=Wq.useSyncExternalStore,Zq=Wp.useRef,qq=Wp.useEffect,eee=Wp.useMemo,tee=Wp.useDebugValue;MI.useSyncExternalStoreWithSelector=function(e,t,A,r,n){var i=Zq(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=eee(function(){function s(d){if(!l){if(l=!0,u=d,d=r(d),n!==void 0&&o.hasValue){var h=o.value;if(n(h,d))return c=h}return c=d}if(h=c,Yq(u,d))return h;var p=r(d);return n!==void 0&&n(h,p)?h:(u=d,c=p)}var l=!1,u,c,f=A===void 0?null:A;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,A,r,n]);var a=Jq(e,i[0],i[1]);return qq(function(){o.hasValue=!0,o.value=a},[a]),tee(a),a};DI.exports=MI;var Aee=DI.exports;const ree=Yu(Aee);var KI={BASE_URL:"/qr-code-generator/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:nee}=F,{useSyncExternalStoreWithSelector:iee}=ree;let IS=!1;const oee=e=>e;function aee(e,t=oee,A){(KI?"production":void 0)!=="production"&&A&&!IS&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),IS=!0);const r=iee(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,A);return nee(r),r}const HS=e=>{(KI?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Oq(e):e,A=(r,n)=>aee(t,r,n);return Object.assign(A,t),A},Yw=e=>e?HS(e):HS,VI=Yw(e=>({currentImage:null,imageName:null,setImage:t=>e({currentImage:t}),setImageName:t=>e({imageName:t}),removeImage:()=>e({currentImage:null,imageName:null}),handleImageChange:t=>{var r;const A=(r=t.target.files)==null?void 0:r[0];if(A){const n=new FileReader;n.onloadend=()=>{e({currentImage:n.result}),e({imageName:A.name})},n.readAsDataURL(A)}}})),Jw=Yw(e=>({qrOptions:{width:30,height:30,eyeRadius:2,logoPadding:.8,qrStyle:"squares",ecLevel:"M",logoPaddingStyle:"circle"},setQrOption:(t,A)=>{e(r=>({qrOptions:{...r.qrOptions,[t]:A}}))}})),jI=Yw(e=>({bgColor:"#FFFFFF",fgColor:"#080808",eyeColor:"#000000",setColor:t=>e(A=>({...A,...t})),changeBgColor:t=>e(A=>({...A,bgColor:t})),changeFgColor:t=>e(A=>({...A,fgColor:t})),changeEyeColor:t=>e(A=>({...A,eyeColor:t}))})),see=e=>{const[t,A]=T.useState("");return T.useEffect(()=>{const r=setTimeout(()=>{A(e)},400);return()=>clearTimeout(r)},[e]),[t]},lee=()=>{const[e,t]=T.useState(""),[A]=see(e);return{value:A,handleQrChange:n=>{t(n.target.value)}}};function uee(e){return Pi({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"8.5",r:"1.5"},child:[]},{tag:"polyline",attr:{points:"21 15 16 10 5 21"},child:[]}]})(e)}function cee(e){return Pi({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"17 8 12 3 7 8"},child:[]},{tag:"line",attr:{x1:"12",y1:"3",x2:"12",y2:"15"},child:[]}]})(e)}function fee(e){return Pi({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function dee({name:e,acceptedFileTypes:t,children:A,isRequired:r=!1,imageName:n,onImageChange:i,removeImage:o,currentImage:a}){const s=T.useRef(null),l=()=>{var c;return(c=s.current)==null?void 0:c.click()},u=!a;return P.jsxs(n_,{isRequired:r,display:"flex",flexDirection:"column",children:[P.jsx(_w,{htmlFor:e,children:A}),P.jsxs(Iw,{children:[P.jsxs(t_,{maxWidth:234,spacing:1,isAttached:!!n,variant:"solid",flex:"1",children:[P.jsx(cc,{onClick:l,colorScheme:"blue",color:"black",fontSize:n?"xs":"md",leftIcon:P.jsx(Ss,{as:a?uee:cee}),flex:"1",children:n||"Upload Image"}),P.jsx($w,{hasArrow:!0,placement:"top",label:"Remove Image",bg:"red.500",children:P.jsx(A_,{isDisabled:u,colorScheme:"red",variant:"solid",color:"black",icon:P.jsx(fee,{}),"aria-label":"Remove Image",onClick:o})})]}),P.jsx(kp,{type:"file",className:"hidden",name:e,ref:s,onChange:i,accept:t})]})]})}function hee({option:e,min:t,max:A,step:r=1,isDisabled:n=!1,children:i}){const[o,a]=T.useState(!1),{qrOptions:s,setQrOption:l}=Jw(),u=s[e],c={mt:"2",ml:"-2.5",fontSize:"sm"};return P.jsxs(Qs,{flexDirection:"column",alignItems:"start",p:4,children:[i,P.jsxs(E_,{size:"md",isDisabled:n,"aria-label":`${e} slider`,step:r,min:t,max:A,defaultValue:u,onChange:f=>l(e,f),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[P.jsx(aB,{value:t,...c,children:t}),P.jsx(aB,{value:A,...c,children:A}),P.jsx(T_,{children:P.jsx(__,{})}),P.jsx($w,{hasArrow:!0,bg:"blue.500",color:"white",placement:"top",isOpen:o,label:u,children:P.jsx(U_,{})})]})]})}var Ar={},vc={},pee=typeof pA=="object"&&pA&&pA.Object===Object&&pA,zI=pee,gee=zI,vee=typeof self=="object"&&self&&self.Object===Object&&self,mee=gee||vee||Function("return this")(),sn=mee,Bee=sn,yee=Bee.Symbol,mc=yee,kS=mc,GI=Object.prototype,wee=GI.hasOwnProperty,Cee=GI.toString,pl=kS?kS.toStringTag:void 0;function bee(e){var t=wee.call(e,pl),A=e[pl];try{e[pl]=void 0;var r=!0}catch{}var n=Cee.call(e);return r&&(t?e[pl]=A:delete e[pl]),n}var xee=bee,Fee=Object.prototype,See=Fee.toString;function Qee(e){return See.call(e)}var Eee=Qee,PS=mc,Uee=xee,Tee=Eee,_ee="[object Null]",Iee="[object Undefined]",LS=PS?PS.toStringTag:void 0;function Hee(e){return e==null?e===void 0?Iee:_ee:LS&&LS in Object(e)?Uee(e):Tee(e)}var Uo=Hee,kee=Array.isArray,kr=kee;function Pee(e){return e!=null&&typeof e=="object"}var Mn=Pee,Lee=Uo,Oee=kr,Ree=Mn,Dee="[object String]";function Mee(e){return typeof e=="string"||!Oee(e)&&Ree(e)&&Lee(e)==Dee}var $ee=Mee;function Nee(e){return function(t,A,r){for(var n=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[e?a:++n];if(A(i[s],s,i)===!1)break}return t}}var Kee=Nee,Vee=Kee,jee=Vee(),zee=jee;function Gee(e,t){for(var A=-1,r=Array(e);++A<e;)r[A]=t(A);return r}var Wee=Gee,Xee=Uo,Yee=Mn,Jee="[object Arguments]";function Zee(e){return Yee(e)&&Xee(e)==Jee}var qee=Zee,OS=qee,ete=Mn,WI=Object.prototype,tte=WI.hasOwnProperty,Ate=WI.propertyIsEnumerable,rte=OS(function(){return arguments}())?OS:function(e){return ete(e)&&tte.call(e,"callee")&&!Ate.call(e,"callee")},XI=rte,kh={exports:{}};function nte(){return!1}var ite=nte;kh.exports;(function(e,t){var A=sn,r=ite,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?A.Buffer:void 0,s=a?a.isBuffer:void 0,l=s||r;e.exports=l})(kh,kh.exports);var Zw=kh.exports,ote=9007199254740991,ate=/^(?:0|[1-9]\d*)$/;function ste(e,t){var A=typeof e;return t=t??ote,!!t&&(A=="number"||A!="symbol"&&ate.test(e))&&e>-1&&e%1==0&&e<t}var YI=ste,lte=9007199254740991;function ute(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lte}var qw=ute,cte=Uo,fte=qw,dte=Mn,hte="[object Arguments]",pte="[object Array]",gte="[object Boolean]",vte="[object Date]",mte="[object Error]",Bte="[object Function]",yte="[object Map]",wte="[object Number]",Cte="[object Object]",bte="[object RegExp]",xte="[object Set]",Fte="[object String]",Ste="[object WeakMap]",Qte="[object ArrayBuffer]",Ete="[object DataView]",Ute="[object Float32Array]",Tte="[object Float64Array]",_te="[object Int8Array]",Ite="[object Int16Array]",Hte="[object Int32Array]",kte="[object Uint8Array]",Pte="[object Uint8ClampedArray]",Lte="[object Uint16Array]",Ote="[object Uint32Array]",Ze={};Ze[Ute]=Ze[Tte]=Ze[_te]=Ze[Ite]=Ze[Hte]=Ze[kte]=Ze[Pte]=Ze[Lte]=Ze[Ote]=!0;Ze[hte]=Ze[pte]=Ze[Qte]=Ze[gte]=Ze[Ete]=Ze[vte]=Ze[mte]=Ze[Bte]=Ze[yte]=Ze[wte]=Ze[Cte]=Ze[bte]=Ze[xte]=Ze[Fte]=Ze[Ste]=!1;function Rte(e){return dte(e)&&fte(e.length)&&!!Ze[cte(e)]}var Dte=Rte;function Mte(e){return function(t){return e(t)}}var e1=Mte,Ph={exports:{}};Ph.exports;(function(e,t){var A=zI,r=t&&!t.nodeType&&t,n=r&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===r,o=i&&A.process,a=function(){try{var s=n&&n.require&&n.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Ph,Ph.exports);var t1=Ph.exports,$te=Dte,Nte=e1,RS=t1,DS=RS&&RS.isTypedArray,Kte=DS?Nte(DS):$te,JI=Kte,Vte=Wee,jte=XI,zte=kr,Gte=Zw,Wte=YI,Xte=JI,Yte=Object.prototype,Jte=Yte.hasOwnProperty;function Zte(e,t){var A=zte(e),r=!A&&jte(e),n=!A&&!r&&Gte(e),i=!A&&!r&&!n&&Xte(e),o=A||r||n||i,a=o?Vte(e.length,String):[],s=a.length;for(var l in e)(t||Jte.call(e,l))&&!(o&&(l=="length"||n&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Wte(l,s)))&&a.push(l);return a}var ZI=Zte,qte=Object.prototype;function eAe(e){var t=e&&e.constructor,A=typeof t=="function"&&t.prototype||qte;return e===A}var A1=eAe;function tAe(e,t){return function(A){return e(t(A))}}var qI=tAe,AAe=qI,rAe=AAe(Object.keys,Object),nAe=rAe,iAe=A1,oAe=nAe,aAe=Object.prototype,sAe=aAe.hasOwnProperty;function lAe(e){if(!iAe(e))return oAe(e);var t=[];for(var A in Object(e))sAe.call(e,A)&&A!="constructor"&&t.push(A);return t}var uAe=lAe;function cAe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Us=cAe,fAe=Uo,dAe=Us,hAe="[object AsyncFunction]",pAe="[object Function]",gAe="[object GeneratorFunction]",vAe="[object Proxy]";function mAe(e){if(!dAe(e))return!1;var t=fAe(e);return t==pAe||t==gAe||t==hAe||t==vAe}var eH=mAe,BAe=eH,yAe=qw;function wAe(e){return e!=null&&yAe(e.length)&&!BAe(e)}var Xp=wAe,CAe=ZI,bAe=uAe,xAe=Xp;function FAe(e){return xAe(e)?CAe(e):bAe(e)}var Bc=FAe,SAe=zee,QAe=Bc;function EAe(e,t){return e&&SAe(e,t,QAe)}var tH=EAe;function UAe(e){return e}var AH=UAe,TAe=AH;function _Ae(e){return typeof e=="function"?e:TAe}var IAe=_Ae,HAe=tH,kAe=IAe;function PAe(e,t){return e&&HAe(e,kAe(t))}var r1=PAe,LAe=qI,OAe=LAe(Object.getPrototypeOf,Object),n1=OAe,RAe=Uo,DAe=n1,MAe=Mn,$Ae="[object Object]",NAe=Function.prototype,KAe=Object.prototype,rH=NAe.toString,VAe=KAe.hasOwnProperty,jAe=rH.call(Object);function zAe(e){if(!MAe(e)||RAe(e)!=$Ae)return!1;var t=DAe(e);if(t===null)return!0;var A=VAe.call(t,"constructor")&&t.constructor;return typeof A=="function"&&A instanceof A&&rH.call(A)==jAe}var GAe=zAe;function WAe(e,t){for(var A=-1,r=e==null?0:e.length,n=Array(r);++A<r;)n[A]=t(e[A],A,e);return n}var nH=WAe;function XAe(){this.__data__=[],this.size=0}var YAe=XAe;function JAe(e,t){return e===t||e!==e&&t!==t}var i1=JAe,ZAe=i1;function qAe(e,t){for(var A=e.length;A--;)if(ZAe(e[A][0],t))return A;return-1}var Yp=qAe,ere=Yp,tre=Array.prototype,Are=tre.splice;function rre(e){var t=this.__data__,A=ere(t,e);if(A<0)return!1;var r=t.length-1;return A==r?t.pop():Are.call(t,A,1),--this.size,!0}var nre=rre,ire=Yp;function ore(e){var t=this.__data__,A=ire(t,e);return A<0?void 0:t[A][1]}var are=ore,sre=Yp;function lre(e){return sre(this.__data__,e)>-1}var ure=lre,cre=Yp;function fre(e,t){var A=this.__data__,r=cre(A,e);return r<0?(++this.size,A.push([e,t])):A[r][1]=t,this}var dre=fre,hre=YAe,pre=nre,gre=are,vre=ure,mre=dre;function Ts(e){var t=-1,A=e==null?0:e.length;for(this.clear();++t<A;){var r=e[t];this.set(r[0],r[1])}}Ts.prototype.clear=hre;Ts.prototype.delete=pre;Ts.prototype.get=gre;Ts.prototype.has=vre;Ts.prototype.set=mre;var Jp=Ts,Bre=Jp;function yre(){this.__data__=new Bre,this.size=0}var wre=yre;function Cre(e){var t=this.__data__,A=t.delete(e);return this.size=t.size,A}var bre=Cre;function xre(e){return this.__data__.get(e)}var Fre=xre;function Sre(e){return this.__data__.has(e)}var Qre=Sre,Ere=sn,Ure=Ere["__core-js_shared__"],Tre=Ure,xv=Tre,MS=function(){var e=/[^.]+$/.exec(xv&&xv.keys&&xv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _re(e){return!!MS&&MS in e}var Ire=_re,Hre=Function.prototype,kre=Hre.toString;function Pre(e){if(e!=null){try{return kre.call(e)}catch{}try{return e+""}catch{}}return""}var iH=Pre,Lre=eH,Ore=Ire,Rre=Us,Dre=iH,Mre=/[\\^$.*+?()[\]{}|]/g,$re=/^\[object .+?Constructor\]$/,Nre=Function.prototype,Kre=Object.prototype,Vre=Nre.toString,jre=Kre.hasOwnProperty,zre=RegExp("^"+Vre.call(jre).replace(Mre,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gre(e){if(!Rre(e)||Ore(e))return!1;var t=Lre(e)?zre:$re;return t.test(Dre(e))}var Wre=Gre;function Xre(e,t){return e==null?void 0:e[t]}var Yre=Xre,Jre=Wre,Zre=Yre;function qre(e,t){var A=Zre(e,t);return Jre(A)?A:void 0}var To=qre,ene=To,tne=sn,Ane=ene(tne,"Map"),o1=Ane,rne=To,nne=rne(Object,"create"),Zp=nne,$S=Zp;function ine(){this.__data__=$S?$S(null):{},this.size=0}var one=ine;function ane(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sne=ane,lne=Zp,une="__lodash_hash_undefined__",cne=Object.prototype,fne=cne.hasOwnProperty;function dne(e){var t=this.__data__;if(lne){var A=t[e];return A===une?void 0:A}return fne.call(t,e)?t[e]:void 0}var hne=dne,pne=Zp,gne=Object.prototype,vne=gne.hasOwnProperty;function mne(e){var t=this.__data__;return pne?t[e]!==void 0:vne.call(t,e)}var Bne=mne,yne=Zp,wne="__lodash_hash_undefined__";function Cne(e,t){var A=this.__data__;return this.size+=this.has(e)?0:1,A[e]=yne&&t===void 0?wne:t,this}var bne=Cne,xne=one,Fne=sne,Sne=hne,Qne=Bne,Ene=bne;function _s(e){var t=-1,A=e==null?0:e.length;for(this.clear();++t<A;){var r=e[t];this.set(r[0],r[1])}}_s.prototype.clear=xne;_s.prototype.delete=Fne;_s.prototype.get=Sne;_s.prototype.has=Qne;_s.prototype.set=Ene;var Une=_s,NS=Une,Tne=Jp,_ne=o1;function Ine(){this.size=0,this.__data__={hash:new NS,map:new(_ne||Tne),string:new NS}}var Hne=Ine;function kne(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Pne=kne,Lne=Pne;function One(e,t){var A=e.__data__;return Lne(t)?A[typeof t=="string"?"string":"hash"]:A.map}var qp=One,Rne=qp;function Dne(e){var t=Rne(this,e).delete(e);return this.size-=t?1:0,t}var Mne=Dne,$ne=qp;function Nne(e){return $ne(this,e).get(e)}var Kne=Nne,Vne=qp;function jne(e){return Vne(this,e).has(e)}var zne=jne,Gne=qp;function Wne(e,t){var A=Gne(this,e),r=A.size;return A.set(e,t),this.size+=A.size==r?0:1,this}var Xne=Wne,Yne=Hne,Jne=Mne,Zne=Kne,qne=zne,eie=Xne;function Is(e){var t=-1,A=e==null?0:e.length;for(this.clear();++t<A;){var r=e[t];this.set(r[0],r[1])}}Is.prototype.clear=Yne;Is.prototype.delete=Jne;Is.prototype.get=Zne;Is.prototype.has=qne;Is.prototype.set=eie;var a1=Is,tie=Jp,Aie=o1,rie=a1,nie=200;function iie(e,t){var A=this.__data__;if(A instanceof tie){var r=A.__data__;if(!Aie||r.length<nie-1)return r.push([e,t]),this.size=++A.size,this;A=this.__data__=new rie(r)}return A.set(e,t),this.size=A.size,this}var oie=iie,aie=Jp,sie=wre,lie=bre,uie=Fre,cie=Qre,fie=oie;function Hs(e){var t=this.__data__=new aie(e);this.size=t.size}Hs.prototype.clear=sie;Hs.prototype.delete=lie;Hs.prototype.get=uie;Hs.prototype.has=cie;Hs.prototype.set=fie;var s1=Hs,die="__lodash_hash_undefined__";function hie(e){return this.__data__.set(e,die),this}var pie=hie;function gie(e){return this.__data__.has(e)}var vie=gie,mie=a1,Bie=pie,yie=vie;function Lh(e){var t=-1,A=e==null?0:e.length;for(this.__data__=new mie;++t<A;)this.add(e[t])}Lh.prototype.add=Lh.prototype.push=Bie;Lh.prototype.has=yie;var wie=Lh;function Cie(e,t){for(var A=-1,r=e==null?0:e.length;++A<r;)if(t(e[A],A,e))return!0;return!1}var bie=Cie;function xie(e,t){return e.has(t)}var Fie=xie,Sie=wie,Qie=bie,Eie=Fie,Uie=1,Tie=2;function _ie(e,t,A,r,n,i){var o=A&Uie,a=e.length,s=t.length;if(a!=s&&!(o&&s>a))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var c=-1,f=!0,d=A&Tie?new Sie:void 0;for(i.set(e,t),i.set(t,e);++c<a;){var h=e[c],p=t[c];if(r)var y=o?r(p,h,c,t,e,i):r(h,p,c,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(d){if(!Qie(t,function(v,g){if(!Eie(d,g)&&(h===v||n(h,v,A,r,i)))return d.push(g)})){f=!1;break}}else if(!(h===p||n(h,p,A,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var oH=_ie,Iie=sn,Hie=Iie.Uint8Array,aH=Hie;function kie(e){var t=-1,A=Array(e.size);return e.forEach(function(r,n){A[++t]=[n,r]}),A}var Pie=kie;function Lie(e){var t=-1,A=Array(e.size);return e.forEach(function(r){A[++t]=r}),A}var Oie=Lie,KS=mc,VS=aH,Rie=i1,Die=oH,Mie=Pie,$ie=Oie,Nie=1,Kie=2,Vie="[object Boolean]",jie="[object Date]",zie="[object Error]",Gie="[object Map]",Wie="[object Number]",Xie="[object RegExp]",Yie="[object Set]",Jie="[object String]",Zie="[object Symbol]",qie="[object ArrayBuffer]",eoe="[object DataView]",jS=KS?KS.prototype:void 0,Fv=jS?jS.valueOf:void 0;function toe(e,t,A,r,n,i,o){switch(A){case eoe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case qie:return!(e.byteLength!=t.byteLength||!i(new VS(e),new VS(t)));case Vie:case jie:case Wie:return Rie(+e,+t);case zie:return e.name==t.name&&e.message==t.message;case Xie:case Jie:return e==t+"";case Gie:var a=Mie;case Yie:var s=r&Nie;if(a||(a=$ie),e.size!=t.size&&!s)return!1;var l=o.get(e);if(l)return l==t;r|=Kie,o.set(e,t);var u=Die(a(e),a(t),r,n,i,o);return o.delete(e),u;case Zie:if(Fv)return Fv.call(e)==Fv.call(t)}return!1}var Aoe=toe;function roe(e,t){for(var A=-1,r=t.length,n=e.length;++A<r;)e[n+A]=t[A];return e}var sH=roe,noe=sH,ioe=kr;function ooe(e,t,A){var r=t(e);return ioe(e)?r:noe(r,A(e))}var lH=ooe;function aoe(e,t){for(var A=-1,r=e==null?0:e.length,n=0,i=[];++A<r;){var o=e[A];t(o,A,e)&&(i[n++]=o)}return i}var soe=aoe;function loe(){return[]}var uH=loe,uoe=soe,coe=uH,foe=Object.prototype,doe=foe.propertyIsEnumerable,zS=Object.getOwnPropertySymbols,hoe=zS?function(e){return e==null?[]:(e=Object(e),uoe(zS(e),function(t){return doe.call(e,t)}))}:coe,l1=hoe,poe=lH,goe=l1,voe=Bc;function moe(e){return poe(e,voe,goe)}var cH=moe,GS=cH,Boe=1,yoe=Object.prototype,woe=yoe.hasOwnProperty;function Coe(e,t,A,r,n,i){var o=A&Boe,a=GS(e),s=a.length,l=GS(t),u=l.length;if(s!=u&&!o)return!1;for(var c=s;c--;){var f=a[c];if(!(o?f in t:woe.call(t,f)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var p=!0;i.set(e,t),i.set(t,e);for(var y=o;++c<s;){f=a[c];var v=e[f],g=t[f];if(r)var B=o?r(g,v,f,t,e,i):r(v,g,f,e,t,i);if(!(B===void 0?v===g||n(v,g,A,r,i):B)){p=!1;break}y||(y=f=="constructor")}if(p&&!y){var x=e.constructor,b=t.constructor;x!=b&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof b=="function"&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p}var boe=Coe,xoe=To,Foe=sn,Soe=xoe(Foe,"DataView"),Qoe=Soe,Eoe=To,Uoe=sn,Toe=Eoe(Uoe,"Promise"),_oe=Toe,Ioe=To,Hoe=sn,koe=Ioe(Hoe,"Set"),Poe=koe,Loe=To,Ooe=sn,Roe=Loe(Ooe,"WeakMap"),Doe=Roe,IB=Qoe,HB=o1,kB=_oe,PB=Poe,LB=Doe,fH=Uo,ks=iH,WS="[object Map]",Moe="[object Object]",XS="[object Promise]",YS="[object Set]",JS="[object WeakMap]",ZS="[object DataView]",$oe=ks(IB),Noe=ks(HB),Koe=ks(kB),Voe=ks(PB),joe=ks(LB),Xi=fH;(IB&&Xi(new IB(new ArrayBuffer(1)))!=ZS||HB&&Xi(new HB)!=WS||kB&&Xi(kB.resolve())!=XS||PB&&Xi(new PB)!=YS||LB&&Xi(new LB)!=JS)&&(Xi=function(e){var t=fH(e),A=t==Moe?e.constructor:void 0,r=A?ks(A):"";if(r)switch(r){case $oe:return ZS;case Noe:return WS;case Koe:return XS;case Voe:return YS;case joe:return JS}return t});var eg=Xi,Sv=s1,zoe=oH,Goe=Aoe,Woe=boe,qS=eg,eQ=kr,tQ=Zw,Xoe=JI,Yoe=1,AQ="[object Arguments]",rQ="[object Array]",Vf="[object Object]",Joe=Object.prototype,nQ=Joe.hasOwnProperty;function Zoe(e,t,A,r,n,i){var o=eQ(e),a=eQ(t),s=o?rQ:qS(e),l=a?rQ:qS(t);s=s==AQ?Vf:s,l=l==AQ?Vf:l;var u=s==Vf,c=l==Vf,f=s==l;if(f&&tQ(e)){if(!tQ(t))return!1;o=!0,u=!1}if(f&&!u)return i||(i=new Sv),o||Xoe(e)?zoe(e,t,A,r,n,i):Goe(e,t,s,A,r,n,i);if(!(A&Yoe)){var d=u&&nQ.call(e,"__wrapped__"),h=c&&nQ.call(t,"__wrapped__");if(d||h){var p=d?e.value():e,y=h?t.value():t;return i||(i=new Sv),n(p,y,A,r,i)}}return f?(i||(i=new Sv),Woe(e,t,A,r,n,i)):!1}var qoe=Zoe,eae=qoe,iQ=Mn;function dH(e,t,A,r,n){return e===t?!0:e==null||t==null||!iQ(e)&&!iQ(t)?e!==e&&t!==t:eae(e,t,A,r,dH,n)}var hH=dH,tae=s1,Aae=hH,rae=1,nae=2;function iae(e,t,A,r){var n=A.length,i=n,o=!r;if(e==null)return!i;for(e=Object(e);n--;){var a=A[n];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++n<i;){a=A[n];var s=a[0],l=e[s],u=a[1];if(o&&a[2]){if(l===void 0&&!(s in e))return!1}else{var c=new tae;if(r)var f=r(l,u,s,e,t,c);if(!(f===void 0?Aae(u,l,rae|nae,r,c):f))return!1}}return!0}var oae=iae,aae=Us;function sae(e){return e===e&&!aae(e)}var pH=sae,lae=pH,uae=Bc;function cae(e){for(var t=uae(e),A=t.length;A--;){var r=t[A],n=e[r];t[A]=[r,n,lae(n)]}return t}var fae=cae;function dae(e,t){return function(A){return A==null?!1:A[e]===t&&(t!==void 0||e in Object(A))}}var gH=dae,hae=oae,pae=fae,gae=gH;function vae(e){var t=pae(e);return t.length==1&&t[0][2]?gae(t[0][0],t[0][1]):function(A){return A===e||hae(A,e,t)}}var mae=vae,Bae=Uo,yae=Mn,wae="[object Symbol]";function Cae(e){return typeof e=="symbol"||yae(e)&&Bae(e)==wae}var u1=Cae,bae=kr,xae=u1,Fae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sae=/^\w*$/;function Qae(e,t){if(bae(e))return!1;var A=typeof e;return A=="number"||A=="symbol"||A=="boolean"||e==null||xae(e)?!0:Sae.test(e)||!Fae.test(e)||t!=null&&e in Object(t)}var c1=Qae,vH=a1,Eae="Expected a function";function f1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Eae);var A=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=A.cache;if(i.has(n))return i.get(n);var o=e.apply(this,r);return A.cache=i.set(n,o)||i,o};return A.cache=new(f1.Cache||vH),A}f1.Cache=vH;var Uae=f1,Tae=Uae,_ae=500;function Iae(e){var t=Tae(e,function(r){return A.size===_ae&&A.clear(),r}),A=t.cache;return t}var Hae=Iae,kae=Hae,Pae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lae=/\\(\\)?/g,Oae=kae(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Pae,function(A,r,n,i){t.push(n?i.replace(Lae,"$1"):r||A)}),t}),Rae=Oae,oQ=mc,Dae=nH,Mae=kr,$ae=u1,Nae=1/0,aQ=oQ?oQ.prototype:void 0,sQ=aQ?aQ.toString:void 0;function mH(e){if(typeof e=="string")return e;if(Mae(e))return Dae(e,mH)+"";if($ae(e))return sQ?sQ.call(e):"";var t=e+"";return t=="0"&&1/e==-Nae?"-0":t}var Kae=mH,Vae=Kae;function jae(e){return e==null?"":Vae(e)}var zae=jae,Gae=kr,Wae=c1,Xae=Rae,Yae=zae;function Jae(e,t){return Gae(e)?e:Wae(e,t)?[e]:Xae(Yae(e))}var BH=Jae,Zae=u1,qae=1/0;function ese(e){if(typeof e=="string"||Zae(e))return e;var t=e+"";return t=="0"&&1/e==-qae?"-0":t}var tg=ese,tse=BH,Ase=tg;function rse(e,t){t=tse(t,e);for(var A=0,r=t.length;e!=null&&A<r;)e=e[Ase(t[A++])];return A&&A==r?e:void 0}var yH=rse,nse=yH;function ise(e,t,A){var r=e==null?void 0:nse(e,t);return r===void 0?A:r}var ose=ise;function ase(e,t){return e!=null&&t in Object(e)}var sse=ase,lse=BH,use=XI,cse=kr,fse=YI,dse=qw,hse=tg;function pse(e,t,A){t=lse(t,e);for(var r=-1,n=t.length,i=!1;++r<n;){var o=hse(t[r]);if(!(i=e!=null&&A(e,o)))break;e=e[o]}return i||++r!=n?i:(n=e==null?0:e.length,!!n&&dse(n)&&fse(o,n)&&(cse(e)||use(e)))}var gse=pse,vse=sse,mse=gse;function Bse(e,t){return e!=null&&mse(e,t,vse)}var yse=Bse,wse=hH,Cse=ose,bse=yse,xse=c1,Fse=pH,Sse=gH,Qse=tg,Ese=1,Use=2;function Tse(e,t){return xse(e)&&Fse(t)?Sse(Qse(e),t):function(A){var r=Cse(A,e);return r===void 0&&r===t?bse(A,e):wse(t,r,Ese|Use)}}var _se=Tse;function Ise(e){return function(t){return t==null?void 0:t[e]}}var Hse=Ise,kse=yH;function Pse(e){return function(t){return kse(t,e)}}var Lse=Pse,Ose=Hse,Rse=Lse,Dse=c1,Mse=tg;function $se(e){return Dse(e)?Ose(Mse(e)):Rse(e)}var Nse=$se,Kse=mae,Vse=_se,jse=AH,zse=kr,Gse=Nse;function Wse(e){return typeof e=="function"?e:e==null?jse:typeof e=="object"?zse(e)?Vse(e[0],e[1]):Kse(e):Gse(e)}var Xse=Wse,Yse=Xp;function Jse(e,t){return function(A,r){if(A==null)return A;if(!Yse(A))return e(A,r);for(var n=A.length,i=t?n:-1,o=Object(A);(t?i--:++i<n)&&r(o[i],i,o)!==!1;);return A}}var Zse=Jse,qse=tH,ele=Zse,tle=ele(qse),Ale=tle,rle=Ale,nle=Xp;function ile(e,t){var A=-1,r=nle(e)?Array(e.length):[];return rle(e,function(n,i,o){r[++A]=t(n,i,o)}),r}var ole=ile,ale=nH,sle=Xse,lle=ole,ule=kr;function cle(e,t){var A=ule(e)?ale:lle;return A(e,sle(t))}var fle=cle;Object.defineProperty(vc,"__esModule",{value:!0});vc.flattenNames=void 0;var dle=$ee,hle=Ag(dle),ple=r1,gle=Ag(ple),vle=GAe,mle=Ag(vle),Ble=fle,yle=Ag(Ble);function Ag(e){return e&&e.__esModule?e:{default:e}}var wle=vc.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=[];return(0,yle.default)(t,function(r){Array.isArray(r)?e(r).map(function(n){return A.push(n)}):(0,mle.default)(r)?(0,gle.default)(r,function(n,i){n===!0&&A.push(i),A.push(i+"-"+n)}):(0,hle.default)(r)&&A.push(r)}),A};vc.default=wle;var yc={};function Cle(e,t){for(var A=-1,r=e==null?0:e.length;++A<r&&t(e[A],A,e)!==!1;);return e}var ble=Cle,xle=To,Fle=function(){try{var e=xle(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Sle=Fle,lQ=Sle;function Qle(e,t,A){t=="__proto__"&&lQ?lQ(e,t,{configurable:!0,enumerable:!0,value:A,writable:!0}):e[t]=A}var wH=Qle,Ele=wH,Ule=i1,Tle=Object.prototype,_le=Tle.hasOwnProperty;function Ile(e,t,A){var r=e[t];(!(_le.call(e,t)&&Ule(r,A))||A===void 0&&!(t in e))&&Ele(e,t,A)}var CH=Ile,Hle=CH,kle=wH;function Ple(e,t,A,r){var n=!A;A||(A={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(A[a],e[a],a,A,e):void 0;s===void 0&&(s=e[a]),n?kle(A,a,s):Hle(A,a,s)}return A}var rg=Ple,Lle=rg,Ole=Bc;function Rle(e,t){return e&&Lle(t,Ole(t),e)}var Dle=Rle;function Mle(e){var t=[];if(e!=null)for(var A in Object(e))t.push(A);return t}var $le=Mle,Nle=Us,Kle=A1,Vle=$le,jle=Object.prototype,zle=jle.hasOwnProperty;function Gle(e){if(!Nle(e))return Vle(e);var t=Kle(e),A=[];for(var r in e)r=="constructor"&&(t||!zle.call(e,r))||A.push(r);return A}var Wle=Gle,Xle=ZI,Yle=Wle,Jle=Xp;function Zle(e){return Jle(e)?Xle(e,!0):Yle(e)}var d1=Zle,qle=rg,eue=d1;function tue(e,t){return e&&qle(t,eue(t),e)}var Aue=tue,Oh={exports:{}};Oh.exports;(function(e,t){var A=sn,r=t&&!t.nodeType&&t,n=r&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===r,o=i?A.Buffer:void 0,a=o?o.allocUnsafe:void 0;function s(l,u){if(u)return l.slice();var c=l.length,f=a?a(c):new l.constructor(c);return l.copy(f),f}e.exports=s})(Oh,Oh.exports);var rue=Oh.exports;function nue(e,t){var A=-1,r=e.length;for(t||(t=Array(r));++A<r;)t[A]=e[A];return t}var iue=nue,oue=rg,aue=l1;function sue(e,t){return oue(e,aue(e),t)}var lue=sue,uue=sH,cue=n1,fue=l1,due=uH,hue=Object.getOwnPropertySymbols,pue=hue?function(e){for(var t=[];e;)uue(t,fue(e)),e=cue(e);return t}:due,bH=pue,gue=rg,vue=bH;function mue(e,t){return gue(e,vue(e),t)}var Bue=mue,yue=lH,wue=bH,Cue=d1;function bue(e){return yue(e,Cue,wue)}var xue=bue,Fue=Object.prototype,Sue=Fue.hasOwnProperty;function Que(e){var t=e.length,A=new e.constructor(t);return t&&typeof e[0]=="string"&&Sue.call(e,"index")&&(A.index=e.index,A.input=e.input),A}var Eue=Que,uQ=aH;function Uue(e){var t=new e.constructor(e.byteLength);return new uQ(t).set(new uQ(e)),t}var h1=Uue,Tue=h1;function _ue(e,t){var A=t?Tue(e.buffer):e.buffer;return new e.constructor(A,e.byteOffset,e.byteLength)}var Iue=_ue,Hue=/\w*$/;function kue(e){var t=new e.constructor(e.source,Hue.exec(e));return t.lastIndex=e.lastIndex,t}var Pue=kue,cQ=mc,fQ=cQ?cQ.prototype:void 0,dQ=fQ?fQ.valueOf:void 0;function Lue(e){return dQ?Object(dQ.call(e)):{}}var Oue=Lue,Rue=h1;function Due(e,t){var A=t?Rue(e.buffer):e.buffer;return new e.constructor(A,e.byteOffset,e.length)}var Mue=Due,$ue=h1,Nue=Iue,Kue=Pue,Vue=Oue,jue=Mue,zue="[object Boolean]",Gue="[object Date]",Wue="[object Map]",Xue="[object Number]",Yue="[object RegExp]",Jue="[object Set]",Zue="[object String]",que="[object Symbol]",ece="[object ArrayBuffer]",tce="[object DataView]",Ace="[object Float32Array]",rce="[object Float64Array]",nce="[object Int8Array]",ice="[object Int16Array]",oce="[object Int32Array]",ace="[object Uint8Array]",sce="[object Uint8ClampedArray]",lce="[object Uint16Array]",uce="[object Uint32Array]";function cce(e,t,A){var r=e.constructor;switch(t){case ece:return $ue(e);case zue:case Gue:return new r(+e);case tce:return Nue(e,A);case Ace:case rce:case nce:case ice:case oce:case ace:case sce:case lce:case uce:return jue(e,A);case Wue:return new r;case Xue:case Zue:return new r(e);case Yue:return Kue(e);case Jue:return new r;case que:return Vue(e)}}var fce=cce,dce=Us,hQ=Object.create,hce=function(){function e(){}return function(t){if(!dce(t))return{};if(hQ)return hQ(t);e.prototype=t;var A=new e;return e.prototype=void 0,A}}(),pce=hce,gce=pce,vce=n1,mce=A1;function Bce(e){return typeof e.constructor=="function"&&!mce(e)?gce(vce(e)):{}}var yce=Bce,wce=eg,Cce=Mn,bce="[object Map]";function xce(e){return Cce(e)&&wce(e)==bce}var Fce=xce,Sce=Fce,Qce=e1,pQ=t1,gQ=pQ&&pQ.isMap,Ece=gQ?Qce(gQ):Sce,Uce=Ece,Tce=eg,_ce=Mn,Ice="[object Set]";function Hce(e){return _ce(e)&&Tce(e)==Ice}var kce=Hce,Pce=kce,Lce=e1,vQ=t1,mQ=vQ&&vQ.isSet,Oce=mQ?Lce(mQ):Pce,Rce=Oce,Dce=s1,Mce=ble,$ce=CH,Nce=Dle,Kce=Aue,Vce=rue,jce=iue,zce=lue,Gce=Bue,Wce=cH,Xce=xue,Yce=eg,Jce=Eue,Zce=fce,qce=yce,efe=kr,tfe=Zw,Afe=Uce,rfe=Us,nfe=Rce,ife=Bc,ofe=d1,afe=1,sfe=2,lfe=4,xH="[object Arguments]",ufe="[object Array]",cfe="[object Boolean]",ffe="[object Date]",dfe="[object Error]",FH="[object Function]",hfe="[object GeneratorFunction]",pfe="[object Map]",gfe="[object Number]",SH="[object Object]",vfe="[object RegExp]",mfe="[object Set]",Bfe="[object String]",yfe="[object Symbol]",wfe="[object WeakMap]",Cfe="[object ArrayBuffer]",bfe="[object DataView]",xfe="[object Float32Array]",Ffe="[object Float64Array]",Sfe="[object Int8Array]",Qfe="[object Int16Array]",Efe="[object Int32Array]",Ufe="[object Uint8Array]",Tfe="[object Uint8ClampedArray]",_fe="[object Uint16Array]",Ife="[object Uint32Array]",ze={};ze[xH]=ze[ufe]=ze[Cfe]=ze[bfe]=ze[cfe]=ze[ffe]=ze[xfe]=ze[Ffe]=ze[Sfe]=ze[Qfe]=ze[Efe]=ze[pfe]=ze[gfe]=ze[SH]=ze[vfe]=ze[mfe]=ze[Bfe]=ze[yfe]=ze[Ufe]=ze[Tfe]=ze[_fe]=ze[Ife]=!0;ze[dfe]=ze[FH]=ze[wfe]=!1;function _d(e,t,A,r,n,i){var o,a=t&afe,s=t&sfe,l=t&lfe;if(A&&(o=n?A(e,r,n,i):A(e)),o!==void 0)return o;if(!rfe(e))return e;var u=efe(e);if(u){if(o=Jce(e),!a)return jce(e,o)}else{var c=Yce(e),f=c==FH||c==hfe;if(tfe(e))return Vce(e,a);if(c==SH||c==xH||f&&!n){if(o=s||f?{}:qce(e),!a)return s?Gce(e,Kce(o,e)):zce(e,Nce(o,e))}else{if(!ze[c])return n?e:{};o=Zce(e,c,a)}}i||(i=new Dce);var d=i.get(e);if(d)return d;i.set(e,o),nfe(e)?e.forEach(function(y){o.add(_d(y,t,A,y,e,i))}):Afe(e)&&e.forEach(function(y,v){o.set(v,_d(y,t,A,v,e,i))});var h=l?s?Xce:Wce:s?ofe:ife,p=u?void 0:h(e);return Mce(p||e,function(y,v){p&&(v=y,y=e[v]),$ce(o,v,_d(y,t,A,v,e,i))}),o}var Hfe=_d,kfe=Hfe,Pfe=1,Lfe=4;function Ofe(e){return kfe(e,Pfe|Lfe)}var Rfe=Ofe;Object.defineProperty(yc,"__esModule",{value:!0});yc.mergeClasses=void 0;var Dfe=r1,Mfe=QH(Dfe),$fe=Rfe,Nfe=QH($fe),Kfe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e};function QH(e){return e&&e.__esModule?e:{default:e}}var Vfe=yc.mergeClasses=function(t){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,Nfe.default)(t.default)||{};return A.map(function(n){var i=t[n];return i&&(0,Mfe.default)(i,function(o,a){r[a]||(r[a]={}),r[a]=Kfe({},r[a],i[a])}),n}),r};yc.default=Vfe;var wc={};Object.defineProperty(wc,"__esModule",{value:!0});wc.autoprefix=void 0;var jfe=r1,BQ=Gfe(jfe),zfe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e};function Gfe(e){return e&&e.__esModule?e:{default:e}}var Wfe={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var A=t&&t.split(" ");return{position:"absolute",top:A&&A[0],right:A&&A[1],bottom:A&&A[2],left:A&&A[3]}},extend:function(t,A){var r=A[t];return r||{extend:t}}},Xfe=wc.autoprefix=function(t){var A={};return(0,BQ.default)(t,function(r,n){var i={};(0,BQ.default)(r,function(o,a){var s=Wfe[a];s?i=zfe({},i,s(o)):i[a]=o}),A[n]=i}),A};wc.default=Xfe;var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.hover=void 0;var Yfe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Jfe=T,Qv=Zfe(Jfe);function Zfe(e){return e&&e.__esModule?e:{default:e}}function qfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yQ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ede(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var tde=Cc.hover=function(t){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){ede(n,r);function n(){var i,o,a,s;qfe(this,n);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=(o=(a=yQ(this,(i=n.__proto__||Object.getPrototypeOf(n)).call.apply(i,[this].concat(u))),a),a.state={hover:!1},a.handleMouseOver=function(){return a.setState({hover:!0})},a.handleMouseOut=function(){return a.setState({hover:!1})},a.render=function(){return Qv.default.createElement(A,{onMouseOver:a.handleMouseOver,onMouseOut:a.handleMouseOut},Qv.default.createElement(t,Yfe({},a.props,a.state)))},o),yQ(a,s)}return n}(Qv.default.Component)};Cc.default=tde;var bc={};Object.defineProperty(bc,"__esModule",{value:!0});bc.active=void 0;var Ade=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},rde=T,Ev=nde(rde);function nde(e){return e&&e.__esModule?e:{default:e}}function ide(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wQ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ode(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ade=bc.active=function(t){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){ode(n,r);function n(){var i,o,a,s;ide(this,n);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=(o=(a=wQ(this,(i=n.__proto__||Object.getPrototypeOf(n)).call.apply(i,[this].concat(u))),a),a.state={active:!1},a.handleMouseDown=function(){return a.setState({active:!0})},a.handleMouseUp=function(){return a.setState({active:!1})},a.render=function(){return Ev.default.createElement(A,{onMouseDown:a.handleMouseDown,onMouseUp:a.handleMouseUp},Ev.default.createElement(t,Ade({},a.props,a.state)))},o),wQ(a,s)}return n}(Ev.default.Component)};bc.default=ade;var p1={};Object.defineProperty(p1,"__esModule",{value:!0});var sde=function(t,A){var r={},n=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r[o]=a};return t===0&&n("first-child"),t===A-1&&n("last-child"),(t===0||t%2===0)&&n("even"),Math.abs(t%2)===1&&n("odd"),n("nth-child",t),r};p1.default=sde;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.ReactCSS=Ar.loop=Ar.handleActive=g1=Ar.handleHover=Ar.hover=void 0;var lde=vc,ude=Ps(lde),cde=yc,fde=Ps(cde),dde=wc,hde=Ps(dde),pde=Cc,EH=Ps(pde),gde=bc,vde=Ps(gde),mde=p1,Bde=Ps(mde);function Ps(e){return e&&e.__esModule?e:{default:e}}Ar.hover=EH.default;var g1=Ar.handleHover=EH.default;Ar.handleActive=vde.default;Ar.loop=Bde.default;var yde=Ar.ReactCSS=function(t){for(var A=arguments.length,r=Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];var i=(0,ude.default)(r),o=(0,fde.default)(t,i);return(0,hde.default)(o)},we=Ar.default=yde,wde=function(t,A,r,n,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(i.getBoundingClientRect().left+window.pageXOffset),c=l-(i.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f=void 0;if(c<0?f=0:c>a?f=1:f=Math.round(c*100/a)/100,A.a!==f)return{h:A.h,s:A.s,l:A.l,a:f,source:"rgb"}}else{var d=void 0;if(u<0?d=0:u>o?d=1:d=Math.round(u*100/o)/100,n!==d)return{h:A.h,s:A.s,l:A.l,a:d,source:"rgb"}}return null},Uv={},Cde=function(t,A,r,n){if(typeof document>"u"&&!n)return null;var i=n?new n:document.createElement("canvas");i.width=r*2,i.height=r*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=A,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),i.toDataURL()):null},bde=function(t,A,r,n){var i=t+"-"+A+"-"+r+(n?"-server":"");if(Uv[i])return Uv[i];var o=Cde(t,A,r,n);return Uv[i]=o,o},CQ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Ls=function(t){var A=t.white,r=t.grey,n=t.size,i=t.renderers,o=t.borderRadius,a=t.boxShadow,s=t.children,l=we({default:{grid:{borderRadius:o,boxShadow:a,absolute:"0px 0px 0px 0px",background:"url("+bde(A,r,n,i.canvas)+") center left"}}});return T.isValidElement(s)?F.cloneElement(s,CQ({},s.props,{style:CQ({},s.props.style,l.grid)})):F.createElement("div",{style:l.grid})};Ls.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var xde=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r])}return e},Fde=function(){function e(t,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,A,r){return A&&e(t.prototype,A),r&&e(t,r),t}}();function Sde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bQ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Qde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v1=function(e){Qde(t,e);function t(){var A,r,n,i;Sde(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=(r=(n=bQ(this,(A=t.__proto__||Object.getPrototypeOf(t)).call.apply(A,[this].concat(a))),n),n.handleChange=function(l){var u=wde(l,n.props.hsl,n.props.direction,n.props.a,n.container);u&&typeof n.props.onChange=="function"&&n.props.onChange(u,l)},n.handleMouseDown=function(l){n.handleChange(l),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},r),bQ(n,i)}return Fde(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,n=this.props.rgb,i=we({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+n.r+","+n.g+","+n.b+`, 0) 0%, rgba(`+n.r+","+n.g+","+n.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:n.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+n.r+","+n.g+","+n.b+`, 0) 0%, rgba(`+n.r+","+n.g+","+n.b+", 1) 100%)"},pointer:{left:0,top:n.a*100+"%"}},overwrite:xde({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return F.createElement("div",{style:i.alpha},F.createElement("div",{style:i.checkboard},F.createElement(Ls,{renderers:this.props.renderers})),F.createElement("div",{style:i.gradient}),F.createElement("div",{style:i.container,ref:function(a){return r.container=a},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},F.createElement("div",{style:i.pointer},this.props.pointer?F.createElement(this.props.pointer,this.props):F.createElement("div",{style:i.slider}))))}}]),t}(T.PureComponent||T.Component),Ede=function(){function e(t,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,A,r){return A&&e(t.prototype,A),r&&e(t,r),t}}();function Ude(e,t,A){return t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}function Tde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _de(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Ide(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Hde=1,UH=38,kde=40,Pde=[UH,kde],Lde=function(t){return Pde.indexOf(t)>-1},Ode=function(t){return Number(String(t).replace(/%/g,""))},Rde=1,_e=function(e){Ide(t,e);function t(A){Tde(this,t);var r=_de(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(n){r.setUpdatedValue(n.target.value,n)},r.handleKeyDown=function(n){var i=Ode(n.target.value);if(!isNaN(i)&&Lde(n.keyCode)){var o=r.getArrowOffset(),a=n.keyCode===UH?i+o:i-o;r.setUpdatedValue(a,n)}},r.handleDrag=function(n){if(r.props.dragLabel){var i=Math.round(r.props.value+n.movementX);i>=0&&i<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(i),n)}},r.handleMouseDown=function(n){r.props.dragLabel&&(n.preventDefault(),r.handleDrag(n),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(A.value).toUpperCase(),blurValue:String(A.value).toUpperCase()},r.inputId="rc-editable-input-"+Rde++,r}return Ede(t,[{key:"componentDidUpdate",value:function(r,n){this.props.value!==this.state.value&&(r.value!==this.props.value||n.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return Ude({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Hde}},{key:"setUpdatedValue",value:function(r,n){var i=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(i,n),this.setState({value:r})}},{key:"render",value:function(){var r=this,n=we({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return F.createElement("div",{style:n.wrap},F.createElement("input",{id:this.inputId,style:n.input,ref:function(o){return r.input=o},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?F.createElement("label",{htmlFor:this.inputId,style:n.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(T.PureComponent||T.Component),Dde=function(t,A,r,n){var i=n.clientWidth,o=n.clientHeight,a=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,s=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);if(A==="vertical"){var c=void 0;if(u<0)c=359;else if(u>o)c=0;else{var f=-(u*100/o)+100;c=360*f/100}if(r.h!==c)return{h:c,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var d=void 0;if(l<0)d=0;else if(l>i)d=359;else{var h=l*100/i;d=360*h/100}if(r.h!==d)return{h:d,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null},Mde=function(){function e(t,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,A,r){return A&&e(t.prototype,A),r&&e(t,r),t}}();function $de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xQ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Nde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Os=function(e){Nde(t,e);function t(){var A,r,n,i;$de(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=(r=(n=xQ(this,(A=t.__proto__||Object.getPrototypeOf(t)).call.apply(A,[this].concat(a))),n),n.handleChange=function(l){var u=Dde(l,n.props.direction,n.props.hsl,n.container);u&&typeof n.props.onChange=="function"&&n.props.onChange(u,l)},n.handleMouseDown=function(l){n.handleChange(l),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},r),xQ(n,i)}return Mde(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,n=this.props.direction,i=n===void 0?"horizontal":n,o=we({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:i==="vertical"});return F.createElement("div",{style:o.hue},F.createElement("div",{className:"hue-"+i,style:o.container,ref:function(s){return r.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},F.createElement("style",null,` .hue-horizontal { diff --git a/index.html b/index.html index 9acf2d4..79ca2e7 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,12 @@ <head> <meta charset="UTF-8" /> - <link rel="icon" type="image/svg+xml" href="/qrcode-generator/assets/react-CHdo91hT.svg" /> + <link rel="icon" type="image/svg+xml" href="/qr-code-generator/assets/react-CHdo91hT.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="ReactJS Application"> <title>QR Code Generator</title> - <script type="module" crossorigin src="/qrcode-generator/assets/index-f4402zhk.js"></script> - <link rel="stylesheet" crossorigin href="/qrcode-generator/assets/index-DW6j6SZ0.css"> + <script type="module" crossorigin src="/qr-code-generator/assets/index-Cyth0j3_.js"></script> + <link rel="stylesheet" crossorigin href="/qr-code-generator/assets/index-DW6j6SZ0.css"> </head> <body>