penaltyChecked.svg 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <svg
  3. xmlns:dc="http://purl.org/dc/elements/1.1/"
  4. xmlns:cc="http://creativecommons.org/ns#"
  5. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  6. xmlns:svg="http://www.w3.org/2000/svg"
  7. xmlns="http://www.w3.org/2000/svg"
  8. xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
  9. xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
  10. width="20mm"
  11. height="20mm"
  12. viewBox="0 0 20 20"
  13. version="1.1"
  14. id="svg906"
  15. inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
  16. sodipodi:docname="penaltyChecked.svg"
  17. inkscape:export-filename="C:\Users\bad-p\Desktop\Work Folder\VS CODE\Qwixx\frontend\inkScape\icons\penaltyUnchecked.png"
  18. inkscape:export-xdpi="200"
  19. inkscape:export-ydpi="200">
  20. <defs
  21. id="defs900">
  22. <inkscape:path-effect
  23. effect="powerclip"
  24. id="path-effect872"
  25. is_visible="true"
  26. lpeversion="1"
  27. inverse="true"
  28. flatten="false"
  29. hide_clip="false"
  30. message="Use fill-rule evenodd on &lt;b&gt;fill and stroke&lt;/b&gt; dialog if no flatten result after convert clip to paths." />
  31. <inkscape:path-effect
  32. effect="powerclip"
  33. id="path-effect877"
  34. is_visible="true"
  35. lpeversion="1"
  36. inverse="true"
  37. flatten="false"
  38. hide_clip="false"
  39. message="Use fill-rule evenodd on &lt;b&gt;fill and stroke&lt;/b&gt; dialog if no flatten result after convert clip to paths." />
  40. <clipPath
  41. clipPathUnits="userSpaceOnUse"
  42. id="clipPath871">
  43. <g
  44. id="g875"
  45. style="display:none">
  46. <path
  47. sodipodi:type="star"
  48. style="fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
  49. id="path873"
  50. sodipodi:sides="5"
  51. sodipodi:cx="9.973671"
  52. sodipodi:cy="10.245437"
  53. sodipodi:r1="5.7455182"
  54. sodipodi:r2="1.6948932"
  55. sodipodi:arg1="0.93716332"
  56. sodipodi:arg2="1.5654818"
  57. inkscape:flatsided="false"
  58. inkscape:rounded="0"
  59. inkscape:randomized="0"
  60. d="M 13.375457,14.875645 9.9826785,11.940306 6.6212905,14.91154 8.3645379,10.777747 4.5,8.4990388 8.9701645,8.8795531 9.9431367,4.4999996 l 1.0194663,4.3689645 4.465868,-0.4280049 -3.8401,2.3196538 z"
  61. inkscape:transform-center-x="0.009435764"
  62. inkscape:transform-center-y="-0.53966665" />
  63. </g>
  64. <path
  65. id="lpe_path-effect877"
  66. class="powerclip"
  67. d="M -1.9999999,-2.0000001 H 22 V 21 H -1.9999999 Z M 13.375457,14.875645 11.588371,10.760613 15.428471,8.4409592 10.962603,8.8689641 9.9431367,4.4999996 8.9701645,8.8795531 4.5,8.4990388 8.3645379,10.777747 6.6212905,14.91154 9.9826785,11.940306 Z" />
  68. </clipPath>
  69. <clipPath
  70. clipPathUnits="userSpaceOnUse"
  71. id="clipPath871-1">
  72. <g
  73. id="g875-7"
  74. style="display:none">
  75. <path
  76. sodipodi:type="star"
  77. style="fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
  78. id="path873-8"
  79. sodipodi:sides="5"
  80. sodipodi:cx="9.973671"
  81. sodipodi:cy="10.245437"
  82. sodipodi:r1="5.7455182"
  83. sodipodi:r2="1.6948932"
  84. sodipodi:arg1="0.93716332"
  85. sodipodi:arg2="1.5654818"
  86. inkscape:flatsided="false"
  87. inkscape:rounded="0"
  88. inkscape:randomized="0"
  89. d="M 13.375457,14.875645 9.9826785,11.940306 6.6212905,14.91154 8.3645379,10.777747 4.5,8.4990388 8.9701645,8.8795531 9.9431367,4.4999996 l 1.0194663,4.3689645 4.465868,-0.4280049 -3.8401,2.3196538 z"
  90. inkscape:transform-center-x="0.009435764"
  91. inkscape:transform-center-y="-0.53966665" />
  92. </g>
  93. <path
  94. id="lpe_path-effect877-1"
  95. class="powerclip"
  96. d="M 0,0" />
  97. </clipPath>
  98. <clipPath
  99. clipPathUnits="userSpaceOnUse"
  100. id="clipath_lpe_path-effect872">
  101. <g
  102. id="g876"
  103. style="display:block">
  104. <path
  105. sodipodi:type="star"
  106. style="fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
  107. id="path874"
  108. sodipodi:sides="5"
  109. sodipodi:cx="9.973671"
  110. sodipodi:cy="10.245437"
  111. sodipodi:r1="5.7455182"
  112. sodipodi:r2="1.6948932"
  113. sodipodi:arg1="0.93716332"
  114. sodipodi:arg2="1.5654818"
  115. inkscape:flatsided="false"
  116. inkscape:rounded="0"
  117. inkscape:randomized="0"
  118. inkscape:transform-center-x="0.009435764"
  119. inkscape:transform-center-y="-0.53966665" />
  120. </g>
  121. </clipPath>
  122. <meshgradient
  123. inkscape:collect="always"
  124. id="meshgradient893"
  125. gradientUnits="userSpaceOnUse"
  126. x="8.8754561"
  127. y="10.375645">
  128. <meshrow
  129. id="meshrow895">
  130. <meshpatch
  131. id="meshpatch897">
  132. <stop
  133. path="l -3.39278,-2.93534"
  134. style="stop-color:#ffffff;stop-opacity:1"
  135. id="stop899" />
  136. <stop
  137. path="l -0.00900751,-1.69487"
  138. style="stop-color:#ffff00;stop-opacity:1"
  139. id="stop901" />
  140. <stop
  141. path="l 0,0"
  142. style="stop-color:#ffffff;stop-opacity:1"
  143. id="stop903" />
  144. <stop
  145. path="l 3.40179,4.63021"
  146. style="stop-color:#ffff00;stop-opacity:1"
  147. id="stop905" />
  148. </meshpatch>
  149. <meshpatch
  150. id="meshpatch907">
  151. <stop
  152. path="l -3.36139,2.97123"
  153. id="stop909" />
  154. <stop
  155. path="l 3.35238,-4.6661"
  156. style="stop-color:#ffffff;stop-opacity:1"
  157. id="stop911" />
  158. <stop
  159. path="l 0,0"
  160. style="stop-color:#ffff00;stop-opacity:1"
  161. id="stop913" />
  162. </meshpatch>
  163. <meshpatch
  164. id="meshpatch915">
  165. <stop
  166. path="l 1.74325,-4.13379"
  167. id="stop917" />
  168. <stop
  169. path="l 1.60913,-0.53231"
  170. style="stop-color:#ffff00;stop-opacity:1"
  171. id="stop919" />
  172. <stop
  173. path="l 0,0"
  174. style="stop-color:#ffffff;stop-opacity:1"
  175. id="stop921" />
  176. </meshpatch>
  177. <meshpatch
  178. id="meshpatch923">
  179. <stop
  180. path="l -3.86454,-2.27871"
  181. id="stop925" />
  182. <stop
  183. path="l 5.47367,1.7464"
  184. style="stop-color:#ffffff;stop-opacity:1"
  185. id="stop927" />
  186. <stop
  187. path="l 0,0"
  188. style="stop-color:#ffff00;stop-opacity:1"
  189. id="stop929" />
  190. </meshpatch>
  191. <meshpatch
  192. id="meshpatch931">
  193. <stop
  194. path="l 4.47016,0.380514"
  195. id="stop933" />
  196. <stop
  197. path="l 1.00351,1.36588"
  198. style="stop-color:#ffff00;stop-opacity:1"
  199. id="stop935" />
  200. <stop
  201. path="l 0,0"
  202. style="stop-color:#ffffff;stop-opacity:1"
  203. id="stop937" />
  204. </meshpatch>
  205. <meshpatch
  206. id="meshpatch939">
  207. <stop
  208. path="l 0.972972,-4.37955"
  209. id="stop941" />
  210. <stop
  211. path="l 0.0305343,5.74544"
  212. style="stop-color:#ffffff;stop-opacity:1"
  213. id="stop943" />
  214. <stop
  215. path="l 0,0"
  216. style="stop-color:#ffff00;stop-opacity:1"
  217. id="stop945" />
  218. </meshpatch>
  219. <meshpatch
  220. id="meshpatch947">
  221. <stop
  222. path="l 1.01947,4.36896"
  223. id="stop949" />
  224. <stop
  225. path="l -0.988932,1.37647"
  226. style="stop-color:#ffff00;stop-opacity:1"
  227. id="stop951" />
  228. <stop
  229. path="l 0,0"
  230. style="stop-color:#ffffff;stop-opacity:1"
  231. id="stop953" />
  232. </meshpatch>
  233. <meshpatch
  234. id="meshpatch955">
  235. <stop
  236. path="l 4.46587,-0.428005"
  237. id="stop957" />
  238. <stop
  239. path="l -5.4548,1.80448"
  240. style="stop-color:#ffffff;stop-opacity:1"
  241. id="stop959" />
  242. <stop
  243. path="l 0,0"
  244. style="stop-color:#ffff00;stop-opacity:1"
  245. id="stop961" />
  246. </meshpatch>
  247. <meshpatch
  248. id="meshpatch963">
  249. <stop
  250. path="l -3.8401,2.31965"
  251. id="stop965" />
  252. <stop
  253. path="l -1.6147,-0.515177"
  254. style="stop-color:#ffff00;stop-opacity:1"
  255. id="stop967" />
  256. <stop
  257. path="l 0,0"
  258. style="stop-color:#ffffff;stop-opacity:1"
  259. id="stop969" />
  260. </meshpatch>
  261. <meshpatch
  262. id="meshpatch971">
  263. <stop
  264. path="l 1.78709,4.11503"
  265. id="stop973" />
  266. <stop
  267. path="l -3.40179,-4.63021"
  268. style="stop-color:#ffffff;stop-opacity:1"
  269. id="stop975" />
  270. <stop
  271. path="l 0,0"
  272. style="stop-color:#ffff00;stop-opacity:1"
  273. id="stop977" />
  274. </meshpatch>
  275. </meshrow>
  276. </meshgradient>
  277. </defs>
  278. <sodipodi:namedview
  279. id="base"
  280. pagecolor="#ffffff"
  281. bordercolor="#666666"
  282. borderopacity="1.0"
  283. inkscape:pageopacity="0.0"
  284. inkscape:pageshadow="2"
  285. inkscape:zoom="7.9195959"
  286. inkscape:cx="23.97579"
  287. inkscape:cy="36.279977"
  288. inkscape:document-units="mm"
  289. inkscape:current-layer="layer4"
  290. inkscape:document-rotation="0"
  291. showgrid="false"
  292. inkscape:window-width="1920"
  293. inkscape:window-height="1017"
  294. inkscape:window-x="-8"
  295. inkscape:window-y="-8"
  296. inkscape:window-maximized="1"
  297. inkscape:pagecheckerboard="true" />
  298. <metadata
  299. id="metadata903">
  300. <rdf:RDF>
  301. <cc:Work
  302. rdf:about="">
  303. <dc:format>image/svg+xml</dc:format>
  304. <dc:type
  305. rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
  306. <dc:title />
  307. </cc:Work>
  308. </rdf:RDF>
  309. </metadata>
  310. <g
  311. inkscape:label="border"
  312. inkscape:groupmode="layer"
  313. id="layer1"
  314. sodipodi:insensitive="true">
  315. <g
  316. inkscape:groupmode="layer"
  317. id="layer3"
  318. inkscape:label="shape"
  319. sodipodi:insensitive="true">
  320. <g
  321. id="g869"
  322. clip-path="url(#clipPath871)"
  323. inkscape:path-effect="#path-effect877">
  324. <path
  325. sodipodi:type="star"
  326. style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
  327. id="path812"
  328. sodipodi:sides="5"
  329. sodipodi:cx="5.4736705"
  330. sodipodi:cy="5.7454367"
  331. sodipodi:r1="5.7455177"
  332. sodipodi:r2="1.6948932"
  333. sodipodi:arg1="0.93716332"
  334. sodipodi:arg2="1.5654818"
  335. inkscape:flatsided="false"
  336. inkscape:rounded="0"
  337. inkscape:randomized="0"
  338. d="M 8.8754561,10.375645 5.482678,7.440306 2.1212903,10.41154 3.8645375,6.2777467 -3.7959517e-8,3.9990389 4.4701641,4.3795531 5.4431362,7.4705223e-8 6.4626024,4.3689641 10.92847,3.9409593 7.0883705,6.2606134 Z"
  339. inkscape:transform-center-x="0.012087718"
  340. inkscape:transform-center-y="-0.67383548"
  341. transform="matrix(1.2810577,0,0,1.2486145,3.0000001,2.9999998)" />
  342. </g>
  343. </g>
  344. <g
  345. inkscape:groupmode="layer"
  346. id="layer2"
  347. inkscape:label="cut out"
  348. sodipodi:insensitive="true" />
  349. </g>
  350. <g
  351. inkscape:groupmode="layer"
  352. id="layer4"
  353. inkscape:label="fill"
  354. sodipodi:insensitive="true"
  355. style="display:none">
  356. <path
  357. sodipodi:type="star"
  358. style="fill:url(#meshgradient893);fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
  359. id="path812-0"
  360. sodipodi:sides="5"
  361. sodipodi:cx="5.4736705"
  362. sodipodi:cy="5.7454367"
  363. sodipodi:r1="5.7455177"
  364. sodipodi:r2="1.6948932"
  365. sodipodi:arg1="0.93716332"
  366. sodipodi:arg2="1.5654818"
  367. inkscape:flatsided="false"
  368. inkscape:rounded="0"
  369. inkscape:randomized="0"
  370. inkscape:transform-center-x="0.010102308"
  371. inkscape:transform-center-y="-0.57016859"
  372. transform="matrix(1.0705982,0,0,1.05652,4.103,4.1289999)"
  373. d="M 8.8754561,10.375645 5.482678,7.440306 2.1212903,10.41154 3.8645375,6.2777467 -3.7959517e-8,3.9990389 4.4701641,4.3795531 5.4431362,7.4705223e-8 6.4626024,4.3689641 10.92847,3.9409593 7.0883705,6.2606134 Z" />
  374. </g>
  375. <script
  376. id="mesh_polyfill"
  377. type="text/javascript">
  378. !function(){const t=&quot;http://www.w3.org/2000/svg&quot;,e=&quot;http://www.w3.org/1999/xlink&quot;,s=&quot;http://www.w3.org/1999/xhtml&quot;,r=2;if(document.createElementNS(t,&quot;meshgradient&quot;).x)return;const n=(t,e,s,r)=&gt;{let n=new x(.5*(e.x+s.x),.5*(e.y+s.y)),o=new x(.5*(t.x+e.x),.5*(t.y+e.y)),i=new x(.5*(s.x+r.x),.5*(s.y+r.y)),a=new x(.5*(n.x+o.x),.5*(n.y+o.y)),h=new x(.5*(n.x+i.x),.5*(n.y+i.y)),l=new x(.5*(a.x+h.x),.5*(a.y+h.y));return[[t,o,a,l],[l,h,i,r]]},o=t=&gt;{let e=t[0].distSquared(t[1]),s=t[2].distSquared(t[3]),r=.25*t[0].distSquared(t[2]),n=.25*t[1].distSquared(t[3]),o=e&gt;s?e:s,i=r&gt;n?r:n;return 18*(o&gt;i?o:i)},i=(t,e)=&gt;Math.sqrt(t.distSquared(e)),a=(t,e)=&gt;t.scale(2/3).add(e.scale(1/3)),h=t=&gt;{let e,s,r,n,o,i,a,h=new g;return t.match(/(\w+\(\s*[^)]+\))+/g).forEach(t=&gt;{let l=t.match(/[\w.-]+/g),d=l.shift();switch(d){case&quot;translate&quot;:2===l.length?e=new g(1,0,0,1,l[0],l[1]):(console.error(&quot;mesh.js: translate does not have 2 arguments!&quot;),e=new g(1,0,0,1,0,0)),h=h.append(e);break;case&quot;scale&quot;:1===l.length?s=new g(l[0],0,0,l[0],0,0):2===l.length?s=new g(l[0],0,0,l[1],0,0):(console.error(&quot;mesh.js: scale does not have 1 or 2 arguments!&quot;),s=new g(1,0,0,1,0,0)),h=h.append(s);break;case&quot;rotate&quot;:if(3===l.length&amp;&amp;(e=new g(1,0,0,1,l[1],l[2]),h=h.append(e)),l[0]){r=l[0]*Math.PI/180;let t=Math.cos(r),e=Math.sin(r);Math.abs(t)&lt;1e-16&amp;&amp;(t=0),Math.abs(e)&lt;1e-16&amp;&amp;(e=0),a=new g(t,e,-e,t,0,0),h=h.append(a)}else console.error(&quot;math.js: No argument to rotate transform!&quot;);3===l.length&amp;&amp;(e=new g(1,0,0,1,-l[1],-l[2]),h=h.append(e));break;case&quot;skewX&quot;:l[0]?(r=l[0]*Math.PI/180,n=Math.tan(r),o=new g(1,0,n,1,0,0),h=h.append(o)):console.error(&quot;math.js: No argument to skewX transform!&quot;);break;case&quot;skewY&quot;:l[0]?(r=l[0]*Math.PI/180,n=Math.tan(r),i=new g(1,n,0,1,0,0),h=h.append(i)):console.error(&quot;math.js: No argument to skewY transform!&quot;);break;case&quot;matrix&quot;:6===l.length?h=h.append(new g(...l)):console.error(&quot;math.js: Incorrect number of arguments for matrix!&quot;);break;default:console.error(&quot;mesh.js: Unhandled transform type: &quot;+d)}}),h},l=t=&gt;{let e=[],s=t.split(/[ ,]+/);for(let t=0,r=s.length-1;t&lt;r;t+=2)e.push(new x(parseFloat(s[t]),parseFloat(s[t+1])));return e},d=(t,e)=&gt;{for(let s in e)t.setAttribute(s,e[s])},c=(t,e,s,r,n)=&gt;{let o,i,a=[0,0,0,0];for(let h=0;h&lt;3;++h)e[h]&lt;t[h]&amp;&amp;e[h]&lt;s[h]||t[h]&lt;e[h]&amp;&amp;s[h]&lt;e[h]?a[h]=0:(a[h]=.5*((e[h]-t[h])/r+(s[h]-e[h])/n),o=Math.abs(3*(e[h]-t[h])/r),i=Math.abs(3*(s[h]-e[h])/n),a[h]&gt;o?a[h]=o:a[h]&gt;i&amp;&amp;(a[h]=i));return a},u=[[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],[-3,3,0,0,-2,-1,0,0,0,0,0,0,0,0,0,0],[2,-2,0,0,1,1,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,-3,3,0,0,-2,-1,0,0],[0,0,0,0,0,0,0,0,2,-2,0,0,1,1,0,0],[-3,0,3,0,0,0,0,0,-2,0,-1,0,0,0,0,0],[0,0,0,0,-3,0,3,0,0,0,0,0,-2,0,-1,0],[9,-9,-9,9,6,3,-6,-3,6,-6,3,-3,4,2,2,1],[-6,6,6,-6,-3,-3,3,3,-4,4,-2,2,-2,-2,-1,-1],[2,0,-2,0,0,0,0,0,1,0,1,0,0,0,0,0],[0,0,0,0,2,0,-2,0,0,0,0,0,1,0,1,0],[-6,6,6,-6,-4,-2,4,2,-3,3,-3,3,-2,-1,-2,-1],[4,-4,-4,4,2,2,-2,-2,2,-2,2,-2,1,1,1,1]],f=t=&gt;{let e=[];for(let s=0;s&lt;16;++s){e[s]=0;for(let r=0;r&lt;16;++r)e[s]+=u[s][r]*t[r]}return e},p=(t,e,s)=&gt;{const r=e*e,n=s*s,o=e*e*e,i=s*s*s;return t[0]+t[1]*e+t[2]*r+t[3]*o+t[4]*s+t[5]*s*e+t[6]*s*r+t[7]*s*o+t[8]*n+t[9]*n*e+t[10]*n*r+t[11]*n*o+t[12]*i+t[13]*i*e+t[14]*i*r+t[15]*i*o},y=t=&gt;{let e=[],s=[],r=[];for(let s=0;s&lt;4;++s)e[s]=[],e[s][0]=n(t[0][s],t[1][s],t[2][s],t[3][s]),e[s][1]=[],e[s][1].push(...n(...e[s][0][0])),e[s][1].push(...n(...e[s][0][1])),e[s][2]=[],e[s][2].push(...n(...e[s][1][0])),e[s][2].push(...n(...e[s][1][1])),e[s][2].push(...n(...e[s][1][2])),e[s][2].push(...n(...e[s][1][3]));for(let t=0;t&lt;8;++t){s[t]=[];for(let r=0;r&lt;4;++r)s[t][r]=[],s[t][r][0]=n(e[0][2][t][r],e[1][2][t][r],e[2][2][t][r],e[3][2][t][r]),s[t][r][1]=[],s[t][r][1].push(...n(...s[t][r][0][0])),s[t][r][1].push(...n(...s[t][r][0][1])),s[t][r][2]=[],s[t][r][2].push(...n(...s[t][r][1][0])),s[t][r][2].push(...n(...s[t][r][1][1])),s[t][r][2].push(...n(...s[t][r][1][2])),s[t][r][2].push(...n(...s[t][r][1][3]))}for(let t=0;t&lt;8;++t){r[t]=[];for(let e=0;e&lt;8;++e)r[t][e]=[],r[t][e][0]=s[t][0][2][e],r[t][e][1]=s[t][1][2][e],r[t][e][2]=s[t][2][2][e],r[t][e][3]=s[t][3][2][e]}return r};class x{constructor(t,e){this.x=t||0,this.y=e||0}toString(){return`(x=${this.x}, y=${this.y})`}clone(){return new x(this.x,this.y)}add(t){return new x(this.x+t.x,this.y+t.y)}scale(t){return void 0===t.x?new x(this.x*t,this.y*t):new x(this.x*t.x,this.y*t.y)}distSquared(t){let e=this.x-t.x,s=this.y-t.y;return e*e+s*s}transform(t){let e=this.x*t.a+this.y*t.c+t.e,s=this.x*t.b+this.y*t.d+t.f;return new x(e,s)}}class g{constructor(t,e,s,r,n,o){void 0===t?(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0):(this.a=t,this.b=e,this.c=s,this.d=r,this.e=n,this.f=o)}toString(){return`affine: ${this.a} ${this.c} ${this.e} \n ${this.b} ${this.d} ${this.f}`}append(t){t instanceof g||console.error(&quot;mesh.js: argument to Affine.append is not affine!&quot;);let e=this.a*t.a+this.c*t.b,s=this.b*t.a+this.d*t.b,r=this.a*t.c+this.c*t.d,n=this.b*t.c+this.d*t.d,o=this.a*t.e+this.c*t.f+this.e,i=this.b*t.e+this.d*t.f+this.f;return new g(e,s,r,n,o,i)}}class w{constructor(t,e){this.nodes=t,this.colors=e}paintCurve(t,e){if(o(this.nodes)&gt;r){const s=n(...this.nodes);let r=[[],[]],o=[[],[]];for(let t=0;t&lt;4;++t)r[0][t]=this.colors[0][t],r[1][t]=(this.colors[0][t]+this.colors[1][t])/2,o[0][t]=r[1][t],o[1][t]=this.colors[1][t];let i=new w(s[0],r),a=new w(s[1],o);i.paintCurve(t,e),a.paintCurve(t,e)}else{let s=Math.round(this.nodes[0].x);if(s&gt;=0&amp;&amp;s&lt;e){let r=4*(~~this.nodes[0].y*e+s);t[r]=Math.round(this.colors[0][0]),t[r+1]=Math.round(this.colors[0][1]),t[r+2]=Math.round(this.colors[0][2]),t[r+3]=Math.round(this.colors[0][3])}}}}class m{constructor(t,e){this.nodes=t,this.colors=e}split(){let t=[[],[],[],[]],e=[[],[],[],[]],s=[[[],[]],[[],[]]],r=[[[],[]],[[],[]]];for(let s=0;s&lt;4;++s){const r=n(this.nodes[0][s],this.nodes[1][s],this.nodes[2][s],this.nodes[3][s]);t[0][s]=r[0][0],t[1][s]=r[0][1],t[2][s]=r[0][2],t[3][s]=r[0][3],e[0][s]=r[1][0],e[1][s]=r[1][1],e[2][s]=r[1][2],e[3][s]=r[1][3]}for(let t=0;t&lt;4;++t)s[0][0][t]=this.colors[0][0][t],s[0][1][t]=this.colors[0][1][t],s[1][0][t]=(this.colors[0][0][t]+this.colors[1][0][t])/2,s[1][1][t]=(this.colors[0][1][t]+this.colors[1][1][t])/2,r[0][0][t]=s[1][0][t],r[0][1][t]=s[1][1][t],r[1][0][t]=this.colors[1][0][t],r[1][1][t]=this.colors[1][1][t];return[new m(t,s),new m(e,r)]}paint(t,e){let s,n=!1;for(let t=0;t&lt;4;++t)if((s=o([this.nodes[0][t],this.nodes[1][t],this.nodes[2][t],this.nodes[3][t]]))&gt;r){n=!0;break}if(n){let s=this.split();s[0].paint(t,e),s[1].paint(t,e)}else{new w([...this.nodes[0]],[...this.colors[0]]).paintCurve(t,e)}}}class b{constructor(t){this.readMesh(t),this.type=t.getAttribute(&quot;type&quot;)||&quot;bilinear&quot;}readMesh(t){let e=[[]],s=[[]],r=Number(t.getAttribute(&quot;x&quot;)),n=Number(t.getAttribute(&quot;y&quot;));e[0][0]=new x(r,n);let o=t.children;for(let t=0,r=o.length;t&lt;r;++t){e[3*t+1]=[],e[3*t+2]=[],e[3*t+3]=[],s[t+1]=[];let r=o[t].children;for(let n=0,o=r.length;n&lt;o;++n){let o=r[n].children;for(let r=0,i=o.length;r&lt;i;++r){let i=r;0!==t&amp;&amp;++i;let h,d=o[r].getAttribute(&quot;path&quot;),c=&quot;l&quot;;null!=d&amp;&amp;(c=(h=d.match(/\s*([lLcC])\s*(.*)/))[1]);let u=l(h[2]);switch(c){case&quot;l&quot;:0===i?(e[3*t][3*n+3]=u[0].add(e[3*t][3*n]),e[3*t][3*n+1]=a(e[3*t][3*n],e[3*t][3*n+3]),e[3*t][3*n+2]=a(e[3*t][3*n+3],e[3*t][3*n])):1===i?(e[3*t+3][3*n+3]=u[0].add(e[3*t][3*n+3]),e[3*t+1][3*n+3]=a(e[3*t][3*n+3],e[3*t+3][3*n+3]),e[3*t+2][3*n+3]=a(e[3*t+3][3*n+3],e[3*t][3*n+3])):2===i?(0===n&amp;&amp;(e[3*t+3][3*n+0]=u[0].add(e[3*t+3][3*n+3])),e[3*t+3][3*n+1]=a(e[3*t+3][3*n],e[3*t+3][3*n+3]),e[3*t+3][3*n+2]=a(e[3*t+3][3*n+3],e[3*t+3][3*n])):(e[3*t+1][3*n]=a(e[3*t][3*n],e[3*t+3][3*n]),e[3*t+2][3*n]=a(e[3*t+3][3*n],e[3*t][3*n]));break;case&quot;L&quot;:0===i?(e[3*t][3*n+3]=u[0],e[3*t][3*n+1]=a(e[3*t][3*n],e[3*t][3*n+3]),e[3*t][3*n+2]=a(e[3*t][3*n+3],e[3*t][3*n])):1===i?(e[3*t+3][3*n+3]=u[0],e[3*t+1][3*n+3]=a(e[3*t][3*n+3],e[3*t+3][3*n+3]),e[3*t+2][3*n+3]=a(e[3*t+3][3*n+3],e[3*t][3*n+3])):2===i?(0===n&amp;&amp;(e[3*t+3][3*n+0]=u[0]),e[3*t+3][3*n+1]=a(e[3*t+3][3*n],e[3*t+3][3*n+3]),e[3*t+3][3*n+2]=a(e[3*t+3][3*n+3],e[3*t+3][3*n])):(e[3*t+1][3*n]=a(e[3*t][3*n],e[3*t+3][3*n]),e[3*t+2][3*n]=a(e[3*t+3][3*n],e[3*t][3*n]));break;case&quot;c&quot;:0===i?(e[3*t][3*n+1]=u[0].add(e[3*t][3*n]),e[3*t][3*n+2]=u[1].add(e[3*t][3*n]),e[3*t][3*n+3]=u[2].add(e[3*t][3*n])):1===i?(e[3*t+1][3*n+3]=u[0].add(e[3*t][3*n+3]),e[3*t+2][3*n+3]=u[1].add(e[3*t][3*n+3]),e[3*t+3][3*n+3]=u[2].add(e[3*t][3*n+3])):2===i?(e[3*t+3][3*n+2]=u[0].add(e[3*t+3][3*n+3]),e[3*t+3][3*n+1]=u[1].add(e[3*t+3][3*n+3]),0===n&amp;&amp;(e[3*t+3][3*n+0]=u[2].add(e[3*t+3][3*n+3]))):(e[3*t+2][3*n]=u[0].add(e[3*t+3][3*n]),e[3*t+1][3*n]=u[1].add(e[3*t+3][3*n]));break;case&quot;C&quot;:0===i?(e[3*t][3*n+1]=u[0],e[3*t][3*n+2]=u[1],e[3*t][3*n+3]=u[2]):1===i?(e[3*t+1][3*n+3]=u[0],e[3*t+2][3*n+3]=u[1],e[3*t+3][3*n+3]=u[2]):2===i?(e[3*t+3][3*n+2]=u[0],e[3*t+3][3*n+1]=u[1],0===n&amp;&amp;(e[3*t+3][3*n+0]=u[2])):(e[3*t+2][3*n]=u[0],e[3*t+1][3*n]=u[1]);break;default:console.error(&quot;mesh.js: &quot;+c+&quot; invalid path type.&quot;)}if(0===t&amp;&amp;0===n||r&gt;0){let e=window.getComputedStyle(o[r]).stopColor.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),a=window.getComputedStyle(o[r]).stopOpacity,h=255;a&amp;&amp;(h=Math.floor(255*a)),e&amp;&amp;(0===i?(s[t][n]=[],s[t][n][0]=Math.floor(e[1]),s[t][n][1]=Math.floor(e[2]),s[t][n][2]=Math.floor(e[3]),s[t][n][3]=h):1===i?(s[t][n+1]=[],s[t][n+1][0]=Math.floor(e[1]),s[t][n+1][1]=Math.floor(e[2]),s[t][n+1][2]=Math.floor(e[3]),s[t][n+1][3]=h):2===i?(s[t+1][n+1]=[],s[t+1][n+1][0]=Math.floor(e[1]),s[t+1][n+1][1]=Math.floor(e[2]),s[t+1][n+1][2]=Math.floor(e[3]),s[t+1][n+1][3]=h):3===i&amp;&amp;(s[t+1][n]=[],s[t+1][n][0]=Math.floor(e[1]),s[t+1][n][1]=Math.floor(e[2]),s[t+1][n][2]=Math.floor(e[3]),s[t+1][n][3]=h))}}e[3*t+1][3*n+1]=new x,e[3*t+1][3*n+2]=new x,e[3*t+2][3*n+1]=new x,e[3*t+2][3*n+2]=new x,e[3*t+1][3*n+1].x=(-4*e[3*t][3*n].x+6*(e[3*t][3*n+1].x+e[3*t+1][3*n].x)+-2*(e[3*t][3*n+3].x+e[3*t+3][3*n].x)+3*(e[3*t+3][3*n+1].x+e[3*t+1][3*n+3].x)+-1*e[3*t+3][3*n+3].x)/9,e[3*t+1][3*n+2].x=(-4*e[3*t][3*n+3].x+6*(e[3*t][3*n+2].x+e[3*t+1][3*n+3].x)+-2*(e[3*t][3*n].x+e[3*t+3][3*n+3].x)+3*(e[3*t+3][3*n+2].x+e[3*t+1][3*n].x)+-1*e[3*t+3][3*n].x)/9,e[3*t+2][3*n+1].x=(-4*e[3*t+3][3*n].x+6*(e[3*t+3][3*n+1].x+e[3*t+2][3*n].x)+-2*(e[3*t+3][3*n+3].x+e[3*t][3*n].x)+3*(e[3*t][3*n+1].x+e[3*t+2][3*n+3].x)+-1*e[3*t][3*n+3].x)/9,e[3*t+2][3*n+2].x=(-4*e[3*t+3][3*n+3].x+6*(e[3*t+3][3*n+2].x+e[3*t+2][3*n+3].x)+-2*(e[3*t+3][3*n].x+e[3*t][3*n+3].x)+3*(e[3*t][3*n+2].x+e[3*t+2][3*n].x)+-1*e[3*t][3*n].x)/9,e[3*t+1][3*n+1].y=(-4*e[3*t][3*n].y+6*(e[3*t][3*n+1].y+e[3*t+1][3*n].y)+-2*(e[3*t][3*n+3].y+e[3*t+3][3*n].y)+3*(e[3*t+3][3*n+1].y+e[3*t+1][3*n+3].y)+-1*e[3*t+3][3*n+3].y)/9,e[3*t+1][3*n+2].y=(-4*e[3*t][3*n+3].y+6*(e[3*t][3*n+2].y+e[3*t+1][3*n+3].y)+-2*(e[3*t][3*n].y+e[3*t+3][3*n+3].y)+3*(e[3*t+3][3*n+2].y+e[3*t+1][3*n].y)+-1*e[3*t+3][3*n].y)/9,e[3*t+2][3*n+1].y=(-4*e[3*t+3][3*n].y+6*(e[3*t+3][3*n+1].y+e[3*t+2][3*n].y)+-2*(e[3*t+3][3*n+3].y+e[3*t][3*n].y)+3*(e[3*t][3*n+1].y+e[3*t+2][3*n+3].y)+-1*e[3*t][3*n+3].y)/9,e[3*t+2][3*n+2].y=(-4*e[3*t+3][3*n+3].y+6*(e[3*t+3][3*n+2].y+e[3*t+2][3*n+3].y)+-2*(e[3*t+3][3*n].y+e[3*t][3*n+3].y)+3*(e[3*t][3*n+2].y+e[3*t+2][3*n].y)+-1*e[3*t][3*n].y)/9}}this.nodes=e,this.colors=s}paintMesh(t,e){let s=(this.nodes.length-1)/3,r=(this.nodes[0].length-1)/3;if(&quot;bilinear&quot;===this.type||s&lt;2||r&lt;2){let n;for(let o=0;o&lt;s;++o)for(let s=0;s&lt;r;++s){let r=[];for(let t=3*o,e=3*o+4;t&lt;e;++t)r.push(this.nodes[t].slice(3*s,3*s+4));let i=[];i.push(this.colors[o].slice(s,s+2)),i.push(this.colors[o+1].slice(s,s+2)),(n=new m(r,i)).paint(t,e)}}else{let n,o,a,h,l,d,u;const x=s,g=r;s++,r++;let w=new Array(s);for(let t=0;t&lt;s;++t){w[t]=new Array(r);for(let e=0;e&lt;r;++e)w[t][e]=[],w[t][e][0]=this.nodes[3*t][3*e],w[t][e][1]=this.colors[t][e]}for(let t=0;t&lt;s;++t)for(let e=0;e&lt;r;++e)0!==t&amp;&amp;t!==x&amp;&amp;(n=i(w[t-1][e][0],w[t][e][0]),o=i(w[t+1][e][0],w[t][e][0]),w[t][e][2]=c(w[t-1][e][1],w[t][e][1],w[t+1][e][1],n,o)),0!==e&amp;&amp;e!==g&amp;&amp;(n=i(w[t][e-1][0],w[t][e][0]),o=i(w[t][e+1][0],w[t][e][0]),w[t][e][3]=c(w[t][e-1][1],w[t][e][1],w[t][e+1][1],n,o));for(let t=0;t&lt;r;++t){w[0][t][2]=[],w[x][t][2]=[];for(let e=0;e&lt;4;++e)n=i(w[1][t][0],w[0][t][0]),o=i(w[x][t][0],w[x-1][t][0]),w[0][t][2][e]=n&gt;0?2*(w[1][t][1][e]-w[0][t][1][e])/n-w[1][t][2][e]:0,w[x][t][2][e]=o&gt;0?2*(w[x][t][1][e]-w[x-1][t][1][e])/o-w[x-1][t][2][e]:0}for(let t=0;t&lt;s;++t){w[t][0][3]=[],w[t][g][3]=[];for(let e=0;e&lt;4;++e)n=i(w[t][1][0],w[t][0][0]),o=i(w[t][g][0],w[t][g-1][0]),w[t][0][3][e]=n&gt;0?2*(w[t][1][1][e]-w[t][0][1][e])/n-w[t][1][3][e]:0,w[t][g][3][e]=o&gt;0?2*(w[t][g][1][e]-w[t][g-1][1][e])/o-w[t][g-1][3][e]:0}for(let s=0;s&lt;x;++s)for(let r=0;r&lt;g;++r){let n=i(w[s][r][0],w[s+1][r][0]),o=i(w[s][r+1][0],w[s+1][r+1][0]),c=i(w[s][r][0],w[s][r+1][0]),x=i(w[s+1][r][0],w[s+1][r+1][0]),g=[[],[],[],[]];for(let t=0;t&lt;4;++t){(d=[])[0]=w[s][r][1][t],d[1]=w[s+1][r][1][t],d[2]=w[s][r+1][1][t],d[3]=w[s+1][r+1][1][t],d[4]=w[s][r][2][t]*n,d[5]=w[s+1][r][2][t]*n,d[6]=w[s][r+1][2][t]*o,d[7]=w[s+1][r+1][2][t]*o,d[8]=w[s][r][3][t]*c,d[9]=w[s+1][r][3][t]*x,d[10]=w[s][r+1][3][t]*c,d[11]=w[s+1][r+1][3][t]*x,d[12]=0,d[13]=0,d[14]=0,d[15]=0,u=f(d);for(let e=0;e&lt;9;++e){g[t][e]=[];for(let s=0;s&lt;9;++s)g[t][e][s]=p(u,e/8,s/8),g[t][e][s]&gt;255?g[t][e][s]=255:g[t][e][s]&lt;0&amp;&amp;(g[t][e][s]=0)}}h=[];for(let t=3*s,e=3*s+4;t&lt;e;++t)h.push(this.nodes[t].slice(3*r,3*r+4));l=y(h);for(let s=0;s&lt;8;++s)for(let r=0;r&lt;8;++r)(a=new m(l[s][r],[[[g[0][s][r],g[1][s][r],g[2][s][r],g[3][s][r]],[g[0][s][r+1],g[1][s][r+1],g[2][s][r+1],g[3][s][r+1]]],[[g[0][s+1][r],g[1][s+1][r],g[2][s+1][r],g[3][s+1][r]],[g[0][s+1][r+1],g[1][s+1][r+1],g[2][s+1][r+1],g[3][s+1][r+1]]]])).paint(t,e)}}}transform(t){if(t instanceof x)for(let e=0,s=this.nodes.length;e&lt;s;++e)for(let s=0,r=this.nodes[0].length;s&lt;r;++s)this.nodes[e][s]=this.nodes[e][s].add(t);else if(t instanceof g)for(let e=0,s=this.nodes.length;e&lt;s;++e)for(let s=0,r=this.nodes[0].length;s&lt;r;++s)this.nodes[e][s]=this.nodes[e][s].transform(t)}scale(t){for(let e=0,s=this.nodes.length;e&lt;s;++e)for(let s=0,r=this.nodes[0].length;s&lt;r;++s)this.nodes[e][s]=this.nodes[e][s].scale(t)}}document.querySelectorAll(&quot;rect,circle,ellipse,path,text&quot;).forEach((r,n)=&gt;{let o=r.getAttribute(&quot;id&quot;);o||(o=&quot;patchjs_shape&quot;+n,r.setAttribute(&quot;id&quot;,o));const i=r.style.fill.match(/^url\(\s*&quot;?\s*#([^\s&quot;]+)&quot;?\s*\)/),a=r.style.stroke.match(/^url\(\s*&quot;?\s*#([^\s&quot;]+)&quot;?\s*\)/);if(i&amp;&amp;i[1]){const a=document.getElementById(i[1]);if(a&amp;&amp;&quot;meshgradient&quot;===a.nodeName){const i=r.getBBox();let l=document.createElementNS(s,&quot;canvas&quot;);d(l,{width:i.width,height:i.height});const c=l.getContext(&quot;2d&quot;);let u=c.createImageData(i.width,i.height);const f=new b(a);&quot;objectBoundingBox&quot;===a.getAttribute(&quot;gradientUnits&quot;)&amp;&amp;f.scale(new x(i.width,i.height));const p=a.getAttribute(&quot;gradientTransform&quot;);null!=p&amp;&amp;f.transform(h(p)),&quot;userSpaceOnUse&quot;===a.getAttribute(&quot;gradientUnits&quot;)&amp;&amp;f.transform(new x(-i.x,-i.y)),f.paintMesh(u.data,l.width),c.putImageData(u,0,0);const y=document.createElementNS(t,&quot;image&quot;);d(y,{width:i.width,height:i.height,x:i.x,y:i.y});let g=l.toDataURL();y.setAttributeNS(e,&quot;xlink:href&quot;,g),r.parentNode.insertBefore(y,r),r.style.fill=&quot;none&quot;;const w=document.createElementNS(t,&quot;use&quot;);w.setAttributeNS(e,&quot;xlink:href&quot;,&quot;#&quot;+o);const m=&quot;patchjs_clip&quot;+n,M=document.createElementNS(t,&quot;clipPath&quot;);M.setAttribute(&quot;id&quot;,m),M.appendChild(w),r.parentElement.insertBefore(M,r),y.setAttribute(&quot;clip-path&quot;,&quot;url(#&quot;+m+&quot;)&quot;),u=null,l=null,g=null}}if(a&amp;&amp;a[1]){const o=document.getElementById(a[1]);if(o&amp;&amp;&quot;meshgradient&quot;===o.nodeName){const i=parseFloat(r.style.strokeWidth.slice(0,-2))*(parseFloat(r.style.strokeMiterlimit)||parseFloat(r.getAttribute(&quot;stroke-miterlimit&quot;))||1),a=r.getBBox(),l=Math.trunc(a.width+i),c=Math.trunc(a.height+i),u=Math.trunc(a.x-i/2),f=Math.trunc(a.y-i/2);let p=document.createElementNS(s,&quot;canvas&quot;);d(p,{width:l,height:c});const y=p.getContext(&quot;2d&quot;);let g=y.createImageData(l,c);const w=new b(o);&quot;objectBoundingBox&quot;===o.getAttribute(&quot;gradientUnits&quot;)&amp;&amp;w.scale(new x(l,c));const m=o.getAttribute(&quot;gradientTransform&quot;);null!=m&amp;&amp;w.transform(h(m)),&quot;userSpaceOnUse&quot;===o.getAttribute(&quot;gradientUnits&quot;)&amp;&amp;w.transform(new x(-u,-f)),w.paintMesh(g.data,p.width),y.putImageData(g,0,0);const M=document.createElementNS(t,&quot;image&quot;);d(M,{width:l,height:c,x:0,y:0});let S=p.toDataURL();M.setAttributeNS(e,&quot;xlink:href&quot;,S);const k=&quot;pattern_clip&quot;+n,A=document.createElementNS(t,&quot;pattern&quot;);d(A,{id:k,patternUnits:&quot;userSpaceOnUse&quot;,width:l,height:c,x:u,y:f}),A.appendChild(M),o.parentNode.appendChild(A),r.style.stroke=&quot;url(#&quot;+k+&quot;)&quot;,g=null,p=null,S=null}}})}();
  379. </script>
  380. </svg>