@liquid-js/qr-code-styling 4.0.1 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -388,7 +388,7 @@ class $QRCornerSquare$$ {
388
388
  this._element = this.document.createElementNS("http://www.w3.org/2000/svg", "path"),
389
389
  this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", $svgPath$$`M ${$x$jscomp$105$$} ${$y$jscomp$90$$ + 2.5 * $dotSize$jscomp$4$$} v ${2 * $dotSize$jscomp$4$$} a ${2.5 * $dotSize$jscomp$4$$} ${2.5 * $dotSize$jscomp$4$$}, 0, 0, 0, ${2.5 * $dotSize$jscomp$4$$} ${2.5 * $dotSize$jscomp$4$$} h ${2 * $dotSize$jscomp$4$$} a ${2.5 * $dotSize$jscomp$4$$} ${2.5 * $dotSize$jscomp$4$$}, 0, 0, 0, ${2.5 * $dotSize$jscomp$4$$} ${2.5 * -$dotSize$jscomp$4$$} v ${-2 * $dotSize$jscomp$4$$} a ${2.5 * $dotSize$jscomp$4$$} ${2.5 * $dotSize$jscomp$4$$}, 0, 0, 0, ${2.5 * -$dotSize$jscomp$4$$} ${2.5 * -$dotSize$jscomp$4$$} h ${-2 * $dotSize$jscomp$4$$} a ${2.5 * $dotSize$jscomp$4$$} ${2.5 * $dotSize$jscomp$4$$}, 0, 0, 0, ${2.5 * -$dotSize$jscomp$4$$} ${2.5 * $dotSize$jscomp$4$$} z M ${$x$jscomp$105$$ + 2.5 * $dotSize$jscomp$4$$} ${$y$jscomp$90$$ + $dotSize$jscomp$4$$} h ${2 * $dotSize$jscomp$4$$} a ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$}, 0, 0, 1, ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$} v ${2 * $dotSize$jscomp$4$$} a ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$}, 0, 0, 1, ${1.5 * -$dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$} h ${-2 * $dotSize$jscomp$4$$} a ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$}, 0, 0, 1, ${1.5 * -$dotSize$jscomp$4$$} ${1.5 * -$dotSize$jscomp$4$$} v ${-2 * $dotSize$jscomp$4$$} a ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$}, 0, 0, 1, ${1.5 * $dotSize$jscomp$4$$} ${1.5 * -$dotSize$jscomp$4$$} z`),
390
390
  this._fill = this.document.createElementNS("http://www.w3.org/2000/svg", "path"),
391
- this._fill.setAttribute("clip-rule", "evenodd"), this._fill.setAttribute("d", $svgPath$$`M ${$x$jscomp$105$$ + 2.5 * $dotSize$jscomp$4$$} ${$y$jscomp$90$$ + $dotSize$jscomp$4$$} h ${2 * $dotSize$jscomp$4$$} a ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$}, 0, 0, 1, ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$} v ${2 * $dotSize$jscomp$4$$} a ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$}, 0, 0, 1, ${1.5 * -$dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$} h ${-2 * $dotSize$jscomp$4$$} a ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$}, 0, 0, 1, ${1.5 * -$dotSize$jscomp$4$$} ${1.5 * -$dotSize$jscomp$4$$} v ${-2 * $dotSize$jscomp$4$$} a ${1.5 * $dotSize$jscomp$4$$} ${1.5 * $dotSize$jscomp$4$$}, 0, 0, 1, ${1.5 * $dotSize$jscomp$4$$} ${1.5 * -$dotSize$jscomp$4$$} z`);
391
+ this._fill.setAttribute("clip-rule", "evenodd"), this._fill.setAttribute("d", $svgPath$$`M ${$x$jscomp$105$$ - $dotSize$jscomp$4$$} ${$y$jscomp$90$$ + 2.5 * $dotSize$jscomp$4$$} v ${2 * $dotSize$jscomp$4$$} a ${3.5 * $dotSize$jscomp$4$$} ${3.5 * $dotSize$jscomp$4$$}, 0, 0, 0, ${3.5 * $dotSize$jscomp$4$$} ${3.5 * $dotSize$jscomp$4$$} h ${2 * $dotSize$jscomp$4$$} a ${3.5 * $dotSize$jscomp$4$$} ${3.5 * $dotSize$jscomp$4$$}, 0, 0, 0, ${3.5 * $dotSize$jscomp$4$$} ${3.5 * -$dotSize$jscomp$4$$} v ${-2 * $dotSize$jscomp$4$$} a ${3.5 * $dotSize$jscomp$4$$} ${3.5 * $dotSize$jscomp$4$$}, 0, 0, 0, ${3.5 * -$dotSize$jscomp$4$$} ${3.5 * -$dotSize$jscomp$4$$} h ${-2 * $dotSize$jscomp$4$$} a ${3.5 * $dotSize$jscomp$4$$} ${3.5 * $dotSize$jscomp$4$$}, 0, 0, 0, ${3.5 * -$dotSize$jscomp$4$$} ${3.5 * $dotSize$jscomp$4$$} z`);
392
392
  }
393
393
  });
394
394
  }
@@ -828,6 +828,29 @@ let $browserImageTools$$ = {
828
828
  }))
829
829
  };
830
830
 
831
+ function $parseColor$$($base$jscomp$3_cstr$$) {
832
+ var $m_parts$$ = [];
833
+ let $alpha$jscomp$3$$ = 1;
834
+ if ("#" === ($base$jscomp$3_cstr$$ = $base$jscomp$3_cstr$$.toLowerCase())[0]) {
835
+ let $size$jscomp$66$$ = ($base$jscomp$3_cstr$$ = $base$jscomp$3_cstr$$.slice(1)).length;
836
+ 4 >= $size$jscomp$66$$ ? ($m_parts$$ = [ parseInt($base$jscomp$3_cstr$$[0] + $base$jscomp$3_cstr$$[0], 16), parseInt($base$jscomp$3_cstr$$[1] + $base$jscomp$3_cstr$$[1], 16), parseInt($base$jscomp$3_cstr$$[2] + $base$jscomp$3_cstr$$[2], 16) ],
837
+ 4 === $size$jscomp$66$$ && ($alpha$jscomp$3$$ = parseInt($base$jscomp$3_cstr$$[3] + $base$jscomp$3_cstr$$[3], 16) / 255)) : ($m_parts$$ = [ parseInt($base$jscomp$3_cstr$$[0] + $base$jscomp$3_cstr$$[1], 16), parseInt($base$jscomp$3_cstr$$[2] + $base$jscomp$3_cstr$$[3], 16), parseInt($base$jscomp$3_cstr$$[4] + $base$jscomp$3_cstr$$[5], 16) ],
838
+ 8 === $size$jscomp$66$$ && ($alpha$jscomp$3$$ = parseInt($base$jscomp$3_cstr$$[6] + $base$jscomp$3_cstr$$[7], 16) / 255)),
839
+ $m_parts$$[0] || ($m_parts$$[0] = 0), $m_parts$$[1] || ($m_parts$$[1] = 0), $m_parts$$[2] || ($m_parts$$[2] = 0);
840
+ } else {
841
+ if (!($m_parts$$ = /^((?:rgba?))\s*\(([^)]*)\)/.exec($base$jscomp$3_cstr$$))) return {
842
+ value: $base$jscomp$3_cstr$$,
843
+ alpha: $alpha$jscomp$3$$
844
+ };
845
+ $alpha$jscomp$3$$ = 3 < ($m_parts$$ = ($m_parts$$ = $m_parts$$[2].trim().split(/\s*[,/]\s*|\s+/)).map((($v$jscomp$2_x$jscomp$133$$, $i$jscomp$5$$) => "%" === $v$jscomp$2_x$jscomp$133$$[$v$jscomp$2_x$jscomp$133$$.length - 1] ? ($v$jscomp$2_x$jscomp$133$$ = parseFloat($v$jscomp$2_x$jscomp$133$$) / 100,
846
+ 3 === $i$jscomp$5$$ ? $v$jscomp$2_x$jscomp$133$$ : 255 * $v$jscomp$2_x$jscomp$133$$) : "none" === $v$jscomp$2_x$jscomp$133$$ ? 0 : parseFloat($v$jscomp$2_x$jscomp$133$$)))).length ? $m_parts$$.pop() : 1;
847
+ }
848
+ return {
849
+ value: "#" + $m_parts$$.map(($v$jscomp$3$$ => Math.max(0, Math.min(255, $v$jscomp$3$$)).toString(16).padStart(2, "0"))).join(""),
850
+ alpha: Math.max(0, Math.min(1, $alpha$jscomp$3$$))
851
+ };
852
+ }
853
+
831
854
  let $squareMask$$ = [ [ 1, 1, 1, 1, 1, 1, 1 ], [ 1, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0, 0, 0, 0, 1 ], [ 1, 1, 1, 1, 1, 1, 1 ] ], $dotMask$$ = [ [ 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 1, 1, 1, 0, 0 ], [ 0, 0, 1, 1, 1, 0, 0 ], [ 0, 0, 1, 1, 1, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0 ] ];
832
855
 
833
856
  class $QRSVG$$ {
@@ -849,8 +872,8 @@ class $QRSVG$$ {
849
872
  get height() {
850
873
  return this.options.height;
851
874
  }
852
- async drawQR($qr_size$jscomp$68$$) {
853
- let $count$jscomp$39$$ = $qr_size$jscomp$68$$.getModuleCount();
875
+ async drawQR($qr_size$jscomp$69$$) {
876
+ let $count$jscomp$39$$ = $qr_size$jscomp$69$$.getModuleCount();
854
877
  var $alignment_maxWidth_typeNumber$$ = parseInt((($count$jscomp$39$$ - 17) / 4).toFixed(0), 10);
855
878
  let $dotSize$jscomp$8$$ = this.options.dotsOptions.size, $drawImageSize$$ = {
856
879
  hideXDots: 0,
@@ -858,14 +881,14 @@ class $QRSVG$$ {
858
881
  width: 0,
859
882
  height: 0
860
883
  };
861
- if (this.qr = $qr_size$jscomp$68$$, this.options.image) {
862
- $qr_size$jscomp$68$$ = await this.imageTools.getSize(this.options.image, this.options.imageOptions.crossOrigin);
884
+ if (this.qr = $qr_size$jscomp$69$$, this.options.image) {
885
+ $qr_size$jscomp$69$$ = await this.imageTools.getSize(this.options.image, this.options.imageOptions.crossOrigin);
863
886
  let {imageOptions: $imageOptions$$, errorCorrectionPercent: $errorCorrectionPercent$$} = this.options;
864
887
  if ($imageOptions$$.mode == $ImageMode$$.background) {
865
888
  var $coverLevel_margin$jscomp$1_maxHeight$$ = this.options.backgroundOptions && this.options.backgroundOptions.margin || 0;
866
889
  $alignment_maxWidth_typeNumber$$ = (this.options.width - 2 * $coverLevel_margin$jscomp$1_maxHeight$$ * $dotSize$jscomp$8$$) * $imageOptions$$.imageSize,
867
890
  $coverLevel_margin$jscomp$1_maxHeight$$ = (this.options.height - 2 * $coverLevel_margin$jscomp$1_maxHeight$$ * $dotSize$jscomp$8$$) * $imageOptions$$.imageSize;
868
- let {width: $width$jscomp$29$$, height: $height$jscomp$26$$} = $qr_size$jscomp$68$$;
891
+ let {width: $width$jscomp$29$$, height: $height$jscomp$26$$} = $qr_size$jscomp$69$$;
869
892
  $height$jscomp$26$$ = $height$jscomp$26$$ / $width$jscomp$29$$ * $alignment_maxWidth_typeNumber$$,
870
893
  $width$jscomp$29$$ = $alignment_maxWidth_typeNumber$$, $height$jscomp$26$$ > $coverLevel_margin$jscomp$1_maxHeight$$ && ($width$jscomp$29$$ = $width$jscomp$29$$ / $height$jscomp$26$$ * $coverLevel_margin$jscomp$1_maxHeight$$,
871
894
  $height$jscomp$26$$ = $coverLevel_margin$jscomp$1_maxHeight$$), $drawImageSize$$ = {
@@ -884,21 +907,21 @@ class $QRSVG$$ {
884
907
  hideXDots: 0
885
908
  };
886
909
  $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ && 0 == $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ % 2 && ($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = Math.max(1, $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ - 1));
887
- var $JSCompiler_object_inline_x_14_dimMax$$ = Math.max($originalWidth$$, $originalHeight$$), $JSCompiler_object_inline_y_15_dimMin_hideMin$$ = Math.min($originalWidth$$, $originalHeight$$), $lower_maxH_size$jscomp$66$$ = 0;
910
+ var $JSCompiler_object_inline_x_14_dimMax$$ = Math.max($originalWidth$$, $originalHeight$$), $JSCompiler_object_inline_y_15_dimMin_hideMin$$ = Math.min($originalWidth$$, $originalHeight$$), $lower_maxH_size$jscomp$67$$ = 0;
888
911
  $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = ($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ || $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$) - 2 * $margin$$;
889
912
  do {
890
- let $size$jscomp$67$$ = $lower_maxH_size$jscomp$66$$ + ($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ - $lower_maxH_size$jscomp$66$$) / 2, $dotsMax$$ = Math.max(1, Math.ceil($size$jscomp$67$$ + 2 * $margin$$));
913
+ let $size$jscomp$68$$ = $lower_maxH_size$jscomp$67$$ + ($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ - $lower_maxH_size$jscomp$67$$) / 2, $dotsMax$$ = Math.max(1, Math.ceil($size$jscomp$68$$ + 2 * $margin$$));
891
914
  0 == $dotsMax$$ % 2 && $dotsMax$$++;
892
- let $dotsMin$$ = Math.max(1, Math.ceil($size$jscomp$67$$ * $JSCompiler_object_inline_y_15_dimMin_hideMin$$ / $JSCompiler_object_inline_x_14_dimMax$$ + 2 * $margin$$));
893
- 0 == $dotsMin$$ % 2 && $dotsMin$$++, $dotsMax$$ * $dotsMin$$ > $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ ? $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = $size$jscomp$67$$ : $lower_maxH_size$jscomp$66$$ = $size$jscomp$67$$;
894
- } while (.001 < Math.abs($lower_maxH_size$jscomp$66$$ - $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$));
895
- return 0 == ($JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ = Math.max(1, Math.ceil($lower_maxH_size$jscomp$66$$ + 2 * $margin$$))) % 2 && $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$++,
896
- 0 == ($JSCompiler_object_inline_y_15_dimMin_hideMin$$ = Math.max(1, Math.ceil($lower_maxH_size$jscomp$66$$ * $JSCompiler_object_inline_y_15_dimMin_hideMin$$ / $JSCompiler_object_inline_x_14_dimMax$$ + 2 * $margin$$))) % 2 && $JSCompiler_object_inline_y_15_dimMin_hideMin$$++,
915
+ let $dotsMin$$ = Math.max(1, Math.ceil($size$jscomp$68$$ * $JSCompiler_object_inline_y_15_dimMin_hideMin$$ / $JSCompiler_object_inline_x_14_dimMax$$ + 2 * $margin$$));
916
+ 0 == $dotsMin$$ % 2 && $dotsMin$$++, $dotsMax$$ * $dotsMin$$ > $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ ? $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = $size$jscomp$68$$ : $lower_maxH_size$jscomp$67$$ = $size$jscomp$68$$;
917
+ } while (.001 < Math.abs($lower_maxH_size$jscomp$67$$ - $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$));
918
+ return 0 == ($JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ = Math.max(1, Math.ceil($lower_maxH_size$jscomp$67$$ + 2 * $margin$$))) % 2 && $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$++,
919
+ 0 == ($JSCompiler_object_inline_y_15_dimMin_hideMin$$ = Math.max(1, Math.ceil($lower_maxH_size$jscomp$67$$ * $JSCompiler_object_inline_y_15_dimMin_hideMin$$ / $JSCompiler_object_inline_x_14_dimMax$$ + 2 * $margin$$))) % 2 && $JSCompiler_object_inline_y_15_dimMin_hideMin$$++,
897
920
  $originalWidth$$ > $originalHeight$$ ? $JSCompiler_object_inline_x_14_dimMax$$ = $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ : ($JSCompiler_object_inline_x_14_dimMax$$ = $JSCompiler_object_inline_y_15_dimMin_hideMin$$,
898
921
  $JSCompiler_object_inline_y_15_dimMin_hideMin$$ = $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$),
899
922
  $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ = $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = ($JSCompiler_object_inline_x_14_dimMax$$ - 2 * $margin$$) * $dotSize$jscomp$7$$,
900
- ($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ * $originalHeight$$ / $originalWidth$$) > ($lower_maxH_size$jscomp$66$$ = ($JSCompiler_object_inline_y_15_dimMin_hideMin$$ - 2 * $margin$$) * $dotSize$jscomp$7$$) && ($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = $lower_maxH_size$jscomp$66$$,
901
- $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ = $lower_maxH_size$jscomp$66$$ * $originalWidth$$ / $originalHeight$$),
923
+ ($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = $JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ * $originalHeight$$ / $originalWidth$$) > ($lower_maxH_size$jscomp$67$$ = ($JSCompiler_object_inline_y_15_dimMin_hideMin$$ - 2 * $margin$$) * $dotSize$jscomp$7$$) && ($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ = $lower_maxH_size$jscomp$67$$,
924
+ $JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ = $lower_maxH_size$jscomp$67$$ * $originalWidth$$ / $originalHeight$$),
902
925
  {
903
926
  height: Math.round($JSCompiler_object_inline_y_17_maxHiddenAxisDots_maxW_upper$$ + 2 * $margin$$ * $dotSize$jscomp$7$$),
904
927
  width: Math.round($JSCompiler_object_inline_x_16_hideMax_maxHiddenDots$$ + 2 * $margin$$ * $dotSize$jscomp$7$$),
@@ -906,8 +929,8 @@ class $QRSVG$$ {
906
929
  hideXDots: $JSCompiler_object_inline_x_14_dimMax$$
907
930
  };
908
931
  }({
909
- originalWidth: $qr_size$jscomp$68$$.width,
910
- originalHeight: $qr_size$jscomp$68$$.height,
932
+ originalWidth: $qr_size$jscomp$69$$.width,
933
+ originalHeight: $qr_size$jscomp$69$$.height,
911
934
  maxHiddenDots: Math.floor($coverLevel_margin$jscomp$1_maxHeight$$ * ($count$jscomp$39$$ * $count$jscomp$39$$ - 192 - 2 * ($count$jscomp$39$$ - 16) - 25 * $alignment_maxWidth_typeNumber$$.length ** 2)),
912
935
  maxHiddenAxisDots: $count$jscomp$39$$ - 14,
913
936
  dotSize: $dotSize$jscomp$8$$,
@@ -919,7 +942,7 @@ class $QRSVG$$ {
919
942
  height: $drawImageSize$$.height,
920
943
  count: $count$jscomp$39$$,
921
944
  dotSize: $dotSize$jscomp$8$$
922
- }), this.drawDots((($i$jscomp$5$$, $j$$) => !(this.options.imageOptions.mode == $ImageMode$$.center && $i$jscomp$5$$ >= ($count$jscomp$39$$ - $drawImageSize$$.hideXDots) / 2 && $i$jscomp$5$$ < ($count$jscomp$39$$ + $drawImageSize$$.hideXDots) / 2 && $j$$ >= ($count$jscomp$39$$ - $drawImageSize$$.hideYDots) / 2 && $j$$ < ($count$jscomp$39$$ + $drawImageSize$$.hideYDots) / 2 || 8 > $i$jscomp$5$$ && 8 > $j$$ || $i$jscomp$5$$ >= $count$jscomp$39$$ - 8 && 8 > $j$$ || $j$$ >= $count$jscomp$39$$ - 8 && 8 > $i$jscomp$5$$))),
945
+ }), this.drawDots((($i$jscomp$6$$, $j$$) => !(this.options.imageOptions.mode == $ImageMode$$.center && $i$jscomp$6$$ >= ($count$jscomp$39$$ - $drawImageSize$$.hideXDots) / 2 && $i$jscomp$6$$ < ($count$jscomp$39$$ + $drawImageSize$$.hideXDots) / 2 && $j$$ >= ($count$jscomp$39$$ - $drawImageSize$$.hideYDots) / 2 && $j$$ < ($count$jscomp$39$$ + $drawImageSize$$.hideYDots) / 2 || 8 > $i$jscomp$6$$ && 8 > $j$$ || $i$jscomp$6$$ >= $count$jscomp$39$$ - 8 && 8 > $j$$ || $j$$ >= $count$jscomp$39$$ - 8 && 8 > $i$jscomp$6$$))),
923
946
  this.options.imageOptions.mode == $ImageMode$$.overlay && this.options.image && 0 < $drawImageSize$$.width && 0 < $drawImageSize$$.height && await this.drawImage({
924
947
  width: $drawImageSize$$.width,
925
948
  height: $drawImageSize$$.height,
@@ -940,12 +963,12 @@ class $QRSVG$$ {
940
963
  width: $options$jscomp$36$$.width,
941
964
  name: "background-color"
942
965
  });
943
- let $size$jscomp$69$$ = Math.min($options$jscomp$36$$.width, $options$jscomp$36$$.height), $element$jscomp$9$$ = this.document.createElementNS("http://www.w3.org/2000/svg", "rect");
966
+ let $size$jscomp$70$$ = Math.min($options$jscomp$36$$.width, $options$jscomp$36$$.height), $element$jscomp$9$$ = this.document.createElementNS("http://www.w3.org/2000/svg", "rect");
944
967
  [this.backgroundMask, this.backgroundMaskGroup] = this.createMask("mask-background-color"),
945
- this.defs.appendChild(this.backgroundMask), $element$jscomp$9$$.setAttribute("x", $numToAttr$$(($options$jscomp$36$$.width - $size$jscomp$69$$) / 2)),
946
- $element$jscomp$9$$.setAttribute("y", $numToAttr$$(($options$jscomp$36$$.height - $size$jscomp$69$$) / 2)),
947
- $element$jscomp$9$$.setAttribute("width", $numToAttr$$($size$jscomp$69$$)), $element$jscomp$9$$.setAttribute("height", $numToAttr$$($size$jscomp$69$$)),
948
- $element$jscomp$9$$.setAttribute("rx", $numToAttr$$($size$jscomp$69$$ / 2 * ($options$jscomp$36$$.backgroundOptions.round || 0))),
968
+ this.defs.appendChild(this.backgroundMask), $element$jscomp$9$$.setAttribute("x", $numToAttr$$(($options$jscomp$36$$.width - $size$jscomp$70$$) / 2)),
969
+ $element$jscomp$9$$.setAttribute("y", $numToAttr$$(($options$jscomp$36$$.height - $size$jscomp$70$$) / 2)),
970
+ $element$jscomp$9$$.setAttribute("width", $numToAttr$$($size$jscomp$70$$)), $element$jscomp$9$$.setAttribute("height", $numToAttr$$($size$jscomp$70$$)),
971
+ $element$jscomp$9$$.setAttribute("rx", $numToAttr$$($size$jscomp$70$$ / 2 * ($options$jscomp$36$$.backgroundOptions.round || 0))),
949
972
  this.backgroundMaskGroup.appendChild($element$jscomp$9$$);
950
973
  }
951
974
  }
@@ -972,28 +995,28 @@ class $QRSVG$$ {
972
995
  $yBeginning_yFakeBeginning$$ -= $additionalDots$$ * $dotSize$jscomp$9$$, $colorCount_xBeginning$$ = $count$jscomp$40_iAlign$$ + 2 * $additionalDots$$;
973
996
  let $fakeMatrix$$ = Array($fakeCount_margin$jscomp$2$$);
974
997
  var $center_jAlign$$ = Math.floor($fakeCount_margin$jscomp$2$$ / 2);
975
- for (let $i$jscomp$6$$ = 0; $i$jscomp$6$$ < $fakeCount_margin$jscomp$2$$; $i$jscomp$6$$++) {
976
- $fakeMatrix$$[$i$jscomp$6$$] = Array($fakeCount_margin$jscomp$2$$);
977
- for (let $j$jscomp$1$$ = 0; $j$jscomp$1$$ < $fakeCount_margin$jscomp$2$$; $j$jscomp$1$$++) if ($i$jscomp$6$$ > $additionalDots$$ - 1 && $i$jscomp$6$$ < $fakeCount_margin$jscomp$2$$ - $additionalDots$$ && $j$jscomp$1$$ > $additionalDots$$ - 1 && $j$jscomp$1$$ < $fakeCount_margin$jscomp$2$$ - $additionalDots$$) {
978
- let $ii$$ = $i$jscomp$6$$ - $additionalDots$$, $jj$$ = $j$jscomp$1$$ - $additionalDots$$;
979
- $alignment$jscomp$1_filter$jscomp$3$$ && !$alignment$jscomp$1_filter$jscomp$3$$($ii$$, $jj$$) ? $fakeMatrix$$[$i$jscomp$6$$][$j$jscomp$1$$] = void 0 : $fakeMatrix$$[$i$jscomp$6$$][$j$jscomp$1$$] = !!this.qr.isDark($jj$$, $ii$$);
980
- } else $fakeMatrix$$[$i$jscomp$6$$][$j$jscomp$1$$] = $options$jscomp$37$$.shape === $ShapeType$$.circle && Math.sqrt(($i$jscomp$6$$ - $center_jAlign$$) * ($i$jscomp$6$$ - $center_jAlign$$) + ($j$jscomp$1$$ - $center_jAlign$$) * ($j$jscomp$1$$ - $center_jAlign$$)) > $center_jAlign$$ ? void 0 : $i$jscomp$6$$ == $additionalDots$$ - 1 || $i$jscomp$6$$ == $fakeCount_margin$jscomp$2$$ - $additionalDots$$ || $j$jscomp$1$$ == $additionalDots$$ - 1 || $j$jscomp$1$$ == $fakeCount_margin$jscomp$2$$ - $additionalDots$$ ? ($j$jscomp$1$$ == $additionalDots$$ - 1 && ($i$jscomp$6$$ < $additionalDots$$ + 8 || $i$jscomp$6$$ > $fakeCount_margin$jscomp$2$$ - $additionalDots$$ - 9) || $j$jscomp$1$$ == $fakeCount_margin$jscomp$2$$ - $additionalDots$$ && $i$jscomp$6$$ < $additionalDots$$ + 8 || $i$jscomp$6$$ == $additionalDots$$ - 1 && ($j$jscomp$1$$ < $additionalDots$$ + 8 || $j$jscomp$1$$ > $fakeCount_margin$jscomp$2$$ - $additionalDots$$ - 9) || $i$jscomp$6$$ == $fakeCount_margin$jscomp$2$$ - $additionalDots$$ && $j$jscomp$1$$ < $additionalDots$$ + 8) && void 0 : this.qr.isDark(0 > $j$jscomp$1$$ - 2 * $additionalDots$$ ? $j$jscomp$1$$ : $j$jscomp$1$$ >= $count$jscomp$40_iAlign$$ ? $j$jscomp$1$$ - 2 * $additionalDots$$ : $j$jscomp$1$$ - $additionalDots$$, 0 > $i$jscomp$6$$ - 2 * $additionalDots$$ ? $i$jscomp$6$$ : $i$jscomp$6$$ >= $count$jscomp$40_iAlign$$ ? $i$jscomp$6$$ - 2 * $additionalDots$$ : $i$jscomp$6$$ - $additionalDots$$);
998
+ for (let $i$jscomp$7$$ = 0; $i$jscomp$7$$ < $fakeCount_margin$jscomp$2$$; $i$jscomp$7$$++) {
999
+ $fakeMatrix$$[$i$jscomp$7$$] = Array($fakeCount_margin$jscomp$2$$);
1000
+ for (let $j$jscomp$1$$ = 0; $j$jscomp$1$$ < $fakeCount_margin$jscomp$2$$; $j$jscomp$1$$++) if ($i$jscomp$7$$ > $additionalDots$$ - 1 && $i$jscomp$7$$ < $fakeCount_margin$jscomp$2$$ - $additionalDots$$ && $j$jscomp$1$$ > $additionalDots$$ - 1 && $j$jscomp$1$$ < $fakeCount_margin$jscomp$2$$ - $additionalDots$$) {
1001
+ let $ii$$ = $i$jscomp$7$$ - $additionalDots$$, $jj$$ = $j$jscomp$1$$ - $additionalDots$$;
1002
+ $alignment$jscomp$1_filter$jscomp$3$$ && !$alignment$jscomp$1_filter$jscomp$3$$($ii$$, $jj$$) ? $fakeMatrix$$[$i$jscomp$7$$][$j$jscomp$1$$] = void 0 : $fakeMatrix$$[$i$jscomp$7$$][$j$jscomp$1$$] = !!this.qr.isDark($jj$$, $ii$$);
1003
+ } else $fakeMatrix$$[$i$jscomp$7$$][$j$jscomp$1$$] = $options$jscomp$37$$.shape === $ShapeType$$.circle && Math.sqrt(($i$jscomp$7$$ - $center_jAlign$$) * ($i$jscomp$7$$ - $center_jAlign$$) + ($j$jscomp$1$$ - $center_jAlign$$) * ($j$jscomp$1$$ - $center_jAlign$$)) > $center_jAlign$$ ? void 0 : $i$jscomp$7$$ == $additionalDots$$ - 1 || $i$jscomp$7$$ == $fakeCount_margin$jscomp$2$$ - $additionalDots$$ || $j$jscomp$1$$ == $additionalDots$$ - 1 || $j$jscomp$1$$ == $fakeCount_margin$jscomp$2$$ - $additionalDots$$ ? ($j$jscomp$1$$ == $additionalDots$$ - 1 && ($i$jscomp$7$$ < $additionalDots$$ + 8 || $i$jscomp$7$$ > $fakeCount_margin$jscomp$2$$ - $additionalDots$$ - 9) || $j$jscomp$1$$ == $fakeCount_margin$jscomp$2$$ - $additionalDots$$ && $i$jscomp$7$$ < $additionalDots$$ + 8 || $i$jscomp$7$$ == $additionalDots$$ - 1 && ($j$jscomp$1$$ < $additionalDots$$ + 8 || $j$jscomp$1$$ > $fakeCount_margin$jscomp$2$$ - $additionalDots$$ - 9) || $i$jscomp$7$$ == $fakeCount_margin$jscomp$2$$ - $additionalDots$$ && $j$jscomp$1$$ < $additionalDots$$ + 8) && void 0 : this.qr.isDark(0 > $j$jscomp$1$$ - 2 * $additionalDots$$ ? $j$jscomp$1$$ : $j$jscomp$1$$ >= $count$jscomp$40_iAlign$$ ? $j$jscomp$1$$ - 2 * $additionalDots$$ : $j$jscomp$1$$ - $additionalDots$$, 0 > $i$jscomp$7$$ - 2 * $additionalDots$$ ? $i$jscomp$7$$ : $i$jscomp$7$$ >= $count$jscomp$40_iAlign$$ ? $i$jscomp$7$$ - 2 * $additionalDots$$ : $i$jscomp$7$$ - $additionalDots$$);
981
1004
  }
982
1005
  $alignment$jscomp$1_filter$jscomp$3$$ = QRUtil.getPatternPosition(($count$jscomp$40_iAlign$$ - 17) / 4);
983
- for (let $i$jscomp$7$$ = 0; $i$jscomp$7$$ < $fakeCount_margin$jscomp$2$$; $i$jscomp$7$$++) {
984
- $count$jscomp$40_iAlign$$ = $alignment$jscomp$1_filter$jscomp$3$$.find(($v$jscomp$2$$ => $i$jscomp$7$$ - $additionalDots$$ > $v$jscomp$2$$ - 3 && $i$jscomp$7$$ - $additionalDots$$ < $v$jscomp$2$$ + 3));
985
- for (let $j$jscomp$2$$ = 0; $j$jscomp$2$$ < $fakeCount_margin$jscomp$2$$; $j$jscomp$2$$++) $center_jAlign$$ = $alignment$jscomp$1_filter$jscomp$3$$.find(($v$jscomp$3$$ => $j$jscomp$2$$ - $additionalDots$$ > $v$jscomp$3$$ - 3 && $j$jscomp$2$$ - $additionalDots$$ < $v$jscomp$3$$ + 3)),
986
- null != $fakeMatrix$$[$i$jscomp$7$$][$j$jscomp$2$$] && (this.lightDotsMask && ($dot$$ = $count$jscomp$40_iAlign$$ && $center_jAlign$$ && ($count$jscomp$40_iAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[0] && $center_jAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[0] || $center_jAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[0] && $center_jAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[$alignment$jscomp$1_filter$jscomp$3$$.length - 1] || $count$jscomp$40_iAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[0] && $count$jscomp$40_iAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[$alignment$jscomp$1_filter$jscomp$3$$.length - 1]) ? $markerDot$$ : $overlayDot$$),
987
- $fakeMatrix$$[$i$jscomp$7$$][$j$jscomp$2$$] ? ($dot$$.draw({
988
- x: $minSize_xFakeBeginning$$ + $i$jscomp$7$$ * $dotSize$jscomp$9$$,
1006
+ for (let $i$jscomp$8$$ = 0; $i$jscomp$8$$ < $fakeCount_margin$jscomp$2$$; $i$jscomp$8$$++) {
1007
+ $count$jscomp$40_iAlign$$ = $alignment$jscomp$1_filter$jscomp$3$$.find(($v$jscomp$4$$ => $i$jscomp$8$$ - $additionalDots$$ > $v$jscomp$4$$ - 3 && $i$jscomp$8$$ - $additionalDots$$ < $v$jscomp$4$$ + 3));
1008
+ for (let $j$jscomp$2$$ = 0; $j$jscomp$2$$ < $fakeCount_margin$jscomp$2$$; $j$jscomp$2$$++) $center_jAlign$$ = $alignment$jscomp$1_filter$jscomp$3$$.find(($v$jscomp$5$$ => $j$jscomp$2$$ - $additionalDots$$ > $v$jscomp$5$$ - 3 && $j$jscomp$2$$ - $additionalDots$$ < $v$jscomp$5$$ + 3)),
1009
+ null != $fakeMatrix$$[$i$jscomp$8$$][$j$jscomp$2$$] && (this.lightDotsMask && ($dot$$ = $count$jscomp$40_iAlign$$ && $center_jAlign$$ && ($count$jscomp$40_iAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[0] && $center_jAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[0] || $center_jAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[0] && $center_jAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[$alignment$jscomp$1_filter$jscomp$3$$.length - 1] || $count$jscomp$40_iAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[0] && $count$jscomp$40_iAlign$$ != $alignment$jscomp$1_filter$jscomp$3$$[$alignment$jscomp$1_filter$jscomp$3$$.length - 1]) ? $markerDot$$ : $overlayDot$$),
1010
+ $fakeMatrix$$[$i$jscomp$8$$][$j$jscomp$2$$] ? ($dot$$.draw({
1011
+ x: $minSize_xFakeBeginning$$ + $i$jscomp$8$$ * $dotSize$jscomp$9$$,
989
1012
  y: $yBeginning_yFakeBeginning$$ + $j$jscomp$2$$ * $dotSize$jscomp$9$$,
990
1013
  size: $dotSize$jscomp$9$$,
991
- getNeighbor: ($xOffset$jscomp$1$$, $yOffset$jscomp$1$$) => !0 === $fakeMatrix$$[$i$jscomp$7$$ + $xOffset$jscomp$1$$]?.[$j$jscomp$2$$ + $yOffset$jscomp$1$$]
1014
+ getNeighbor: ($xOffset$jscomp$1$$, $yOffset$jscomp$1$$) => !0 === $fakeMatrix$$[$i$jscomp$8$$ + $xOffset$jscomp$1$$]?.[$j$jscomp$2$$ + $yOffset$jscomp$1$$]
992
1015
  }), $dot$$.element && this.dotsMaskGroup && this.dotsMaskGroup.appendChild($dot$$.element)) : this.lightDotsMask && ($dot$$.draw({
993
- x: $minSize_xFakeBeginning$$ + $i$jscomp$7$$ * $dotSize$jscomp$9$$,
1016
+ x: $minSize_xFakeBeginning$$ + $i$jscomp$8$$ * $dotSize$jscomp$9$$,
994
1017
  y: $yBeginning_yFakeBeginning$$ + $j$jscomp$2$$ * $dotSize$jscomp$9$$,
995
1018
  size: $dotSize$jscomp$9$$,
996
- getNeighbor: ($xOffset$$, $yOffset$$) => !1 === $fakeMatrix$$[$i$jscomp$7$$ + $xOffset$$]?.[$j$jscomp$2$$ + $yOffset$$]
1019
+ getNeighbor: ($xOffset$$, $yOffset$$) => !1 === $fakeMatrix$$[$i$jscomp$8$$ + $xOffset$$]?.[$j$jscomp$2$$ + $yOffset$$]
997
1020
  }), $dot$$.element && this.lightDotsMaskGroup && this.lightDotsMaskGroup.appendChild($dot$$.element)));
998
1021
  }
999
1022
  this.lightDotsMask && this.createColor({
@@ -1022,7 +1045,7 @@ class $QRSVG$$ {
1022
1045
  if (!this._element) throw "Element code is not defined";
1023
1046
  let $count$jscomp$41$$ = this.qr.getModuleCount(), $dotSize$jscomp$10$$ = this.options.dotsOptions.size, $cornersSquareSize$$ = 7 * $dotSize$jscomp$10$$, $cornersDotSize$$ = 3 * $dotSize$jscomp$10$$, $xBeginning$jscomp$1$$ = Math.floor(($options$jscomp$38$$.width - $count$jscomp$41$$ * $dotSize$jscomp$10$$) / 2), $yBeginning$jscomp$1$$ = Math.floor(($options$jscomp$38$$.height - $count$jscomp$41$$ * $dotSize$jscomp$10$$) / 2);
1024
1047
  [ [ 0, 0, 0 ], [ 1, 0, Math.PI / 2 ], [ 0, 1, -Math.PI / 2 ] ].forEach((([$column_cornersDot$$, $row$$, $dot$jscomp$2_rotation$jscomp$27$$]) => {
1025
- let $x$jscomp$133$$ = $xBeginning$jscomp$1$$ + $column_cornersDot$$ * $dotSize$jscomp$10$$ * ($count$jscomp$41$$ - 7), $y$jscomp$118$$ = $yBeginning$jscomp$1$$ + $row$$ * $dotSize$jscomp$10$$ * ($count$jscomp$41$$ - 7);
1048
+ let $x$jscomp$134$$ = $xBeginning$jscomp$1$$ + $column_cornersDot$$ * $dotSize$jscomp$10$$ * ($count$jscomp$41$$ - 7), $y$jscomp$118$$ = $yBeginning$jscomp$1$$ + $row$$ * $dotSize$jscomp$10$$ * ($count$jscomp$41$$ - 7);
1026
1049
  var $cornersDotMaskGroup_cornersSquareMask$$ = this.dotsMask;
1027
1050
  let $cornersSquareMaskGroup$$ = this.dotsMaskGroup;
1028
1051
  var $cornersDotMask_cornersSquare_dot$jscomp$1$$ = this.dotsMask;
@@ -1032,36 +1055,36 @@ class $QRSVG$$ {
1032
1055
  options: $options$jscomp$38$$.cornersSquareOptions?.gradient,
1033
1056
  color: $options$jscomp$38$$.cornersSquareOptions?.color,
1034
1057
  additionalRotation: $dot$jscomp$2_rotation$jscomp$27$$,
1035
- x: $x$jscomp$133$$,
1058
+ x: $x$jscomp$134$$,
1036
1059
  y: $y$jscomp$118$$,
1037
1060
  height: $cornersSquareSize$$,
1038
1061
  width: $cornersSquareSize$$,
1039
1062
  name: `corners-square-color-${$column_cornersDot$$}-${$row$$}`
1040
1063
  })), $options$jscomp$38$$.cornersSquareOptions?.type) ($cornersDotMask_cornersSquare_dot$jscomp$1$$ = new $QRCornerSquare$$($options$jscomp$38$$.cornersSquareOptions.type, this.document)).draw({
1041
- x: $x$jscomp$133$$,
1064
+ x: $x$jscomp$134$$,
1042
1065
  y: $y$jscomp$118$$,
1043
1066
  size: $cornersSquareSize$$,
1044
1067
  rotation: $dot$jscomp$2_rotation$jscomp$27$$
1045
1068
  }), $cornersDotMask_cornersSquare_dot$jscomp$1$$.element && $cornersSquareMaskGroup$$ && $cornersSquareMaskGroup$$.appendChild($cornersDotMask_cornersSquare_dot$jscomp$1$$.element),
1046
1069
  $cornersDotMask_cornersSquare_dot$jscomp$1$$.fill && this.lightDotsMaskGroup && this.lightDotsMaskGroup.appendChild($cornersDotMask_cornersSquare_dot$jscomp$1$$.fill); else {
1047
1070
  $cornersDotMask_cornersSquare_dot$jscomp$1$$ = new $QRDot$$($options$jscomp$38$$.dotsOptions.type, this.document);
1048
- for (let $i$jscomp$8$$ = 0; $i$jscomp$8$$ < $squareMask$$.length; $i$jscomp$8$$++) for (let $j$jscomp$3$$ = 0; $j$jscomp$3$$ < $squareMask$$[$i$jscomp$8$$].length; $j$jscomp$3$$++) $squareMask$$[$i$jscomp$8$$]?.[$j$jscomp$3$$] ? ($cornersDotMask_cornersSquare_dot$jscomp$1$$.draw({
1049
- x: $x$jscomp$133$$ + $i$jscomp$8$$ * $dotSize$jscomp$10$$,
1071
+ for (let $i$jscomp$9$$ = 0; $i$jscomp$9$$ < $squareMask$$.length; $i$jscomp$9$$++) for (let $j$jscomp$3$$ = 0; $j$jscomp$3$$ < $squareMask$$[$i$jscomp$9$$].length; $j$jscomp$3$$++) $squareMask$$[$i$jscomp$9$$]?.[$j$jscomp$3$$] ? ($cornersDotMask_cornersSquare_dot$jscomp$1$$.draw({
1072
+ x: $x$jscomp$134$$ + $i$jscomp$9$$ * $dotSize$jscomp$10$$,
1050
1073
  y: $y$jscomp$118$$ + $j$jscomp$3$$ * $dotSize$jscomp$10$$,
1051
1074
  size: $dotSize$jscomp$10$$,
1052
- getNeighbor: ($xOffset$jscomp$3$$, $yOffset$jscomp$3$$) => !!$squareMask$$[$i$jscomp$8$$ + $xOffset$jscomp$3$$]?.[$j$jscomp$3$$ + $yOffset$jscomp$3$$]
1053
- }), $cornersDotMask_cornersSquare_dot$jscomp$1$$.element && $cornersSquareMaskGroup$$ && $cornersSquareMaskGroup$$.appendChild($cornersDotMask_cornersSquare_dot$jscomp$1$$.element)) : this.lightDotsMask && !$dotMask$$[$i$jscomp$8$$]?.[$j$jscomp$3$$] && ($cornersDotMask_cornersSquare_dot$jscomp$1$$.draw({
1054
- x: $x$jscomp$133$$ + $i$jscomp$8$$ * $dotSize$jscomp$10$$,
1075
+ getNeighbor: ($xOffset$jscomp$3$$, $yOffset$jscomp$3$$) => !!$squareMask$$[$i$jscomp$9$$ + $xOffset$jscomp$3$$]?.[$j$jscomp$3$$ + $yOffset$jscomp$3$$]
1076
+ }), $cornersDotMask_cornersSquare_dot$jscomp$1$$.element && $cornersSquareMaskGroup$$ && $cornersSquareMaskGroup$$.appendChild($cornersDotMask_cornersSquare_dot$jscomp$1$$.element)) : this.lightDotsMask && !$dotMask$$[$i$jscomp$9$$]?.[$j$jscomp$3$$] && ($cornersDotMask_cornersSquare_dot$jscomp$1$$.draw({
1077
+ x: $x$jscomp$134$$ + $i$jscomp$9$$ * $dotSize$jscomp$10$$,
1055
1078
  y: $y$jscomp$118$$ + $j$jscomp$3$$ * $dotSize$jscomp$10$$,
1056
1079
  size: $dotSize$jscomp$10$$,
1057
- getNeighbor: ($xOffset$jscomp$2$$, $yOffset$jscomp$2$$) => !$squareMask$$[$i$jscomp$8$$ + $xOffset$jscomp$2$$]?.[$j$jscomp$3$$ + $yOffset$jscomp$2$$] && !$dotMask$$[$i$jscomp$8$$ + $xOffset$jscomp$2$$]?.[$j$jscomp$3$$ + $yOffset$jscomp$2$$]
1080
+ getNeighbor: ($xOffset$jscomp$2$$, $yOffset$jscomp$2$$) => !$squareMask$$[$i$jscomp$9$$ + $xOffset$jscomp$2$$]?.[$j$jscomp$3$$ + $yOffset$jscomp$2$$] && !$dotMask$$[$i$jscomp$9$$ + $xOffset$jscomp$2$$]?.[$j$jscomp$3$$ + $yOffset$jscomp$2$$]
1058
1081
  }), $cornersDotMask_cornersSquare_dot$jscomp$1$$.element && this.lightDotsMaskGroup && this.lightDotsMaskGroup.appendChild($cornersDotMask_cornersSquare_dot$jscomp$1$$.element));
1059
- if (this.lightDotsMask) for (let $i$jscomp$9$$ = -1; 8 > $i$jscomp$9$$; $i$jscomp$9$$++) for (let $j$jscomp$4$$ = -1; 8 > $j$jscomp$4$$; $j$jscomp$4$$++) -1 != $i$jscomp$9$$ && 7 != $i$jscomp$9$$ && -1 != $j$jscomp$4$$ && 7 != $j$jscomp$4$$ || ($cornersDotMask_cornersSquare_dot$jscomp$1$$.draw({
1060
- x: $x$jscomp$133$$ + $i$jscomp$9$$ * $dotSize$jscomp$10$$,
1082
+ if (this.lightDotsMask) for (let $i$jscomp$10$$ = -1; 8 > $i$jscomp$10$$; $i$jscomp$10$$++) for (let $j$jscomp$4$$ = -1; 8 > $j$jscomp$4$$; $j$jscomp$4$$++) -1 != $i$jscomp$10$$ && 7 != $i$jscomp$10$$ && -1 != $j$jscomp$4$$ && 7 != $j$jscomp$4$$ || ($cornersDotMask_cornersSquare_dot$jscomp$1$$.draw({
1083
+ x: $x$jscomp$134$$ + $i$jscomp$10$$ * $dotSize$jscomp$10$$,
1061
1084
  y: $y$jscomp$118$$ + $j$jscomp$4$$ * $dotSize$jscomp$10$$,
1062
1085
  size: $dotSize$jscomp$10$$,
1063
1086
  getNeighbor: ($ii$jscomp$1_xOffset$jscomp$4$$, $jj$jscomp$1_yOffset$jscomp$4$$) => ($jj$jscomp$1_yOffset$jscomp$4$$ = $j$jscomp$4$$ + $jj$jscomp$1_yOffset$jscomp$4$$,
1064
- -1 <= ($ii$jscomp$1_xOffset$jscomp$4$$ = $i$jscomp$9$$ + $ii$jscomp$1_xOffset$jscomp$4$$) && 7 >= $ii$jscomp$1_xOffset$jscomp$4$$ && -1 <= $jj$jscomp$1_yOffset$jscomp$4$$ && 7 >= $jj$jscomp$1_yOffset$jscomp$4$$ && (-1 == $ii$jscomp$1_xOffset$jscomp$4$$ || 7 == $ii$jscomp$1_xOffset$jscomp$4$$ || -1 == $jj$jscomp$1_yOffset$jscomp$4$$ || 7 == $jj$jscomp$1_yOffset$jscomp$4$$))
1087
+ -1 <= ($ii$jscomp$1_xOffset$jscomp$4$$ = $i$jscomp$10$$ + $ii$jscomp$1_xOffset$jscomp$4$$) && 7 >= $ii$jscomp$1_xOffset$jscomp$4$$ && -1 <= $jj$jscomp$1_yOffset$jscomp$4$$ && 7 >= $jj$jscomp$1_yOffset$jscomp$4$$ && (-1 == $ii$jscomp$1_xOffset$jscomp$4$$ || 7 == $ii$jscomp$1_xOffset$jscomp$4$$ || -1 == $jj$jscomp$1_yOffset$jscomp$4$$ || 7 == $jj$jscomp$1_yOffset$jscomp$4$$))
1065
1088
  }), $cornersDotMask_cornersSquare_dot$jscomp$1$$.element && this.lightDotsMaskGroup && this.lightDotsMaskGroup.appendChild($cornersDotMask_cornersSquare_dot$jscomp$1$$.element));
1066
1089
  }
1067
1090
  if (($options$jscomp$38$$.cornersDotOptions?.gradient || $options$jscomp$38$$.cornersDotOptions?.color) && ([$cornersDotMask_cornersSquare_dot$jscomp$1$$, $cornersDotMaskGroup_cornersSquareMask$$] = this.createMask(`mask-corners-dot-color-${$column_cornersDot$$}-${$row$$}`),
@@ -1069,43 +1092,43 @@ class $QRSVG$$ {
1069
1092
  options: $options$jscomp$38$$.cornersDotOptions?.gradient,
1070
1093
  color: $options$jscomp$38$$.cornersDotOptions?.color,
1071
1094
  additionalRotation: $dot$jscomp$2_rotation$jscomp$27$$,
1072
- x: $x$jscomp$133$$ + 2 * $dotSize$jscomp$10$$,
1095
+ x: $x$jscomp$134$$ + 2 * $dotSize$jscomp$10$$,
1073
1096
  y: $y$jscomp$118$$ + 2 * $dotSize$jscomp$10$$,
1074
1097
  height: $cornersDotSize$$,
1075
1098
  width: $cornersDotSize$$,
1076
1099
  name: `corners-dot-color-${$column_cornersDot$$}-${$row$$}`
1077
1100
  })), $options$jscomp$38$$.cornersDotOptions?.type) ($column_cornersDot$$ = new $QRCornerDot$$($options$jscomp$38$$.cornersDotOptions.type, this.document)).draw({
1078
- x: $x$jscomp$133$$ + 2 * $dotSize$jscomp$10$$,
1101
+ x: $x$jscomp$134$$ + 2 * $dotSize$jscomp$10$$,
1079
1102
  y: $y$jscomp$118$$ + 2 * $dotSize$jscomp$10$$,
1080
1103
  size: $cornersDotSize$$,
1081
1104
  rotation: $dot$jscomp$2_rotation$jscomp$27$$
1082
1105
  }), $column_cornersDot$$.element && $cornersDotMaskGroup_cornersSquareMask$$ && $cornersDotMaskGroup_cornersSquareMask$$.appendChild($column_cornersDot$$.element); else {
1083
1106
  $dot$jscomp$2_rotation$jscomp$27$$ = new $QRDot$$($options$jscomp$38$$.dotsOptions.type, this.document);
1084
- for (let $i$jscomp$10$$ = 0; $i$jscomp$10$$ < $dotMask$$.length; $i$jscomp$10$$++) for (let $j$jscomp$5$$ = 0; $j$jscomp$5$$ < $dotMask$$[$i$jscomp$10$$].length; $j$jscomp$5$$++) $dotMask$$[$i$jscomp$10$$]?.[$j$jscomp$5$$] && ($dot$jscomp$2_rotation$jscomp$27$$.draw({
1085
- x: $x$jscomp$133$$ + $i$jscomp$10$$ * $dotSize$jscomp$10$$,
1107
+ for (let $i$jscomp$11$$ = 0; $i$jscomp$11$$ < $dotMask$$.length; $i$jscomp$11$$++) for (let $j$jscomp$5$$ = 0; $j$jscomp$5$$ < $dotMask$$[$i$jscomp$11$$].length; $j$jscomp$5$$++) $dotMask$$[$i$jscomp$11$$]?.[$j$jscomp$5$$] && ($dot$jscomp$2_rotation$jscomp$27$$.draw({
1108
+ x: $x$jscomp$134$$ + $i$jscomp$11$$ * $dotSize$jscomp$10$$,
1086
1109
  y: $y$jscomp$118$$ + $j$jscomp$5$$ * $dotSize$jscomp$10$$,
1087
1110
  size: $dotSize$jscomp$10$$,
1088
- getNeighbor: ($xOffset$jscomp$5$$, $yOffset$jscomp$5$$) => !!$dotMask$$[$i$jscomp$10$$ + $xOffset$jscomp$5$$]?.[$j$jscomp$5$$ + $yOffset$jscomp$5$$]
1111
+ getNeighbor: ($xOffset$jscomp$5$$, $yOffset$jscomp$5$$) => !!$dotMask$$[$i$jscomp$11$$ + $xOffset$jscomp$5$$]?.[$j$jscomp$5$$ + $yOffset$jscomp$5$$]
1089
1112
  }), $dot$jscomp$2_rotation$jscomp$27$$.element && $cornersDotMaskGroup_cornersSquareMask$$ && $cornersDotMaskGroup_cornersSquareMask$$.appendChild($dot$jscomp$2_rotation$jscomp$27$$.element));
1090
1113
  }
1091
1114
  }));
1092
1115
  }
1093
- async drawImage({width: $dw_width$jscomp$30$$, height: $dh_height$jscomp$27$$, count: $count$jscomp$42_dy$jscomp$4$$, dotSize: $dotSize$jscomp$11_i$jscomp$11$$}) {
1094
- var $image$jscomp$4_options$jscomp$39$$ = this.options, $dx$jscomp$4_xBeginning$jscomp$2$$ = Math.floor(($image$jscomp$4_options$jscomp$39$$.width - $count$jscomp$42_dy$jscomp$4$$ * $dotSize$jscomp$11_i$jscomp$11$$) / 2), $encoding$jscomp$3_yBeginning$jscomp$2$$ = Math.floor(($image$jscomp$4_options$jscomp$39$$.height - $count$jscomp$42_dy$jscomp$4$$ * $dotSize$jscomp$11_i$jscomp$11$$) / 2), $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = $image$jscomp$4_options$jscomp$39$$.imageOptions.margin * $dotSize$jscomp$11_i$jscomp$11$$;
1116
+ async drawImage({width: $dw_width$jscomp$30$$, height: $dh_height$jscomp$27$$, count: $count$jscomp$42_dy$jscomp$4$$, dotSize: $dotSize$jscomp$11_i$jscomp$12$$}) {
1117
+ var $image$jscomp$4_options$jscomp$39$$ = this.options, $dx$jscomp$4_xBeginning$jscomp$2$$ = Math.floor(($image$jscomp$4_options$jscomp$39$$.width - $count$jscomp$42_dy$jscomp$4$$ * $dotSize$jscomp$11_i$jscomp$12$$) / 2), $encoding$jscomp$3_yBeginning$jscomp$2$$ = Math.floor(($image$jscomp$4_options$jscomp$39$$.height - $count$jscomp$42_dy$jscomp$4$$ * $dotSize$jscomp$11_i$jscomp$12$$) / 2), $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = $image$jscomp$4_options$jscomp$39$$.imageOptions.margin * $dotSize$jscomp$11_i$jscomp$12$$;
1095
1118
  if ($image$jscomp$4_options$jscomp$39$$.imageOptions.mode == $ImageMode$$.background && ($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = 0),
1096
- $dx$jscomp$4_xBeginning$jscomp$2$$ = $dx$jscomp$4_xBeginning$jscomp$2$$ + $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ + ($count$jscomp$42_dy$jscomp$4$$ * $dotSize$jscomp$11_i$jscomp$11$$ - $dw_width$jscomp$30$$) / 2,
1097
- $count$jscomp$42_dy$jscomp$4$$ = $encoding$jscomp$3_yBeginning$jscomp$2$$ + $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ + ($count$jscomp$42_dy$jscomp$4$$ * $dotSize$jscomp$11_i$jscomp$11$$ - $dh_height$jscomp$27$$) / 2,
1119
+ $dx$jscomp$4_xBeginning$jscomp$2$$ = $dx$jscomp$4_xBeginning$jscomp$2$$ + $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ + ($count$jscomp$42_dy$jscomp$4$$ * $dotSize$jscomp$11_i$jscomp$12$$ - $dw_width$jscomp$30$$) / 2,
1120
+ $count$jscomp$42_dy$jscomp$4$$ = $encoding$jscomp$3_yBeginning$jscomp$2$$ + $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ + ($count$jscomp$42_dy$jscomp$4$$ * $dotSize$jscomp$11_i$jscomp$12$$ - $dh_height$jscomp$27$$) / 2,
1098
1121
  $dw_width$jscomp$30$$ -= 2 * $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$,
1099
1122
  $dh_height$jscomp$27$$ -= 2 * $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$,
1100
1123
  $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = await this.imageTools.toDataURL($image$jscomp$4_options$jscomp$39$$.image || ""),
1101
1124
  ($image$jscomp$4_options$jscomp$39$$ = this.document.createElementNS("http://www.w3.org/2000/svg", "image")).setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ || ""),
1102
1125
  $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.startsWith("data:image/svg+xml;")) {
1103
- if ($dotSize$jscomp$11_i$jscomp$11$$ = ($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.substring(19)).indexOf(","),
1104
- $encoding$jscomp$3_yBeginning$jscomp$2$$ = $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.substring(0, $dotSize$jscomp$11_i$jscomp$11$$),
1105
- $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.substring($dotSize$jscomp$11_i$jscomp$11$$ + 1),
1126
+ if ($dotSize$jscomp$11_i$jscomp$12$$ = ($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.substring(19)).indexOf(","),
1127
+ $encoding$jscomp$3_yBeginning$jscomp$2$$ = $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.substring(0, $dotSize$jscomp$11_i$jscomp$12$$),
1128
+ $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.substring($dotSize$jscomp$11_i$jscomp$12$$ + 1),
1106
1129
  "base64" === $encoding$jscomp$3_yBeginning$jscomp$2$$) $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = "function" == typeof atob ? atob($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$) : Buffer.from($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$, "base64").toString("utf8"); else $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = "";
1107
1130
  $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ && ($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = (new DOMParser).parseFromString($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$, "text/xml"),
1108
- ($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = Array.from($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.getElementsByTagName("svg"))).length && ($image$jscomp$4_options$jscomp$39$$ = $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$[0]));
1131
+ ($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$ = Array.from($container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$.getElementsByTagName("svg"))).length && ($image$jscomp$4_options$jscomp$39$$ = $container_data$jscomp$80_imageUrl_margin$jscomp$3_rootEl$$[0]).setAttribute("overflow", "visible"));
1109
1132
  }
1110
1133
  $image$jscomp$4_options$jscomp$39$$.setAttribute("x", $numToAttr$$($dx$jscomp$4_xBeginning$jscomp$2$$)),
1111
1134
  $image$jscomp$4_options$jscomp$39$$.setAttribute("y", $numToAttr$$($count$jscomp$42_dy$jscomp$4$$)),
@@ -1113,44 +1136,47 @@ class $QRSVG$$ {
1113
1136
  $image$jscomp$4_options$jscomp$39$$.setAttribute("height", `${$numToAttr$$($dh_height$jscomp$27$$)}px`),
1114
1137
  this._element.appendChild($image$jscomp$4_options$jscomp$39$$);
1115
1138
  }
1116
- createColor({options: $options$jscomp$40$$, color: $color$jscomp$3_rotation$jscomp$28$$, additionalRotation: $additionalRotation_positiveRotation$$, x: $x$jscomp$134_x1$jscomp$5$$, y: $y$jscomp$119_y1$jscomp$5$$, height: $height$jscomp$28$$, width: $width$jscomp$31$$, name: $name$jscomp$73$$}) {
1117
- var $size$jscomp$70_x0$jscomp$2$$ = $width$jscomp$31$$ > $height$jscomp$28$$ ? $width$jscomp$31$$ : $height$jscomp$28$$;
1139
+ createColor({options: $options$jscomp$40_parsed$jscomp$1$$, color: $color$jscomp$3_rotation$jscomp$28$$, additionalRotation: $additionalRotation_positiveRotation$$, x: $x$jscomp$135_x1$jscomp$5$$, y: $y$jscomp$119_y1$jscomp$5$$, height: $height$jscomp$28$$, width: $width$jscomp$31$$, name: $name$jscomp$73$$}) {
1140
+ var $size$jscomp$71_x0$jscomp$2$$ = $width$jscomp$31$$ > $height$jscomp$28$$ ? $width$jscomp$31$$ : $height$jscomp$28$$;
1118
1141
  let $rect$$ = this.document.createElementNS("http://www.w3.org/2000/svg", "rect");
1119
- if ($rect$$.setAttribute("x", $numToAttr$$($x$jscomp$134_x1$jscomp$5$$)), $rect$$.setAttribute("y", $numToAttr$$($y$jscomp$119_y1$jscomp$5$$)),
1142
+ if ($rect$$.setAttribute("x", $numToAttr$$($x$jscomp$135_x1$jscomp$5$$)), $rect$$.setAttribute("y", $numToAttr$$($y$jscomp$119_y1$jscomp$5$$)),
1120
1143
  $rect$$.setAttribute("height", $numToAttr$$($height$jscomp$28$$)), $rect$$.setAttribute("width", $numToAttr$$($width$jscomp$31$$)),
1121
- $rect$$.setAttribute("style", `mask:url(#mask-${$name$jscomp$73$$})`), $options$jscomp$40$$) {
1144
+ $rect$$.setAttribute("style", `mask:url(#mask-${$name$jscomp$73$$})`), $options$jscomp$40_parsed$jscomp$1$$) {
1122
1145
  let $gradient$jscomp$1$$;
1123
- if ($options$jscomp$40$$.type === $GradientType$$.radial) $gradient$jscomp$1$$ = this.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"),
1146
+ if ($options$jscomp$40_parsed$jscomp$1$$.type === $GradientType$$.radial) $gradient$jscomp$1$$ = this.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"),
1124
1147
  $gradient$jscomp$1$$.setAttribute("id", $name$jscomp$73$$), $gradient$jscomp$1$$.setAttribute("gradientUnits", "userSpaceOnUse"),
1125
- $gradient$jscomp$1$$.setAttribute("fx", $numToAttr$$($x$jscomp$134_x1$jscomp$5$$ + $width$jscomp$31$$ / 2)),
1148
+ $gradient$jscomp$1$$.setAttribute("fx", $numToAttr$$($x$jscomp$135_x1$jscomp$5$$ + $width$jscomp$31$$ / 2)),
1126
1149
  $gradient$jscomp$1$$.setAttribute("fy", $numToAttr$$($y$jscomp$119_y1$jscomp$5$$ + $height$jscomp$28$$ / 2)),
1127
- $gradient$jscomp$1$$.setAttribute("cx", $numToAttr$$($x$jscomp$134_x1$jscomp$5$$ + $width$jscomp$31$$ / 2)),
1150
+ $gradient$jscomp$1$$.setAttribute("cx", $numToAttr$$($x$jscomp$135_x1$jscomp$5$$ + $width$jscomp$31$$ / 2)),
1128
1151
  $gradient$jscomp$1$$.setAttribute("cy", $numToAttr$$($y$jscomp$119_y1$jscomp$5$$ + $height$jscomp$28$$ / 2)),
1129
- $gradient$jscomp$1$$.setAttribute("r", $numToAttr$$($size$jscomp$70_x0$jscomp$2$$ / 2)); else {
1130
- $size$jscomp$70_x0$jscomp$2$$ = $x$jscomp$134_x1$jscomp$5$$ + $width$jscomp$31$$ / 2;
1152
+ $gradient$jscomp$1$$.setAttribute("r", $numToAttr$$($size$jscomp$71_x0$jscomp$2$$ / 2)); else {
1153
+ $size$jscomp$71_x0$jscomp$2$$ = $x$jscomp$135_x1$jscomp$5$$ + $width$jscomp$31$$ / 2;
1131
1154
  let $y0$jscomp$2$$ = $y$jscomp$119_y1$jscomp$5$$ + $height$jscomp$28$$ / 2;
1132
- $x$jscomp$134_x1$jscomp$5$$ += $width$jscomp$31$$ / 2, $y$jscomp$119_y1$jscomp$5$$ += $height$jscomp$28$$ / 2,
1133
- 0 <= ($additionalRotation_positiveRotation$$ = (($color$jscomp$3_rotation$jscomp$28$$ = (($options$jscomp$40$$.rotation || 0) + $additionalRotation_positiveRotation$$) % (2 * Math.PI)) + 2 * Math.PI) % (2 * Math.PI)) && $additionalRotation_positiveRotation$$ <= .25 * Math.PI || $additionalRotation_positiveRotation$$ > 1.75 * Math.PI && $additionalRotation_positiveRotation$$ <= 2 * Math.PI ? ($size$jscomp$70_x0$jscomp$2$$ -= $width$jscomp$31$$ / 2,
1155
+ $x$jscomp$135_x1$jscomp$5$$ += $width$jscomp$31$$ / 2, $y$jscomp$119_y1$jscomp$5$$ += $height$jscomp$28$$ / 2,
1156
+ 0 <= ($additionalRotation_positiveRotation$$ = (($color$jscomp$3_rotation$jscomp$28$$ = (($options$jscomp$40_parsed$jscomp$1$$.rotation || 0) + $additionalRotation_positiveRotation$$) % (2 * Math.PI)) + 2 * Math.PI) % (2 * Math.PI)) && $additionalRotation_positiveRotation$$ <= .25 * Math.PI || $additionalRotation_positiveRotation$$ > 1.75 * Math.PI && $additionalRotation_positiveRotation$$ <= 2 * Math.PI ? ($size$jscomp$71_x0$jscomp$2$$ -= $width$jscomp$31$$ / 2,
1134
1157
  $y0$jscomp$2$$ -= $height$jscomp$28$$ / 2 * Math.tan($color$jscomp$3_rotation$jscomp$28$$),
1135
- $x$jscomp$134_x1$jscomp$5$$ += $width$jscomp$31$$ / 2, $y$jscomp$119_y1$jscomp$5$$ += $height$jscomp$28$$ / 2 * Math.tan($color$jscomp$3_rotation$jscomp$28$$)) : $additionalRotation_positiveRotation$$ > .25 * Math.PI && $additionalRotation_positiveRotation$$ <= .75 * Math.PI ? ($y0$jscomp$2$$ -= $height$jscomp$28$$ / 2,
1136
- $size$jscomp$70_x0$jscomp$2$$ -= $width$jscomp$31$$ / 2 / Math.tan($color$jscomp$3_rotation$jscomp$28$$),
1137
- $y$jscomp$119_y1$jscomp$5$$ += $height$jscomp$28$$ / 2, $x$jscomp$134_x1$jscomp$5$$ += $width$jscomp$31$$ / 2 / Math.tan($color$jscomp$3_rotation$jscomp$28$$)) : $additionalRotation_positiveRotation$$ > .75 * Math.PI && $additionalRotation_positiveRotation$$ <= 1.25 * Math.PI ? ($size$jscomp$70_x0$jscomp$2$$ += $width$jscomp$31$$ / 2,
1158
+ $x$jscomp$135_x1$jscomp$5$$ += $width$jscomp$31$$ / 2, $y$jscomp$119_y1$jscomp$5$$ += $height$jscomp$28$$ / 2 * Math.tan($color$jscomp$3_rotation$jscomp$28$$)) : $additionalRotation_positiveRotation$$ > .25 * Math.PI && $additionalRotation_positiveRotation$$ <= .75 * Math.PI ? ($y0$jscomp$2$$ -= $height$jscomp$28$$ / 2,
1159
+ $size$jscomp$71_x0$jscomp$2$$ -= $width$jscomp$31$$ / 2 / Math.tan($color$jscomp$3_rotation$jscomp$28$$),
1160
+ $y$jscomp$119_y1$jscomp$5$$ += $height$jscomp$28$$ / 2, $x$jscomp$135_x1$jscomp$5$$ += $width$jscomp$31$$ / 2 / Math.tan($color$jscomp$3_rotation$jscomp$28$$)) : $additionalRotation_positiveRotation$$ > .75 * Math.PI && $additionalRotation_positiveRotation$$ <= 1.25 * Math.PI ? ($size$jscomp$71_x0$jscomp$2$$ += $width$jscomp$31$$ / 2,
1138
1161
  $y0$jscomp$2$$ += $height$jscomp$28$$ / 2 * Math.tan($color$jscomp$3_rotation$jscomp$28$$),
1139
- $x$jscomp$134_x1$jscomp$5$$ -= $width$jscomp$31$$ / 2, $y$jscomp$119_y1$jscomp$5$$ -= $height$jscomp$28$$ / 2 * Math.tan($color$jscomp$3_rotation$jscomp$28$$)) : $additionalRotation_positiveRotation$$ > 1.25 * Math.PI && $additionalRotation_positiveRotation$$ <= 1.75 * Math.PI && ($y0$jscomp$2$$ += $height$jscomp$28$$ / 2,
1140
- $size$jscomp$70_x0$jscomp$2$$ += $width$jscomp$31$$ / 2 / Math.tan($color$jscomp$3_rotation$jscomp$28$$),
1141
- $y$jscomp$119_y1$jscomp$5$$ -= $height$jscomp$28$$ / 2, $x$jscomp$134_x1$jscomp$5$$ -= $width$jscomp$31$$ / 2 / Math.tan($color$jscomp$3_rotation$jscomp$28$$)),
1162
+ $x$jscomp$135_x1$jscomp$5$$ -= $width$jscomp$31$$ / 2, $y$jscomp$119_y1$jscomp$5$$ -= $height$jscomp$28$$ / 2 * Math.tan($color$jscomp$3_rotation$jscomp$28$$)) : $additionalRotation_positiveRotation$$ > 1.25 * Math.PI && $additionalRotation_positiveRotation$$ <= 1.75 * Math.PI && ($y0$jscomp$2$$ += $height$jscomp$28$$ / 2,
1163
+ $size$jscomp$71_x0$jscomp$2$$ += $width$jscomp$31$$ / 2 / Math.tan($color$jscomp$3_rotation$jscomp$28$$),
1164
+ $y$jscomp$119_y1$jscomp$5$$ -= $height$jscomp$28$$ / 2, $x$jscomp$135_x1$jscomp$5$$ -= $width$jscomp$31$$ / 2 / Math.tan($color$jscomp$3_rotation$jscomp$28$$)),
1142
1165
  $gradient$jscomp$1$$ = this.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"),
1143
1166
  $gradient$jscomp$1$$.setAttribute("id", $name$jscomp$73$$), $gradient$jscomp$1$$.setAttribute("gradientUnits", "userSpaceOnUse"),
1144
- $gradient$jscomp$1$$.setAttribute("x1", $numToAttr$$($size$jscomp$70_x0$jscomp$2$$)),
1145
- $gradient$jscomp$1$$.setAttribute("y1", $numToAttr$$($y0$jscomp$2$$)), $gradient$jscomp$1$$.setAttribute("x2", $numToAttr$$($x$jscomp$134_x1$jscomp$5$$)),
1167
+ $gradient$jscomp$1$$.setAttribute("x1", $numToAttr$$($size$jscomp$71_x0$jscomp$2$$)),
1168
+ $gradient$jscomp$1$$.setAttribute("y1", $numToAttr$$($y0$jscomp$2$$)), $gradient$jscomp$1$$.setAttribute("x2", $numToAttr$$($x$jscomp$135_x1$jscomp$5$$)),
1146
1169
  $gradient$jscomp$1$$.setAttribute("y2", $numToAttr$$($y$jscomp$119_y1$jscomp$5$$));
1147
1170
  }
1148
- $options$jscomp$40$$.colorStops.forEach((({offset: $offset$jscomp$26$$, color: $color$jscomp$4$$}) => {
1171
+ $options$jscomp$40_parsed$jscomp$1$$.colorStops.forEach((({offset: $offset$jscomp$26_parsed$$, color: $color$jscomp$4$$}) => {
1149
1172
  let $stop$$ = this.document.createElementNS("http://www.w3.org/2000/svg", "stop");
1150
- $stop$$.setAttribute("offset", `${$numToAttr$$(100 * $offset$jscomp$26$$)}%`), $stop$$.setAttribute("stop-color", $color$jscomp$4$$),
1173
+ $stop$$.setAttribute("offset", `${$numToAttr$$(100 * $offset$jscomp$26_parsed$$)}%`),
1174
+ $offset$jscomp$26_parsed$$ = $parseColor$$($color$jscomp$4$$), $stop$$.setAttribute("stop-color", $offset$jscomp$26_parsed$$.value),
1175
+ 1 > $offset$jscomp$26_parsed$$.alpha && $stop$$.setAttribute("stop-opacity", $offset$jscomp$26_parsed$$.alpha.toFixed(7)),
1151
1176
  $gradient$jscomp$1$$.appendChild($stop$$);
1152
1177
  })), $rect$$.setAttribute("fill", `url(#${$name$jscomp$73$$})`), this.defs.appendChild($gradient$jscomp$1$$);
1153
- } else $color$jscomp$3_rotation$jscomp$28$$ && $rect$$.setAttribute("fill", $color$jscomp$3_rotation$jscomp$28$$);
1178
+ } else $color$jscomp$3_rotation$jscomp$28$$ && ($options$jscomp$40_parsed$jscomp$1$$ = $parseColor$$($color$jscomp$3_rotation$jscomp$28$$),
1179
+ $rect$$.setAttribute("fill", $options$jscomp$40_parsed$jscomp$1$$.value), 1 > $options$jscomp$40_parsed$jscomp$1$$.alpha && $rect$$.setAttribute("opacity", $options$jscomp$40_parsed$jscomp$1$$.alpha.toFixed(7)));
1154
1180
  this._element.appendChild($rect$$);
1155
1181
  }
1156
1182
  createMask($group_id$jscomp$5$$) {
@@ -1216,16 +1242,16 @@ let $QRCodeStyling$1$$ = class {
1216
1242
  }
1217
1243
  setupSvg() {
1218
1244
  if (this.qr) {
1219
- var $count$jscomp$43_moduleCount_size$jscomp$71$$ = this.qr.getModuleCount();
1220
- this.options.imageOptions.mode == $ImageMode$$.background && this.options.shape != $ShapeType$$.circle && ($count$jscomp$43_moduleCount_size$jscomp$71$$ += 2),
1221
- 0 == ($count$jscomp$43_moduleCount_size$jscomp$71$$ = Math.ceil((this.options.shape == $ShapeType$$.circle ? Math.sqrt(2) : 1) * $count$jscomp$43_moduleCount_size$jscomp$71$$)) % 2 && --$count$jscomp$43_moduleCount_size$jscomp$71$$;
1245
+ var $count$jscomp$43_moduleCount_size$jscomp$72$$ = this.qr.getModuleCount();
1246
+ this.options.imageOptions.mode == $ImageMode$$.background && this.options.shape != $ShapeType$$.circle && ($count$jscomp$43_moduleCount_size$jscomp$72$$ += 2),
1247
+ 0 == ($count$jscomp$43_moduleCount_size$jscomp$72$$ = Math.ceil((this.options.shape == $ShapeType$$.circle ? Math.sqrt(2) : 1) * $count$jscomp$43_moduleCount_size$jscomp$72$$)) % 2 && --$count$jscomp$43_moduleCount_size$jscomp$72$$;
1222
1248
  var $margin$jscomp$4$$ = this.options.backgroundOptions && this.options.backgroundOptions.margin || 0;
1223
1249
  this.options.imageOptions.mode == $ImageMode$$.background && ($margin$jscomp$4$$ += this.options.imageOptions.margin || 0),
1224
- $count$jscomp$43_moduleCount_size$jscomp$71$$ = Math.ceil(this.options.dotsOptions.size * ($count$jscomp$43_moduleCount_size$jscomp$71$$ + 2 * $margin$jscomp$4$$)),
1250
+ $count$jscomp$43_moduleCount_size$jscomp$72$$ = Math.ceil(this.options.dotsOptions.size * ($count$jscomp$43_moduleCount_size$jscomp$72$$ + 2 * $margin$jscomp$4$$)),
1225
1251
  this.qrSVG = new $QRSVG$$({
1226
1252
  ...this.options,
1227
- width: $count$jscomp$43_moduleCount_size$jscomp$71$$,
1228
- height: $count$jscomp$43_moduleCount_size$jscomp$71$$,
1253
+ width: $count$jscomp$43_moduleCount_size$jscomp$72$$,
1254
+ height: $count$jscomp$43_moduleCount_size$jscomp$72$$,
1229
1255
  errorCorrectionPercent: $ErrorCorrectionPercents$$[this.options.qrOptions.errorCorrectionLevel]
1230
1256
  }), this.svgDrawingPromise = this.qrSVG.drawQR(this.qr).then((() => {
1231
1257
  this.qrSVG?.element && this.extension?.(this.qrSVG.element, this.options);